linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Sundar R IYER <sundar.iyer@stericsson.com>,
	"samu.p.onkalo@nokia.com" <samu.p.onkalo@nokia.com>,
	Linus WALLEIJ <linus.walleij@stericsson.com>,
	Naveen Kumar GADDIPATI <naveen.gaddipati@stericsson.com>,
	"linux-input@vger.kernel.org" <linux-input@vger.kernel.org>,
	Linux-pm mailing list <linux-pm@lists.linux-foundation.org>,
	Jayeeta BANDYOPADHYAY <jayeeta.banerjee@stericsson.com>
Subject: Re: [linux-pm] [RFC] input: syfs switches for SKE keypad
Date: Tue, 12 Oct 2010 08:53:09 -0700	[thread overview]
Message-ID: <20101012155308.GA30513@core.coreip.homeip.net> (raw)
In-Reply-To: <Pine.LNX.4.44L0.1010121117460.1705-100000@iolanthe.rowland.org>

On Tue, Oct 12, 2010 at 11:34:18AM -0400, Alan Stern wrote:
> On Tue, 12 Oct 2010, Sundar R IYER wrote:
> 
> > Hi,
> > 
> > Sorry to be jumping in late. My few comments dispersed with
> > individual replies
> > 
> > >-----Original Message-----
> > >From: Dmitry Torokhov [mailto:dmitry.torokhov@gmail.com]
> > >Sent: Tuesday, October 12, 2010 3:39 AM
> > >
> > >
> > >I do not believe there is a generic answer - different devices,
> > >different options. For example I could see buttons split into 2 groups -
> > >"important" ones that bring the system from sleep or "stupor" and "not
> > >so important" that gets to be ignored. Or user woudl need to "flick"
> > >the screen. Or toss the phone into a corner cussing :)
> > >
> > 
> > Yes. At least on the U8500 (and couple of OMAPs as well), it is the 
> > always-on power button on AB8500/TWLs that is the necessary event 
> > to turn off the display/keypad. The entire display/keypad themselves
> > cannot wakeup the system. But on the older phones, we generally had
> > to have the menu + star combination to unlock the phone, which falls into
> > the main keypad.
> 
> We're not talking about waking up the system.  I'm concerned more about
> how the keypad is supposed to work in the scenario Dmitry brought up.  
> But evidently things are too variable to say much for certain.
> 
> I get the impression that in many cases the entire keypad will have to 
> remain functional, and it will be up to userspace to discard keys that 
> aren't wanted at a particular time.

Again, depends on the hardware. If it is basically a single interrupt
line - then yes, you need to wake up the whoke device (although I have
an idea at the very back of my queue about alowing consumers to
subscribe to certain events so that userspace does not get woken up for
events it does not care about).

If there are several interrupts available you can partition the device
into several components.

> 
> > >The point is that there seems to be a need for kicking devices into low
> > >power mode and I woudl like to have generic interface for that,
> > >preferrably reusing (as far as kernel drivers go) existing PM
> > >infrastructure.
> 
> "Kicking devices into low power mode" is ambiguous.  How about 
> "requesting that an idle device go into low-power mode" instead?  This 
> doesn't carry an implication that the user could force a non-idle 
> device to suspend or could force the driver to do something against its 
> will.

Yes, of course. I used "kick" to add some flavor to this conversation, the
API is of course should only provide ways to do "request".

> 
> Of course, if the device is idle then it's natural to ask why it isn't 
> already in low-power mode.  Maybe it's waiting for an autosuspend 
> timer to expire; anything else doesn't make much sense.

Right. I expect that standard screen/keyboard autosuspend shoudl be in
10s of seconds (30-60 i guess) but users might accelerate suspending by
pressing a button. Or software might do the same for userspace when
proximity sensor fires up.

> > Coming in late, I would just like to summarize some of the points; please
> > correct if I am wrong:
> > 
> > - user space intervention is required to communicate specific events
> >   to individual devices to put them into an appropriate power state.
> 
> Stop after "communicate specific events to individual devices" (or
> drivers).  I don't agree that userspace should always have the ability
> to put devices into specific power states.

