* The way for disabling input device?
@ 2011-03-15 9:06 Joonyoung Shim
2011-03-15 15:17 ` Mark Brown
2011-03-16 4:55 ` Dmitry Torokhov
0 siblings, 2 replies; 7+ messages in thread
From: Joonyoung Shim @ 2011-03-15 9:06 UTC (permalink / raw)
To: linux-input; +Cc: Dmitry Torokhov
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: The way for disabling input device?
2011-03-15 9:06 The way for disabling input device? Joonyoung Shim
@ 2011-03-15 15:17 ` Mark Brown
2011-03-16 4:53 ` Dmitry Torokhov
2011-03-16 4:55 ` Dmitry Torokhov
1 sibling, 1 reply; 7+ messages in thread
From: Mark Brown @ 2011-03-15 15:17 UTC (permalink / raw)
To: Joonyoung Shim; +Cc: linux-input, Dmitry Torokhov
On Tue, Mar 15, 2011 at 06:06:26PM +0900, Joonyoung Shim wrote:
> 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.
Isn't the expectation here that userspace closes the input device when
it blanks the screen?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: The way for disabling input device?
2011-03-15 15:17 ` Mark Brown
@ 2011-03-16 4:53 ` Dmitry Torokhov
2011-03-16 9:48 ` Mark Brown
0 siblings, 1 reply; 7+ messages in thread
From: Dmitry Torokhov @ 2011-03-16 4:53 UTC (permalink / raw)
To: Mark Brown; +Cc: Joonyoung Shim, linux-input
On Tue, Mar 15, 2011 at 03:17:29PM +0000, Mark Brown wrote:
> On Tue, Mar 15, 2011 at 06:06:26PM +0900, Joonyoung Shim wrote:
>
> > 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.
>
> Isn't the expectation here that userspace closes the input device when
> it blanks the screen?
Closing the device might be a bit unwieldy, I was thinking more along
the lines of having a way of "accelerating" runtime PM timeout and using
that framework to put the device to sleep.
--
Dmitry
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: The way for disabling input device?
2011-03-16 4:53 ` Dmitry Torokhov
@ 2011-03-16 9:48 ` Mark Brown
0 siblings, 0 replies; 7+ messages in thread
From: Mark Brown @ 2011-03-16 9:48 UTC (permalink / raw)
To: Dmitry Torokhov; +Cc: Joonyoung Shim, linux-input
On Tue, Mar 15, 2011 at 09:53:46PM -0700, Dmitry Torokhov wrote:
> Closing the device might be a bit unwieldy, I was thinking more along
> the lines of having a way of "accelerating" runtime PM timeout and using
> that framework to put the device to sleep.
I guess if I get the time to get the rate control stuff I've mentioned
before done that'd also be another way of doing this.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: The way for disabling input device?
2011-03-15 9:06 The way for disabling input device? Joonyoung Shim
2011-03-15 15:17 ` Mark Brown
@ 2011-03-16 4:55 ` Dmitry Torokhov
2011-03-16 7:12 ` Joonyoung Shim
1 sibling, 1 reply; 7+ messages in thread
From: Dmitry Torokhov @ 2011-03-16 4:55 UTC (permalink / raw)
To: Joonyoung Shim; +Cc: linux-input
On Tue, Mar 15, 2011 at 06:06:26PM +0900, Joonyoung Shim wrote:
> 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.
I do not believe that we should tie the 2 together. I can come up with
scenarios where you woudl want to put the keeboard/touchcsreen to sleep
before turning off the display and vice versa.
Thanks.
--
Dmitry
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: The way for disabling input device?
2011-03-16 4:55 ` Dmitry Torokhov
@ 2011-03-16 7:12 ` Joonyoung Shim
2011-03-16 7:22 ` Dmitry Torokhov
0 siblings, 1 reply; 7+ messages in thread
From: Joonyoung Shim @ 2011-03-16 7:12 UTC (permalink / raw)
To: Dmitry Torokhov; +Cc: linux-input
On 2011-03-16 오후 1:55, Dmitry Torokhov wrote:
> On Tue, Mar 15, 2011 at 06:06:26PM +0900, Joonyoung Shim wrote:
>> 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.
>
> I do not believe that we should tie the 2 together. I can come up with
> scenarios where you woudl want to put the keeboard/touchcsreen to sleep
> before turning off the display and vice versa.
Right, as you say, various scenarios can come up, so i think generic way
for disabling input device needs more and more.
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: The way for disabling input device?
2011-03-16 7:12 ` Joonyoung Shim
@ 2011-03-16 7:22 ` Dmitry Torokhov
0 siblings, 0 replies; 7+ messages in thread
From: Dmitry Torokhov @ 2011-03-16 7:22 UTC (permalink / raw)
To: Joonyoung Shim; +Cc: linux-input
On Wed, Mar 16, 2011 at 04:12:35PM +0900, Joonyoung Shim wrote:
> On 2011-03-16 오후 1:55, Dmitry Torokhov wrote:
> >On Tue, Mar 15, 2011 at 06:06:26PM +0900, Joonyoung Shim wrote:
> >>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.
> >
> >I do not believe that we should tie the 2 together. I can come up with
> >scenarios where you woudl want to put the keeboard/touchcsreen to sleep
> >before turning off the display and vice versa.
>
> Right, as you say, various scenarios can come up, so i think generic
> way for disabling input device needs more and more.
Not only input, other devices need this facility as well.
--
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-03-16 9:47 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-15 9:06 The way for disabling input device? Joonyoung Shim
2011-03-15 15:17 ` Mark Brown
2011-03-16 4:53 ` Dmitry Torokhov
2011-03-16 9:48 ` Mark Brown
2011-03-16 4:55 ` Dmitry Torokhov
2011-03-16 7:12 ` Joonyoung Shim
2011-03-16 7:22 ` Dmitry Torokhov
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).