! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
USB Keyboard indicators get inverted under some circumstances (kbd unplugged ...
Status:
RESOLVED: WONTFIX
Product:
Xfce4-settings
Component:
Xfsettingsd

Comments

Description Jaromír Cápík 2014-02-13 13:39:53 CET
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.
Comment 1 Jaromír Cápík 2014-02-13 13:43:15 CET
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
Comment 2 Jaromír Cápík 2014-02-13 13:53:01 CET
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.
Comment 3 Jaromír Cápík 2014-02-13 14:20:20 CET
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.
Comment 4 Jaromír Cápík 2015-01-12 20:22:16 CET
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.

Bug #10689

Reported by:
Jaromír Cápík
Reported on: 2014-02-13
Last modified on: 2015-01-12

People

Assignee:
Nick Schermer
CC List:
3 users

Version

Version:
unspecified

Attachments

Additional information