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 323210 - keyboard applet is incompatible with modular X (7.x)
keyboard applet is incompatible with modular X (7.x)
Status: RESOLVED NOTGNOME
Product: gnome-applets
Classification: Other
Component: keyboard indicator (gswitchit)
2.12.x
Other All
: High blocker
: ---
Assigned To: gnome-applets Maintainers
gnome-applets Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-12-04 18:22 UTC by Nicolas Mailhot
Modified: 2010-01-24 01:07 UTC
See Also:
GNOME target: 2.14.x
GNOME version: 2.11/2.12



Description Nicolas Mailhot 2005-12-04 18:22:49 UTC
Please describe the problem:
The X11 keyboard maps were thoroughly reworked in incoming Xorg X11 7.0 release
(definitions and location changed)

As a result the keyboard switching applet does not recognize X11 keyboard defs
and does not work at all

You also get an ugly warning about it each time you log in gnome

All distros that will use  Xorg X11 7.0 will be affected. Fedora Core 5 Test1
already is

Steps to reproduce:
load gnome on a Xorg X11 7.0 based distro (for example Fedora Core 5 Test1)

Actual results:
Popup complaining X11 and Gnome keyboard settings differ
Keyboard applet which only displays current X11 map and can not switch to any other

Expected results:


Does this happen every time?
Yes

Other information:
See also https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=173267
Comment 1 Sergey V. Udaltsov 2005-12-04 19:42:11 UTC
Unfortunately at the moment I don't have modular X installed, so cannot
reproduce the problem. Though most probably the issue is not with gnome-applets
but with libxklavier.
Comment 2 Nicolas Mailhot 2005-12-04 20:16:09 UTC
Probably

I seem to remember mharris complained they never applied a patch he sent them
years ago, and as a result get broken every time he moves things (and he does
not care anymore)

(patch was to query the server to get kbd info instead of hardcoding kbd data
location)

But I'm only a poor user trying to get stuff working. Roght now the keyboard
applet is dead-broken in the FC5 tree
Comment 3 Sergey V. Udaltsov 2005-12-04 20:38:36 UTC
Ghm, these 'them' is probably me. Could you please attach this patch here?
Comment 4 Nicolas Mailhot 2005-12-04 21:08:52 UTC
I'm sorry, I only read mharris complaining vehemently about libxclavier on
#fedora-devel when he was listing all the bits modular X broke, he didn't gave
the patch reference, but I'm sure if you ask him gently he'll send it to you again

