LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 806|回复: 2

[求助] xorg.conf 设定键盘 layout 无效

[复制链接]
发表于 2009-8-17 06:24:06 | 显示全部楼层 |阅读模式
我现在使用的是 德文 的键盘, xorg.conf 相关设置如下:

Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen         "Screen0"
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection


Section "InputDevice"
        Identifier        "Keyboard0"
        Driver                "kbd"
        Option "XkbRules"        "xorg"
        Option "XkbModel"        "pc105"
        Option "XkbLayout"        "de"
        Option "XkbVariant"        "nodeadkeys"
EndSection

xorg.conf 里面的内容都是根据官方的 handbook 配置的, 而且反复核对多次, 不会有拼写错误. 但是在 xwindows 下面依然是英文的布局.

另外, 我在 /etc/conf.d/keymaps下设置了终端中的键盘布局是有效的.

以前因为有 gnome, 可以 gnome 的 面板中重新设定, 所以当时也没管. 现在先 gnome 笨重, 现在在纯的 sawfish WM 下, 这个问题不得不解决.
发表于 2009-8-17 08:42:00 | 显示全部楼层
西班牙语的给你参考。其中后面的

  1. Option "AllowEmptyInput" "False"   
  2. Option "AutoAddDevices" "False"
复制代码

这两点也是必须。



  1. Section "InputDevice"
  2.         Identifier  "Keyboard0"
  3.         Driver "kbd"
  4.         Option "XkbLayout"   "us,es"
  5.         #Option "XkbVariant"  "nodeadkeys"
  6.         Option "XkbOptions"  "grp:alt_shift_toggle,grp_led:scroll"
  7. EndSection

  8. Section "ServerFlags"
  9.        Option "AllowEmptyInput" "False"
  10.        Option "AutoAddDevices" "False"
  11. EndSection

  12. Section "Extensions"
  13.                 Option "Composite" "Enable"
  14. EndSection

  15. Section "DRI"
  16.             Mode 0666
  17. EndSection
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-8-17 19:47:29 | 显示全部楼层
Post by cliffordli;2017111
西班牙语的给你参考。其中后面的

  1. Option "AllowEmptyInput" "False"   
  2. Option "AutoAddDevices" "False"
复制代码

这两点也是必须。



  1. Section "InputDevice"
  2.         Identifier  "Keyboard0"
  3.         Driver "kbd"
  4.         Option "XkbLayout"   "us,es"
  5.         #Option "XkbVariant"  "nodeadkeys"
  6.         Option "XkbOptions"  "grp:alt_shift_toggle,grp_led:scroll"
  7. EndSection

  8. Section "ServerFlags"
  9.        Option "AllowEmptyInput" "False"
  10.        Option "AutoAddDevices" "False"
  11. EndSection

  12. Section "Extensions"
  13.                 Option "Composite" "Enable"
  14. EndSection

  15. Section "DRI"
  16.             Mode 0666
  17. EndSection
复制代码


it works, thank you VERY much!!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表