diff options
author | Hans de Goede <hdegoede@redhat.com> | 2021-05-22 19:42:21 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-05-22 20:50:36 +0200 |
commit | 82de3fc6a41fe0f589f2c9fb8db4948c909a307c (patch) | |
tree | 8cec61420b3820729dcfc37470c12eeb1de278c6 /hwdb.d | |
parent | 83a04afc06eb37e765e23a3af4333f681619794e (diff) | |
download | systemd-82de3fc6a41fe0f589f2c9fb8db4948c909a307c.tar.gz |
hwdb: keyboard: Ignore duplicate atkbd keypresses on touchpad on/off toggle
The atkbd device on the Lenovo Yoga 300-11IBR 2-in-1 sends unknown
keycodes when the touchpad is toggled on/off:
[ 1918.995562] atkbd serio0: Unknown key pressed (translated set 2, code 0x63 on isa0060/serio0).
[ 1918.995610] atkbd serio0: Use 'setkeycodes 63 <keycode>' to make it known.
[ 1919.032121] atkbd serio0: Unknown key released (translated set 2, code 0x63 on isa0060/serio0).
[ 1919.032135] atkbd serio0: Use 'setkeycodes 63 <keycode>' to make it known.
[ 1926.098414] atkbd serio0: Unknown key pressed (translated set 2, code 0x62 on isa0060/serio0).
[ 1926.098461] atkbd serio0: Use 'setkeycodes 62 <keycode>' to make it known.
[ 1926.146537] atkbd serio0: Unknown key released (translated set 2, code 0x62 on isa0060/serio0).
[ 1926.146583] atkbd serio0: Use 'setkeycodes 62 <keycode>' to make it known.
The "Ideapad extra buttons" driver alreadys sends f22 / f23 key-events
when the touchpad is toggles off, so map the keycodes for the duplicate
atkbd events to unknown to silence these kernel warnings.
Diffstat (limited to 'hwdb.d')
-rw-r--r-- | hwdb.d/60-keyboard.hwdb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hwdb.d/60-keyboard.hwdb b/hwdb.d/60-keyboard.hwdb index 1905db769b..8ac90b6df1 100644 --- a/hwdb.d/60-keyboard.hwdb +++ b/hwdb.d/60-keyboard.hwdb @@ -878,6 +878,10 @@ evdev:atkbd:dmi:bvn*:bvr*:svnLENOVO*:pn*IdeaPad*Z370*:* KEYBOARD_KEY_ae=!volumedown KEYBOARD_KEY_b0=!volumeup +evdev:atkbd:dmi:*:svnLENOVO:*:pvrLenovoYoga300-11IBR:* + KEYBOARD_KEY_62=unknown # Touchpad on, also emitted by "Ideapad extra buttons", ignore + KEYBOARD_KEY_63=unknown # Touchpad off, also emitted by "Ideapad extra buttons", ignore + # Fix for volume keys on Lenovo Yoga S940 # For 10th gen it should be pn81Q8 instead of pn81Q7 but # I don't have a device to test |