Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 193993 - x11-misc/xkeyboard-config-1.1 breaks foreign keyboards special chars (alt-gr + )
Summary: x11-misc/xkeyboard-config-1.1 breaks foreign keyboards special chars (alt-gr + )
Status: RESOLVED DUPLICATE of bug 194026
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-27 13:23 UTC by Matteo Azzali (RETIRED)
Modified: 2007-12-23 12:01 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matteo Azzali (RETIRED) gentoo-dev 2007-09-27 13:23:34 UTC
After upgrading 0.9 to 1.1 and getting the new keyboard config files through
etc-update , I rebooted and now all the shortcuts to obtain special chars
not present on my keyboard are gone (i.e.: I can't even insert the c
parenthesis "{" or the tilde without Kcharselect) while I'm in X.

Reproducible: Always

Actual Results:  
Alt-gr + (7-0') produces nothing

Expected Results:  
Alt-gr + (7-0' and igrave) produces special chars not present here
Comment 1 giovanni.bobbio 2007-09-27 13:34:41 UTC
It is setting the keymap that fails, both on X startup:

(WW) Couldn't load XKB keymap, falling back to pre-XKB keymap

and manually with setxkbmap.

(I don't have an actual error message from setxkbmap handy, I downgraded to 0.9).
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2007-09-27 15:01:17 UTC
Hi,

I can confirm this error. I got rid of it after I recompiled libX11, xorg-server and xf86-input-keyboard.
I don't know if recompilation of all three packages is really necessary but I was lazy and so didn't test package by package ;)

Cheers
Poly-C
Comment 3 Markus Rathgeb 2007-09-27 15:16:01 UTC
Can you prepare if it works after the command:
setxkbmap -keycodes xfree86 -geometry pc -model pc105 -layout de
(replace the layout if you want).
Comment 4 Markus Rathgeb 2007-09-27 15:24:50 UTC
Hm, now it is enough for me to do "setxkbmap -layout de".
Perhaps you are able to test if the AltGr key is working with layout de.
Comment 5 hmk 2007-09-27 15:47:19 UTC
(In reply to comment #2)
> Hi,
> 
> I can confirm this error. I got rid of it after I recompiled libX11,

Just a "me too".

> xorg-server and xf86-input-keyboard.

A shorter version to fix this error might be emerge -C xkeyboard-config && emerge xkbdata
Actually I do not know where the precise difference between these is, but it fixed the issue for me.
Comment 6 Davide Pesavento (RETIRED) gentoo-dev 2007-09-27 15:54:58 UTC
Here AltGr, ctrl + alt (to switch VTs), win keys and accented vowels in the right part of the italian keyboard stopped working after upgrading to 1.1.

`setxkbmap -layout <enter whatever you want here>` fails with an error message like
"Could not load description for...."
I don't remember the exact message because I downgraded to 0.9.
Comment 7 Matteo Azzali (RETIRED) gentoo-dev 2007-09-27 15:55:45 UTC
I'll have to re-emerge something, setxkbmap doesn't seems to work here:

-setxkbmap -keycodes xfree86 -geometry pc -model pc105 -layout it
Error loading new keyboard description
-setxkbmap -layout it
Error loading new keyboard description
Comment 8 Matteo Azzali (RETIRED) gentoo-dev 2007-09-27 15:57:26 UTC
P.S.: xkbdata is deprecated, see:
http://lists.freedesktop.org/archives/xorg-announce/2006-December/000203.html
Comment 9 Markus Rathgeb 2007-09-27 16:39:21 UTC
I think the cause of "Error loading new keyboard description" is the warning "(WW) Couldn't load XKB keymap, falling back to pre-XKB keymap".
I did not get this warning.
Also I know now (when you do not get this warning), what you have change in the e.g. us layout to get a working alt-gr with setxkbmap.

Comment 10 giovanni.bobbio 2007-09-28 09:37:46 UTC
(In reply to comment #2)
> Hi,
> I can confirm this error. I got rid of it after I recompiled libX11,
> xorg-server and xf86-input-keyboard.
> I don't know if recompilation of all three packages is really necessary but I
> was lazy and so didn't test package by package ;)

I recompiled xf86-input-keyboard, libX11, xorg-server in that order and only after xorg-server did it work.
So emerge --oneshot xorg-server is necessary and probably sufficient.
Someone else may check that, perhaps?
Comment 11 Togge 2007-09-28 11:32:31 UTC
(In reply to comment #10)
> So emerge --oneshot xorg-server is necessary and probably sufficient.
> Someone else may check that, perhaps?

That did it for me.
Comment 12 Miroslav Šulc gentoo-dev 2007-09-28 12:28:46 UTC
I can confirm that re-emerge of xorg-xserver fixed it for me too. I just recall I had similar problem with xorg mouse driver (mouse has died) and re-emerge of xorg-xserver fixed that too. So it seems upgrades of some components need xorg-xserver to be re-emerged.
Comment 13 Davide Pesavento (RETIRED) gentoo-dev 2007-09-28 14:01:33 UTC
Re-emerging xorg-server fixed all of my issues with the keyboard.

@x11: what about adding a warning to xkeyboard-config's pkg_postmerge() telling users to rebuild xorg-server?

Anyway this bug is INVALID...
Comment 14 Rémi Cardona (RETIRED) gentoo-dev 2007-09-30 18:17:42 UTC
Confirming rebuilding xorg-server fixes the issue.

This is definitely worth some kind of announcement at least in the ebuild, but GWN might be a good place too. Losing one's keyboard is not exactly fun to see :)

Cheers
Comment 15 Donnie Berkholz (RETIRED) gentoo-dev 2007-10-01 06:15:32 UTC
This looks like a dupe.

*** This bug has been marked as a duplicate of bug 194026 ***
Comment 16 Patrick ALLAERT 2007-12-23 12:01:32 UTC
Indeed, this is a dupe of #194026 and a quicker fix than recompiling xorg-server is:

ln -s /var/lib/xkb /usr/share/X11/xkb/compiled