linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* reseting an input device due to sleep/resume cycle
@ 2007-06-16 21:03 Henrique de Moraes Holschuh
       [not found] ` <20070616210321.GA17379-ZGHd14iZgfaRjzvQDGKj+xxZW9W5cXbT@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Henrique de Moraes Holschuh @ 2007-06-16 21:03 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: linux-input, ibm-acpi-devel

Dmitry, input gurus,

When a ThinkPad does an sleep cycle, the firmware explicitly kills all
pending hotkey state.  That reminds me that I also need to do the same in
thinkpad-acpi.

How does one tell the input layer that it should clear its idea of the
current state of all events in a input device?  I couldn't find any
input_reset() function...

Or is such a reset not needed?  The recent issue with ACPI and EV_SW SW_LID
seems to indicate that in some cases these resets are indeed needed.  For
EV_SW, it appears that I'd have to interate over all my switches and reset
them.  But what about EV_KEY and the others?

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-06-18 13:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-16 21:03 reseting an input device due to sleep/resume cycle Henrique de Moraes Holschuh
     [not found] ` <20070616210321.GA17379-ZGHd14iZgfaRjzvQDGKj+xxZW9W5cXbT@public.gmane.org>
2007-06-18 13:48   ` Dmitry Torokhov

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).