Re: usb hid: reset NumLock

From: Pete Zaitcev
Date: Sat Mar 31 2007 - 18:45:34 EST


On Sat, 31 Mar 2007 21:35:19 +0200 (CEST), Jiri Kosina <jkosina@xxxxxxx> wrote:
> On Fri, 30 Mar 2007, Pete Zaitcev wrote:

> I think I see an issue here. Imagine that you boot a system initially with
> one keyboard connected (usb, ps/2, doesn't matter), and after some time
> you connect second USB keyboard (the NumLock is 'on' on the first keyboard
> when you connect the second one).
>
> Without your patch, the NumLock led will be OK on the second keyboard
> immediately. With your patch, the NumLock will be forced to 'off' and it
> will be out of sync with the first keyboard. The leds will get in sync
> later when any change occurs.

Oh, right, I missed it. The difficulty is how I rely on usages and fields
being already mapped by hidinput_configure_usage(). Thanks for letting me
know, I'll think about it.

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