GNOME Bugzilla – Bug 317732
Gdm warns incorrectly about caps lock
Last modified: 2006-03-13 20:41:42 UTC
This bug has been opened here: https://bugzilla.ubuntu.com/show_bug.cgi?id=15792 "Gdm warns about caps lock enabled if you use the caps lock indicator (led) to display the current group when the alternative keymap is activated (i.e. the led is enabled). ... > Thanks for your bug. What caps lock indicator do you use? what do you call "group"? how do you change your keymap? ... This is part of my xorg.conf: Section "InputDevice" Identifier "Generic Keyboard" Driver "keyboard" Option "CoreKeyboard" Option "XkbRules" "xorg" Option "XkbModel" "pc105" ---> Option "XkbLayout" "us,us(dvorak):2" ---> Option "XkbOptions" "grp:rwin_toggle,grp_led:caps" EndSection The keyboard layout (i.e. group, between basic us and dvorak us) is toggled with the right win key, the caps led used to show the current group status. To reproduce, install an alternative layout (with XkbLayout) and use the XkbOptions line above. Then, when in gdm, press the right win key to switch groups. When the led is on, i.e. the second group is selected, gdm warns about activated caps lock."
I would accept a patch to fix this problem.
Created attachment 53764 [details] [review] Fix for the problem This patch changes XkbGetIndicatorState calls to XkbGetState with locked modifiers.
Accepted, patch in CVS head and 2.8 branch.
Quick note to say that the patch is credited to the wrong person in the ChangeLog: 2005-10-28 Brian Cameron <brian.cameron@sun.com. * gui/greeter/greeter_item_capslock.c: Patch to make GDM warn correctly about caps lock if an alternative keymap is enabled. Now use kbGetState instead of XkbGetIndicatorState. Fixes bug #317732. Patch provided by Sebastien Bacher <seb128@debian.org>.
Thanks, Bastien, corrected in CVS head.