[PATCH weston 1/3] evdev/libinput: sync the leds of keyboards with the xkb state

Daniel Stone daniel at fooishbar.org
Thu Aug 21 00:34:01 PDT 2014


Hi,

On Wednesday, August 20, 2014, Giulio Camuffo <giuliocamuffo at gmail.com>
wrote:

> When a new keyboard is found (including during startup) sync its leds
> with the internal state of the xkb map.
> It appears that by setting them immediately when getting the new device
> we're racing with the kernel or something, which wants to turn all the
> leds off, so we use a timer.


Ugh. If you've your own kernel to hand, I'd hack it to WARN_ON(1) on LED
updates, so you can track where the rogue update is coming from. My guess
is that switching VT breaks it, so it might work if you instead trigger an
update of all LED state on every VT enter?

Cheers,
Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20140821/d1f37041/attachment.html>


More information about the wayland-devel mailing list