Re: [RFC] input: syfs switches for SKE keypad

Alan Stern
2010-10-11T21:54:27Z

On Mon, 11 Oct 2010, Dmitry Torokhov wrote:

> > > > Can you give any examples where "sticky off" is really useful (other
> > > > than just for debugging)?
> > > >
> > >
> > > A mobile device might have a set of keys that, once device is put into
> > > lower power mode, should not bring the device out of that mode. This I
> > > would call a "sticky off" case.
> >
> > But here the "sticky off" refers to the entire mobile device, not to
> > any particular driver.
>
> Where did I say that?

Just above. The difficulty here is caused by the fact that you used
the word "device" instead of "system". You wrote "... should not bring
the device out of that mode", with the word "device" referring back to
"a mobile device" -- which is the entire system. That is, we have the
mobile system and we have the keypad device; calling the mobile system
a "device" leads to confusion.

> The device is still running, playing your favorite
> song collection for example. Still you probably do not want your car
> keys compose and e-mail for you while you are jogging, thus the main
> keypad would be forced off.

Then I can't answer this question without knowing more about how the
keypad works.

Does suspending the keypad truly put it in low-power mode?

What happens if a key is pressed while the keypad is suspended?

Do you want to prevent all the keys from working or just some
of them?

How would the user un-suspend the keypad if the system no
longer responds to keystrokes?

Alan Stern