Re: Disable input device

2014-12-06 Thread Pavel Machek
On Sat 2014-11-29 18:24:03, Pali Rohár wrote: Hello, there is request to introduce some option (via sysfs) to disable one input device. Originally it was for tsc2005 touchscreen found on Nokia N900 cellphone. Use case is to completely disable touchscreen when phone is in pocket or when

Re: Disable input device

2014-12-06 Thread Chuck Ebbert
On Sat, 29 Nov 2014 18:24:03 +0100 Pali Rohár pali.ro...@gmail.com wrote: What do you think about adding new sysfs file disable (accept values 1 or 0) for every input device? With 1 it cause that kernel will drop all events from specific input device and if driver provide some function is

Disable input device

2014-11-29 Thread Pali Rohár
Hello, there is request to introduce some option (via sysfs) to disable one input device. Originally it was for tsc2005 touchscreen found on Nokia N900 cellphone. Use case is to completely disable touchscreen when phone is in pocket or when screen is locked via slide switch (to prevent random