USB Mouse on Debian

Not only did I have an old old mouse at work but it sported the really incredibly beautiful Microsoft logo. I asked for a new mouse, one of those with a little red light on the bottom 🙂 and I got one and it was of course what else: USB. So I decided to really use it as USB mouse instead of plugging it in via the PS/2 adapter that came with it.

Here’s a short description how I enabled the USB mouse on my debian.

1. You need a bunch of modules in the kernel for this to work. Most of these come from the USB subsystem:

[M] Support for USB [usbcore?]
-> [*] Preliminary USB device filesystem
-> [M] UHCI Alternate Driver (JE) support ([uhci] lsmod says unused)
-> [M] USB Human Interface Device (full HID) support [hid?]
-> [*] HID input layer support (whatever that is)
[*] Input core support -> Mouse support

2. You probably need some software but I am not sure I do, here’s the two things you might need:
– gpm
– hotplug (or usbmgr)

3. Re-configure your /etc/X11/XF86Config-4

Section “InputDevice”
Identifier “Mouse1”
Driver “mouse”
Option “SendCoreEvents” “true”
Option “Device” “/dev/input/mice”
Option “Protocol” “ImPS/2”
Option “Emulate3Buttons” “no”
Option “ZAxisMapping” “4 5”

Section “ServerLayout”
Identifier “Default Layout”
Screen “Default Screen”
InputDevice “Generic Keyboard”
InputDevice “Mouse1”

Don’t forget to add the InputDevice to the ServerLayout. Actually I thought both mice would work parallel but once the usb mouse started to work, the microsoft mouse quit the job 🙂 If this isn’t enough to get the mouse working, tell me, I’ll try to figure out what’s the missing link.