So the next little drama was trying to find out the udevinfo command on ubuntu jaunty
Code:
udevadm info -q all -n /path/to/device/device-name
And then finding the path to my mouse. The path output from messages log didn't provide me with a usable device name, it was:
Code:
input: Genius Optical Mouse as /devices/pci0000:00/0000:00:1d.1/usb6/6-2/6-2:1.0/input/input15
generic-usb 0003:0458:003A.0005: input,hidraw0: USB HID v1.10 Mouse [Genius Optical Mouse] on usb-0000:00:1d.1-2/input0
After some searching I found mouse devices located under
However, with 3 mice to choose from I know not which to choose. In the end I was a bit cheeky and did
on each mouse in turn.
Then just wiggle the mouse until garbage appears on screen, voila! I found it, and its udevinfo is:
Code:
P: /devices/pci0000:00/0000:00:1d.1/usb6/6-2/6-2:1.0/input/input16/mouse1
N: input/mouse1
S: char/13:33
S: input/by-id/usb-Genius_Optical_Mouse-mouse
S: input/by-path/pci-0000:00:1d.1-usb-0:2:1.0-mouse
E: UDEV_LOG=3
E: DEVPATH=/devices/pci0000:00/0000:00:1d.1/usb6/6-2/6-2:1.0/input/input16/mouse1
E: MAJOR=13
E: MINOR=33
E: DEVNAME=/dev/input/mouse1
E: ID_VENDOR=Genius
E: ID_VENDOR_ENC=Genius
E: ID_VENDOR_ID=0458
E: ID_MODEL=Optical_Mouse
E: ID_MODEL_ENC=Optical\x20Mouse
E: ID_MODEL_ID=003a
E: ID_REVISION=0100
E: ID_SERIAL=Genius_Optical_Mouse
E: ID_TYPE=hid
E: ID_BUS=usb
E: ID_USB_INTERFACE_NUM=00
E: ID_USB_DRIVER=usbhid
E: ID_CLASS=mouse
E: ID_PATH=pci-0000:00:1d.1-usb-0:2:1.0
E: DEVLINKS=/dev/char/13:33 /dev/input/by-id/usb-Genius_Optical_Mouse-mouse /dev/input/by-path/pci-0000:00:1d.1-usb-0:2:1.0-mouse
Now to make a rule
Bookmarks