Thread (7 messages) 7 messages, 3 authors, 2011-03-16

The way for disabling input device?

From: Joonyoung Shim <hidden>
Date: 2011-03-15 09:18:21

Hi, all.

The many smartphones and embedded devices have LCD panel with
touchscreen. The LCD panel is turned off for power saving and
touchscreen also is disabled if there isn't user input for a while or if
user presses power key briefly. This state is such idle, not suspend.

The framebuffer device driver of kernel supplies sysfs interface to
control blanking level of framebuffer and  we can turn off LCD panel
using this sysfs at the above case.

Currently i know there isn't the generic way for disabling input device
via user interface, so i am looking for the way for disabling
input device on kernel side for above case.

The above case has a condition which the touchscreen is disabled if LCD
panel is turned off. The framebuffer framework of kernel has notifier
block to callback on events like hardware display blank change occured,
so the callback function disabling and enabling input device can be
called using notifier block of framebuffer. The callback function is
implemented in each touchscreen driver or can be implemented though
input core if this can be generic way for input device.

Actually i wonder whether this approach makes sense. I know this is a
specific case but certainly necessary function in the smartphone and
embedded devices.

Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help