You are not logged in.

#1 2013-09-20 17:09:56

mpir
Member
Registered: 2013-09-20
Posts: 15

[SOLVED]Fn keys broken after update

Hi,
After a system upgrade the fn keys controlling the keyboard backlight don't work. Other fn keys work fine

Update log:

[2013-09-20 17:55] [PACMAN] starting full system upgrade
[2013-09-20 17:58] [PACMAN] upgraded dbus (1.6.12-1 -> 1.6.14-1)
[2013-09-20 17:58] [ALPM] warning: /etc/systemd/logind.conf installed as /etc/systemd/logind.conf.pacnew
[2013-09-20 17:58] [ALPM-SCRIPTLET] ==> systemd 205 restructures the cgroup hierarchy and changes internal
[2013-09-20 17:58] [ALPM-SCRIPTLET]     protocols. You should reboot at your earliest convenience.
[2013-09-20 17:58] [ALPM-SCRIPTLET] ==> The "timestamp" hook for mkinitcpio no longer exists. If you used
[2013-09-20 17:58] [ALPM-SCRIPTLET]     this hook, you must remove it from /etc/mkinitcpio.conf. A "systemd"
[2013-09-20 17:58] [ALPM-SCRIPTLET]     hook has been added which provides this functionality, and more.
[2013-09-20 17:58] [PACMAN] upgraded systemd (204-3 -> 207-3)
[2013-09-20 17:58] [PACMAN] upgraded bluez-utils (5.7-1 -> 5.8-1)
[2013-09-20 17:58] [PACMAN] upgraded cogl (1.14.0-4 -> 1.14.0-5)
[2013-09-20 17:58] [PACMAN] upgraded empathy (3.8.3-1 -> 3.8.4-1)
[2013-09-20 17:58] [PACMAN] upgraded firefox (23.0.1-1 -> 24.0-1)
[2013-09-20 17:58] [ALPM-SCRIPTLET] Generating locales...
[2013-09-20 17:58] [ALPM-SCRIPTLET]   el_GR.UTF-8... done
[2013-09-20 17:58] [ALPM-SCRIPTLET]   en_US.UTF-8... done
[2013-09-20 17:58] [ALPM-SCRIPTLET] Generation complete.
[2013-09-20 17:58] [PACMAN] upgraded glibc (2.18-3 -> 2.18-4)
[2013-09-20 17:58] [PACMAN] upgraded gmime (2.6.17-1 -> 2.6.18-1)
[2013-09-20 17:58] [PACMAN] upgraded gnome-desktop (1:3.8.3-2 -> 1:3.8.4-1)
[2013-09-20 17:58] [PACMAN] upgraded gnome-color-manager (3.8.2-1 -> 3.8.3-1)
[2013-09-20 17:58] [PACMAN] upgraded gnome-settings-daemon (3.8.4-2 -> 3.8.5-1)
[2013-09-20 17:58] [PACMAN] upgraded gnome-control-center (3.8.4.1-2 -> 3.8.5-1)
[2013-09-20 17:58] [PACMAN] upgraded gnome-shell-extensions (3.8.3.1-2 -> 3.8.4-1)
[2013-09-20 17:58] [PACMAN] upgraded gnome-themes-standard (3.8.3-1 -> 3.8.4-1)
[2013-09-20 17:58] [PACMAN] upgraded graphviz (2.32.0-1 -> 2.32.0-2)
[2013-09-20 17:58] [PACMAN] upgraded icedtea-web-java7 (1.4-2 -> 1.4.1-1)
[2013-09-20 17:58] [PACMAN] upgraded lib32-glibc (2.18-3 -> 2.18-4)
[2013-09-20 17:58] [PACMAN] upgraded libpng (1.6.3-1 -> 1.6.5-1)
[2013-09-20 17:58] [PACMAN] upgraded lib32-libpng (1.6.3-1 -> 1.6.5-1)
[2013-09-20 17:58] [PACMAN] upgraded libusbx (1.0.16-2 -> 1.0.17-1)
[2013-09-20 17:58] [PACMAN] upgraded linux-firmware (20130725-1 -> 20130903-1)
[2013-09-20 17:58] [ALPM-SCRIPTLET] >>> Updating module dependencies. Please wait ...
[2013-09-20 17:58] [ALPM-SCRIPTLET] >>> Generating initial ramdisk, using mkinitcpio.  Please wait...
[2013-09-20 17:58] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
[2013-09-20 17:58] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
[2013-09-20 17:58] [ALPM-SCRIPTLET] ==> Starting build: 3.11.1-1-ARCH
[2013-09-20 17:58] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2013-09-20 17:58] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2013-09-20 17:58] [ALPM-SCRIPTLET]   -> Running build hook: [autodetect]
[2013-09-20 17:58] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2013-09-20 17:58] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2013-09-20 17:58] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2013-09-20 17:58] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2013-09-20 17:58] [ALPM-SCRIPTLET]   -> Running build hook: [fsck]
[2013-09-20 17:58] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2013-09-20 17:58] [ALPM-SCRIPTLET] ==> Creating gzip initcpio image: /boot/initramfs-linux.img
[2013-09-20 17:58] [ALPM-SCRIPTLET] ==> Image generation successful
[2013-09-20 17:58] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
[2013-09-20 17:58] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
[2013-09-20 17:58] [ALPM-SCRIPTLET] ==> Starting build: 3.11.1-1-ARCH
[2013-09-20 17:58] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2013-09-20 17:58] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2013-09-20 17:58] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2013-09-20 17:58] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2013-09-20 17:58] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: bfa
[2013-09-20 17:58] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: aic94xx
[2013-09-20 17:58] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: smsmdtv
[2013-09-20 17:58] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2013-09-20 17:58] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2013-09-20 17:58] [ALPM-SCRIPTLET]   -> Running build hook: [fsck]
[2013-09-20 17:58] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2013-09-20 17:58] [ALPM-SCRIPTLET] ==> Creating gzip initcpio image: /boot/initramfs-linux-fallback.img
[2013-09-20 17:58] [ALPM-SCRIPTLET] ==> Image generation successful
[2013-09-20 17:58] [PACMAN] upgraded linux (3.10.10-1 -> 3.11.1-1)
[2013-09-20 17:58] [PACMAN] upgraded orc (0.4.17-1 -> 0.4.18-1)
[2013-09-20 17:58] [ALPM-SCRIPTLET] 
[2013-09-20 17:58] [ALPM-SCRIPTLET] ==> The file /etc/sysctl.conf has been removed from this
[2013-09-20 17:58] [ALPM-SCRIPTLET] ==> package, as all its settings are now kernel defaults.
[2013-09-20 17:58] [ALPM-SCRIPTLET] 
[2013-09-20 17:58] [ALPM-SCRIPTLET] ==> If you had customized it, you need to rename it as
[2013-09-20 17:58] [ALPM-SCRIPTLET] ==> /etc/sysctl.d/99-sysctl.conf since from version 207 on
[2013-09-20 17:58] [ALPM-SCRIPTLET] ==> systemd only applies settings from /etc/sysctl.d/* .
[2013-09-20 17:58] [ALPM-SCRIPTLET] 
[2013-09-20 17:58] [PACMAN] upgraded procps-ng (3.3.8-2 -> 3.3.8-3)
[2013-09-20 17:58] [PACMAN] upgraded raptor (2.0.9-2 -> 2.0.10-2)
[2013-09-20 17:58] [PACMAN] upgraded systemd-sysvcompat (204-3 -> 207-3)
[2013-09-20 17:58] [PACMAN] upgraded tali (3.8.0-1 -> 3.8.1-1)
[2013-09-20 17:58] [PACMAN] upgraded transmission-gtk (2.81-1 -> 2.82-1)
[2013-09-20 17:58] [PACMAN] upgraded udisks2 (2.1.0-3 -> 2.1.1-1)
[2013-09-20 17:58] [ALPM-SCRIPTLET] In order to use the new version, reload all virtualbox modules manually.
[2013-09-20 17:58] [PACMAN] upgraded virtualbox-host-modules (4.2.18-1 -> 4.2.18-3)
[2013-09-20 17:58] [PACMAN] upgraded xorg-xinput (1.6.0-1 -> 1.6.1-1)
[2013-09-20 17:58] [PACMAN] upgraded xvidcore (1.3.2-1 -> 1.3.2-2)

and Dmesg

[ 1053.214014] atkbd serio0: Unknown key pressed (translated set 2, code 0x97 on isa0060/serio0).
[ 1053.214022] atkbd serio0: Use 'setkeycodes e017 <keycode>' to make it known.
[ 1053.455447] atkbd serio0: Unknown key pressed (translated set 2, code 0x96 on isa0060/serio0).
[ 1053.455455] atkbd serio0: Use 'setkeycodes e016 <keycode>' to make it known.

I can see what the issue is (somehow the update broke the keyboard "hooks"), but don't know how to fix it cleanly (with what to "hook" the keys).
Seems like a silly situation, so i start the thread in the newbies section.
thanks in advance

Last edited by mpir (2013-09-25 18:12:08)

Offline

#2 2013-09-20 17:16:05

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]Fn keys broken after update

Hello, mpir, and welcome to Arch Linux forums.

Did you reboot after the kernel update? Did you deal with any and all the .pacnew files?
Is it by change the same issue as https://bbs.archlinux.org/viewtopic.php?id=169553 ?


When pasting configs, code or command output, please use [ code ] tags, not [ quote ] tags https://bbs.archlinux.org/help.php#bbcode

like this

It makes the code more readable and - in case of longer listings - more convenient to scroll through.

Offline

#3 2013-09-20 17:27:04

mpir
Member
Registered: 2013-09-20
Posts: 15

Re: [SOLVED]Fn keys broken after update

I did reboot and didn't deal with the .pacnew files.

I believe the solution has to do with "hooking" (what is the right word, btw?) these two fn keys with something inside /sys/class/leds/samsung::kbd_backlight, but it seems like a chaos inside there.

Offline

#4 2013-09-20 17:31:28

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]Fn keys broken after update

I know nothing about backlight, so I can only suggest searching (googling) around and reading the wiki https://wiki.archlinux.org/index.php/Backlight & https://wiki.archlinux.org/index.php/Ex … _scancodes

Offline

#5 2013-09-25 18:11:44

mpir
Member
Registered: 2013-09-20
Posts: 15

Re: [SOLVED]Fn keys broken after update

Solution:

prerequisites: xorg-xev

i) get the keyodes with dmesg | tail  {i used the eXX number, not the hex}

ii) test the scancode to keycode binding using

setkeycodes [scancode_you_found] [keycode] 

and then

xev

. You want your key to show up as "XF86KbdBrightnessUp/Down", my keycodes were 229 and 230

iii) make the change permanant by:

creating a new service

/etc/systemd/system/setkeycodes.service
[Unit]
Description=Change keycodes at boot

[Service]
Type=oneshot
ExecStart=/usr/bin/setkeycodes [scancode] [keycode]
ExecStart=/usr/bin/setkeycodes [scancode] [keycode]

[Install]
WantedBy=multi-user.target

and enabling the service

systemctl enable setkeycodes

cheers

Offline

Board footer

Powered by FluxBB