[systemd-devel] Need a bit of help with KEYBOARD_KEY_xx hwdb entries

Sam Morris sam at robots.org.uk
Sun Apr 29 15:11:32 UTC 2018


Pressing the brightness keys on my Dell Vostro 1520 results in events
coming from both the atkbd and the acpi-video input devices, resulting
in double-stepped brightness changes. Based on 
I'm trying to arrange for the brightness key events for the atkbd
device in my laptop (Dell Vostro 1520) to be ignored, as the acpi-video 
input device also generates them, resulting in double-stepped
brightness changes. Based on the output of libinput-debug-events:

-event0   KEYBOARD_KEY      +5.62s      KEY_BRIGHTNESSDOWN (224) pressed
 event0   KEYBOARD_KEY      +5.62s      KEY_BRIGHTNESSDOWN (224) released
-event0   KEYBOARD_KEY      +9.61s      KEY_BRIGHTNESSUP (225) pressed
 event0   KEYBOARD_KEY      +9.61s      KEY_BRIGHTNESSUP (225) released

I've got the following:

# Dell Vostro 1520
evdev:atkbd:dmi:bvn*:bvr*:bd*:svnDellInc.:pnVostro1520:pvr*
 KEYBOARD_KEY_e0=unknown # Brightness Down, also emitted by acpi-video, ignore
 KEYBOARD_KEY_e1=unknown # Brightness Up, also emitted by acpi-video, ignore

... which has applied OK:

$ /sbin/udevadm info --path=/sys/class/input/event0 | grep KEYBOARD_KEY_e[01]
E: KEYBOARD_KEY_e0=unknown
E: KEYBOARD_KEY_e1=unknown

... but the events are not ignored by Xorg, which is using libinput:

$ grep 'AT Translated' ~/.local/share/xorg/Xorg.0.log
[175652.950] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event0)
[175652.950] (**) AT Translated Set 2 keyboard: Applying InputClass "libinput keyboard catchall"
[175652.950] (II) Using input driver 'libinput' for 'AT Translated Set 2 keyboard'
[175652.954] (**) AT Translated Set 2 keyboard: always reports core events
[175652.954] (II) event0  - AT Translated Set 2 keyboard: is tagged by udev as: Keyboard
[175652.954] (II) event0  - AT Translated Set 2 keyboard: device is a keyboard
[175652.954] (II) event0  - AT Translated Set 2 keyboard: device removed
[175652.954] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 10)
[175652.955] (II) event0  - AT Translated Set 2 keyboard: is tagged by udev as: Keyboard
[175652.957] (II) event0  - AT Translated Set 2 keyboard: device is a keyboard

I've also tried using 'reserved' instead of 'unknown' with the same
effect. So... what have I missed?

Thanks!

-- 
Sam Morris <https://robots.org.uk/>
CAAA AA1A CA69 A83A 892B  1855 D20B 4202 5CDA 27B9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20180429/0f1b202a/attachment.sig>


More information about the systemd-devel mailing list