Re: [PATCH 23/28] keyboard, input: Add hook to input to allow lowlevel event clear

From: Dmitry Torokhov
Date: Fri Feb 26 2010 - 03:03:42 EST


On Thu, Feb 25, 2010 at 03:21:28PM -0600, Jason Wessel wrote:
> When using a keyboard with kdb, on resuming the system there needs to
> be a hook to allow for the keyboard state to get reset.
>
> This is mainly because there is no way to force the end user to hold
> down the original keys that were pressed prior to entering kdb.
>

Instead of adding all the new hook can't you copy the bitmap of
currently pressed keys when you invoke kdb and theni, on exit, use
input_inject_event() to clear bitmasks in the devices?

--
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/