|
|

楼主 |
发表于 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 |
|