|
xorg 快捷键失效很有可能是 xkbmap 的问题
xorg 日志里面有错误如下
(EE) Error compiling keymap (server-0)
(EE) XKB: Couldn't compile keymap
尝试手工编译 keymap 也报错
[nihui@MagicLinux ~]$ setxkbmap -rules xfree86 -model pc105 -layout us -print
Couldn't find rules file (xfree86)
[nihui@MagicLinux ~]$ setxkbmap -rules xorg -model pc105 -layout us -print
Couldn't find rules file (xorg)
strace setxkbmap 显示程序试图在 /usr/lib/X11/xkb/rules/ 目录里面查找 rules 文件
而实际上,应该在 /usr/share/X11/xkb/rules/ 目录里面
open("./rules/evdev-C.lst", O_RDONLY) = -1 ENOENT (No such file or directory)
open("./rules/evdev.lst", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/X11/xkb/rules/evdev-C.lst", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/X11/xkb/rules/evdev.lst", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "Couldn't find rules file (evdev) "..., 34Couldn't find rules file (evdev)
) = 34
我就把 /usr/share/X11/xkb/ 向 /usr/lib/X11/ 做了个符号链接,使之可以找到 rules 文件。
注销,重启 x
哇,ctrl+alt+fn 能用了!!!
好吧,我说说我其实还干了别的事:删掉了 numlock numlockx 和 /etc/X11/xorg.conf、/etc/X11/XF86Config
final 前的大 bug 有希望解决喽~~
ps: 最近几天连续除 bug。。
[ 本帖最后由 nihui 于 2010-4-24 00:22 编辑 ] |
|