After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 131083 - Error activating XKB configuration
Error activating XKB configuration
Status: RESOLVED NOTABUG
Product: gnome-control-center
Classification: Core
Component: Keyboard
2.5.x
Other Linux
: High major
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
: 131261 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-01-10 12:04 UTC by Michael Monreal
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: 2.6.next
GNOME version: ---



Description Michael Monreal 2004-01-10 12:04:03 UTC
Using newer control-center releses (the ones with the
reworked gnome-keyboard-properties stuff) i get the
following error whenever i start GNOME:

---
Error activating XKB configuration.
Probably internal X server problem.

X server version data:
The XFree86 Project, Inc
40300000
You are using XFree 4.3.0.
There are known problems with complex XKB configurations.
Try using simpler configuration or taking more fresh version of XFree software.
---

This error message is also displayed when i try to activate
the "Ignore system configuration"-checkbox on the "Core Layout
Configuration"-tab in the keyboard preferences.

I'm using the XFree86 that ships with FedoraCore 1.
Comment 1 Andrew Sobala 2004-01-10 15:51:42 UTC
Urgh urgh urgh.

There's not really an excuse for this not working with FC1 - it's a
very recent XServer. Tentatively marking as a target for 2.6, but this
could be some sort of installation problem? I have no idea.

Ccing svu, he should know more about this.
Comment 2 Michael Monreal 2004-01-10 17:25:35 UTC
>> but this could be some sort of installation problem?
don't know, installation went smooth and i havn't done
any fancy stuff... waiting for instructions
Comment 3 Sergey V. Udaltsov 2004-01-10 17:34:48 UTC
Definitely it is mine. Would you mind telling me which configuration
you are trying to set. In particular, the list of layouts is nice to have.
Comment 4 Michael Monreal 2004-01-10 19:08:32 UTC
Well i'm a bit confused about the XKB system right now
but let's hope we can figure it out nevertheless... ;)

I use the standart german "de" layout as set in XF86Config:

...
Option      "XkbRules" "xfree86"
Option      "XkbModel" "pc105"
Option      "XkbLayout" "de"
Option      "XkbVariant" "nodeadkeys"
...

Also, the keymap *is* used, my keyboard works as it
is meant bo work...

I'm currently recompiling Gnome 2.5.2 using the latest 
GARNOME to make sure it isn't a problem of my build.
Comment 5 Sergey V. Udaltsov 2004-01-10 20:36:23 UTC
More info would be nice to have. First, the result of

# xprop -root | grep XKB

Also, the result of 

# gconftool-2 /desktop/gnome/peripherals/keyboard/xkb -R

BTW, I am using FC1 with the latest gnome, so I am sure we'll sort out
the issue:)
Comment 6 Michael Monreal 2004-01-10 21:59:50 UTC
no problem, here we go... ;)

[nx@nova nx]$ xprop -root | grep XKB
_XKB_RULES_NAMES_BACKUP(STRING) = "xfree86", "pc105", "de",
"nodeadkeys", ""
_XKB_RULES_NAMES(STRING) = "xfree86", "pc105", "de", "nodeadkeys", ""

[nx@nova nx]$ gconftool-2 /desktop/gnome/peripherals/keyboard/xkb -R
 layouts = [de  nodeadkeys]
 model = pc105
 overrideSettings = true
 options = []
Comment 7 Sergey V. Udaltsov 2004-01-11 00:00:57 UTC
Really strange. Just reproduced your configuration on my system. And
everything is ok. Well, what do you see when you run
gnome-keyboard-properties? Do you see anything suspictious in the console?

Also, what is the version of libxklavier and the version of
gnome-control-center you are using?
Comment 8 Michael Monreal 2004-01-11 11:08:50 UTC
[nx@nova nx]$ /opt/gnome25/bin/gnome-keyboard-properties
                                                                     
          
(gnome-keyboard-properties:6125): Gtk-WARNING **: Attempting to add a
widget with type GtkLabel to a GtkCheckButton, but as a GtkBin
subclass a GtkCheckButton can only contain one widget at a time; it
already contains a widget of type GtkLabel
[1073818378,150,xklavier_config_i18n.c:_XklI18NInit/]   Locale search
order:
[1073818378,150,xklavier_config_i18n.c:_XklI18NInit/]    0: en_US.UTF-8
[1073818378,150,xklavier_config_i18n.c:_XklI18NInit/]    1: en_US
[1073818378,150,xklavier_config_i18n.c:_XklI18NInit/]    2: en
[1073818378,150,xklavier_config_i18n.c:_XklGetCharset/]         Using
charset from nl_langinfo: [UTF-8]

---

This is the console-output i get when starting the dialog, changing
settings doesn't output anything to the console. I get the popups i
mentioned earlier when i activate/deactivate the "ignore system
configuration"-checkbox (two of them) and when i add/remove a layout
(only one popup)

I already tried other LANGs (en_US.8859-15, en_US, de_DE...) but that
didn't help either...

>> what is the version
libxklavier == 0.95
control-center == 2.5.1.1
Comment 9 Michael Monreal 2004-01-11 11:23:36 UTC
Argh... got it. The problem was GARNOME, setting 

CONFIGURE_ARGS = $(DIRPATHS) --with-xkb-base=$(libdir)/X11/xkb
instead of
CONFIGURE_ARGS = $(DIRPATHS) --with-xkb-base=/usr/X11R6/lib/X11/xkb

