From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Jellinghaus Date: Wed, 27 Jun 2007 13:14:22 +0000 Subject: usb + sysfs + udev problems once more Message-Id: <200706271514.22408.aj@leogic.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org I thought to try the latest ubuntu beta version to see if kernel + usb + sysfs + udev work as expected, but they don't. the kernel is 2.6.22-rc, udev is 111-0ubuntu5.=20 I'm posting here, as I guess this is not distribution specific. the problem I see is this: when I plugin my usb smart card reader, I see a number of events using "udevmonitor --kernel --environment". of these I'm interested in these two: UEVENT[1182947366.505829] add /devices/pci0000:00/0000:00:1d.2/usb3/3-= 1=20 (usb) ACTION=ADd DEVPATH=3D/devices/pci0000:00/0000:00:1d.2/usb3/3-1 SUBSYSTEM=3Dusb SEQNUM%49 MAJOR=189 MINOR%8 DEVTYPE=3Dusb_device PHYSDEVBUS=3Dusb DEVICE=3D/proc/bus/usb/003/003 PRODUCT=8E6/3438/100 TYPE=3D0/0/0 BUSNUM=003 DEVNUM=003 and UEVENT[1182947366.505908]=20 add /devices/pci0000:00/0000:00:1d.2/usb3/3-1/3-1:1.0 (usb) ACTION=ADd DEVPATH=3D/devices/pci0000:00/0000:00:1d.2/usb3/3-1/3-1:1.0 SUBSYSTEM=3Dusb SEQNUM%51 DEVTYPE=3Dusb_interface PHYSDEVBUS=3Dusb INTERFACE=11/0/0 MODALIAS=3Dusb:v08E6p3438d0100dc00dsc00dp00ic0Bisc00ip00 the first is nice, as it has the DEVICE info. I need that one. however, only the second is matched by the udev rule: SYSFS{bInterfaceClass}=3D"0b", SYSFS{bInterfaceSubClass}=3D"00",=20 SYSFS{bInterfaceProtocol}=3D"00" RUN+=3D"/lib/udev/openct_usb" so in the end my script is called only once, but without DEVICE. how do I fix this? or is this a kernel / sysfs problem that cannot be worked around? and is there any chance udev will create events for the /dev/bus/usb/ device files it creates? thanks for your help. Regards, Andreas ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel