[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Changing from a PS/2 mouse to a USB mouse?



Yeah, the above post sounded right.  This worked for me:

USB Human Interface Device (HID) Configuration :
http://www.linux-usb.org/USB-guide/x194.html

Plug in a USB mouse and check that your mouse has been correctly sensed by the kernel. If you don't have a kernel message, look for the changes to /proc/bus/usb/devices.

mkdir /dev/input
mknod /dev/input/mice c 13 63

If you cat /dev/input/mice you should see some bizarre looking characters as you move the mouse or click any of the buttons.

You need to edit the XF86Config-4 file (usually /etc/X11/XF86Config-4).
If you are using XFree86 version 4.0 or later, add a InputDevice section that looks like the following:
Section "InputDevice"
    Identifier  "USB Mice"
    Driver      "mouse"
    Option      "Protocol"   "IMPS/2"
    Option      "Device"     "/dev/input/mice"
EndSection or, if you want to use a wheel mouse, something like:
Section "InputDevice"
    Identifier  "USB Mice"
    Driver      "mouse"
    Option      "Protocol"   "IMPS/2"
    Option      "Device"     "/dev/input/mice"
    Option      "ZAxisMapping"   "4 5"
    Option      "Buttons"        "5"
EndSection InputDevice "USB Mice" "CorePointer"


If you want to use both a USB mouse (or USB mice) and some other kind of pointer device, then add (do not replace) the following line to the applicable ServerLayout sections: InputDevice "USB Mice" "SendCoreEvents"

Restart the X server. If you don't have any mouse support at this point, remember that Ctrl-Alt-F1 will get you a virtual terminal that you can use to kill the xserver and start debugging from the error messages.

If you want to use the mouse under gpm, run (or kill and restart if it is already running) gpm with the following options.
gpm -m /dev/input/mice -t imps2

--
Jules Petroff
+6 (0)7 3350 8111
jpetroff@bigpond.net.au
http://users.bigpond.net.au/aptqld/matilda.html











Reply to: