Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47243 - xorg-x11 missing or broken xkb support (xkbcomp is 0 bytes)
Summary: xorg-x11 missing or broken xkb support (xkbcomp is 0 bytes)
Status: RESOLVED DUPLICATE of bug 41743
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
: 63795 71709 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-04-08 10:06 UTC by Dale K Dicks
Modified: 2005-07-17 13:06 UTC (History)
11 users (show)

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


Attachments
XFree's output (UTF-8) to view (xfree-keys-utf-8,313 bytes, text/plain)
2004-07-29 14:13 UTC, Peter Ruskin
Details
xorg-x11's output (UTF-8 to view) (xorg-keys-utf8,308 bytes, text/plain)
2004-07-29 14:16 UTC, Peter Ruskin
Details
Simple symlink creation script. (xorg.fix.sh,732 bytes, text/plain)
2004-10-26 19:56 UTC, Steven Hay
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dale K Dicks 2004-04-08 10:06:12 UTC
Can we get the xkb stuff from the old XFree 4.3.x ebuild put into the X.org one?

I have to manually xmodmap my multimedia keyboard at teh moment, and did not have to with the following in my XF86Config with XFree:

        Option          "XkbRules"              "xfree86"
        Option          "XkbModel"              "itouchin"

I poked around and changed it to this for X.org but it still does not work:

        Option          "XkbRules"              "xorg"
        Option          "XkbModel"              "logiciink"
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2004-04-08 11:24:46 UTC
Which xkb stuff in the ebuild might you be referring to?
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2004-04-08 11:25:25 UTC
Also refer to bug #45610.
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2004-04-08 11:28:08 UTC
Bob didn't you mention something about your xkb setup to me on IRC?
Comment 4 Dale K Dicks 2004-04-08 11:29:58 UTC
<quote>Which xkb stuff in the ebuild might you be referring to?</quote>

whatever kbd files were in XFree that made the xkb settings in the XF86Config work per what I listed in my initial report.

At the moment I have to have a script perfomr the following (which was done automatically in XFree with the 2 kbd lines I put in my initital report):

#Map Multimedia Keys
xmodmap -e "keycode 234 = XF86Back"
xmodmap -e "keycode 233 = XF86Forward"
xmodmap -e "keycode 223 = XF86Standby"
xmodmap -e "keycode 236 = XF86Mail"
xmodmap -e "keycode 229 = XF86Search"
xmodmap -e "keycode 230 = XF86Favorites"
xmodmap -e "keycode 144 = XF86AudioPrev"
xmodmap -e "keycode 153 = XF86AudioNext"
xmodmap -e "keycode 162 = XF86AudioPlay"
xmodmap -e "keycode 164 = XF86AudioStop"
xmodmap -e "keycode 160 = XF86AudioMute"
xmodmap -e "keycode 174 = XF86AudioLowerVolume"
xmodmap -e "keycode 176 = XF86AudioRaiseVolume"
xmodmap -e "keycode 237 = XF86AudioMedia
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2004-04-08 16:43:22 UTC
Nevermind, further investigation has shown that xkb is broken in current xorg. Waiting on a patch.
Comment 6 Ziga Boehm 2004-04-10 06:06:28 UTC
is this it? http://bugzilla.gnome.org/show_bug.cgi?id=137438

libxklavier not able to handle "xorg" rules properly?
Comment 7 Donnie Berkholz (RETIRED) gentoo-dev 2004-04-10 09:27:33 UTC
That's one problem, I'm not sure whether it's the only one.
Comment 8 Roman Kreisel 2004-04-11 02:15:06 UTC
I just wanted to confirm, that there is a problem with xkb: Since i upgraded to X.Org, my Windows-Keys don't work anymore. And it looks like i'm not the only one with this problem. Another Person i met in IRC has the same problem.
Comment 9 motown 2004-04-12 14:45:24 UTC
It's worse for me.

When using the GNOME (2.6) environment, the applications don't even receive any keyboard input AT ALL! I do see the active window flickering (an obvious refresh drawing) everytime I type something, but nothing appears in the test box I'm typing in. Mouse works okay.

