Signed-off-by: James Ye
---
Changes since v2:
- rebased off master
- renamed lid.c to test-lid.c
test/Makefile.am| 4 +-
test/litest-device-lid-switch.c | 58 +
test/litest.c | 30 +
test/litest.h | 11 ++
test/test-device.c
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
Create a lid_switch_interface to handle lid switch events, so the touchpad can
be disabled when lid is closed.
Signed-off-by: James Ye
---
Changes since v2:
- check for SW_LID in lid_switch_process
src/evdev.c | 107 ++--
src/evdev.h
event. See
https://bugs.freedesktop.org/show_bug.cgi?id=86223
This features is intended to be the main driver for the interface.
Co-Authored-By: Peter Hutterer
Signed-off-by: James Ye
---
Changes since v2:
- removed tablet mode enum
doc/Makefile.am| 1 +
doc/switches.dox | 16
Add listener for lid switch events, disable touchpad on switch event.
Signed-off-by: James Ye
---
Changes since v2:
- check if event is a switch event
src/evdev-mt-touchpad.c | 49 +
src/evdev-mt-touchpad.h | 5 +
2 files changed, 54
On Thu, Jan 5, 2017 at 4:15 PM, James Ye wrote:
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
Add listener for lid switch events, disable touchpad on switch event.
Signed-off-by: James Ye
---
src/evdev-mt-touchpad.c | 47 +++
src/evdev-mt-touchpad.h | 5 +
2 files changed, 52 insertions(+)
diff --git a/src/evdev-mt-touchpad.c b/src/evdev
Create a lid_switch_interface to handle lid switch events, so the touchpad can
be disabled when lid is closed.
Signed-off-by: James Ye
---
Changes since v1:
- style and text fixes
src/evdev.c | 94 +++--
src/evdev.h | 8 ++
2 files
Signed-off-by: James Ye
---
Changes since v1:
- test switch type in litest_is_switch_event()
- test duplicate switch events
- event conversion test
- improved scroll interrupt test
test/Makefile.am| 4 +-
test/lid.c | 263
also receive the event. See
https://bugs.freedesktop.org/show_bug.cgi?id=86223
This features is intended to be the main driver for the interface.
Co-Authored-By: Peter Hutterer
Signed-off-by: James Ye
---
Changes since v1:
- minor doxygen fixes
- missing @defgroup event_switch
- missing
Signed-off-by: James Ye
---
udev/90-libinput-model-quirks.hwdb | 6 ++
1 file changed, 6 insertions(+)
diff --git a/udev/90-libinput-model-quirks.hwdb
b/udev/90-libinput-model-quirks.hwdb
index eb74f61..f038144 100644
--- a/udev/90-libinput-model-quirks.hwdb
+++ b/udev/90-libinput-model
- updated commit message
set 3:
- style and text fixes
- updated commit message
set 5:
- improved tests
- added duplicate event test
- added event conversion test
Cheers,
James
[1]:
https://lists.freedesktop.org/archives/wayland-devel/2016-January/026349.html
James Ye (5):
udev: mark switches
Create a lid_switch_interface to handle lid switch events, so touchpad
can be disabled when lid is closed.
---
src/evdev.c | 92 +++--
src/evdev.h | 8 ++
2 files changed, 98 insertions(+), 2 deletions(-)
diff --git a/src/evdev.c b/src/
Add listener for lid switch events, disable touchpad on switch event.
---
src/evdev-mt-touchpad.c | 47 +++
src/evdev-mt-touchpad.h | 5 +
2 files changed, 52 insertions(+)
diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c
index f437c2
lid.c
@@ -0,0 +1,228 @@
+/*
+ * Copyright © 2017 James Ye
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without li
Adapted from:
https://lists.freedesktop.org/archives/wayland-devel/2016-January/026349.html
---
doc/Makefile.am| 1 +
doc/switches.dox | 13 ++
src/libinput-private.h | 5 +++
src/libinput.c | 103 +++
src/libinput.h
---
udev/90-libinput-model-quirks.hwdb | 6 ++
1 file changed, 6 insertions(+)
diff --git a/udev/90-libinput-model-quirks.hwdb
b/udev/90-libinput-model-quirks.hwdb
index eb74f61..f038144 100644
--- a/udev/90-libinput-model-quirks.hwdb
+++ b/udev/90-libinput-model-quirks.hwdb
@@ -15,6 +15,12
patch to mark switches as input devices (needs to go to systemd)
2: switch interface[1]
3: evdev dispatch interface for laptop lid switches
4: mechanism for pairing touchpad with lid, and disabling the touchpad
5: test cases
Best regards,
James Ye
[1]:
https://lists.freedesktop.org/archives
18 matches
Mail list logo