Re: Handling stuck keys

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux