linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Disable input device
@ 2014-11-29 17:24 Pali Rohár
  2014-12-06 12:47 ` Pavel Machek
  2014-12-06 15:28 ` Chuck Ebbert
  0 siblings, 2 replies; 3+ messages in thread
From: Pali Rohár @ 2014-11-29 17:24 UTC (permalink / raw)
  To: Dmitry Torokhov, Sebastian Reichel, Pavel Machek, kernel list,
	linux-input, Henrik Rydberg

[-- Attachment #1: Type: Text/Plain, Size: 1089 bytes --]

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 clicks).

But it would be better to have disable option for all input 
devices. Sometimes input device is not use and only consume 
power. Another case is when input device (e.g. keyboard or 
touchpad) is integrated into machine (e.g. on laptops) and user 
does not want to use it (so make sure that kernel does not send 
events to userspace).

I would like to ask, how to solve it?

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 can be called (e.g. for power 
management or disabling device at hardware level).

Or do you prefer something other?

-- 
Pali Rohár
pali.rohar@gmail.com

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-12-06 15:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-29 17:24 Disable input device Pali Rohár
2014-12-06 12:47 ` Pavel Machek
2014-12-06 15:28 ` Chuck Ebbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).