Hello. As xorg-evdev driver works with the keyboard switched into the RAW mode (intentionally), the keyboard indicators need to be driven "externally" by the desktop environments, otherwise the LEDs get totaly screwed up in several cases (unpluging/repluging the keyboard when the NumLock/CapsLock is previously on, waking after suspend when NumLock/CapsLock previously on, unwanted USB controller resets when NumLock/CapsLock is on, working with multiple keyboards). It often causes the LEDs to be inverted. Previously this LED control was done in Gnome 2 by the Gnome2 keyboard g-s-d plugin, but other desktop environments never worked properly with the evdev driver. Gnome 3 doesn't have the g-s-d plugin anymore and therefore it doesn't work correctly as well. I reported this against xorg-evdev, but Peter Hutterer changed the component to gnome-settings-daemon in order to let the gnome guys reimplement the feature in the gnome-settings-daemon. As XFCE does have it's own settings daemon "xfsettingsd", I thought it could do the same job in case of XFCE. Please, let me know if anything's unclear. Thank you. Regards, Jaromir.
You can possibly find more info in the Red Hat Bugzilla ... https://bugzilla.redhat.com/show_bug.cgi?id=1029805 https://bugzilla.redhat.com/show_bug.cgi?id=1056571
Workaround for Num Lock indicators: numlockx toggle ; numlockx toggle ... as the internal Num Lock state in X is common for all keyboards plugged in and is unaffected by the issue, the value can be used for the LED synchronisation. The workaround above inverts the internal Num Lock state twice, so that it gets back to the same value, but as it additionally does a resync of the NumLock LED, it makes the LED to work correctly again.
Created attachment 5357 0001-keyboard-Apply-num-lock-to-newly-connected-keyboards.patch This gnome-settings-daemon patch written by Bastien Nocera fixes the Num Lock indicator state for single keyboard. But it probably omits the Caps Lock indicator and multiple keyboards scenario. I need to discuss that with Bastien. Anyway, It would be nice if you could implement at least this one liner fix as it resolves 90% of LED indicator issues people experience during their work.
Peter Hutterer decided to fix this directly in the xorg sources. The following upstream commits should do the work: http://cgit.freedesktop.org/xorg/xserver/commit/?id=dda2468e579762dbd1fed2c75b5587d98f841e9c http://cgit.freedesktop.org/xorg/xserver/commit/?id=45fb3a934dc0db51584aba37c2f9d73deff9191d http://cgit.freedesktop.org/xorg/xserver/commit/?id=45fb3a934dc0db51584aba37c2f9d73deff9191d I believe we can close this report.