From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Trilok Soni <soni.trilok@gmail.com>
Cc: linux-input@vger.kernel.org
Subject: Re: Handling stuck keys
Date: Mon, 7 Sep 2009 23:29:21 -0700 [thread overview]
Message-ID: <20090908070244.D5E12526EC9@mailhub.coreip.homeip.net> (raw)
In-Reply-To: <5d5443650909070402s33ec5385h49df18821507ea5d@mail.gmail.com>
Hi Trilok,
On Mon, Sep 07, 2009 at 04:32:06PM +0530, Trilok Soni wrote:
> Hi,
>
> What is the preferred way to handle stuck key notification through driver?
>
> I feel the following scenario would work assuming that controller is
> able to detect the stuck key and gives us an interrupt.
>
> - Once the interrupt is raised, we go and find out which key is stuck
> through regular key scanning logic.
> - We find the key which is the vicitim and forcefully send "release"
> key event through input_report_key.
>
Seems reasonable although what prevents the driver to report the stucj
key as pressed again on the next scan? You need to make sure that driver
ignores stuck key... All in all it sounds like broken hardware (not
broken by design, just broken). Do we really need to include workarounds
for such cases?
> I saw other drivers in the input subsystem where people are handling
> keyboard quirks with forceful release, so I hope the same should with
> stuck keys too.
>
You are probably referrign to atkbd - there the keys arent reallyt
stuck, the firmware designers apparently decided that sending release
events is too much bother for them.
--
Dmitry
prev parent reply other threads:[~2009-09-08 6:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-07 11:02 Handling stuck keys Trilok Soni
2009-09-08 6:29 ` 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=20090908070244.D5E12526EC9@mailhub.coreip.homeip.net \
--to=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=soni.trilok@gmail.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).