On Thu, Jan 12, 2017 at 2:21 PM, Peter Hutterer
wrote:
doh. not sure how I missed this in the first one, but this needs an
extra
check for the event code too, otherwise we'll be sending switch lid
events
for any switch on the device.
We filter for SW_LID but if a device happens to have switch
On Tue, Jan 10, 2017 at 12:24:23PM +1100, James Ye wrote:
> 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
> ++
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 c