lid: disable all types but EV_SYN and EV_SW
The lid dispatch interface is a one-trick pony and can only handle SW_LID. It ignores other switches but crashes on any event type other than EV_SW and EV_SYN. Disable those types so we just ignore the event instead of asserting. https://bugs.freedesktop.org/show_bug.cgi?id=101853 Signed-off-by:Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by:
Jason Gerecke <jason.gerecke@wacom.com>
Showing
- meson.build 1 addition, 0 deletionsmeson.build
- src/evdev-lid.c 8 additions, 0 deletionssrc/evdev-lid.c
- test/litest-device-gpio-keys.c 75 additions, 0 deletionstest/litest-device-gpio-keys.c
- test/litest.c 2 additions, 0 deletionstest/litest.c
- test/litest.h 1 addition, 0 deletionstest/litest.h
- test/test-lid.c 20 additions, 0 deletionstest/test-lid.c
Loading
Please register or sign in to comment