- 论坛徽章:
- 1
|
各位大哥,求教在linux下怎样配置usb鼠标!
http://rtfm.dyndns.info/tips/2002/02/01/44.shtml
============================================
Setting Up a USB Mouse in Linux
Norman Jordan
February 1, 2002 Hardware/ Input Devices
Applies to Linux
You can use USB devices in Linux with 2.4.x kernels, or with a 2.2 kernel that is at least 2.2.18.
You will need the following kernel modules
usbcore
usb-ohci or usb-uhci or uhci
hid
mousedev
Find out which module you need for your USB interface. You choices are usb-ohci, usb-uhci or uhci.
Try loading each module with the command"modprobe [module name]".
If you get some error messages, then you didn't load the correct module, so try a different one.
Now that you have the correct USB interface driver installed, load the modules hid and mousedev.
modprobe hid
modprobe mousedev
Now that you know what modules you need, you should update the file"/etc/modules" or"/etc/modules.conf" or"/etc/conf.modules", depending on which distribution you have.
By updating the necessary file, the modules will be loaded automatically when you boot up.
Now you may need to add an entry to /dev for the new mouse.
If you don't have the directory"/dev/input", then create it ("mkdir /dev/input" as root).
If you don't have the file"/dev/mice" then you will need to add the following.
Add the device"/dev/mice" with major number 13 and minor number 63.
mknod /dev/mice c 13 63
Now if you want to use the mouse with GPM, then you will need to run"gpmconfig" and set the mouse device to"/dev/input/mice" and set the type to" S/2".
If you want to use the mouse with X-Windows, then you will need to have the following lines in the mouse section of you XF86Config file.
Option" rotocol""ImPS/2"
Option"Device""/dev/mice"
If you have similar lines in the mouse section, as you should then just change them to match the above lines.
You will need to restart X-Windows for the changes to take effect.
Now you can use your USB mouse in Linux.
呵呵,purge为了容易看加了许多空格。 |
|