Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 138974 - Error activating XKB configuration
Summary: Error activating XKB configuration
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-03 02:25 UTC by Massimiliano Adamo
Modified: 2008-04-29 19:49 UTC (History)
6 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 Massimiliano Adamo 2006-07-03 02:25:54 UTC
I am using Gentoo 2006.0 (noteboook sony vaio, pentium-m)
After upgrading XORG 7, I am getting the following error (I'll try to traslate from italian) and I can't switch my keyboard layout: 
Error activatgin XKB configuration.
This could happen if:
- libxklavier has a bug
- X server has a bug (in the tools  xbkcomp o xmodmap)
- X server is using an incompatible version of libxkbfile

Version os X server:
The Xorg Foundation
70000000

If you want to report this has a bug, include:
- the result of xprop -root | grep XKB
- the result of gconftool-2 -R /desktop/gnome/peripherals/keyboard/kbd

Well .... I have 2 computers with Gentoo, and on one of them (an AMD64) I fixed this issue by creating a symlink:
ln -sf /usr/share/X11/xkb /usr/X11R6/lib/X11/xkb

Unfortunately on the notebok it didn't help.

please let me know if you need some more info!
Comment 1 Xiao-Yong JIN 2006-07-04 07:05:13 UTC
I think it's the problem of the orphan sym link /etc/X11/xkb.  After upgrading, it points to ../../usr/lib/X11/xkb, such that xkbcomp couldn't work properly.  It took me hours to track this down.

You can try to remove /etc/X11/xkb and see if it helps.
Comment 2 Fred Frigerio 2006-07-04 12:32:50 UTC
Same error on an dual CPU AMD64 (Opteron). There was no orphaned link, and creating oneas suggested did not fix it, although KDE is OK. This happened right after upgrade to Xorg Modular. I tried an emerge -e system && emerge -e world but that did not fix things either. During upgrade to modular I had to accept ~amd64 for only one package. Guess which one? xkbutils!! Coincidence?
Comment 3 Sebastian Volke 2006-07-05 06:20:12 UTC
@xkbutils:

I'm running Gentoo on a AMD Sempron64 box and also got that message after upgrading to modular X. But I run without xkbutils and everything works after symlinking /usr/lib/X11/xkb with /usr/share/X11/xkb.

This also fixes the "orphaned" symlink in /etc/X11/. This one links to /usr/lib64/X11/xkb which is already linked to /usr/share/X11/xkb.

Please check, which package pulls xkbutils in.

But the problem shouln't be caused by it.
Comment 4 Massimiliano Adamo 2006-07-06 02:10:09 UTC
(In reply to comment #3)
> @xkbutils:
> 
> I'm running Gentoo on a AMD Sempron64 box and also got that message after
> upgrading to modular X. But I run without xkbutils and everything works after
> symlinking /usr/lib/X11/xkb with /usr/share/X11/xkb.

Hi.
I didn't write that I have two boxes:
=> one is AMD 64
=> another one is Pentium M (notebook)

On ADM 64 I fixed this problem very soon, by doing what you have done.
On the notebook this solution didn't work.
Gentoo AMD64 and x86 have different portage tree... 
Comment 5 Artiom Molchanov 2006-07-07 10:02:51 UTC
I have the same problem after migrating to xorg 7. 
Also gnome keyboard indicator doesn't work with the same message.

$>gconftool-2 -R /desktop/gnome/peripherals/keyboard/kbd
 layouts = [ru  winkeys,fr]
 model =
 overrideSettings = false
 options = [grp grp:ctrl_shift_toggle,lv3       lv3:lwin_switch]
Comment 6 Massimiliano Adamo 2006-07-08 03:19:03 UTC
I did something that fixed my problem! ... but I am not able to say what I did exactly.....
It's also important to have a look in to GDM logs.
The last thing that I did was to add 'xinerama' support into GDM (because I use 2 monitors) and reinstall GDM. But I don't know if this was the solution.
Something is really wrong in update procedure.....
Comment 7 Philippe Chaintreuil 2006-07-17 09:46:56 UTC
I too had this error after updating to the new modular X format per the "Migrating to Modular X HOWTO" instructions.  My keyboard seemed to work just fine, but the error is annoying.  I had the orphaned link, removing it didn't work.  Instead (as Sebastian Volke suggested) adding link from /usr/share/X11/xkb to /usr/lib/X11/xkb, along with reinstating the original "orphaned" link (which is no longer orphaned once that other link is made) got rid of the error.  As a side note, I never have had xkbutils installed.
Comment 8 Matt Wheeler 2006-08-12 15:18:50 UTC
This bug seems to be resolved with Gnome 2.14
Comment 9 Philippe Chaintreuil 2006-08-14 05:23:33 UTC
Actually, I got it when I was upgrading to 2.14 (mod X is a depenancy of it, I believe).  However, it may have been fixed by additional changes to the ebuild since I had my problems.
Comment 10 Serge Gavrilov 2006-09-01 08:28:08 UTC
I had this after upgrading to Xorg 7.1 from 6.8
My gnome is 2.14
The workaround is symlinking: ln -s /usr/share/X11/xkb/ /usr/lib/X11/xkb
Comment 11 Gilles Dartiguelongue (RETIRED) gentoo-dev 2007-11-05 23:09:55 UTC
is this problem fixed ?
I think it was due to the xkbdata/xkeyboard-config transition. I any of you is still experiencing this problem, could you add your:
 - emerge --info
 - version of xorg-server, xkeyboard-config and xkbdata
Comment 12 Saleem Abdulrasool (RETIRED) gentoo-dev 2007-12-12 03:53:44 UTC
Marking as fixed.  Please reopen if this is still a problem.
Comment 13 Oleg Eterevsky 2008-04-29 19:49:21 UTC
I have the same problem.

AMD64
Gnome 2.20.3
xorg-server 1.4.0.90-r3
xorg-x11 7.2

$ xprop -root | grep XKB
_XKB_RULES_NAMES_BACKUP(STRING) = "xorg", "pc104", "us,ru", "mod,mod", "grp:alt_shift_toggle,grp_led:scroll,lv3:win_switch,compose:menu,eurosign:e"
_XKB_RULES_NAMES(STRING) = "xorg", "pc104", "us,ru", "mod,mod", "grp:alt_shift_toggle,grp_led:scroll,lv3:win_switch,compose:menu,eurosign:e"

$ gconftool-2 -R /desktop/gnome/peripherals/keyboard/kbd
 layouts = []
 model = 
 options = [grp_led	grp_led:scroll,compose	compose:menu,grp	grp:alt_shift_toggle]
 overrideSettings = true

The problem appears for any configuration changes that I try.