View previous topic :: View next topic |
Author |
Message |
akb Guru
Joined: 25 Jan 2003 Posts: 314 Location: Wolfenbüttel/Germany
|
Posted: Mon Apr 17, 2006 7:03 pm Post subject: x.org: Keyboard and charsets |
|
|
I hope theres someone who can help me with this.
I got several problems with my (modular x.org) keyboard and charset settings.
1. in gnome-terminal german umlauts cant be displayed, but in aterm they are displayed correctly.
2. with my normal user i cannot use the meta keys (left alt/alt gr) to get an AT or a pipe... but with root i can, quickly tested in gedit. and i didnt find any x related config file in my users homedir that could affect this.
3. last but not least my setxkbmap tool doesnt work. i found several possible solutions for this around here, but there is no one that could help me, it still doesnt work.
i know these infos are bit too marginal, but if you need further info, log or anything else to help me just ask dont have a clue what special infos to post atm... :-/ |
|
Back to top |
|
|
sno35 Guru
Joined: 15 May 2004 Posts: 334 Location: Paris, France
|
Posted: Tue Apr 18, 2006 12:04 pm Post subject: |
|
|
Hi
For
Quote: | 3. last but not least my setxkbmap tool doesnt work. i found several possible solutions for this around here, but there is no one that could help me, it still doesnt work. |
What do you mean by "doesnt work" ? setxkbmap fails and complains or just execute and the result is wrong to your expectations ?
May be the output from Code: | strace setxkbmap | grep 'open' | could help.[/quote]
For point 1 , I have same kind of problems. May be a font charset matter, or utf-8 "feature" or ...
Hth |
|
Back to top |
|
|
akb Guru
Joined: 25 Jan 2003 Posts: 314 Location: Wolfenbüttel/Germany
|
Posted: Tue Apr 18, 2006 3:23 pm Post subject: |
|
|
okay, heres some info about it:
Code: | acer ~ # setxkbmap -rules xorg -model 'pc105' -layout 'de' -v 10
Setting verbose level to 10
locale is C
Couldn't interpret _XKB_RULES_NAMES property
Use defaults: rules - 'xorg' model - 'pc101' layout - 'us'
Warning! Multiple definitions of rules file
Using command line, ignoring X server
Warning! Multiple definitions of keyboard model
Using command line, ignoring X server
Warning! Multiple definitions of keyboard layout
Using command line, ignoring X server
Applied rules from xorg:
model: pc105
layout: de
Trying to build keymap using the following components:
keycodes: xfree86+aliases(qwertz)
types: complete
compat: complete
symbols: pc(pc105)+de
geometry: pc(pc105)
Error loading new keyboard description |
and:
Code: | acer ~ # strace setxkbmap | grep 'open'
execve("/usr/bin/setxkbmap", ["setxkbmap"], [/* 35 vars */]) = 0
uname({sys="Linux", node="acer", ...}) = 0
brk(0) = 0x804d000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=53583, ...}) = 0
mmap2(NULL, 53583, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f39000
close(3) = 0
open("/usr/lib/libxkbfile.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\2600\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=135536, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f38000
mmap2(NULL, 138568, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7f16000
mmap2(0xb7f37000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x20) = 0xb7f37000
close(3) = 0
open("/usr/lib/libX11.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240J\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1004652, ...}) = 0
mmap2(NULL, 979380, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e26000
mmap2(0xb7f11000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xeb) = 0xb7f11000
mmap2(0xb7f15000, 436, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f15000
close(3) = 0
open("/lib/tls/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20P\1\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1210872, ...}) = 0
mmap2(NULL, 1154236, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7d0c000
mmap2(0xb7e20000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x113) = 0xb7e20000
mmap2(0xb7e24000, 7356, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7e24000
close(3) = 0
open("/usr/lib/libXau.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\n\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=8272, ...}) = 0
mmap2(NULL, 10496, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7d09000
mmap2(0xb7d0b000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb7d0b000
close(3) = 0
open("/usr/lib/libXdmcp.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000\17\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=19768, ...}) = 0
mmap2(NULL, 19988, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7d04000
mmap2(0xb7d07000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0xb7d07000
close(3) = 0
open("/lib/libdl.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\v\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=10484, ...}) = 0
mmap2(NULL, 12392, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7d00000
mmap2(0xb7d02000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb7d02000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7cff000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7cfe000
mprotect(0xb7e20000, 4096, PROT_READ) = 0
mprotect(0xb7f5c000, 4096, PROT_READ) = 0
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7cfe6c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
munmap(0xb7f39000, 53583) = 0
open("/dev/urandom", O_RDONLY) = 3
read(3, "\222\325G^", 4) = 4
close(3) = 0
brk(0) = 0x804d000
brk(0x806e000) = 0x806e000
uname({sys="Linux", node="acer", ...}) = 0
socket(PF_FILE, SOCK_STREAM, 0) = 3
uname({sys="Linux", node="acer", ...}) = 0
uname({sys="Linux", node="acer", ...}) = 0
connect(3, {sa_family=AF_FILE, path="/tmp/.X11-unix/X0"}, 19) = 0
uname({sys="Linux", node="acer", ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
access("/root/.xauthY777cK", R_OK) = 0
open("/root/.xauthY777cK", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0600, st_size=49, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7cde000
read(4, "\1\0\0\4acer\0\0010\0\22MIT-MAGIC-COOKIE-1\0"..., 131072) = 49
read(4, "", 131072) = 0
close(4) = 0
munmap(0xb7cde000, 131072) = 0
writev(3, [{"l\0\v\0\0\0\22\0\20\0\0\0", 12}, {"MIT-MAGIC-COOKIE-1", 18}, {"\0\0", 2}, {"\225\t\356B\1\201A\203\374n\360UQl\235[", 16}], 4) = 48
fcntl64(3, F_GETFL) = 0x2 (flags O_RDWR)
fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
read(3, "\1\0\v\0\0\0K\0", 8) = 8
read(3, "\200\35,\4\0\0 \2\377\377\37\0\0\1\0\0\24\0\377\377\1\7"..., 300) = 300
write(3, "7\0\5\0\0\0 \2R\0\0\0\10\0\0\0\377\377\377\0b\0\5\0\f\0"..., 64) = 64
read(3, "\1\0\2\0\0\0\0\0\1\205\0\0\24\0\0\0\30\0\0\0\26\0\0\0\300"..., 32) = 32
read(3, "\1\10\3\0\206\6\0\0\37\0\0\0\0\0\0\0\27\32\0\0\0\0\0\0"..., 32) = 32
readv(3, [{"*Box.background:\t#f7f7f7\n*Box.fo"..., 6679}, {"\0", 1}], 2) = 6680
write(3, "\205\0\1\0", 4) = 4
read(3, "\1\0\4\0\0\0\0\0\377\377?\0\4\0\0\0\0\0\0\0\26\0\0\0\300"..., 32) = 32
writev(3, [{"b\0\5\0\t\0 \2", 8}, {"XKEYBOARD", 9}, {"\0\0\0", 3}], 3) = 20
read(3, "\1\0\5\0\0\0\0\0\1\213W\224\24\0\0\0\0\0\0\0\26\0\0\0\300"..., 32) = 32
write(3, "\213\0\2\0\1\0\0\0", 8) = 8
read(3, "\1\1\6\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0XR~\10d{\32\10"..., 32) = 32
write(3, "\20\1\6\0\20\0\0\0_XKB_RULES_NAMES", 24) = 24
read(3, "\1\0\7\0\0\0\0\0\26\1\0\0\30\0\0\0\0\0\0\0\26\0\0\0\300"..., 32) = 32
write(3, "\24\0\6\0R\0\0\0\26\1\0\0\37\0\0\0\0\0\0\0\0\4\0\0", 24) = 24
read(3, "\1\0\10\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0"..., 32) = 32
fstat64(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f46000
open("./rules/xorg-C.lst", O_RDONLY) = -1 ENOENT (No such file or directory)
open("./rules/xorg.lst", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/X11/xkb/rules/xorg-C.lst", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/X11/xkb/rules/xorg.lst", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=19055, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7cde000
read(4, "! model\n pc101 Generi"..., 131072) = 19055
read(4, "", 131072) = 0
close(4) = 0
munmap(0xb7cde000, 131072) = 0
open("/usr/share/X11/xkb/rules/xorg-C", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/X11/xkb/rules/xorg", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=37324, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7cde000
read(4, "// $Xorg: xfree86,v 1.3 2000/08/"..., 131072) = 37324
brk(0x8098000) = 0x8098000
read(4, "", 131072) = 0
close(4) = 0
munmap(0xb7cde000, 131072) = 0
write(3, "\213\27\24\0\0\1\277\0\377\0\1\0\0\27xfree86+aliases(q"..., 80) = 80
read(3, 0xbfa5b5b0, 32) = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, -1) = 1
read(3, "\1\1\t\0\0\0\0\0\10\377\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 32) = 32
write(2, "Error loading new keyboard descr"..., 39Error loading new keyboard description
) = 39
write(1, "Couldn\'t interpret _XKB_RULES_NA"..., 104) = 104
munmap(0xb7f46000, 4096) = 0
exit_group(-5) = ?
Process 28478 detached
|
any ideas? |
|
Back to top |
|
|
sno35 Guru
Joined: 15 May 2004 Posts: 334 Location: Paris, France
|
Posted: Wed Apr 19, 2006 9:06 am Post subject: |
|
|
Sorry I have no solution for now.
And I gave you wrong command, but it could be a good thing after all :
Command should have been
Code: | strace setxkbmap -rules xorg -model 'pc105' -layout 'de' 2>&1 | grep open |
or as I've just learned to answer you :
Code: | strace -e trace=open -v setxkbmap -rules xorg -model 'pc105' -layout 'de' |
in order to get just the open lines.
But I collected that :
- you run your command as root. Avoid to do so would not harm.
- the problem seems to come from over the socket opened as FD=3.
Can you try things again, but as normal user this time ?
Hth |
|
Back to top |
|
|
akb Guru
Joined: 25 Jan 2003 Posts: 314 Location: Wolfenbüttel/Germany
|
Posted: Wed Apr 19, 2006 6:28 pm Post subject: |
|
|
hehe... nevermind. and shame on me, i just forgot to change back to my user, sorry
heres the trace
Code: | akb@acer ~ $ strace -e trace=open -v setxkbmap -rules xorg -model 'pc105' -layout 'de'
open("/etc/ld.so.cache", O_RDONLY) = 3
open("/usr/lib/libxkbfile.so.1", O_RDONLY) = 3
open("/usr/lib/libX11.so.6", O_RDONLY) = 3
open("/lib/tls/libc.so.6", O_RDONLY) = 3
open("/usr/lib/libXau.so.6", O_RDONLY) = 3
open("/usr/lib/libXdmcp.so.6", O_RDONLY) = 3
open("/lib/libdl.so.2", O_RDONLY) = 3
open("/dev/urandom", O_RDONLY) = 3
open("/home/akb/.Xauthority", O_RDONLY) = 4
Couldn't interpret _XKB_RULES_NAMES property
Use defaults: rules - 'xorg' model - 'pc101' layout - 'us'
open("./rules/xorg-C.lst", O_RDONLY) = -1 ENOENT (No such file or directory)
open("./rules/xorg.lst", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/X11/xkb/rules/xorg-C.lst", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/X11/xkb/rules/xorg.lst", O_RDONLY) = 4
open("/usr/share/X11/xkb/rules/xorg-C", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/X11/xkb/rules/xorg", O_RDONLY) = 4
Error loading new keyboard description
Process 15808 detached
|
and here the normal call of the app again
Code: | akb@acer ~ $ setxkbmap -rules xorg -model 'pc105' -layout 'de' -v 10
Setting verbose level to 10
locale is C
Couldn't interpret _XKB_RULES_NAMES property
Use defaults: rules - 'xorg' model - 'pc101' layout - 'us'
Warning! Multiple definitions of rules file
Using command line, ignoring X server
Warning! Multiple definitions of keyboard model
Using command line, ignoring X server
Warning! Multiple definitions of keyboard layout
Using command line, ignoring X server
Applied rules from xorg:
model: pc105
layout: de
Trying to build keymap using the following components:
keycodes: xfree86+aliases(qwertz)
types: complete
compat: complete
symbols: pc(pc105)+de
geometry: pc(pc105)
Error loading new keyboard description
|
seems that there are missing some files for the rules or something, right? so how can i get them back or which package do i have to remerge? xkeyboard-config i have merged several times now... that doesnt seem to be the right one. or is the problem with something else? |
|
Back to top |
|
|
sno35 Guru
Joined: 15 May 2004 Posts: 334 Location: Paris, France
|
Posted: Thu Apr 20, 2006 7:37 pm Post subject: |
|
|
Hi, sorry I have no clue.
In your first dump I recognize you had the rule files as I have (at list same location and same size).
The real loading of the keymapping is done by the X-server. So you may look at /var/log/Xorg.0.log.
Hth |
|
Back to top |
|
|
|
|
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
|
|