fallback: allow for multiple keyboards to toggle the lid switch
Previously we only listened for events on the first one to come up, based on the assumption that there can only be one internal keyboard. The Razer Blade laptop keyboards come with with multiple event nodes, all looking like a normal keyboard. The one that comes up first is one for special keys, so typing on the internal keyboard after a lid switch does not toggle the write state. Fix this by allowing for up to 3 keyboard listeners for a lid switch. https://bugs.freedesktop.org/show_bug.cgi?id=102039 Signed-off-by:Peter Hutterer <peter.hutterer@who-t.net>
Showing
- meson.build 2 additions, 0 deletionsmeson.build
- src/evdev.c 67 additions, 24 deletionssrc/evdev.c
- src/evdev.h 12 additions, 2 deletionssrc/evdev.h
- test/litest-device-keyboard-razer-blade-stealth-videoswitch.c 227 additions, 0 deletions.../litest-device-keyboard-razer-blade-stealth-videoswitch.c
- test/litest-device-keyboard-razer-blade-stealth.c 346 additions, 0 deletionstest/litest-device-keyboard-razer-blade-stealth.c
- test/litest.c 4 additions, 0 deletionstest/litest.c
- test/litest.h 2 additions, 0 deletionstest/litest.h
- test/test-switch.c 57 additions, 0 deletionstest/test-switch.c
- udev/90-libinput-model-quirks.hwdb 9 additions, 0 deletionsudev/90-libinput-model-quirks.hwdb
Loading
Please register or sign in to comment