Bug 2451 - Problems switching keyboard layouts when more than 2 layouts exist
Summary: Problems switching keyboard layouts when more than 2 layouts exist
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Input/Keyboard (show other bugs)
Version: 6.8.1
Hardware: x86 (IA32) Linux (All)
: high major
Assignee: Xorg Project Team
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-02 05:13 UTC by Dmitry Kagan
Modified: 2006-05-08 09:50 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Dmitry Kagan 2005-02-02 05:13:59 UTC
It is impossible to switch keyboard layouts using left alt+shift or ctrl+shift
when 3 keyboard layouts defined in xorg.conf. Here is my xorg.conf relevant section:

Identifier "Keyboard1"
Driver     "kbd"
Option     "XkbRules" "xorg"
Option     "XkbModel" "pc105"
Option     "XkbLayout" "us,il,ru"
Option     "XkbOptions" "grp:alt_shift_toggle"

I can only switch between layouts using right alt+shift, but not with the left
alt+shift. Same thing happens when configuring ctrl+shift - only the combination
 on the right side of the keyboard works. 
This problem didn't exist in XFree 4.3.
Comment 1 Roumen Petrov 2005-11-15 08:06:19 UTC
In Bulgaria often we use two bulgarian keyboard layouts.
The problem is similar/same to this on Dmitry.
Sample layout setxkbmap:
setxkbmap -model pc105 \
 -layout "us,bg(phonetic),bg(bds)" \
 -option \
 -option "grp:alt_shift_toggle"

Еquivalent x.org settings don't help.

Switch to next group with ALT_R+SHIFT_R work fine always.
But switch to previous group ( ALT_L+SHIFT_L ) work only when current layout is
second or third.
When layout is first, i.e. us, we cannot switch to third as expected.

Problem is reported, but in bulgarian :) , here :
http://www.linux-bg.org/cgi-bin/ib3/ikonboard.cgi?s=4378fc4934daffff;act=ST;f=6;t=11277
Comment 2 Michal Eibl 2005-12-17 21:21:12 UTC
I have problem with switching between more than four keyboards. 

In xorg.conf I have:
Option "XkbLayout"	"us, cz_qwerty, ru, de, il, ar"

Even if I change the order or remove some of the defines, 
only between the first four ones I can switch.

System: ArchLinux - currenct (~0.8)
Version of xorg: 6.8.2-6
Version of xfce: 4.2.3.2
Version of windowmaker 0.92.0-2 (tried too)
Comment 3 Anton Zinoviev 2006-01-05 10:21:31 UTC
This bug is caused because the LockGroup(group=N) action does not work properly
when the keyboard layout has 3 groups and N is negative.

LockGroup(group=-1) cycles the groups in this way:

group3 -> group2 -> group1 -> group1

LockGroup(group=-2) cycles the groups in this way:

group2 -> group1 -> group3 -> group1

LockGroup(group=-3) cycles the groups in this way:

group1 -> group2 -> group3 -> group1
Comment 4 Michal Eibl 2006-05-09 02:30:29 UTC
(In reply to comment #3)
> when the keyboard layout has 3 groups and N is negative.

And is anyway possible to set groups more then 3 or set N as positive?

(I updated to Xorg 7.0.0 and problem remains)
Comment 5 Daniel Stone 2006-05-09 02:50:59 UTC
i already fixed this in xorg-server a while ago.


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.