I think we agree that it should read "request devices go into different
power state".

-- 
Dmitry

  reply	other threads:[~2010-10-12 15:53 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-05 16:54 [RFC] input: syfs switches for SKE keypad Sundar R IYER
2010-10-05 17:41 ` Dmitry Torokhov
2010-10-06  8:32   ` Trilok Soni
2010-10-06  8:56     ` Sundar R IYER
2010-10-06  9:48       ` Onkalo Samu
2010-10-06 11:41         ` Trilok Soni
2010-10-06 11:58           ` Sundar R IYER
2010-10-06 15:43           ` Dmitry Torokhov
2010-10-06 16:19             ` [linux-pm] " Alan Stern
2010-10-06 17:18               ` Dmitry Torokhov
2010-10-06 18:19                 ` Alan Stern
2010-10-06 18:26                   ` Dmitry Torokhov
2010-10-06 18:51                     ` Alan Stern
2010-10-06 19:08                     ` Rafael J. Wysocki
2010-10-06 20:08                       ` Alan Stern
2010-10-09 10:52                         ` Rafael J. Wysocki
2010-10-09 22:46                           ` Alan Stern
2010-10-09 23:02                             ` Rafael J. Wysocki
2010-10-10 20:34                               ` Alan Stern
2010-10-10 20:51                                 ` Dmitry Torokhov
2010-10-10 21:09                                   ` Alan Stern
2010-10-10 22:24                                     ` Rafael J. Wysocki
2010-10-11 15:56                                       ` Alan Stern
2010-10-11 22:33                                         ` Rafael J. Wysocki
2010-10-12  0:08                                           ` Alan Stern
2010-10-12 18:46                                             ` Rafael J. Wysocki
2010-10-11  3:16                                     ` Dmitry Torokhov
2010-10-11 16:06                                       ` Alan Stern
2010-10-11 16:15                                         ` Dmitry Torokhov
2010-10-11 16:53                                           ` Alan Stern
2010-10-11 17:07                                             ` Dmitry Torokhov
2010-10-11 21:54                                               ` Alan Stern
2010-10-11 22:08                                                 ` Dmitry Torokhov
2010-10-12  7:25                                                   ` Sundar R IYER
2010-10-12 15:34                                                     ` Alan Stern
2010-10-12 15:53                                                       ` Dmitry Torokhov [this message]
2010-10-12 17:45                                                         ` Alan Stern
2010-10-12 16:32                                                       ` Sundar R IYER
2010-10-12 17:49                                                       ` Mark Brown
2010-10-12 18:27                                                         ` Alan Stern
2010-10-12 18:30                                                           ` Mark Brown
2010-10-13  6:16                                                           ` Sundar R IYER
2010-10-13  9:57                                                             ` Mark Brown
2010-10-13 14:10                                                               ` Alan Stern
2010-10-13 17:25                                                                 ` Sundar
2010-10-13 17:37                                                                   ` Alan Stern
2010-10-13 17:42                                                                     ` Sundar
2010-10-13 18:00                                                                       ` Sundar
2010-10-13 20:26                                                                         ` Rafael J. Wysocki
2010-10-14 13:50                                                                           ` Alan Stern
2010-10-14 19:00                                                                             ` Rafael J. Wysocki
2010-10-15 16:04                                                                               ` Sundar
2010-10-13  7:11         ` Pavel Machek
2010-10-13 17:35           ` Ferenc Wagner
2010-10-13 19:20             ` [linux-pm] " Pavel Machek

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=20101012155308.GA30513@core.coreip.homeip.net \
    --to=dmitry.torokhov@gmail.com \
    --cc=jayeeta.banerjee@stericsson.com \
    --cc=linus.walleij@stericsson.com \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=naveen.gaddipati@stericsson.com \
    --cc=samu.p.onkalo@nokia.com \
    --cc=stern@rowland.harvard.edu \
    --cc=sundar.iyer@stericsson.com \
    /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).