Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
X.org Keymap doesn't work
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
wizardofos
Apprentice
Apprentice


Joined: 20 Jul 2004
Posts: 201

PostPosted: Wed Jan 12, 2005 10:09 am    Post subject: X.org Keymap doesn't work Reply with quote

Hi

Since I upgraded X.org to 6.8.0-r3 my keymap doesn't work correctly anymore. My xorg.conf is 100% correct. I can use most of my keyboard, but some keys like the german mutation ae, ue and so on, don't work. the alt gr key for typing a pipe doesn't work either.

Maybe it gots something to do with this error in my Xorg.log?
Code:
(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


There are no files in /usr/X11R6/lib/X11/xkb/compiled/ ...

Greetings
Fabian Zeindl
Back to top
View user's profile Send private message
expat_iain
Guru
Guru


Joined: 09 Jan 2004
Posts: 361
Location: Malta GC

PostPosted: Wed Jan 12, 2005 10:59 am    Post subject: Reply with quote

Do you have anything under:
Code:
/usr/lib/X11/xkb/compiled

Seems to be the location for keymaps on my system.

Regs.

Iain.[/code]
Back to top
View user's profile Send private message
wizardofos
Apprentice
Apprentice


Joined: 20 Jul 2004
Posts: 201

PostPosted: Wed Jan 12, 2005 11:25 am    Post subject: Reply with quote

nope...
Back to top
View user's profile Send private message
expat_iain
Guru
Guru


Joined: 09 Jan 2004
Posts: 361
Location: Malta GC

PostPosted: Wed Jan 12, 2005 11:57 am    Post subject: Reply with quote

Information on how to setup a keymap here:
Code:
less /usr/lib/X11/xkb/README.config


Regs.

Iain.
Back to top
View user's profile Send private message
wizardofos
Apprentice
Apprentice


Joined: 20 Jul 2004
Posts: 201

PostPosted: Wed Jan 12, 2005 12:08 pm    Post subject: Reply with quote

Yes, but when I do setxkbmap it always says Error loading keyboard description. The /var/log/Xorg.0.log says the same:
(EE) Couldn't open compiled keymap file /usr/X11R6/lib/X11/xkb/compiled/server-0.xkm


Greetings
Fabian
Back to top
View user's profile Send private message
Triptol
Tux's lil' helper
Tux's lil' helper


Joined: 21 Feb 2004
Posts: 107

PostPosted: Sun Mar 06, 2005 10:50 am    Post subject: Solution? Reply with quote

Try this:
Code:
ls -al /usr/X11R6/lib/X11/xkb/xkbcomp

If that one is 0 bytes then do the following:
Code:
cp /usr/X11R6/bin/xkbcomp /usr/X11R6/lib/X11/xkb

Should fix your problem. (You can also symlink it, if you want to).
Back to top
View user's profile Send private message
Gogiel
Guru
Guru


Joined: 11 Nov 2004
Posts: 347

PostPosted: Sun Mar 06, 2005 12:47 pm    Post subject: Reply with quote

I had same problem and rm -rf /tmp resolved it ;)

if it doesnt help try:
Making keymap
Code:
 setxkbmap -rules xfree86 -model pc104 -layout /* your layput here */ -print > server-0

