Re: [PATCH] input: Add soft kill switch for input devices

2015-01-06 Thread Tristan Lelong
On Tue, Jan 06, 2015 at 10:17:32PM +0100, Bruno Prémont wrote: > > One big issue I see here is that you start dropping all events at a random > point in time. > You may end up within a gesture or just while a button is down and remain > so until that same button gets pressed again on unmute. > >

Re: [PATCH] input: Add soft kill switch for input devices

2015-01-06 Thread Bruno Prémont
On Sat, 03 January 2015 Tristan Lelong wrote: > This adds a sysfs attribute named 'mute' to all input devices. > It allows to disable them by software in a generic way. > > It can be set to 0 or 1: > echo 1 > /sys/class/input/inputX/mute: will set all the input_events() call > to return

Re: [PATCH] input: Add soft kill switch for input devices

2015-01-06 Thread Bruno Prémont
On Sat, 03 January 2015 Tristan Lelong tris...@lelong.xyz wrote: This adds a sysfs attribute named 'mute' to all input devices. It allows to disable them by software in a generic way. It can be set to 0 or 1: echo 1 /sys/class/input/inputX/mute: will set all the input_events() call to

Re: [PATCH] input: Add soft kill switch for input devices

2015-01-06 Thread Tristan Lelong
On Tue, Jan 06, 2015 at 10:17:32PM +0100, Bruno Prémont wrote: One big issue I see here is that you start dropping all events at a random point in time. You may end up within a gesture or just while a button is down and remain so until that same button gets pressed again on unmute. On

[PATCH] input: Add soft kill switch for input devices

2015-01-03 Thread Tristan Lelong
This adds a sysfs attribute named 'mute' to all input devices. It allows to disable them by software in a generic way. It can be set to 0 or 1: echo 1 > /sys/class/input/inputX/mute: will set all the input_events() call to return immediately. echo 0 > /sys/class/input/inputX/mute: will reset to

[PATCH] input: Add soft kill switch for input devices

2015-01-03 Thread Tristan Lelong
This adds a sysfs attribute named 'mute' to all input devices. It allows to disable them by software in a generic way. It can be set to 0 or 1: echo 1 /sys/class/input/inputX/mute: will set all the input_events() call to return immediately. echo 0 /sys/class/input/inputX/mute: will reset to