USB mice should show up in /dev/input/. There should be
/dev/input/mice
which is an algamated "device", and individual /dev/input/mouse<n>
where <n>
= 0, 1, 2, ... for each connected mouse .Try
cat /proc/bus/input/devices>
, you should see something like so:\nI: Bus=0011 Vendor=0001 Product=0001 Version=ab41\nN: Name="AT Translated Set 2 keyboard"\nP: Phys=isa0060/serio0/input0\nS: Sysfs=/class/input/input0\nH: Handlers=kbd event0\nB: EV=120013\nB: KEY=402000000 3802078f840d001 f2ffffdfffefffff fffffffffffffffe\nB: MSC=10\nB: LED=7\n\nI: Bus=0010 Vendor=001f Product=0001 Version=0100\nN: Name="PC Speaker"\nP: Phys=isa0061/input0\nS: Sysfs=/class/input/input1\nH: Handlers=kbd event1\nB: EV=40001\nB: SND=6\n\nI: Bus=0003 Vendor=056a Product=0015 Version=0403\nN: Name="Wacom Graphire4 4x5"\nP: Phys=\nS: Sysfs=/class/input/input2\nH: Handlers=mouse0 event2 ts0\nB: EV=1f\nB: KEY=1c63 700ff 0 0 0 0\nB: REL=100\nB: ABS=3000003\nB: MSC=1\n\nI: Bus=0003 Vendor=046d Product=c50e Version=2500\nN: Name="Logitech USB Receiver"\nP: Phys=usb-0000:00:13.1-1/input0\nS: Sysfs=/class/input/input3\nH: Handlers=mouse1 event3 ts1\nB: EV=7\nB: KEY=ffff0000 0 0 0 0\nB: REL=143\n
If you have a fancy mouse, the evdev driver in Ubuntu Dapper is way nicer and makes all of its buttons usable. Here's how my mouse is configured:
\nSection "InputDevice"\n Identifier "Configured Mouse"\n Driver "evdev"\n Option "CorePointer"\n Option "Name" "Logitech USB Receiver"\n Option "HWHEELRelativeAxisButtons" "7 6" \nEndSection\nThat last
Option
swaps the direction of the horizontal scroll. The nice thing about this incantation is that my mouse device can change its /dev/
name all it wants as it gets plugged in and out, but X will still find it.A PS/2 mouse should show up as
/dev/psaux
.