Compiling it (there'll be a lot of warnings, ignore them).
Code:
xkbcomp server-0

You should get a new file caled server-0.xkm

And now just move it:
cp -f server-0.xkm /usr/lib/X11/xkb/compiled/server-0.xkm
Back to top
View user's profile Send private message
Bigun
Veteran
Veteran


Joined: 21 Sep 2003
Posts: 1949

PostPosted: Tue Mar 08, 2005 6:00 pm    Post subject: Reply with quote

Contents of server-0
Code:

xkb_keymap {
        xkb_keycodes  { include "xfree86+aliases(qwerty)"       };
        xkb_types     { include "complete"      };
        xkb_compat    { include "complete"      };
        xkb_symbols   { include "pc/pc(pc104)+pc/us"    };
        xkb_geometry  { include "pc(pc104)"     };
};


And here is the output of compiling:

Code:

bigun@64lappy ~ $ xkbcomp server-0
syntax error: line 1 of complete
Error:            Error interpreting include file "complete"
                  Exiting
                  Abandoning keytypes file "(null)"


No file called server-0.xkm created.
_________________
Sadhu Sundar Singh - responding to Darwinian Evolution - "...but I am more interested in Divine Selection and survival of the unfit"
Back to top
View user's profile Send private message
Gogiel
Guru
Guru


Joined: 11 Nov 2004
Posts: 347

PostPosted: Wed Mar 09, 2005 8:15 am    Post subject: Reply with quote

bigun89 wrote:
Contents of server-0
Code:

xkb_keymap {
        xkb_keycodes  { include "xfree86+aliases(qwerty)"       };
        xkb_types     { include "complete"      };
        xkb_compat    { include "complete"      };
        xkb_symbols   { include "pc/pc(pc104)+pc/us"    };
        xkb_geometry  { include "pc(pc104)"     };
};


And here is the output of compiling:

Code:

bigun@64lappy ~ $ xkbcomp server-0
syntax error: line 1 of complete
Error:            Error interpreting include file "complete"
                  Exiting
                  Abandoning keytypes file "(null)"


No file called server-0.xkm created.

I tried to compile your keymap and it works ok. Try to do it as root.
Back to top
View user's profile Send private message
Bigun
Veteran
Veteran


Joined: 21 Sep 2003
Posts: 1949

PostPosted: Wed Mar 09, 2005 2:33 pm    Post subject: Reply with quote

Code:

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


Also, don't know if this has anything to do with it, but this error was repeated about a hundred times or so:

Code:

GetModeLine - scrn: 0 clock: 44900
GetModeLine - hdsp: 1024 hbeg: 1032 hend: 1208 httl: 1264
              vdsp: 768 vbeg: 768 vend: 776 vttl: 817 flags: 21

_________________
Sadhu Sundar Singh - responding to Darwinian Evolution - "...but I am more interested in Divine Selection and survival of the unfit"
Back to top
View user's profile Send private message
Gogiel
Guru
Guru


Joined: 11 Nov 2004
Posts: 347

PostPosted: Wed Mar 09, 2005 2:45 pm    Post subject: Reply with quote

bigun89 wrote:
Code:

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


Also, don't know if this has anything to do with it, but this error was repeated about a hundred times or so:

Code:

GetModeLine - scrn: 0 clock: 44900
GetModeLine - hdsp: 1024 hbeg: 1032 hend: 1208 httl: 1264
              vdsp: 768 vbeg: 768 vend: 776 vttl: 817 flags: 21

Give me your mail and i'll send compiled map to you.
Code:

gogiel@gogiel map $ ls -l server-0.xkm
-rw-r--r--  1 gogiel users 9036 mar  9 15:41 server-0.xkm // about 8 kb
Back to top
View user's profile Send private message
Bigun
Veteran
Veteran


Joined: 21 Sep 2003
Posts: 1949

PostPosted: Wed Mar 09, 2005 3:14 pm    Post subject: Reply with quote

Sure, if your compiled version works, I'll post a link to it from my site.
_________________
Sadhu Sundar Singh - responding to Darwinian Evolution - "...but I am more interested in Divine Selection and survival of the unfit"
Back to top
View user's profile Send private message
Mark Clegg
Apprentice
Apprentice


Joined: 05 Jan 2004
Posts: 269
Location: ZZ9 Plural Z Alpha

PostPosted: Sun Mar 20, 2005 6:48 pm    Post subject: Reply with quote

Just had the same problem after upgrading to 6.8.2-r1, checking the files showed that

/usr/X11R6/bin/xkbcomp
/usr/X11R6/lib/X11/xkb/xkbcomp

were different sizes and only one was an executable, the other was data!

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

fixed it in this case.
Back to top
View user's profile Send private message
Fauli
l33t
l33t


Joined: 24 Apr 2004
Posts: 760
Location: Moers, Germany

PostPosted: Sun Mar 20, 2005 9:46 pm    Post subject: Reply with quote

Actually the zero-length file /usr/X11R6/lib/X11/xkb/xkbcomp is caused by a bug in dispatch-conf.

See http://bugs.gentoo.org/show_bug.cgi?id=45385 and http://bugs.gentoo.org/show_bug.cgi?id=41743 how to fix it.
Back to top
View user's profile Send private message
bushwakko
Guru
Guru


Joined: 25 Mar 2003
Posts: 495

PostPosted: Wed Mar 23, 2005 12:11 pm    Post subject: Re: Solution? Reply with quote

Triptol wrote:
Try this:
Code:
ls -al /usr/X11R6/lib/X11/xkb/xkbcomp

If that one is 0 bytes then do the following:
Code:
cp /usr/X11R6/bin/xkbcomp /usr/X11R6/lib/X11/xkb

Should fix your problem. (You can also symlink it, if you want to).


this worked for me.
_________________
Macbook Pro 15"
Core 2 Duo 2,33ghz
2gb Ram
ATI Mobility x1600 256mb
Back to top
View user's profile Send private message
pallaert
n00b
n00b


Joined: 29 Apr 2005
Posts: 18

PostPosted: Fri Apr 21, 2006 2:47 pm    Post subject: Similar problems after moving to modular Xorg Reply with quote

I had very similar problem, but in my case, the only fix I found is to remove completely /usr/X11R6/lib/X11/xkb as /usr/share/X11/xkb/ also exists and conflicted with the old one.

xkbcomp was not able to compile the keymap unless I removed the problematic directory

See https://bugs.gentoo.org/show_bug.cgi?id=130590 and https://bugs.freedesktop.org/show_bug.cgi?id=6124
_________________
Patrick ALLAERT
Open Source Web Developer
http://patrickallaert.blogspot.com/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum