Re: Keyboard driver not refreshing settings when unplugged.

From: Dmitry Torokhov
Date: Thu Nov 26 2009 - 20:23:03 EST


On Thu, Nov 12, 2009 at 08:04:47PM -0600, Robert Hancock wrote:
> On 11/11/2009 11:50 PM, Vincent Perricone wrote:
>> I noticed a bug which may possibly be part of the Linux kernel. If
>> one were to enable a setting on the keyboard(caps lock) and then
>> unplug that keyboard. Upon re-plugging it in or another, the system
>> will still keep caps lock enabled. When the user then goes and
>> enables caps lock on their own keyboard which assumes the setting is
>> disabled, the system then turns caps lock off, even though the user
>> wanted it on.
>>
>> 2.6.31-14-generic
>
> USB or PS/2 keyboard? I don't know that the kernel even can tell if a
> PS/2 keyboard has been unplugged or not..

Depends on the box. PS/2 devices normally send 0xaa 0x00 when plugged in
but that may get suppressed, especially on laptops.

--
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/