Bug 25347

Summary: keyboard layout switching not working properly
Product: xorg Reporter: celejar
Component: Server/Input/XKBAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED MOVED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: 7.4 (2008.09)   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
output of 'xkbcomp -xkb $DISPLAY keymap.xkb'
none
X server log none

Description celejar 2009-11-29 13:52:02 UTC
Created attachment 31559 [details]
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.]
Comment 1 celejar 2009-11-29 13:53:02 UTC
Created attachment 31560 [details]
X server log
Comment 2 GitLab Migration User 2018-12-13 18:38:13 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/xserver/issues/291.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.