Bug 373197 - Switching keyboard layouts doesn't work
Summary: Switching keyboard layouts doesn't work
Status: RESOLVED FIXED
: 377546 405237 (view as bug list)
Alias: None
Product: openSUSE 11.0
Classification: openSUSE
Component: X.Org (show other bugs)
Version: Alpha 3
Hardware: x86-64 openSUSE 11.0
: P5 - None : Major (vote)
Target Milestone: ---
Assignee: Stefan Dirsch
QA Contact: E-mail List
URL:
Whiteboard: gnomeup-gnome-panel, gnome-function-d...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-23 22:19 UTC by Andrey Gankov
Modified: 2008-07-02 07:13 UTC (History)
4 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Remove non-working options (1.42 KB, patch)
2008-05-13 11:18 UTC, Vincent Untz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Gankov 2008-03-23 22:19:29 UTC
Gnome keyboard layout applet don't display current language.
I have configure Russian and English language. When i switch on Russian language, applet also display "USA".
Comment 1 Federico Mena Quintero 2008-04-03 12:24:50 UTC
Hitting the hotkey to switch keyboard layouts doesn't work by default.  http://blogs.gnome.org/sudaltsov/2008/03/23/xkb-suxx-c/ mentions this bug, but not a bug report...
Comment 3 Federico Mena Quintero 2008-04-03 22:07:33 UTC
CCing Stefan.  Stefan, do you know what's up with the definitions for keyboard layouts?  My xkb-fu is not good enough to know what to do here :)
Comment 4 Stefan Dirsch 2008-04-04 09:22:22 UTC
I have no idea either of this, but if Sergey says that it is not related to xkeyboard-config and it's somewhat deeper in X.Org, I believe him. If it will ever get adressed there is another topic. :-( 

Anyway, I'm wondering if this a new issue or why it pops up now?
Comment 5 Federico Mena Quintero 2008-04-08 01:17:22 UTC
(In reply to comment #4 from Stefan Dirsch)
> Anyway, I'm wondering if this a new issue or why it pops up now?

It started happening with openSUSE 11.0, I assume due to our updated xorg.  On 10.3 one could hit the default "left alt plus left alt" to switch keyboard layouts.  On 11.0 that doesn't work.
Comment 6 Stefan Dirsch 2008-04-08 02:49:58 UTC
Don't you mean "LAlt + RAlt"? "LAlt + LAlt" sounds weird to me. 

I can't understand that this would be a new issue. It has been reported by Sergey already in Oct 2005. So maybe this is a new key combination default for switching keyboard layouts?
Comment 7 Federico Mena Quintero 2008-04-08 16:18:30 UTC
(In reply to comment #6 from Stefan Dirsch)
> Don't you mean "LAlt + RAlt"? "LAlt + LAlt" sounds weird to me. 

Errr, yes, I meant LAlt + RAlt :)

> I can't understand that this would be a new issue. It has been reported by
> Sergey already in Oct 2005. So maybe this is a new key combination default for
> switching keyboard layouts?

Nope, the default is the same (LAlt + RAlt), and it doesn't work anymore :(

I'll poke Sergey upstream to see if he has figured this one out.
Comment 8 Stefan Dirsch 2008-04-08 18:07:20 UTC
> Nope, the default is the same (LAlt + RAlt), and it doesn't work anymore :(
Ok. I got a report for a similar issue (Bug #368673). But it only occurs, when
you use a static multi keyboard layout via xorg.conf. It doesn't happen when
you use setxkbmap afterwards. Somewhat related to the use of -xkm.

> I'll poke Sergey upstream to see if he has figured this one out.
Good idea. He definitely knows more about this stuff than me. :-)
Comment 9 Vincent Untz 2008-04-16 14:31:49 UTC
So, mmh, this bug is assigned to me, but it really looks like something deeper in our stack (deeper as in "lower than GNOME" ;-)), like maybe in X. Anybody wanting to take it?
Comment 10 Federico Mena Quintero 2008-04-19 03:27:14 UTC
*** Bug 377546 has been marked as a duplicate of this bug. ***
Comment 11 Vincent Untz 2008-05-06 10:46:38 UTC
So, that's a bug in Xorg, really. See the comments in http://bugs.freedesktop.org/show_bug.cgi?id=4927

We can't do anything for now it seems, though. I propose to change the default keybinding to switch the layout to use be shift_l+shift_r. At least, it will work... (note that ctrl_l+ctrl_r seems to not work, like alt_l+alt_r).
Comment 12 Vincent Untz 2008-05-13 09:28:05 UTC
So, I've changed the default to Shift_L+Shift_R. What we probably still want to do is to patch xkeyboard-config to comment out grp:alts_toggle and grp:ctrls_toggle from /usr/share/X11/xkb/rules/xorg.xml (and probably in xorg.lst too) for now. This way, those non-working options will be hidden.

Stefan, can you do it? Or I can do it if you want me to do it.
Comment 13 Stefan Dirsch 2008-05-13 10:21:11 UTC
Could you attach a patch? Then I will take care of it. Thanks!
Comment 14 Vincent Untz 2008-05-13 11:18:42 UTC
Created attachment 214714 [details]
Remove non-working options

Here we go. I've removed the lines from base.lst (don't know if it's possible to only comment them out?), and commented them out from base.xml. They're still in sun.xml but I don't think it matters for us.

As far as I can tell, this is enough. I don't think it has side-effects, but maybe some of our configuration tools might depend on this -- I hadn't thought about it earlier...
Comment 15 Stefan Dirsch 2008-05-13 13:13:20 UTC
Thanks. I've applied the patch for Factory/X11:XOrg now and verified that it works with SaX2 and kcontrol, i.e. Ctrl-Ctrl and Alt-Alt cannot be chosen any longer as toggle.
Comment 16 Stefan Dirsch 2008-07-02 07:13:56 UTC
*** Bug 405237 has been marked as a duplicate of this bug. ***