LinuxSir.cn,穿越时空的Linuxsir!

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

请教:xorg 的配置问题--- startx起动不起来(关于鼠标的问题)

[复制链接]
发表于 2005-3-31 19:37:16 | 显示全部楼层 |阅读模式
:help
我按照The X Server Configuration HOWTO的文档安装完xorg,用下列命令:
# emerge xorg-x11
# env-update
# source /etc/profile
#startx
出现错误
fatal IO error
如附件的图。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2005-3-31 20:11:23 | 显示全部楼层
重新xorgconfig一下
回复 支持 反对

使用道具 举报

发表于 2005-3-31 20:32:12 | 显示全部楼层
鼠标配置的问题。
什么鼠标。。试试用
/dev/input/mice
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-1 10:05:09 | 显示全部楼层
鼠标是PS2的.
yanu兄,你说用/dev/input/mice ,我不了解,你能说具体一些吗?3q
回复 支持 反对

使用道具 举报

发表于 2005-4-1 10:19:37 | 显示全部楼层
在/etc/X11/xorg.conf文件中找
Core pointer's inputdevice section ,
把Option "Device" 这一行内容写为:
Option "Device" /dev/input/mice
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-1 10:45:41 | 显示全部楼层
我试了一下,成功了,谢谢neplusultra兄。
我又找了一下资料。如下:
X11 config file should now use /dev/input/mice for PS/2 and USB mice

One of the changes that a default udev configuration introduces is different organisation of the mouse device nodes. Previously, you would have had nodes such as /dev/psaux and /dev/mouse. You will now have nodes such as /dev/input/mouse0, /dev/input/mouse1, and a collective /dev/input/mice node which combines movements from all mice.

Since the old X configurations typically reference /dev/mouse or /dev/psaux then you may get an error similar to the one shown below when you attempt to start X11:

Code Listing 4.3: Common error when starting X on a udev system for the first time

(EE) xf86OpenSerial: Cannot open device /dev/mouse
        No such file or directory.
(EE) Mouse0: cannot open input device
(EE) PreInit failed for input device "Mouse0"
No core pointer

To correct this, open your X11 config in a text editor, and update the mouse InputDevice section to use the /dev/input/mice device. An example is shown below:

Code Listing 4.4: Opening your X11 config file

# nano -w /etc/X11/xorg.conf

Note: If you are still using XFree86, your config file will be /etc/X11/XF86Config

Code Listing 4.5: Sample mouse InputDevice section

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "rotocol" "auto"
        Option      "Device" "/dev/input/mice"
EndSection

Note: If you are using a serial mouse, the new device path will be /dev/tts/0 instead of /dev/ttyS0.
文件链接:http://www.gentoo.org/doc/en/migration-to-2.6.xml
回复 支持 反对

使用道具 举报

发表于 2005-4-1 10:57:06 | 显示全部楼层
我也刚刚安装完Gentoo
有个经验与你分享一下
就是按照安装说明中大安装hotplug, 这样到后边鼠标支持滚轮会又问题
应该把hotplug换成coldplug. 然后Xorg.conf中设置为
Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option            "rotocol" "IMPS/2"
        Option            "Device" "/dev/mouse"
        Option            "ZAxisMapping" "4 5"
        Option      "Emulate3Buttons" "no"
        Option      "Buttons" "5"
EndSection
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-1 11:03:35 | 显示全部楼层
先谢了,到时候我可要省了好多麻烦了。
第一次用gentoo,感受了用其它Linux版本所没有的乐趣。
回复 支持 反对

使用道具 举报

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

本版积分规则

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