LinuxSir.cn,穿越时空的Linuxsir!

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

启动完X后键盘和鼠标都没响应

[复制链接]
发表于 2009-9-2 10:25:12 | 显示全部楼层 |阅读模式
我的键盘鼠标都是USB接口的,昨天重新编译了内核(2.6.25),把所有与HID相关,keyboard相关的都直接编译进内核,可是启动X之后,还是没有响应。
键盘的number等灯都不能控制了。

在xorg.conf的相关配置中试过修改inputdevice
/dev/input/mice
/dev/input/mouse0
都不起作用。

键盘的驱动试过把kdb改成其它新编译的如xtkbd
还是不起作用。

大家觉得问题出在哪里?

※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
问题已经解决
重点参照了这里的xorg 1.5 升级向导
http://www.gentoo.org/proj/zh_cn ... 5-upgrade-guide.xml

我的机器问题是出在hald上,之前编译xorg-server时,参数的选择已经是对的,不过没有将USE添加到make.conf文件中。
在一步步按照升级向导进行的时候,才发现:
运行
/etc/init.d/hald start
之后,右侧显示 !!
表明服务没有启动。
将其重新编译后,键盘和鼠标都恢复正常。
发表于 2009-9-2 12:13:18 | 显示全部楼层
老问题了,看看这个对你可有帮助?
http://www.linuxsir.cn/bbs/thread351668.html
回复 支持 反对

使用道具 举报

发表于 2009-9-2 12:27:17 | 显示全部楼层
我的配置你看看

  1. //etc/X11/xorg.conf
  2. ------------------------------------------------------------------------------------
  3. Section "ServerLayout"
  4.     Identifier     "X.org Configured"
  5.     Screen      0  "Screen0" 0 0
  6. EndSection

  7. Section "Files"
  8.     ModulePath   "/usr/lib/xorg/modules"
  9.     FontPath     "/usr/share/fonts/misc/"
  10.     FontPath     "/usr/share/fonts/TTF/"
  11.     FontPath     "/usr/share/fonts/OTF"
  12.     FontPath     "/usr/share/fonts/Type1/"
  13.     FontPath     "/usr/share/fonts/100dpi/"
  14.     FontPath     "/usr/share/fonts/75dpi/"
  15. EndSection

  16. Section "Module"
  17.     Load  "glx"
  18.     Load  "extmod"
  19.     Load  "xtrap"
  20.     Load  "record"
  21.     Load  "GLcore"
  22.     Load  "dbe"
  23.     Load  "dri"
  24. EndSection

  25. Section "Monitor"
  26.     Identifier   "Monitor0"
  27.     VendorName   "LCD"
  28.     ModelName    "58eb"
  29.     Option         "DPMS"
  30.     HorizSync     49.68-83.46
  31.     VertRefresh   60.0-60.0
  32.     Modeline     "1280x800_60.0" 83.46 1280 1344 1480 1680 800 801 804 828 -HSync +Vsync
  33. EndSection

  34. Section "Device"
  35.     Identifier  "Card0"
  36.     Driver      "intel"
  37.     VendorName  "Intel Corporation"
  38.     BoardName   "Mobile Integrated Graphics Controller"
  39.     BusID       "PCI:0:2:0"
  40.     Option        "XAANoOffscreenPixmaps" "true"
  41.     Option        "DRI" "true"
  42. EndSection

  43. Section "Screen"
  44.     Identifier "Screen0"
  45.     Device     "Card0"
  46.     Monitor    "Monitor0"
  47.     DefaultDepth 24
  48.     Option       "AddARGBGLXVisuals" "true"
  49.     SubSection "Display"
  50.         Viewport   0 0
  51.         Depth     24
  52.         Modes "1280x800"
  53.     EndSubSection
  54. EndSection

  55. Section "DRI"
  56.     Mode 0666
  57. EndSection

  58. section "Extensions"
  59.     Option "Composite" "Enable"
  60. Endsection

复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-9-2 14:44:40 | 显示全部楼层
回复3楼
你的配置文件里怎么没有键盘鼠标相关的内容?
回复 支持 反对

使用道具 举报

发表于 2009-9-2 15:08:00 | 显示全部楼层
新版的xorg-server编译的时候USE标记要加上hal。在make.conf里设置INPUT_DEVICES="evdev"。重新编译xorg-server以后有hal了。之后,rc-update add hald default。最后,把xorg.conf里面关于的keyborad 和mouse字段都删除,为以防万一也可以只注释掉。

重启就可以了。
回复 支持 反对

使用道具 举报

发表于 2009-9-2 15:13:57 | 显示全部楼层
估计还是跟内核的选项有关系,我记得我之前也是USB的鼠标用不了,后来有人提醒发现内核有个选项没选。
xorg-server1.5之后好像不需要inputdevice 那些字段,都是由udev来的。印象中好像是这样
回复 支持 反对

使用道具 举报

发表于 2009-9-2 17:57:43 | 显示全部楼层
天哪,怎麼總有人問這個問題。上面的FAQ不是顯得那么不著眼吧?或者覺得那個FAQ很久沒有更新?可是我才更新的……
回复 支持 反对

使用道具 举报

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

本版积分规则

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