Non-session-specific stuff (CTRL/ALT/+ to switch screen resolution, and CTRL/ALT/BACKSPACE to kill the X Server) continue to work, though.

Also, other window managers apparently don't mind the XKB issues. I've tried twm and XFCE-4 so far, and they both work fine. Even GNOME apps launched from these environments work okay.
Comment 10 Donnie Berkholz (RETIRED) gentoo-dev 2004-04-12 14:53:02 UTC
Try upgrading libxklavier to 1.01, just copy the ebuild for 1.00 over.

Make sure `xdpyinfo | grep vendor` returns something containing "The X.Org Foundation", not "X.Org X11" -- if not, remerge xorg-x11.
Comment 11 Andreas Kotowicz 2004-04-13 13:16:23 UTC
upgrading libxklavier to 1.01 didn't help. i'm now recompiling xorg-x11 to see if it helps
Comment 12 Andreas Kotowicz 2004-04-13 14:03:54 UTC
after recompiling xorg-x11, "xdpyinfo | grep vendor" returns now "The X.Org Foundation", but gnome still starts with this error message:

Error activating XKB configuration.
Probably internal X server problem.

X server version data:
Gentoo Linux (The X.Org Foundation 6.7.0, revision r0-0.5)
60700000

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
Comment 13 Sanderfox 2004-04-14 08:26:00 UTC
I just saw version 1.02 of libxklavier is out on sourceforge (http://sourceforge.net/project/showfiles.php?group_id=319&package_id=49313).
Maybe that will help, cause remerging xorg-x11 didn't work for me either.
Comment 14 Sanderfox 2004-04-14 09:05:51 UTC
http://sourceforge.net/project/shownotes.php?release_id=230919

"Release Name: 1.02

Notes: Due to the high demand, libxklavier is now able to detect the default xkb rules set at runtime. The option --with-xkb-rules-set is not necessary any more. Sorry for bother:)"

Just for the info :)
Comment 15 Donnie Berkholz (RETIRED) gentoo-dev 2004-04-14 10:48:08 UTC
The new libxklavier solved xkb issues on another bug, I'd like you all to try it.
Comment 16 Sanderfox 2004-04-14 11:03:13 UTC
Version 1.02 of libxklavier didn't solve the problem for me :(
But I figured out my keyboard still workes as root, but not as a normal user. I'm still trying to figure out why...
Comment 17 Christopher Rude 2004-04-14 21:00:18 UTC
I can confirm that upgrading to Version 1.02 did not help me either.

Thanks dale for waking me up to the olden way of maping the keys ;). guess I got to used to things just working. ohh well

lol
Comment 18 Dale K Dicks 2004-04-15 05:56:07 UTC
upgrading to 1.02 does not work for me.

Also, from the /var/log/Xorg.0.log file

(**) Option "XkbRules" "xorg"
(**) XKB: rules: "xorg"
(==) Keyboard: CustomKeycode disabled
Comment 19 Sanderfox 2004-04-15 06:36:16 UTC
Dale, what does that mean ?
Comment 20 Dale K Dicks 2004-04-15 06:55:21 UTC
I dunno, I assume it means that xkbd is disabled for some reason.
I have also seen X.org errors that it can't find /usr/X11R6/lib/X11/xkb/rules when that directory plainly exists.
Comment 21 Sanderfox 2004-04-15 07:14:50 UTC
Hmmm.....ok
Comment 22 Christopher Rude 2004-04-15 18:28:03 UTC
I orriginaly thought that
(==) Keyboard: CustomKeycode disabled

was the problem, but then I looked at my last XFree log, and the same message appeared there as well.

I am not saying that it is *not* a problem, but that my keyboard was fully funcntional reciving that same message under xfree ;) as for what it is... i am clueless
Comment 23 Donnie Berkholz (RETIRED) gentoo-dev 2004-04-19 11:07:41 UTC
Try removing the line containing 'Options "XkbRules"' from your configuration file. See http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=120932.
Comment 24 Roc Vallès 2004-04-20 01:17:46 UTC
There's also this bug about "windows" keys not working with xorg, that may be related somehow:

http://bugs.gentoo.org/show_bug.cgi?id=34781
Comment 25 Roc Vallès 2004-04-20 02:51:21 UTC
Eek, that's what I meant:

