Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86232 - "Error activating XKB configuration" (with solution)
Summary: "Error activating XKB configuration" (with solution)
Status: RESOLVED DUPLICATE of bug 93190
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-22 02:57 UTC by Vadim Berezniker
Modified: 2007-03-21 21:29 UTC (History)
3 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 Vadim Berezniker 2005-03-22 02:57:26 UTC
The past several times I have installed Gentoo, I have always had the same problem when I configure keyboard layouts in Gnome. When I add a "Japanese" kayout, I immediately get the above error. I noticed that adding most other layouts does not produce this error. (I guess it's only layouts that utilize "extra" keys). If I remove the "English" layout however, the error goes away. 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Sebastian Spaeth 2005-04-13 00:11:11 UTC
I get the same error, using a western keyboard (however, it is a "microsoft natural... keyboard".

Gentoo Linux (The X.Org Foundation 6.8.2, revision r1-0.1.2) 60802000

xprop -root | grep XKB
_XKB_RULES_NAMES_BACKUP(STRING) = "xorg", "microsoft", "de_CH", "", ""
_XKB_RULES_NAMES(STRING) = "xorg", "microsoft", "de_CH", "", ""

gconftool-2 -R /desktop/gnome/peripherals/keyboard/xkb
 layouts = [de_CH,se    basic]
 model = microsoft
 overrideSettings = false
 options = [grp grp:alts_toggle]
 update_handlers = []
--------------------------------------------------------------
/var/log/Xorg.0.log says:
(II) LoadModule: "kbd"
(II) Loading /usr/lib64/modules/input/kbd_drv.o
(II) Module kbd: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        Module class: X.Org XInput Driver
        ABI class: X.Org XInput driver, version 0.4

Later on it says:
(EE) Error loading keymap /usr/lib64/X11/xkb/compiled/server-0.xkm
SetKbdSettings - type: -1 rate: -1 delay: -1 snumlk: 0

However that directory is enpty besides a README file in there.
Comment 2 Spider (RETIRED) gentoo-dev 2005-04-13 00:31:51 UTC
can you check the status of : /usr/lib/X11/xkb/xkbcomp

preferrably using qokg -c -v -f /usr/lib/X11/xkb/xkbcomp

Comment 3 Sebastian Spaeth 2005-04-13 01:44:56 UTC
qpkg -c -v -f /usr/lib/X11/xkb/xkbcomp returns without any output.

ls -la /usr/lib/X11/xkb/xkbcomp:
 -rwxr-xr-x  1 root root 192648 31. Mar 18:14 /usr/lib/X11/xkb/xkbcomp

I have not played with manually creating symlinks programs or otherwise modified my xorg installation. So this is the result of simply emerging and upgrading xorg-x11 over time. The only "special thing" I ever did is emerging "linuxwacom" for a wacom drawing tablet and "demerging" it later.
Comment 4 Sebastian Spaeth 2005-04-13 02:39:31 UTC
Weird, even after rebuilding with the exact same use flags:
x11-base/xorg-x11-6.8.2-r1  (-3dfx) (-3dnow) +bitmap-fonts -cjk -debug -dlloader -dmx -doc +font-server -hardened -insecure-drivers -ipv6 -minimal (-mmx) +nls +opengl +pam -sdk (-sse) -static +truetype-fonts +type1-fonts (-uclibc) +xprint +xv

xkbcomp doesn't belong to any package. (This is on an amd64)
equery belongs /usr/lib/X11/xkb/xkbcomp
[ Searching for file(s) /usr/lib/X11/xkb/xkbcomp in *... ]
---->no output
qpkg -c -v -f /usr/lib/X11/xkb/xkbcomp
---->no output
Comment 5 Sebastian Spaeth 2005-04-13 02:59:52 UTC
amd64 specific path issue?

qpkg -c -v -f /usr/lib64/X11/xkb/xkbcomp
------->x11-base/xorg-x11-6.8.2-r1 *

mmh on second sight, it seems to be the same file, just symlinked. So that shouldn't be an issue, right?

Comment 6 Spider (RETIRED) gentoo-dev 2005-04-13 17:18:53 UTC
well the problem is that if this file was merged with dispatch-conf, it per defaults uses "diff -a" which will mangle it from being a working executable to something strange that won't run.

Comment 7 Spider (RETIRED) gentoo-dev 2005-04-13 17:19:33 UTC
(note that since the file then is different than the one regiesterd in the package contents, it will be considered a modified config in the next udpate, so a simple rebuild will not fix this issue )
Comment 8 Sebastian Spaeth 2005-04-13 17:58:18 UTC
I have never used dispatch-conf so far or is that implicitly being called by etc-update? I deleted the whole xkb directory and rebuild. I'll report if the bug is fixed/not fixed. Thanks for the quick response times in any case!!! I really appreciate that.
Comment 9 Spider (RETIRED) gentoo-dev 2005-04-14 01:44:37 UTC
it shouldn't be implied by etc-update, however, etc-update may also be set to use diff -a, it depends on the configuration.

Although, this is a hunch, however a somewhat well based one as I've seen this problem in a few instances before.  Hope your problem gets solved, but its hard to debug problems like this that we cannot reproduce.
Comment 10 Chris Rebert 2005-06-08 16:08:09 UTC
I have the same problem. I just upgraded to gnome 2.10. I've never messed w/ the
layout ever. I hope this gets fixed.

CFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe -fprefetch-loop-arrays
-ftracer"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict userpriv
usersandbox"

$ xprop -root | grep XKB
_XKB_RULES_NAMES_BACKUP(STRING) = "xorg", "pc104", "us", "", ""
_XKB_RULES_NAMES(STRING) = "xorg", "pc104", "us", "", ""

# gconftool-2 -R /desktop/gnome/peripherals/keyboard/kbd
 layouts = [us]
 model = pc105
 overrideSettings = true
 options = []
Comment 11 Amit Kotlovski 2005-06-17 06:59:52 UTC
Since i emerged gnome 2.10 i've been having this "Error activating XKB
configuration" window too.

This is an amd64 machine.
I deleted the xkb folder, as told on this page, and re-emerged x.org .
After it finished, i did not run dispatch-conf again, but tried to open gnome
again. I got the "Error activating XKB" screen again.

When i run:
# qpkg -c -v -f /usr/bin/xmodmap
x11-base/xorg-x11-6.8.2-r1 *
0/1

# qpkg -c -v -f /usr/lib64/X11/xkb/xkbcomp
x11-base/xorg-x11-6.8.2-r1 *
0/1

What does it mean? How do i fix this?
Comment 12 Amit Kotlovski 2005-06-17 07:21:57 UTC
I forgot:

# xprop -root | grep XKB
_XKB_RULES_NAMES_BACKUP(STRING) = "xorg", "pc104", "en_US,he_IL", ",",
"grp:switch,grp:alt_shift_toggle,grp_led:scroll"
_XKB_RULES_NAMES(STRING) = "xorg", "pc104", "en_US,he_IL", "",
"grp:switch,grp:alt_shift_toggle,grp_led:scroll"

# gconftool-2 -R /desktop/gnome/peripherals/keyboard/kbd
 layouts = [us]
 model = generic
 options = []
 overrideSettings = false

# emerge info
Portage 2.0.51.22-r1 (default-linux/amd64/2004.3, gcc-3.4.3,
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.12
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.9
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=athlon64 -funit-at-a-time -fpeel-loops -ftracer
-funswitch-loops -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon64 -funit-at-a-time -fpeel-loops -ftracer
-funswitch-loops -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.hamakor.org.il/pub/mirrors/gentoo
http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="he_IL.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://mirror.hamakor.org.il/gentoo-portage"
USE="amd64 X aac aalib acpi alsa avi bash-completion berkdb bidi bitmap-fonts
cdr cpudetection crypt crypto curl directfb dts dvd dvdr eds esd fam flac
font-server fortran gdbm gif gnome gpm gstreamer gtk gtk2 imlib java jp2 jpeg
junit lirc lzw lzw-tiff mad mbrola mikmod mmext motif mozilla mp3 ncurses
network nls nvidia ogg oggvorbis opengl pam perl png python readline samba sdl
slang ssl tcltk tcpd threads tiff truetype truetype-fonts type1-fonts unicode
usb userlocales vorbis xine xml2 xmms xpm xrandr xv xvid zlib userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 13 Amit Kotlovski 2005-06-18 03:54:17 UTC
Can someone please specify the solution provided, or correct the the summary so
that it indicates clearly that this issue is not yet resolved?
Comment 14 Amit Kotlovski 2005-06-18 04:53:09 UTC
A better search of the forums lead to a few solutions.
The one that solved my problem is to remove all layouts on the Gnome "Keyboard
Preferences", and add them again.

I also changed the following lines on my xorg.conf:
 Section "InputDevice"

    Identifier  "Keyboard1"
    Driver      "kbd"
    Option "XkbModel"   "pc104"
    Option "XkbOptions" "grp:switch,grp:alt_shift_toggle,grp_led:scroll"
    Option "XkbLayout"  "us,il"

from:
    Option "XkbLayout" "en_US,he_IL"
to:
    Option "XkbLayout"  "us,il"

I read it too on some of the forum threads on this issue.
Comment 15 Samuel Berner 2005-07-26 07:03:04 UTC
I had the same problem occuring on two different gentoo linux systems. One is a
Pentium 4 laptop (i386) and the other one is an AMD64 desktop PC.

The laptop is a system which I recently upgraded to the 2005.0 profile and the
amd64 system I newly installed about a month ago.

It turned out, that some keyboard layouts are broken. Not totally broken because
they still work for themselves but they don't work in combination (to switch
between layouts).

You can check if you have this problem, by executing the following:
setxkbmap us,de_CH
 -or-
setxkbmap us,ca

If you get an error message your layout is most probably one of those broken
ones. If you don't get anything your layout should work.

The layouts which I found broken are:
  az            Azerbaijani
  ca            Canadian
  ca_enhanced   French Canadian
  fo            Faroese  # this one seems to be totally broken
  hu            Hungarian
  hu_qwerty     Hungarian (qwerty)
  jp            Japanese  # jp and ko might also be broken in another way
  ko            Korean
  lt_std        Lithuanian azerty standard   # but not lt (qwerty "numeric")
  mn            Mongolian
  fr_CH         Swiss French
  de_CH         Swiss German
  vn            Vietnamese
  nec/jp        PC-98xx Series

The actual problem lies somewhere within xkb and is not a trivial problem. I
read somewhere, that a solution already exists and it is currently being
integrated into the X server CVS source.

There are two workarounds which you can use until the changes will be in one of
the next releases of Xorg.
Those two workarounds have a limitation, though. It is not possible to configure
more than two layouts (maybe three, but I'm not sure).

I found those two workarounds here:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=125722#c15

But originally they have it from here:
http://oclug.on.ca/archives/oclug/2005-January/043030.html

I hope this helps. For me it worked.
Comment 16 Chris Rebert 2005-09-27 19:04:46 UTC
Has this been fixed in xkb yet? There have been a few xorg releases since the
last comment.
Comment 17 Andreas Kotowicz 2005-12-05 00:29:55 UTC
I have just installed xorg-x11-6.8.2-r6 and upgraded some gnome 2.12.2 packages.
now I get:

Error activating XKB configuration.
It can happen under various circumstances:
- a bug in libxklavier library
- a bug in X server (xkbcomp, xmodmap utilities)
- X server with incompatible libxkbfile implementation

X server version data:
Gentoo (The X.Org Foundation 6.8.2, revision r6-0.1.13)
60802000

If you report this situation as a bug, please include:
- The result of xprop -root | grep XKB

_XKB_RULES_NAMES_BACKUP(STRING) = "xorg", "thinkpad", "de", "", ""
_XKB_RULES_NAMES(STRING) = "xorg", "thinkpad", "de", "", ""

- The result of gconftool-2 -R /desktop/gnome/peripherals/keyboard/kbd

layouts = [de,us       intl,es nodeadkeys]
 model = thinkpad
 overrideSettings = false
 options = [grp grp:alts_toggle]
Comment 18 Norman Jonas 2005-12-06 13:44:34 UTC
In reply to comment #17 : See Bug #114601
Comment 19 Saleem Abdulrasool (RETIRED) gentoo-dev 2006-01-07 13:56:03 UTC
It seems that the underlying cause of this is the same as bug #93190.

*** This bug has been marked as a duplicate of 93190 ***