From: Oskar Andero <oskar.andero@sonymobile.com>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-input@vger.kernel.org" <linux-input@vger.kernel.org>,
"Makarov, Aleksej" <Aleksej.Makarov@sonymobile.com>
Subject: Re: [PATCH] input: don't call input_dev_release_keys() in resume
Date: Fri, 5 Apr 2013 10:57:00 +0200 [thread overview]
Message-ID: <20130405085700.GH2481@caracas.corpusers.net> (raw)
In-Reply-To: <20130404163313.GA12302@core.coreip.homeip.net>
On 18:33 Thu 04 Apr , Dmitry Torokhov wrote:
> Hi Oskar,
>
> On Thu, Mar 07, 2013 at 03:01:22PM +0100, oskar.andero@sonymobile.com wrote:
> > From: Aleksej Makarov <aleksej.makarov@sonymobile.com>
> >
> > When waking up the platform by pressing a specific key, sending a
> > release on that key makes it impossible to react on the event in
> > user-space.
> >
>
> No, we can not simply not release keys after resume from suspend, as
> this leads to keys being stuck. Consider you are holding an 'I' key on
> your external USB keyboard and close your laptop's lid. Then you release
> the key and leave. Later you come back, open the lid waking the laptop
> and observe endless stream of 'I' in your open terminal.
You're absolutely right. But I guess you also see the case that the
patch is trying to fix, right?
To explain our use-case: We have a physical camera button on some devices.
When the user long-presses the button, the system will wake up and jump
directly in to the camera application.
> Maybe we should release the keys during suspend time? I am not sure how
> Android infrastructure will react to this though...
That sounds like a good idea! Let me do some testing on that.
Thanks!
-Oskar
next prev parent reply other threads:[~2013-04-05 8:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-07 14:01 oskar.andero
2013-04-04 14:57 ` Oskar Andero
2013-04-04 16:33 ` Dmitry Torokhov
2013-04-05 8:57 ` Oskar Andero [this message]
2013-07-05 7:46 ` Oskar Andero
2013-07-12 7:44 ` Oskar Andero
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=20130405085700.GH2481@caracas.corpusers.net \
--to=oskar.andero@sonymobile.com \
--cc=Aleksej.Makarov@sonymobile.com \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®