|
发表于 2003-6-19 23:06:44
|
显示全部楼层
用gentoo的方法应该可以,注意要选择hid
The first thing that has to be done is the installation of the kernel modules. The modules that will be needed for a USB mouse to work are usbmouse, mousedev, hid, usbcore, usb-uhci, and input. After the necessary kernel configuration is done, insmod the modules.
Note: Use either usbmouse OR hid. If you install both, mouse will stop working.
Note: When configuring the Input Core support for the mouse, make sure to enter the screen resolution that you will be using in X. This makes the scaling all pretty and correct.
Now, unplug the mouse, and plug it back in, and check your kernel log for a message that looks something like this
Code listing 2.6: Kernel Message
hub.c: USB new device connect on bus1/1, assigned device number 2
input0,hiddev0: USB HID v1.00 Mouse [Microsoft Microsoft IntelliMouse Optical] on usb1:2.0
Now that the mouse is detected, check /dev/input to make sure that your mouse is there and working.
Code listing 2.7: Checking for USB Mouse
# cd /dev/input
# cat mice
Move your mouse when you cat the device, you should see a lot
of garbage.
Once the mouse is properly detected and installed, now we have to tell X to use the USB mouse. All that is required here is a slight change to what device X uses for the mouse.
Section "InputDevice"
# Identifier and driver
Identifier "Mouse1"
Driver "mouse"
Option " rotocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5" |
|