http://bugs.gentoo.org/show_bug.cgi?id=48307
Comment 26 Dale K Dicks 2004-04-20 05:07:26 UTC
the WIndows keys work perfectly fine on my keryboard with X.org.

Comment 27 Paul de Vrieze (RETIRED) gentoo-dev 2004-04-26 06:14:33 UTC
Dale, does it also work as a modifier (like win-enter for the run-program dialog on kde)
Comment 28 Dale K Dicks 2004-04-26 06:19:56 UTC
Yes, it does work that way for me.

Comment 29 Donnie Berkholz (RETIRED) gentoo-dev 2004-06-08 00:22:51 UTC
Please try the latest xorg-x11.

`xdpyinfo | grep vendor` should return "vendor string:    Gentoo Linux (The X.Org Foundation 6.7.0, revision r0-1.0)"

The "-1.0" on the end is what you're looking for.

grep PATCH_VER /path/to/ebuild should also return 1.0.
Comment 30 Dale K Dicks 2004-06-11 15:16:16 UTC
I emerged the 6.7.0-r1 - xkbd still does not map the keys:

(**) Option "XkbSymbols" "logiink"
(**) XKB: symbols: "logiink"
(**) Option "XkbRules" "xorg"
(**) XKB: rules: "xorg"
(**) Option "XkbModel" "logiink"
(**) XKB: model: "logiink"
(**) Option "XkbLayout" "us"
(**) XKB: layout: "us"
(==) Keyboard: CustomKeycode disabled
Comment 31 George Antonopoulos 2004-06-24 06:35:27 UTC
I had the same problem when I upgraded to 6.7.0-r1.
I moved back to 6.7.0 and have "half" the problem.

Keyboard changes work on root but not as user.

Xorg Log for user
(II) Keyboard "Keyboard1" handled by legacy driver
(II) XINPUT: Adding extended input device "Mouse1" (type: MOUSE)
(EE) Couldn't load XKB keymap, falling back to pre-XKB keymap
(II) Server_Terminate keybinding not found
(II) Mouse1: ps2EnableDataReporting: succeeded

Xorg log for root
(II) Keyboard "Keyboard1" handled by legacy driver
(II) XINPUT: Adding extended input device "Mouse1" (type: MOUSE)
(II) Mouse1: ps2EnableDataReporting: succeeded
(i.e no error)

libxklavier didnt to the trick.
Comment 32 PhilGunnm 2004-07-11 04:34:58 UTC
Just copy /usr/X11R6/bin/xkbcomp to /usr/X11R6/lib/X11/xkb/xkbcomp and it works!
No more error message or keys not working!

Seems to be an error in the location of xkbcomp...
Comment 33 Peter Ruskin 2004-07-29 13:32:15 UTC
Well, I've just had a second try at xorg-x11-6.7.0-r2 and keyboard support is still terrible.  With xfree I always map my own keymappings with xmodmap when X starts.  This doesn't work at all.  `xmodmap -pke` gives the correct console output but the AltGr and Shift-AltGr combinations I actually get are different and can't be saved in a text document unless I set encoding to UTF-8.  I want to use ISO9995-15.

I've tried adding "Option "XkbCompat" "basic+pc+iso9995" to xorg.conf's keyboard section but it doesn't seem to have any effect.

I'll attach my Xmodmap file so you can see what I'm trying to do.  I built xfree and xorg-x11 packages so I'm going back to xfree now until this mess gets cleaned up.
Comment 34 Peter Ruskin 2004-07-29 14:13:13 UTC
Created attachment 36417 [details]
XFree's output (UTF-8) to view

Using Xmodmap, file typed and saved when running XFree-4.3.0-r6
Comment 35 Peter Ruskin 2004-07-29 14:16:43 UTC
Created attachment 36418 [details]
xorg-x11's output (UTF-8 to view)

Typed and saved in xorg-x11-6.7.0-r2 using same Xmodmap
Comment 36 Donnie Berkholz (RETIRED) gentoo-dev 2004-07-29 14:18:28 UTC
It would be greatly appreciated if one of you would step up and try to fix whatever issues there are here. I simply don't have enough time to get to it right now. If anyone does post fixes, I can look at them and get them in.
Comment 37 g_os 2004-07-31 03:53:04 UTC
Hi,

