lkml.org 
[lkml]   [2014]   [Nov]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: tsc2005 touchscreen: implement disable attribute
Date
On Sunday 09 November 2014 13:40:25 Sebastian Reichel wrote:
> Hi,
>
> On Sun, Nov 09, 2014 at 12:56:37PM +0100, Pavel Machek wrote:
> > Implement disable attribute for tsc2005 touchscreen. It is
> > useful to avoid wakeups when phone is in the pocket.
>
> I don't think this should be some driver specific sysfs node.
> Instead a generic method from the input subsystem should be
> used.
>
> -- Sebastian

Yes. I would like to see generic method to turn off input device
(or just "mute" it if device does not support turn off). Similar
problem is also on laptops or other portable devices. E.g when I
close LID of my laptop I want to turn off internal input devices
(keyboard, touchpad, trackstick) without need to unload evdev
Xserver drivers (or killing Xserver). Another use case is to turn
off keyboard (also from kernel tty on Ctrl+Alt+Fx) which cannot
be unplugged (internal laptop keyboard).

CCed Dmitry, what do you think about it?

--
Pali Rohár
pali.rohar@gmail.com
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2014-11-09 14:01    [W:0.708 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site