(he'll probably also give you a piece of its mind though)
Comment 5 Sergey V. Udaltsov 2005-12-04 21:52:22 UTC
ok, I'll try:)
Comment 6 Nicolas Mailhot 2005-12-04 22:07:35 UTC
Please also note Xorg didn't just move xkb data to a new place - many maps where
 rewritten, so Mike's patch may not be sufficient by itself
Comment 7 Danielle Madeley 2005-12-21 05:58:46 UTC
Marking this bug as a blocker for GNOME 2.14.
Comment 8 Sergey V. Udaltsov 2005-12-21 21:35:35 UTC
I discussed this thing with Mike. There is really no high-priority issues. And moreover - it is NOTGNOME (it is only minor build-time problem with libxklavier).
Comment 9 Nicolas Mailhot 2005-12-22 00:22:48 UTC
Well, it's no high-prio because no one has figured where to yell so far.
Right now the gnome keyboard applet in FC5 test 1 and FC devel is a paperweight (in linuxprinting terminology). Want to bet how many people will notice if it's not fixed before FC5 release ?

Most FC5t1 users are hackers and only care about ascii. Your average FC user is rather different
Comment 10 Islam Amer 2005-12-26 16:31:18 UTC
got the same problem here. gentoo user who likes to experiment here.
I have installed gnome-2.13.3 on modular xorg.

The stuff that was in /usr/X11R6/lib/X11/xkb got moved to /usr/share/X11/xkb

and in my xorg.conf :

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "CoreKeyboard"
        Option "XkbRules" "xorg"
        Option "XkbModel" "pc104"
        Option "XkbLayout" "us,ara"
        Option "XKbOptions" "grp:alt_shift_toggle"
EndSection

stuff works a little if I symlink the new place to the old but it still can't compile a new keyboard map and I get this in the Xorg log :

(EE) Error loading keymap /usr/share/X11/xkb/compiled/server-0.xkm

My keyboard is "microsoftprousb" and I used layout "arabic qwerty digits" from the gnome-keyboard-properties. I can't set these anymore, and they don't work if I stick them in xorg.conf .

I am not sure if this is only a libxklavier problem, but it will be ugly if gnome-2.14 gets released this way, specially with modular X released and considered "stable". Can someone CC libxklavier author ?
Comment 11 Sergey V. Udaltsov 2005-12-27 18:30:23 UTC
I am libxklavier author - but it seems irrelevant here. Xorg does not use libxklavier itself - so if you get errors in xorg log, it is somewhere in xkb configuration or xorg server itself.

Do you use xkeyboard-config XKB configuration database - or the one shipped with xorg release. Could you please do 'ls -l /usr/share/X11/xkb/rules'?
Comment 12 Islam Amer 2005-12-27 18:56:33 UTC
ls -l /usr/share/X11/xkb/rules
total 568
-rw-r--r--  1 root root    110 Dec 26 01:16 README
-rw-r--r--  1 root root   3096 Dec 26 01:16 sgi
-rw-r--r--  1 root root   2525 Dec 26 01:16 sgi.lst
-rw-r--r--  1 root root   1662 Dec 26 01:16 sun
-rw-r--r--  1 root root   1748 Dec 26 01:16 sun.lst
-rw-r--r--  1 root root    781 Dec 26 01:16 xfree98
-rw-r--r--  1 root root    817 Dec 26 01:16 xfree98.lst
-rw-r--r--  1 root root    840 Dec 26 01:16 xkb.dtd
-rw-r--r--  1 root root   7309 Dec 26 01:16 xml2lst.pl
-rw-r--r--  1 root root  40517 Dec 26 01:16 xorg
-rw-r--r--  1 root root   1443 Dec 26 01:16 xorg-it.lst
-rw-r--r--  1 root root  17393 Dec 26 01:16 xorg.lst
-rw-r--r--  1 root root 469372 Dec 26 01:16 xorg.xml

I don't really understand what do you mean by "xkeyboard-config XKB configuration database - or the one shipped with xorg release". 
but I'll try:

*  x11-apps/setxkbmap
      Latest version available: 1.0.1
      Latest version installed: 1.0.1
      Size of downloaded files: 78 kB
      Homepage:    http://xorg.freedesktop.org/
      Description: X.Org setxkbmap application
      License:     X11

*  x11-apps/xkbcomp
      Latest version available: 1.0.1
      Latest version installed: 1.0.1
      Size of downloaded files: 175 kB
      Homepage:    http://xorg.freedesktop.org/
      Description: X.Org xkbcomp application
      License:     X11

*  x11-apps/xkbevd
      Latest version available: 1.0.1
      Latest version installed: 1.0.1
      Size of downloaded files: 99 kB
      Homepage:    http://xorg.freedesktop.org/
      Description: X.Org xkbevd application
      License:     X11

*  x11-apps/xkbprint
      Latest version available: 1.0.1
      Latest version installed: 1.0.1
      Size of downloaded files: 112 kB
      Homepage:    http://xorg.freedesktop.org/
      Description: X.Org xkbprint application
      License:     X11

*  x11-apps/xkbutils
      Latest version available: 1.0.1
      Latest version installed: 1.0.1
      Size of downloaded files: 64 kB
      Homepage:    http://xorg.freedesktop.org/
      Description: X.Org xkbutils application
      License:     X11

*  x11-libs/libxkbfile
      Latest version available: 1.0.1
      Latest version installed: 1.0.1
      Size of downloaded files: 252 kB
      Homepage:    http://xorg.freedesktop.org/
      Description: X.Org xkbfile library
      License:     X11

*  x11-libs/libxkbui
      Latest version available: 1.0.1
      Latest version installed: 1.0.1
      Size of downloaded files: 205 kB
      Homepage:    http://xorg.freedesktop.org/
      Description: X.Org xkbui library
      License:     X11

*  x11-misc/xkbdata
      Latest version available: 1.0.1
      Latest version installed: 1.0.1
      Size of downloaded files: 280 kB
      Homepage:    http://xorg.freedesktop.org/
      Description: X.Org xkbdata data
      License:     X11
Comment 13 Nicolas Mailhot 2005-12-28 10:21:10 UTC
As I wrote - it's not a simple location change

I had to manually rewrite the keyboard rules in my xorg.conf - the old ones (pre 7.0) weren't valid anymore
Comment 14 Islam Amer 2005-12-28 16:28:09 UTC
So what is the soultion or at least a temporary workaround ? Does xorg have different rule files for the modular 7 that can be downloaded somewhere ?
Comment 15 Nicolas Mailhot 2005-12-28 17:36:43 UTC
Well right now till the config tools catch up you may have to ask on xorg lists how your keboard map was renamed/changed

Alternatively I think Fedora's system-config-keyboard has already been adapted for modular X (at least it works with my map, but after all I reported the problem first) 

However if you want to do some keyboard switching you'll have to wait for the gnome applet to be fixed
Comment 16 Sergey V. Udaltsov 2005-12-29 01:14:25 UTC
As I can see, you are using original xkb configuration database (not xkeyboard-config). And it may be broken in many ways. Would you consider trying xkeyboard-config?

http://www.freedesktop.org/wiki/Software_2fXKeyboardConfig

http://xlibs.freedesktop.org/xkbdesc/xkeyboard-config-0.7.tar.bz2
Comment 17 Islam Amer 2005-12-29 18:52:58 UTC
Sorry for the delay, I had an exam.

I unmerged (removed) the xorg keyboard data and installed xkeyboard-config data using a home made ebuild, and everything returned back to normal !!
This package should replace the one included with modular xorg I guess.

For now everthing seems to be back to normal, gnome-keyboard-properties is working properly, it even seems to have some more options for the layout, and I got my arabic_qwerty_digits map :)

Thanks a million for this!
Comment 18 Sergey V. Udaltsov 2005-12-29 19:12:53 UTC
Ok, good to know it is sorted.;)