Ticket #29 (new defect)
Opened 17 months ago
openct udev rule broken on ubuntu 7.10/gutsy
| Reported by: | aj | Owned by: | OpenCT Developers |
|---|---|---|---|
| Priority: | normal | Component: | general |
| Version: | 0.6.11 | Severity: | normal |
| Keywords: | Cc: |
Description
the udev rule doesn't have any effect, the openct_usb script is run by udev only once, with e.g. /devices/pci0000:00/0000:00:1d.2/usb3/3-1/3-1:1.0 but without a device in DEVNAME or DEVPATH. the event for /devices/pci0000:00/0000:00:1d.2/usb3/3-1 has the DEVICE, but doesn't match the interface attributes.
on hotplug-devel mailing list kay sievers wrote: The usb-interfaces (2nd event) do not have a device node. Only the usb-device itself, but you match on interface properties. There is no sane way for udev to match on an interface property and get the device node name at the same time. You run into unsolvable timing problems, or need to use weird hacks.
and usb_device-class will not exist on new systems, it is replaced by the direct device nodes of the usb-device.
You need to find the parent device (strip the last part of the devpath), and call udevinfo with the devpath to get the device node. (Repeat that until you find the device with a node, as the kernel is always free to insert additional devices in the chain devpath.)
if I follow the advice I get only "N: 3-1" from udevinfo, no idea how that is going to help me.