so xklavier actually didn't have a chance finding the XKB 
configuration. Would've been better if the error message had
reflected this, though...
Comment 10 Sergey V. Udaltsov 2004-01-11 14:25:37 UTC
Well, it is difficult to predict any possible build-time error.
Usually it is reasonable to assume that at least build process is ok.

Anyway, thanks for closing this bug. I am relieved...
Comment 11 Andrew Sobala 2004-01-12 18:46:07 UTC
*** Bug 131261 has been marked as a duplicate of this bug. ***
Comment 12 Patrik Kullman 2004-02-17 10:55:33 UTC
I'm getting a somewhat similar error:
(With all up-to-date packages of Gnome 2.5.x)

Error activating XKB configuration.
Probably an internal X server problem.

X server version data:
Gentoo Linux (XFree86 4.3.0, revision r5)
40300001
If you report this situation as a bug, please include:
- The result of xprop -root | grep XKB
- The result of gconftool-2 -R /desktop/gnome/peripherals/keyboard/xkb


So here they are:
_XKB_RULES_NAMES_BACKUP(STRING) = "xfree86", "pc105", "se", "", ""
_XKB_RULES_NAMES(STRING) = "xfree86", "pc105", "se", "", ""

 layouts = [se]
 model = logicdpa
 overrideSettings = false
 options = [altwin      altwin:meta_super]
Comment 13 Sergey V. Udaltsov 2004-02-17 11:17:32 UTC
I think the problem can be caused by meta_super option. Could you
please try removing it? I am not sure all XFree handle it correctly.
Comment 14 Patrik Kullman 2004-02-17 14:35:34 UTC
Added that after the problem started occuring, just to get the
XKB-error dialog. Has nothing to do with it.
Comment 15 Sergey V. Udaltsov 2004-02-17 14:50:33 UTC
Sorry, I do not understand your last message:)
Comment 16 Patrik Kullman 2004-02-18 08:32:22 UTC
Well, the problem is still there without the meta_super option.
Comment 17 Sergey V. Udaltsov 2004-02-18 09:42:22 UTC
Strange... Could you please post the result of 
gconftool-2 -R /desktop/gnome/peripherals/keyboard/xkb
after you removed this option. Then, try "Reset to defaults" button.
Does it work without error? Then, change the configuration
element-by-element (first - model, then - layout, then - options) -
and see where the error appears.
Comment 18 Patrik Kullman 2004-02-18 14:23:19 UTC
Hmm.. problem solved after giving enough permissions to /var/tmp..
thanks anyways
Comment 19 Eugenia Loli-Queru 2004-04-13 09:28:21 UTC
The problem with the gconf.
I have the exact same error message tonight for XKB, but in reality the 
problem is that my gconf got hosed just like that. The information IS there, 
because the "root" user can access it and run gnome with no problems, but no 
other user can.

For example the theme manager tells me that the schemas are not installed, and 
indeed, by loading the gconf-editor only a few gnome apps have keys in it. My 
problem started after I did a big system upgrade on ArchLinux installing about 
50 new packages, but I don't know if that was the culprit or not.

I even reinstalled X and Gnome fully, but no joy. I am sure the info is STILL 
there, but the problem is the permissions on the gconf keys. Any tips on how 
to fix this?

Thx.
Comment 20 Sergey V. Udaltsov 2004-04-13 09:59:17 UTC
Eugenia: No slightest idea. I would say the best way to resolve it is to file a
separate bug against gconf - people discussing XKB could hardly help you;) If
you still encounter XKB problems after fixing your gconf - you're very welcome
into this bug discussion. :)))
Comment 21 Jody Goldberg 2004-04-13 14:03:09 UTC
Eugenia : please open a new bug for the gconf permissions and list me on the CC
list (I don't see gconf bugs by default).  BE sure to include the a sample
directory listing of at least one of the directories in your test user's
~/.gconf tree.  We need to see the owener and permissions on a directory and the
files in it.

Sergey : To summarize this bug
1) libxklavier-1.0.1 can be hard coded to use either x.org or xfree86 now which
solve the fedora problems.
2) There is still a free floating bug in recent versions of xfree86 that can not
be worked around in libxklavier ?  Can we quantify when/if it was fixed and fall
back to checking the server version to produce a better error message (eg 'you
are running a pre release version of the xfree86 X server, it is known to be
broken you are screwed')
Comment 22 Sergey V. Udaltsov 2004-04-13 14:41:07 UTC
Jody:

1. libxklavier 1.02 (to be released soon) replaces build-time option with the
run-time detection.

2. New info about us_intl (again, thanks to Ivan, the layouts guru). In xfree
4.3 this layout was NOT combinable (the same was as some Canadian) - there is no
file /usr/X11R6/lib/X11/xkb/symbols/pc/us_intl, only
/usr/X11R6/lib/X11/xkb/symbols/us_intl. In the latest pre-4.4 builds it was made
combinable (new file /usr/X11R6/lib/X11/xkb/symbols/pc/us_intl was added).
That't the whole truth about us_intl layout.

There is no way to distinghish non-combinable layouts (with the fairness, there
are very few of them) from combinable in 4.3.

You know, all these bugs arize because noone seriously cared to create proper
general purpose keyboard confugration ui before gnome 2.6. Each admin used its
own solution in XF86Config (and unfortunately XFree provides way too many ways
to configure keyboard).