From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Joonyoung Shim <jy0922.shim@samsung.com>
Cc: linux-input@vger.kernel.org
Subject: Re: The way for disabling input device?
Date: Wed, 16 Mar 2011 00:22:54 -0700 [thread overview]
Message-ID: <20110316072250.GA25912@core.coreip.homeip.net> (raw)
In-Reply-To: <4D8062E3.30305@samsung.com>
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
prev parent reply other threads:[~2011-03-16 7:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110316072250.GA25912@core.coreip.homeip.net \
--to=dmitry.torokhov@gmail.com \
--cc=jy0922.shim@samsung.com \
--cc=linux-input@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).