Although a laptop touchpad is usually not accessible when the lid is closed, some laptop models suffer from a hardware bug where the touchpad can be activated even if the lid is closed. This bug can be worked around by disabling the touchpad when the lid is closed.
This patch set adds: 1: switch interface[1] 2: evdev dispatch interface for laptop lid switches 3: mechanism for pairing touchpad with lid, and disabling the touchpad 4: test cases Changes since v2: removed set 1 (merged in systemd[2]) set 2 (now set 1): - removed tablet mode enum set 3 (now set 2): - check for SW_LID in lid_switch_process set 4 (now set 3): - check if event is a switch event set 5 (now set 4): - rebased off master - renamed lid.c to test-lid.c Cheers, James [1]: https://lists.freedesktop.org/archives/wayland-devel/2016-January/026349.html [2]: https://github.com/systemd/systemd/pull/5057 James Ye (4): Add a "switch" interface for parts of the SW_* range Add evdev_dispatch interface for lid switch Pair touchpad and lid_switch for disable test: add tests for lid switch doc/Makefile.am | 1 + doc/switches.dox | 16 +++ src/evdev-mt-touchpad.c | 49 ++++++++ src/evdev-mt-touchpad.h | 5 + src/evdev.c | 107 +++++++++++++++- src/evdev.h | 8 ++ src/libinput-private.h | 5 + src/libinput.c | 103 ++++++++++++++++ src/libinput.h | 112 +++++++++++++++++ src/libinput.sym | 9 ++ test/Makefile.am | 4 +- test/litest-device-lid-switch.c | 58 +++++++++ test/litest.c | 33 +++++ test/litest.h | 11 ++ test/test-lid.c | 263 ++++++++++++++++++++++++++++++++++++++++ test/test-misc.c | 50 ++++++++ tools/event-debug.c | 31 +++++ 17 files changed, 862 insertions(+), 3 deletions(-) create mode 100644 doc/switches.dox create mode 100644 test/litest-device-lid-switch.c create mode 100644 test/test-lid.c -- 2.9.3 _______________________________________________ wayland-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/wayland-devel
