LinuxSir.cn,穿越时空的Linuxsir!

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

不能用Alt+Ctrl+Fx来切换控制台了。。

[复制链接]
发表于 2007-9-18 15:55:22 | 显示全部楼层 |阅读模式
在新的机子上装了个arch,发现不能用快捷键切换到控制台。

原来我xorg.conf里面的switch VT的选项我记得是打开了的。
现在用nvidia-xconfig重新生成了一次还是不行。

不知道是什么程序获取了 Ctrl + Alt还是什么其他的原因。

我用了xbindkeys,用不用都不能切换控制台的。

下面附上我的xorg.conf


  1. Section "ServerLayout"
  2.     Identifier     "Simple Layout"
  3.     Screen         "Screen 1" 0 0
  4.     InputDevice    "Mouse1" "CorePointer"
  5.     InputDevice    "Keyboard1" "CoreKeyboard"
  6. EndSection

  7. Section "Module"
  8.     Load           "dbe"          # Double buffer extension
  9.     SubSection     "extmod"
  10.         Option         "omit xfree86-dga"   # don't initialise the DGA extension
  11.     EndSubSection
  12.     Load           "freetype"
  13.     Load           "glx"
  14. EndSection

  15. Section "InputDevice"
  16.     Identifier     "Keyboard1"
  17.     Driver         "kbd"
  18.     Option         "AutoRepeat" "500 30"
  19.     Option         "XkbRules" "xorg"
  20.     Option         "XkbModel" "pc101"
  21.     Option         "XkbLayout" "us"
  22.     Option         "XkbVariant" "us_keyboard"
  23. EndSection

  24. Section "InputDevice"
  25.     Identifier     "Mouse1"
  26.     Driver         "mouse"
  27.     Option         "Protocol" "IMPS/2"        # PS/2 Mouse
  28.     Option         "Device" "/dev/psaux"
  29.     Option         "ZAxisMapping" "4 5 6 7"
  30.     Option         "Emulate3Buttons"
  31. EndSection

  32. Section "Monitor"
  33.     Identifier     "samsung-lcd"
  34.     HorizSync       31.5 - 80.0
  35.     VertRefresh     50.0 - 100.0
  36. EndSection

  37. Section "Device"
  38.     Identifier     "Standard VGA"
  39.     Driver         "nvidia"
  40.     VendorName     "Unknown"
  41.     BoardName      "Unknown"
  42. EndSection

  43. Section "Screen"
  44.     Identifier     "Screen 1"
  45.     Device         "Standard VGA"
  46.     Monitor        "samsung-lcd"
  47.     DefaultDepth    24
  48.     SubSection     "Display"
  49.         Viewport    0 0
  50.         Depth       8
  51.         Modes      "1280x1024" "1024x768" "800x600" "640x480"
  52.     EndSubSection
  53.     SubSection     "Display"
  54.         Viewport    0 0
  55.         Depth       16
  56.         Modes      "1280x1024" "1024x768" "800x600" "640x480"
  57.     EndSubSection
  58.     SubSection     "Display"
  59.         Viewport    0 0
  60.         Depth       24
  61.         Modes      "1280x1024" "1024x768" "800x600" "640x480"
  62.     EndSubSection
  63. EndSection

复制代码


arch 0.8, xorg7.0, sampron 2200+.
发表于 2007-9-18 16:34:46 | 显示全部楼层
从google搜到的解决办法:在grub界面按e键编辑Archlinux这个启动选项,在kernel一行的最后面加上 linux single(“linux”前面留一个空格)回车后,选择加了这两个单词的启动选项(默认就是选中这个的,别改动)之后按B键启动,就可以直接进入命令行界面了,输入root密码后,nano /etc/X11/xorg.conf...解决...。
回复 支持 反对

使用道具 举报

发表于 2007-9-18 17:11:48 | 显示全部楼层
我安装ArchLinux后也是如此。现在的xorg.conf:


  1. ......
  2. Section "InputDevice"
  3.         Identifier  "Keyboard0"
  4.         Driver      "keyboard"
  5.         Option      "XkbModel" "pc105"
  6.         Option            "XkbLayout" [color=red]"en_US"[/color]
  7.         Option      "XkbVariant" "nodeadkeys"
  8. EndSection
  9. ......
复制代码


注意红色部分。未知是否对你有用?
IBM X31
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-9-18 18:45:14 | 显示全部楼层
真是en_US的问题,本来我的layout是"us"

谢谢拉!
回复 支持 反对

使用道具 举报

发表于 2007-9-19 12:29:37 | 显示全部楼层
Option      "XkbVariant" "nodeadkeys"

应该是这个问题吧。。。我的也是us
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-9-19 16:11:34 | 显示全部楼层
我没改成"nodeadkeys"阿。。。
回复 支持 反对

使用道具 举报

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

本版积分规则

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