Skip to contentSkip to conversation

udev regression with hid input devices

DISCUSSION Anssi Hannula 1 participant 2 messages Jan 17, 2007 – Jan 19, 2007

lore
Share & tools
lore
#0 lore raw

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_REVISION03
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.

Signature · 12 lines
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ÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
#1 lore raw
Quoted 26 lines · Anssi Hannula

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_REVISION03
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:

Quoted 8 lines
# 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.

It seems this is indeed the culprit here, and that the change is done in the HID split by Jiri Kosina, probably accidentally.

I will write a patch to fix this, test it and send it to the relevant parties.

Signature · 12 lines
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ÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel