keyboard layout switching not working properly
Submitted by cel..@..il.com
Assigned to Xorg Project Team
Description
Created attachment 31559 output of 'xkbcomp -xkb $DISPLAY keymap.xkb'
[Originally reported here:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=533863
Reporting here as per maintainer request.]
I use two keymaps: us and il, I use the dvorak variant of us, and I switch between us and il using some key combination, generally alt +shift. I used to configure this in Xorg.conf thus:
Option "XkbLayout" "us,il"
Option "XkbVariant" "dvorak,"
Option "XkbOptions" "grp:alt_shift_toggle,ctrl:swapcaps"
Recently, with the Xorg switch to evdev and hal for input device configuration, this stopped working, and I eventually discovered that the keyboard is no longer configured in Xorg.conf.
I therefore configured the keyboard in /etc/default/console-setup thus:
XKBMODEL="acer_laptop" XKBLAYOUT="us,il" XKBVARIANT="dvorak," XKBOPTIONS="lv3:ralt_switch" XKBOPTIONS="grp:alt_shift_toggle,ctrl:swapcaps"
[A combination of the Debian defaults and my Xorg options.] This works fine in the console, but for some reason behaves strangely in X. I have to hit alt+shift twice to switch to il, and once to switch back. I tried changing the toggle to lwin, with the same results. [I notice using xev that when alt+shift is configured, ISO_Prev_Group keysyms are generated, while when lwin is configured, ISO_Next_Group keysyms are generated. I have no idea why, or if this is significant.]
[I have been warned that the dual XKBOPTIONS means that the first one will be ignored; I'm going to correct that.]
Attachment 31559, "output of 'xkbcomp -xkb $DISPLAY keymap.xkb'":
keymap.xkb
Version: 7.4 (2008.09)