With a multi-interface USB HID devices (i.e. my keyboards and
radio-remote receivers), on 2.6.17:

# udevinfo -q all -n /dev/input/event4
P: /class/input/input6/event4
N: input/event4
S: input/by-path/pci-0000:00:10.0-usb-0:1:1.1-event-
E: ID_VENDOR=Logitech
E: ID_MODEL=USB_Receiver
E: ID_REVISION=0103
E: ID_SERIAL=Logitech_USB_Receiver
E: ID_TYPE=hid
E: ID_BUS=usb
E: ID_PATH=pci-0000:00:10.0-usb-0:1:1.1

And on 2.6.20-rc4 (output from different host):

# udevinfo -q all -n /dev/input/event3
P: /class/input/input3/event3
N: input/event3
S: input/by-path/pci-1-1--event-
E: ID_SERIAL=noserial
E: ID_PATH=pci-1-1-

I found the following difference, possibly related:

# readlink -f /sys/class/input/input6/event4/device
/sys/devices/pci0000:00/0000:00:10.0/usb2/2-1/2-1:1.1

# readlink -f /sys/class/input/input3/event3/device
/sys/devices/pci0000:00/0000:00:10.0/usb1/1-1

On the older working kernel, device/ symlink points to the interface
directory, which contains, among other files, the critical modalias file.

-- 
Anssi Hannula


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to