I have 2 xkbcomp in my PC, but one has a size of 0 :-(

localhost X11 # ll /usr/X11R6/bin/xkbcomp 
 -rwxr-xr-x 1 root root 196188 Jul 13 00:31 /usr/X11R6/bin/xkbcomp 
 localhost X11 # ll /usr/X11R6/lib/X11/xkb/xkbcomp 
 -rwxr-xr-x 1 root root 0 Jul 10 12:35 /usr/X11R6/lib/X11/xkb/xkbcomp 

Strange ... so I copy it and now it works fine ... 

I upgrade from and Xfree install.

G_os
Comment 38 Peter Ruskin 2004-08-16 11:45:40 UTC
I found a way around my xorg-x11 xmodmap problems.
  
Both xorg and xfree bind Mode_switch to AltGr by default.  However, when you use xmodmap with xorg it loses that binding somehow and AltGr becomes just another Alt key (Alt_R).

The workaround is to add this line to .Xmodmap:
keycode 113 = Mode_switch Mode_switch

XFree doesn't need this as it keeps the Mode_switch binding, but with this change to .Xmodmap it works in both xorg and xfree, so my problem is solved.  I have now abandoned my custom /usr/X11R6/lib/X11/xkb/symbols/pc/gb settings, which was fun to do but dangerous as I didn't really know what I was doing.
Comment 39 Donnie Berkholz (RETIRED) gentoo-dev 2004-08-23 22:53:44 UTC
Why don't y'all try out 6.7.99.902? Remember to `quickpkg xorg-x11` beforehand so you can save a binary to downgrade to, if you want.
Comment 40 Peter Ruskin 2004-08-24 02:33:24 UTC
I did try 6.7.99.902 but after a while <Ctrl-Alt-F#> stopped working.
Comment 41 Elan Ruusamäe 2004-09-12 12:37:48 UTC
regarding Comment #37,
i had similiar issue, i wasn't able to use keyboard switcher in kde
and xorg dropped errors:
(EE) Couldn't open compiled keymap file /var/tmp/server-0.xkm

i also upgraded from xfree (emrge xorgs said sth previous xfree installation detected) and i had this 0 byte file. perhaps should open new bug for it?


# l /usr/X11R6/bin/xkbcomp
-rwxr-xr-x  1 root root 181K Sep 11 01:26 /usr/X11R6/bin/xkbcomp*
# l /usr/X11R6/lib/X11/xkb/xkbcomp
-rwxr-xr-x  1 root root 0 Sep 11 03:17 /usr/X11R6/lib/X11/xkb/xkbcomp*
# cp /usr/X11R6/bin/xkbcomp /usr/X11R6/lib/X11/xkb/xkbcomp
cp: overwrite `/usr/X11R6/lib/X11/xkb/xkbcomp'? y

---> kxkb works fine now!
Comment 42 Steven Hay 2004-10-26 18:19:47 UTC
Poster #37:

I'm running Xorg.6.7.0 (most recent) and libxklavier 1.0.3, Gnome 2.8.
My /etc/xorg.conf does not specify XkbRules, consistent with <a href="http://freedesktop.org/bugzilla/show_bug.cgi?id=472"> Xorg Bug 472 </a>.

I'm pc104 us.

I have the same problem; Gnome gives me an xkb error and xorg poops some stuff to the logs.  Also,

localhost X11 # ls -l /usr/X11R6/bin/xkbcomp
-rwxr-xr-x  1 root root 175772 Oct 24 01:42 /usr/X11R6/bin/xkbcomp

localhost X11 # ls -l /usr/X11R6/lib/X11/xkb/xkbcomp
-rwxr-xr-x  1 root root 0 Oct 24 01:42 /usr/X11R6/lib/X11/xkb/xkbcomp

I am going to fix with:

rm /usr/X11R6/lib/X11/xkb/xkbcomp
ln -s /usr/X11R6/bin/xkbcomp /usr/X11R6/lib/X11/xkb/xkbcomp

Here is grep \(EE\) /var/log/Xorg.0.log

(EE) Couldn't open compiled keymap file /usr/X11R6/lib/X11/xkb/compiled/server-0.xkm
(EE) Couldn't load XKB keymap, falling back to pre-XKB keymap
(EE) Couldn't open compiled keymap file /usr/X11R6/lib/X11/xkb/compiled/server-0.xkm

We'll see if the change above fixed the problem.
Comment 43 Steven Hay 2004-10-26 18:25:56 UTC
The above fixed the problem for me.

Open question:

Where is this file supposed to be?

Workaround:
Create the above symlink.  The symlink would either remain undisturbed or be overwritten by a newer version of xkbcomp.
Comment 44 Steven Hay 2004-10-26 19:56:01 UTC
Created attachment 42657 [details]
Simple symlink creation script.

This Bash script tries to fix the 0 sized xkbcomp.  Review it before running
for sanity checks.  I'm new to bash.
Comment 45 Donnie Berkholz (RETIRED) gentoo-dev 2004-10-27 11:25:03 UTC
Still have this problem on 6.8.0-r1? I just freshly installed, and here's mine:
-rwxr-xr-x  1 root root 179804 Oct 27 09:49 /usr/X11R6/lib/X11/xkb/xkbcomp
Comment 46 Steven Hay 2004-10-27 15:36:30 UTC
I am not still having the problem because I used the workaround above, however I was using -r1 when I had the problem.

Comment 47 Donnie Berkholz (RETIRED) gentoo-dev 2004-11-23 08:48:34 UTC
*** Bug 63795 has been marked as a duplicate of this bug. ***
Comment 48 Donnie Berkholz (RETIRED) gentoo-dev 2004-11-24 14:24:36 UTC
Does everyone with this 0-byte xkbcomp use dispatch-conf? Please say so if you do. That makes at least part of the bug a duplicate of bug #41743.
Comment 49 Donnie Berkholz (RETIRED) gentoo-dev 2004-11-24 14:25:08 UTC
*** Bug 71709 has been marked as a duplicate of this bug. ***
Comment 50 Gustavo Ribeiro Alves 2004-11-24 15:57:39 UTC
I have the bug and use dispatch-conf.But my xkbcomp is not 0 bytes, they have different sizes thought.



ls -la /usr/X11R6/bin/xkbcomp /usr/X11R6/lib/X11/xkb/xkbcomp
-rwxr-xr-x  1 root root 200284 Nov 18 04:57 /usr/X11R6/bin/xkbcomp
-rwxr-xr-x  1 root root 210792 Nov 18 10:50 /usr/X11R6/lib/X11/xkb/xkbcomp
Comment 51 Paul Varner (RETIRED) gentoo-dev 2004-11-24 16:12:40 UTC
Yes, and here is the partial output of ls -l  /etc/config-archive/usr/X11R6/lib/X11/xkb

-rwxr-xr-x  1 root root      0 Sep 13 20:46 xkbcomp
-rwxr-xr-x  1 root root 171612 Jun 15 14:59 xkbcomp.1
-rwxr-xr-x  1 root root 171560 May 18  2004 xkbcomp.2
-rwxr-xr-x  1 root root 171648 Nov 18 14:20 xkbcomp.dist
Comment 52 schaedpq 2004-11-26 11:30:40 UTC
I am using xorg-x11-6.8.0-r2 and had also the xkb problem (and the 0-byte xkbcomp), mainly AltGr not working... Xorg.log showed:
(EE) Couldn't open compiled keymap file /usr/X11R6/lib/X11/xkb/compiled/server-0.xkm
(EE) Couldn't load XKB keymap, falling back to pre-XKB keymap

After symlinking /usr/X11R6/lib/X11/xkb/xkbcomp to /usr/X11R6/bin/xkbcomp as suggested in comment 42 everything worked fine again. I am using dispatch-conf, so it really seems to be a dispatch-conf problem. 
Comment 53 Donnie Berkholz (RETIRED) gentoo-dev 2004-11-26 11:33:54 UTC
I'm considering this a duplicate of bug #41743 because many of the reports were of the 0-byte xkbcomp.

Anyone with a different problem, please file a new bug. A single bug report is for a single bug, not multiple ones.

Thanks!

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