Bug 158177 - keyboard layout settings do not work
Summary: keyboard layout settings do not work
Status: RESOLVED FIXED
: 160838 (view as bug list)
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: X.Org (show other bugs)
Version: Beta 8
Hardware: Other Other
: P5 - None : Major (vote)
Target Milestone: ---
Assignee: Stefan Dirsch
QA Contact: Stefan Dirsch
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-15 09:19 UTC by Stefan Horn
Modified: 2006-03-27 19:34 UTC (History)
1 user (show)

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


Attachments
screenshot (622.80 KB, image/png)
2006-03-15 09:20 UTC, Stefan Horn
Details
ralt.diff: addresses RAlt problems (Bug #158177, Ubuntu #35845) (3.32 KB, patch)
2006-03-25 19:07 UTC, Stefan Dirsch
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Horn 2006-03-15 09:19:31 UTC
In gnome control center I set up german as my only keayboard layout. Still I have a US layout.
Comment 1 Stefan Horn 2006-03-15 09:20:36 UTC
Created attachment 72939 [details]
screenshot

qwerty should be qwertz if German was really the layout
Comment 2 Dan Winship 2006-03-18 13:35:29 UTC
I find that changing the layout doesn't affect open windows, but it does affect new windows that I open after changing it. Is that the same thing you're seeing, or does it never pick up the change?

Do you get any errors in ~/.xsession-errors? Are you using gdm or kdm?
Comment 3 Stefan Horn 2006-03-20 10:18:06 UTC
In fact using beta8 I found out that the problem was that X had a different layout. Since beta8 gnome asked we whether to use X or Gnome settings. Selection Gnome there works.

So basically the bug is that gnome control panel doesnt tell that keyboard settings are not effective as somehow X overrules gnome.
Comment 4 JP Rosevear 2006-03-21 20:07:32 UTC
Given that it works, I'm knocking this down from critical.
Comment 5 Dan Winship 2006-03-21 22:12:10 UTC
Trying to debug this, I keep hitting http://bugzilla.gnome.org/show_bug.cgi?id=334084 (gnome-settings-daemon crashing with certain keyboard configurations), which may actually be related.
Comment 6 Dan Winship 2006-03-23 18:37:00 UTC
This seems to be a problem with the xkeyboard-config package, which is also
biting Ubuntu and Fedora Core 5. The upstream maintainer is currently working
on it on the Ubuntu Launchpad:
https://launchpad.net/distros/ubuntu/+source/xkeyboard-config/+bug/35845

(I tried the fix suggested there, it doesn't work for me either.) I've
subscribed to that bug so once they get it fixed I'll get the fix into our
packages.
Comment 7 JP Rosevear 2006-03-23 19:29:06 UTC
Adding an X developer so they can track this too.
Comment 8 Stefan Dirsch 2006-03-23 22:04:21 UTC
We still use xkeyboard-config 0.7. I'm happy to see that Ubuntu and FC now also use xkeyboard-config.
Comment 9 Stefan Dirsch 2006-03-25 19:07:54 UTC
Created attachment 75018 [details]
ralt.diff: addresses RAlt problems (Bug #158177, Ubuntu #35845)

Extracted from CVS.
Comment 10 Stefan Dirsch 2006-03-25 19:12:00 UTC
Dank, Stefan H., could you apply the patch 

  ( cd /etc/X11/xkb; patch -p0 -s < <patchfile> )

and give me feedback, whether this helps? Thanks.
Comment 11 Stefan Dirsch 2006-03-26 09:11:25 UTC
s/Dank/Dan/
Comment 12 Stefan Dirsch 2006-03-26 18:20:49 UTC
*** Bug 160838 has been marked as a duplicate of this bug. ***
Comment 13 Stefan Horn 2006-03-27 10:04:06 UTC
Using beta805 the problem did not occur with my machine any longer. Does this help?

Stefan
Comment 14 Stefan Dirsch 2006-03-27 10:28:03 UTC
Not really. But I hope that Dan/Andreas still can reproduce this problem to check wheter the patch helps.
Comment 15 Dan Winship 2006-03-27 19:05:20 UTC
I can't reproduce the crash with that patch.

Leaping back to Stefan Horn's comment #3:
> So basically the bug is that gnome control panel doesnt tell that keyboard
> settings are not effective as somehow X overrules gnome.

That is only relevant at login time. When you change something in the control center, it immediately overwrites the current X settings with the new configuration you have chosen. The xkeyboard-config crash does not occur in all circumstances. So I think what happened was that when you originally tried to change your keyboard settings, it didn't take effect because of the xkeyboard-config bug, and you didn't get any error dialog because of the libxklavier bug that I've now patched around. When you logged in again later in beta8, the xkeyboard-config crash didn't happen, so you got the "inconsistent settings" warning.

So in other words, yes, I think the patch to xkeyboard-config addresses the original bug.
Comment 16 Stefan Dirsch 2006-03-27 19:34:35 UTC
Ok. I've applied this patch now to our xkeyboard-config package. Fixed for 10.1 > RC1.