> I don't know when REMOVE_CMD was added to the rules. If your rules are > too old, you should be able implement it yourself. It is a really > simple idea, you just need another rule to run the command on remove. > > ACTION=="remove", ENV{REMOVE_CMD}=="?*", RUN+="$env{REMOVE_CMD}" My udev is, indeed, too old (version 117), so I implemented a similar technique: SUBSYSTEMS=="usb", ACTION=="add", SYSFS{idVendor}=="06e0", SYSFS{idProduct}=="f111", ENV{REMOVE_CMD}="/usr/bin/logger GOODBYE" ACTION=="remove", ENV{REMOVE_CMD}!="", RUN+="$env{REMOVE_CMD}" That seems to be working. The problem I'm encountering now is that it seems there are several "remove" actions called during initialization of the device. If I swap in the "modprobe -r" command described in an earlier email, it unloads the driver for the device before it even finishes initializing. Below I've attached a sample syslog snippet showing the many "GOODBYE" messages logged when I plug in the deivce. Also I've attached the output of "udevmonitor --env". For good measure, I've also thrown the output of "udevinfo -a -n /dev/ttyUSB0" at the end. Any idea how I can get my RUN command to only execute when I'm actually unplugging the device? Thanks! -Ben #################################### syslog #################################### Jul 29 18:56:29 test02 kernel: [ 8564.084047] usb 4-1: new full speed USB device using uhci_hcd and address 66 Jul 29 18:56:29 test02 kernel: [ 8564.271590] usb 4-1: configuration #1 chosen from 1 choice Jul 29 18:56:29 test02 kernel: [ 8564.312540] usbcore: registered new interface driver usbserial Jul 29 18:56:29 test02 kernel: [ 8564.312562] /home/insyte/newkernel/linux-2.6.24/drivers/usb/serial/usb-serial.c: USB Serial support registered for generic Jul 29 18:56:29 test02 kernel: [ 8564.312590] usbcore: registered new interface driver usbserial_generic Jul 29 18:56:29 test02 kernel: [ 8564.312592] /home/insyte/newkernel/linux-2.6.24/drivers/usb/serial/usb-serial.c: USB Serial Driver core Jul 29 18:56:29 test02 kernel: [ 8564.316199] /home/insyte/newkernel/linux-2.6.24/drivers/usb/serial/usb-serial.c: USB Serial support registered for TI USB 3410 1 port adapter Jul 29 18:56:29 test02 kernel: [ 8564.316220] /home/insyte/newkernel/linux-2.6.24/drivers/usb/serial/usb-serial.c: USB Serial support registered for TI USB 5052 2 port adapter Jul 29 18:56:29 test02 kernel: [ 8564.316251] ti_usb_3410_5052 4-1:1.0: TI USB 3410 1 port adapter converter detected Jul 29 18:56:30 test02 kernel: [ 8565.021140] usb 4-1: reset full speed USB device using uhci_hcd and address 66 Jul 29 18:56:30 test02 kernel: [ 8565.166715] usb 4-1: device firmware changed Jul 29 18:56:30 test02 kernel: [ 8565.166743] ti_usb_3410_5052: probe of 4-1:1.0 failed with error -5 Jul 29 18:56:30 test02 kernel: [ 8565.166757] usbcore: registered new interface driver ti_usb_3410_5052 Jul 29 18:56:30 test02 kernel: [ 8565.166761] /home/insyte/newkernel/linux-2.6.24/drivers/usb/serial/ti_usb_3410_5052.c: TI USB 3410/5052 Serial Driver v1.2.5 Jul 29 18:56:30 test02 kernel: [ 8565.167282] usb 4-1: USB disconnect, address 66 Jul 29 18:56:30 test02 logger: GOODBYE Jul 29 18:56:30 test02 logger: GOODBYE Jul 29 18:56:30 test02 kernel: [ 8565.290296] usb 4-1: new full speed USB device using uhci_hcd and address 67 Jul 29 18:56:30 test02 kernel: [ 8565.500780] usb 4-1: configuration #2 chosen from 2 choices Jul 29 18:56:30 test02 kernel: [ 8565.507050] ti_usb_3410_5052 4-1:2.0: TI USB 3410 1 port adapter converter detected Jul 29 18:56:30 test02 kernel: [ 8565.507176] usb 4-1: TI USB 3410 1 port adapter converter now attached to ttyUSB0 Jul 29 18:56:30 test02 kernel: [ 8565.510831] ti_usb_3410_5052_1 ttyUSB0: TI USB 3410 1 port adapter converter now disconnected from ttyUSB0 Jul 29 18:56:30 test02 kernel: [ 8565.510851] ti_usb_3410_5052 4-1:2.0: device disconnected Jul 29 18:56:30 test02 kernel: [ 8565.517055] ti_usb_3410_5052 4-1:2.0: TI USB 3410 1 port adapter converter detected Jul 29 18:56:30 test02 kernel: [ 8565.517186] usb 4-1: TI USB 3410 1 port adapter converter now attached to ttyUSB0 Jul 29 18:56:30 test02 logger: GOODBYE Jul 29 18:56:30 test02 logger: GOODBYE Jul 29 18:56:30 test02 logger: GOODBYE Jul 29 18:56:30 test02 logger: GOODBYE ##################################### udevmonitor --env ##################################### udevmonitor will print the received events for: UDEV the event which udev sends out after rule processing UEVENT the kernel uevent UEVENT[1248911789.339831] add /devices/pci0000:00/0000:00:1d.3/usb4/4-1 (usb) ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1 SUBSYSTEM=usb MAJOR=189 MINOR=449 DEVTYPE=usb_device DEVICE=/proc/bus/usb/004/066 PRODUCT=6e0/f111/101 TYPE=255/0/0 BUSNUM=004 DEVNUM=066 SEQNUM=4267 UEVENT[1248911789.339863] add /devices/pci0000:00/0000:00:1d.3/usb4/4-1/usb_endpoint/usbdev4.66_ep00 (usb_endpoint) ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/usb_endpoint/usbdev4.66_ep00 SUBSYSTEM=usb_endpoint MAJOR=253 MINOR=17 SEQNUM=4268 UEVENT[1248911789.347062] add /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:1.0 (usb) ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:1.0 SUBSYSTEM=usb DEVTYPE=usb_interface DEVICE=/proc/bus/usb/004/066 PRODUCT=6e0/f111/101 TYPE=255/0/0 INTERFACE=255/0/0 MODALIAS=usb:v06E0pF111d0101dcFFdsc00dp00icFFisc00ip00 SEQNUM=4269 UEVENT[1248911789.347085] add /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:1.0/usb_endpoint/usbdev4.66_ep01 (usb_endpoint) ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:1.0/usb_endpoint/usbdev4.66_ep01 SUBSYSTEM=usb_endpoint MAJOR=253 MINOR=18 SEQNUM=4270 UDEV [1248911789.347138] add /devices/pci0000:00/0000:00:1d.3/usb4/4-1 (usb) UDEV_LOG=3 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1 SUBSYSTEM=usb MAJOR=189 MINOR=449 DEVTYPE=usb_device DEVICE=/proc/bus/usb/004/066 PRODUCT=6e0/f111/101 TYPE=255/0/0 BUSNUM=004 DEVNUM=066 SEQNUM=4267 UDEVD_EVENT=1 REMOVE_CMD=/usr/bin/logger GOODBYE DEVNAME=/dev/bus/usb/004/066 UDEV [1248911789.352450] add /devices/pci0000:00/0000:00:1d.3/usb4/4-1/usb_endpoint/usbdev4.66_ep00 (usb_endpoint) UDEV_LOG=3 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/usb_endpoint/usbdev4.66_ep00 SUBSYSTEM=usb_endpoint MAJOR=253 MINOR=17 SEQNUM=4268 UDEVD_EVENT=1 REMOVE_CMD=/usr/bin/logger GOODBYE DEVNAME=/dev/usbdev4.66_ep00 UEVENT[1248911789.379430] add /module/usbserial (module) ACTION=add DEVPATH=/module/usbserial SUBSYSTEM=module SEQNUM=4271 UDEV [1248911789.380749] add /module/usbserial (module) UDEV_LOG=3 ACTION=add DEVPATH=/module/usbserial SUBSYSTEM=module SEQNUM=4271 UDEVD_EVENT=1 UEVENT[1248911789.381364] add /bus/usb-serial (bus) ACTION=add DEVPATH=/bus/usb-serial SUBSYSTEM=bus SEQNUM=4272 UEVENT[1248911789.381381] add /bus/usb/drivers/usbserial (drivers) ACTION=add DEVPATH=/bus/usb/drivers/usbserial SUBSYSTEM=drivers SEQNUM=4273 UEVENT[1248911789.381387] add /bus/usb-serial/drivers/generic (drivers) ACTION=add DEVPATH=/bus/usb-serial/drivers/generic SUBSYSTEM=drivers SEQNUM=4274 UEVENT[1248911789.381393] add /bus/usb/drivers/usbserial_generic (drivers) ACTION=add DEVPATH=/bus/usb/drivers/usbserial_generic SUBSYSTEM=drivers SEQNUM=4275 UEVENT[1248911789.382902] add /module/ti_usb_3410_5052 (module) ACTION=add DEVPATH=/module/ti_usb_3410_5052 SUBSYSTEM=module SEQNUM=4276 UDEV [1248911789.384285] add /bus/usb-serial (bus) UDEV_LOG=3 ACTION=add DEVPATH=/bus/usb-serial SUBSYSTEM=bus SEQNUM=4272 UDEVD_EVENT=1 UEVENT[1248911789.385065] add /bus/usb-serial/drivers/ti_usb_3410_5052_1 (drivers) ACTION=add DEVPATH=/bus/usb-serial/drivers/ti_usb_3410_5052_1 SUBSYSTEM=drivers SEQNUM=4277 UEVENT[1248911789.385084] add /bus/usb-serial/drivers/ti_usb_3410_5052_2 (drivers) ACTION=add DEVPATH=/bus/usb-serial/drivers/ti_usb_3410_5052_2 SUBSYSTEM=drivers SEQNUM=4278 UEVENT[1248911789.385089] add /bus/usb/drivers/ti_usb_3410_5052 (drivers) ACTION=add DEVPATH=/bus/usb/drivers/ti_usb_3410_5052 SUBSYSTEM=drivers SEQNUM=4279 UDEV [1248911789.386427] add /bus/usb/drivers/usbserial (drivers) UDEV_LOG=3 ACTION=add DEVPATH=/bus/usb/drivers/usbserial SUBSYSTEM=drivers SEQNUM=4273 UDEVD_EVENT=1 UDEV [1248911789.387933] add /bus/usb-serial/drivers/generic (drivers) UDEV_LOG=3 ACTION=add DEVPATH=/bus/usb-serial/drivers/generic SUBSYSTEM=drivers SEQNUM=4274 UDEVD_EVENT=1 UDEV [1248911789.389429] add /bus/usb/drivers/usbserial_generic (drivers) UDEV_LOG=3 ACTION=add DEVPATH=/bus/usb/drivers/usbserial_generic SUBSYSTEM=drivers SEQNUM=4275 UDEVD_EVENT=1 UDEV [1248911789.390833] add /module/ti_usb_3410_5052 (module) UDEV_LOG=3 ACTION=add DEVPATH=/module/ti_usb_3410_5052 SUBSYSTEM=module SEQNUM=4276 UDEVD_EVENT=1 UDEV [1248911789.392293] add /bus/usb-serial/drivers/ti_usb_3410_5052_1 (drivers) UDEV_LOG=3 ACTION=add DEVPATH=/bus/usb-serial/drivers/ti_usb_3410_5052_1 SUBSYSTEM=drivers SEQNUM=4277 UDEVD_EVENT=1 UDEV [1248911789.393777] add /bus/usb-serial/drivers/ti_usb_3410_5052_2 (drivers) UDEV_LOG=3 ACTION=add DEVPATH=/bus/usb-serial/drivers/ti_usb_3410_5052_2 SUBSYSTEM=drivers SEQNUM=4278 UDEVD_EVENT=1 UDEV [1248911789.395185] add /bus/usb/drivers/ti_usb_3410_5052 (drivers) UDEV_LOG=3 ACTION=add DEVPATH=/bus/usb/drivers/ti_usb_3410_5052 SUBSYSTEM=drivers SEQNUM=4279 UDEVD_EVENT=1 UDEV [1248911790.241293] add /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:1.0 (usb) UDEV_LOG=3 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:1.0 SUBSYSTEM=usb DEVTYPE=usb_interface DEVICE=/proc/bus/usb/004/066 PRODUCT=6e0/f111/101 TYPE=255/0/0 INTERFACE=255/0/0 MODALIAS=usb:v06E0pF111d0101dcFFdsc00dp00icFFisc00ip00 SEQNUM=4269 UDEVD_EVENT=1 REMOVE_CMD=/usr/bin/logger GOODBYE UEVENT[1248911790.242283] remove /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:1.0/usb_endpoint/usbdev4.66_ep01 (usb_endpoint) ACTION=remove DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:1.0/usb_endpoint/usbdev4.66_ep01 SUBSYSTEM=usb_endpoint MAJOR=253 MINOR=18 SEQNUM=4280 UEVENT[1248911790.242306] remove /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:1.0 (usb) ACTION=remove DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:1.0 SUBSYSTEM=usb DEVTYPE=usb_interface DEVICE=/proc/bus/usb/004/066 PRODUCT=6e0/f111/101 TYPE=255/0/0 INTERFACE=255/0/0 MODALIAS=usb:v06E0pF111d0101dcFFdsc00dp00icFFisc00ip00 SEQNUM=4281 UEVENT[1248911790.242314] remove /devices/pci0000:00/0000:00:1d.3/usb4/4-1/usb_endpoint/usbdev4.66_ep00 (usb_endpoint) ACTION=remove DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/usb_endpoint/usbdev4.66_ep00 SUBSYSTEM=usb_endpoint MAJOR=253 MINOR=17 SEQNUM=4282 UEVENT[1248911790.242320] remove /devices/pci0000:00/0000:00:1d.3/usb4/4-1 (usb) ACTION=remove DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1 SUBSYSTEM=usb MAJOR=189 MINOR=449 DEVTYPE=usb_device DEVICE=/proc/bus/usb/004/066 PRODUCT=6e0/f111/101 TYPE=255/0/0 BUSNUM=004 DEVNUM=066 SEQNUM=4283 UDEV [1248911790.243083] add /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:1.0/usb_endpoint/usbdev4.66_ep01 (usb_endpoint) UDEV_LOG=3 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:1.0/usb_endpoint/usbdev4.66_ep01 SUBSYSTEM=usb_endpoint MAJOR=253 MINOR=18 SEQNUM=4270 UDEVD_EVENT=1 DEVNAME=/dev/usbdev4.66_ep01 UDEV [1248911790.245043] remove /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:1.0/usb_endpoint/usbdev4.66_ep01 (usb_endpoint) UDEV_LOG=3 ACTION=remove DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:1.0/usb_endpoint/usbdev4.66_ep01 SUBSYSTEM=usb_endpoint MAJOR=253 MINOR=18 SEQNUM=4280 UDEVD_EVENT=1 DEVNAME=/dev/usbdev4.66_ep01 UDEV [1248911790.246918] remove /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:1.0 (usb) UDEV_LOG=3 ACTION=remove DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:1.0 SUBSYSTEM=usb DEVTYPE=usb_interface DEVICE=/proc/bus/usb/004/066 PRODUCT=6e0/f111/101 TYPE=255/0/0 INTERFACE=255/0/0 MODALIAS=usb:v06E0pF111d0101dcFFdsc00dp00icFFisc00ip00 SEQNUM=4281 UDEVD_EVENT=1 UDEV [1248911790.250663] remove /devices/pci0000:00/0000:00:1d.3/usb4/4-1/usb_endpoint/usbdev4.66_ep00 (usb_endpoint) UDEV_LOG=3 ACTION=remove DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/usb_endpoint/usbdev4.66_ep00 SUBSYSTEM=usb_endpoint MAJOR=253 MINOR=17 SEQNUM=4282 UDEVD_EVENT=1 REMOVE_CMD=/usr/bin/logger GOODBYE DEVNAME=/dev/usbdev4.66_ep00 UDEV [1248911790.254295] remove /devices/pci0000:00/0000:00:1d.3/usb4/4-1 (usb) UDEV_LOG=3 ACTION=remove DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1 SUBSYSTEM=usb MAJOR=189 MINOR=449 DEVTYPE=usb_device DEVICE=/proc/bus/usb/004/066 PRODUCT=6e0/f111/101 TYPE=255/0/0 BUSNUM=004 DEVNUM=066 SEQNUM=4283 UDEVD_EVENT=1 REMOVE_CMD=/usr/bin/logger GOODBYE DEVNAME=/dev/bus/usb/004/066 UEVENT[1248911790.572835] add /devices/pci0000:00/0000:00:1d.3/usb4/4-1 (usb) ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1 SUBSYSTEM=usb MAJOR=189 MINOR=450 DEVTYPE=usb_device DEVICE=/proc/bus/usb/004/067 PRODUCT=6e0/f111/101 TYPE=255/0/0 BUSNUM=004 DEVNUM=067 SEQNUM=4284 UEVENT[1248911790.572859] add /devices/pci0000:00/0000:00:1d.3/usb4/4-1/usb_endpoint/usbdev4.67_ep00 (usb_endpoint) ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/usb_endpoint/usbdev4.67_ep00 SUBSYSTEM=usb_endpoint MAJOR=253 MINOR=17 SEQNUM=4285 UEVENT[1248911790.579447] add /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0 (usb) ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0 SUBSYSTEM=usb DEVTYPE=usb_interface DEVICE=/proc/bus/usb/004/067 PRODUCT=6e0/f111/101 TYPE=255/0/0 INTERFACE=255/0/0 MODALIAS=usb:v06E0pF111d0101dcFFdsc00dp00icFFisc00ip00 SEQNUM=4286 UEVENT[1248911790.579471] add /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/ttyUSB0 (usb-serial) ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/ttyUSB0 SUBSYSTEM=usb-serial SEQNUM=4287 UEVENT[1248911790.579479] add /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/ttyUSB0/tty/ttyUSB0 (tty) ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/ttyUSB0/tty/ttyUSB0 SUBSYSTEM=tty MAJOR=188 MINOR=0 SEQNUM=4288 UEVENT[1248911790.579485] add /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/usb_endpoint/usbdev4.67_ep81 (usb_endpoint) ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/usb_endpoint/usbdev4.67_ep81 SUBSYSTEM=usb_endpoint MAJOR=253 MINOR=18 SEQNUM=4289 UEVENT[1248911790.579491] add /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/usb_endpoint/usbdev4.67_ep01 (usb_endpoint) ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/usb_endpoint/usbdev4.67_ep01 SUBSYSTEM=usb_endpoint MAJOR=253 MINOR=19 SEQNUM=4290 UEVENT[1248911790.579498] add /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/usb_endpoint/usbdev4.67_ep83 (usb_endpoint) ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/usb_endpoint/usbdev4.67_ep83 SUBSYSTEM=usb_endpoint MAJOR=253 MINOR=20 SEQNUM=4291 UDEV [1248911790.579884] add /devices/pci0000:00/0000:00:1d.3/usb4/4-1 (usb) UDEV_LOG=3 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1 SUBSYSTEM=usb MAJOR=189 MINOR=450 DEVTYPE=usb_device DEVICE=/proc/bus/usb/004/067 PRODUCT=6e0/f111/101 TYPE=255/0/0 BUSNUM=004 DEVNUM=067 SEQNUM=4284 UDEVD_EVENT=1 REMOVE_CMD=/usr/bin/logger GOODBYE DEVNAME=/dev/bus/usb/004/067 UEVENT[1248911790.582944] remove /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/usb_endpoint/usbdev4.67_ep81 (usb_endpoint) ACTION=remove DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/usb_endpoint/usbdev4.67_ep81 SUBSYSTEM=usb_endpoint MAJOR=253 MINOR=18 SEQNUM=4292 UEVENT[1248911790.582969] remove /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/usb_endpoint/usbdev4.67_ep01 (usb_endpoint) ACTION=remove DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/usb_endpoint/usbdev4.67_ep01 SUBSYSTEM=usb_endpoint MAJOR=253 MINOR=19 SEQNUM=4293 UEVENT[1248911790.582976] remove /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/usb_endpoint/usbdev4.67_ep83 (usb_endpoint) ACTION=remove DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/usb_endpoint/usbdev4.67_ep83 SUBSYSTEM=usb_endpoint MAJOR=253 MINOR=20 SEQNUM=4294 UEVENT[1248911790.582982] remove /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/ttyUSB0/tty/ttyUSB0 (tty) ACTION=remove DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/ttyUSB0/tty/ttyUSB0 SUBSYSTEM=tty MAJOR=188 MINOR=0 SEQNUM=4295 UEVENT[1248911790.582988] remove /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/ttyUSB0 (usb-serial) ACTION=remove DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/ttyUSB0 SUBSYSTEM=usb-serial SEQNUM=4296 UEVENT[1248911790.585796] remove /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0 (usb) ACTION=remove DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0 SUBSYSTEM=usb DEVTYPE=usb_interface DEVICE=/proc/bus/usb/004/067 PRODUCT=6e0/f111/101 TYPE=255/0/0 INTERFACE=255/0/0 MODALIAS=usb:v06E0pF111d0101dcFFdsc00dp00icFFisc00ip00 SEQNUM=4297 UEVENT[1248911790.589370] add /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0 (usb) ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0 SUBSYSTEM=usb DEVTYPE=usb_interface DEVICE=/proc/bus/usb/004/067 PRODUCT=6e0/f111/101 TYPE=255/0/0 INTERFACE=255/0/0 MODALIAS=usb:v06E0pF111d0101dcFFdsc00dp00icFFisc00ip00 SEQNUM=4298 UEVENT[1248911790.589392] add /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/ttyUSB0 (usb-serial) ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/ttyUSB0 SUBSYSTEM=usb-serial SEQNUM=4299 UEVENT[1248911790.589400] add /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/ttyUSB0/tty/ttyUSB0 (tty) ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/ttyUSB0/tty/ttyUSB0 SUBSYSTEM=tty MAJOR=188 MINOR=0 SEQNUM=4300 UEVENT[1248911790.589406] add /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/usb_endpoint/usbdev4.67_ep81 (usb_endpoint) ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/usb_endpoint/usbdev4.67_ep81 SUBSYSTEM=usb_endpoint MAJOR=253 MINOR=18 SEQNUM=4301 UEVENT[1248911790.589411] add /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/usb_endpoint/usbdev4.67_ep01 (usb_endpoint) ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/usb_endpoint/usbdev4.67_ep01 SUBSYSTEM=usb_endpoint MAJOR=253 MINOR=19 SEQNUM=4302 UEVENT[1248911790.589416] add /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/usb_endpoint/usbdev4.67_ep83 (usb_endpoint) ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/usb_endpoint/usbdev4.67_ep83 SUBSYSTEM=usb_endpoint MAJOR=253 MINOR=20 SEQNUM=4303 UDEV [1248911790.590113] add /devices/pci0000:00/0000:00:1d.3/usb4/4-1/usb_endpoint/usbdev4.67_ep00 (usb_endpoint) UDEV_LOG=3 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/usb_endpoint/usbdev4.67_ep00 SUBSYSTEM=usb_endpoint MAJOR=253 MINOR=17 SEQNUM=4285 UDEVD_EVENT=1 REMOVE_CMD=/usr/bin/logger GOODBYE DEVNAME=/dev/usbdev4.67_ep00 UDEV [1248911790.624637] add /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0 (usb) UDEV_LOG=3 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0 SUBSYSTEM=usb DEVTYPE=usb_interface DEVICE=/proc/bus/usb/004/067 PRODUCT=6e0/f111/101 TYPE=255/0/0 INTERFACE=255/0/0 MODALIAS=usb:v06E0pF111d0101dcFFdsc00dp00icFFisc00ip00 SEQNUM=4286 UDEVD_EVENT=1 REMOVE_CMD=/usr/bin/logger GOODBYE UDEV [1248911790.629937] add /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/ttyUSB0 (usb-serial) UDEV_LOG=3 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/ttyUSB0 SUBSYSTEM=usb-serial SEQNUM=4287 UDEVD_EVENT=1 REMOVE_CMD=/usr/bin/logger GOODBYE UDEV [1248911790.631934] add /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/usb_endpoint/usbdev4.67_ep01 (usb_endpoint) UDEV_LOG=3 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/usb_endpoint/usbdev4.67_ep01 SUBSYSTEM=usb_endpoint MAJOR=253 MINOR=19 SEQNUM=4290 UDEVD_EVENT=1 REMOVE_CMD=/usr/bin/logger GOODBYE DEVNAME=/dev/usbdev4.67_ep01 UDEV [1248911790.632318] add /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/usb_endpoint/usbdev4.67_ep81 (usb_endpoint) UDEV_LOG=3 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/usb_endpoint/usbdev4.67_ep81 SUBSYSTEM=usb_endpoint MAJOR=253 MINOR=18 SEQNUM=4289 UDEVD_EVENT=1 REMOVE_CMD=/usr/bin/logger GOODBYE DEVNAME=/dev/usbdev4.67_ep81 UDEV [1248911790.636481] add /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/usb_endpoint/usbdev4.67_ep83 (usb_endpoint) UDEV_LOG=3 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/usb_endpoint/usbdev4.67_ep83 SUBSYSTEM=usb_endpoint MAJOR=253 MINOR=20 SEQNUM=4291 UDEVD_EVENT=1 REMOVE_CMD=/usr/bin/logger GOODBYE DEVNAME=/dev/usbdev4.67_ep83 UDEV [1248911790.641807] add /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/ttyUSB0/tty/ttyUSB0 (tty) UDEV_LOG=3 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/ttyUSB0/tty/ttyUSB0 SUBSYSTEM=tty MAJOR=188 MINOR=0 SEQNUM=4288 UDEVD_EVENT=1 REMOVE_CMD=/usr/bin/logger GOODBYE DEVNAME=/dev/ttyUSB0 UDEV [1248911790.644597] remove /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/usb_endpoint/usbdev4.67_ep81 (usb_endpoint) UDEV_LOG=3 ACTION=remove DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/usb_endpoint/usbdev4.67_ep81 SUBSYSTEM=usb_endpoint MAJOR=253 MINOR=18 SEQNUM=4292 UDEVD_EVENT=1 REMOVE_CMD=/usr/bin/logger GOODBYE DEVNAME=/dev/usbdev4.67_ep81 UDEV [1248911790.646953] remove /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/usb_endpoint/usbdev4.67_ep01 (usb_endpoint) UDEV_LOG=3 ACTION=remove DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/usb_endpoint/usbdev4.67_ep01 SUBSYSTEM=usb_endpoint MAJOR=253 MINOR=19 SEQNUM=4293 UDEVD_EVENT=1 REMOVE_CMD=/usr/bin/logger GOODBYE DEVNAME=/dev/usbdev4.67_ep01 UDEV [1248911790.651160] remove /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/usb_endpoint/usbdev4.67_ep83 (usb_endpoint) UDEV_LOG=3 ACTION=remove DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/usb_endpoint/usbdev4.67_ep83 SUBSYSTEM=usb_endpoint MAJOR=253 MINOR=20 SEQNUM=4294 UDEVD_EVENT=1 REMOVE_CMD=/usr/bin/logger GOODBYE DEVNAME=/dev/usbdev4.67_ep83 UDEV [1248911790.652475] remove /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/ttyUSB0/tty/ttyUSB0 (tty) UDEV_LOG=3 ACTION=remove DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/ttyUSB0/tty/ttyUSB0 SUBSYSTEM=tty MAJOR=188 MINOR=0 SEQNUM=4295 UDEVD_EVENT=1 REMOVE_CMD=/usr/bin/logger GOODBYE DEVNAME=/dev/ttyUSB0 UDEV [1248911790.653898] remove /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/ttyUSB0 (usb-serial) UDEV_LOG=3 ACTION=remove DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/ttyUSB0 SUBSYSTEM=usb-serial SEQNUM=4296 UDEVD_EVENT=1 UDEV [1248911790.655841] remove /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0 (usb) UDEV_LOG=3 ACTION=remove DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0 SUBSYSTEM=usb DEVTYPE=usb_interface DEVICE=/proc/bus/usb/004/067 PRODUCT=6e0/f111/101 TYPE=255/0/0 INTERFACE=255/0/0 MODALIAS=usb:v06E0pF111d0101dcFFdsc00dp00icFFisc00ip00 SEQNUM=4297 UDEVD_EVENT=1 UDEV [1248911790.686437] add /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0 (usb) UDEV_LOG=3 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0 SUBSYSTEM=usb DEVTYPE=usb_interface DEVICE=/proc/bus/usb/004/067 PRODUCT=6e0/f111/101 TYPE=255/0/0 INTERFACE=255/0/0 MODALIAS=usb:v06E0pF111d0101dcFFdsc00dp00icFFisc00ip00 SEQNUM=4298 UDEVD_EVENT=1 REMOVE_CMD=/usr/bin/logger GOODBYE UDEV [1248911790.691815] add /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/ttyUSB0 (usb-serial) UDEV_LOG=3 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/ttyUSB0 SUBSYSTEM=usb-serial SEQNUM=4299 UDEVD_EVENT=1 REMOVE_CMD=/usr/bin/logger GOODBYE UDEV [1248911790.694182] add /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/usb_endpoint/usbdev4.67_ep01 (usb_endpoint) UDEV_LOG=3 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/usb_endpoint/usbdev4.67_ep01 SUBSYSTEM=usb_endpoint MAJOR=253 MINOR=19 SEQNUM=4302 UDEVD_EVENT=1 REMOVE_CMD=/usr/bin/logger GOODBYE DEVNAME=/dev/usbdev4.67_ep01 UDEV [1248911790.694415] add /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/usb_endpoint/usbdev4.67_ep81 (usb_endpoint) UDEV_LOG=3 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/usb_endpoint/usbdev4.67_ep81 SUBSYSTEM=usb_endpoint MAJOR=253 MINOR=18 SEQNUM=4301 UDEVD_EVENT=1 REMOVE_CMD=/usr/bin/logger GOODBYE DEVNAME=/dev/usbdev4.67_ep81 UDEV [1248911790.696359] add /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/usb_endpoint/usbdev4.67_ep83 (usb_endpoint) UDEV_LOG=3 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/usb_endpoint/usbdev4.67_ep83 SUBSYSTEM=usb_endpoint MAJOR=253 MINOR=20 SEQNUM=4303 UDEVD_EVENT=1 REMOVE_CMD=/usr/bin/logger GOODBYE DEVNAME=/dev/usbdev4.67_ep83 UDEV [1248911790.701599] add /devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/ttyUSB0/tty/ttyUSB0 (tty) UDEV_LOG=3 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/ttyUSB0/tty/ttyUSB0 SUBSYSTEM=tty MAJOR=188 MINOR=0 SEQNUM=4300 UDEVD_EVENT=1 REMOVE_CMD=/usr/bin/logger GOODBYE DEVNAME=/dev/ttyUSB0 ##################################################################### udevinfo -a -n /dev/ttyUSB0 ##################################################################### # udevinfo -a -n /dev/ttyUSB0 Udevinfo starts with the device specified by the devpath and then walks up the chain of parent devices. It prints for every device found, all possible attributes in the udev rules key format. A rule to match, can be composed by the attributes of the device and the attributes from one single parent device. looking at device '/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/ttyUSB0/tty/ttyUSB0': KERNEL=="ttyUSB0" SUBSYSTEM=="tty" DRIVER=="" ATTR{dev}=="188:0" looking at parent device '/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/ttyUSB0/tty': KERNELS=="tty" SUBSYSTEMS=="" DRIVERS=="" looking at parent device '/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0/ttyUSB0': KERNELS=="ttyUSB0" SUBSYSTEMS=="usb-serial" DRIVERS=="ti_usb_3410_5052_1" ATTRS{port_number}=="0" looking at parent device '/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:2.0': KERNELS=="4-1:2.0" SUBSYSTEMS=="usb" DRIVERS=="ti_usb_3410_5052" ATTRS{bInterfaceNumber}=="00" ATTRS{bAlternateSetting}==" 0" ATTRS{bNumEndpoints}=="03" ATTRS{bInterfaceClass}=="ff" ATTRS{bInterfaceSubClass}=="00" ATTRS{bInterfaceProtocol}=="00" ATTRS{modalias}=="usb:v06E0pF111d0101dcFFdsc00dp00icFFisc00ip00" looking at parent device '/devices/pci0000:00/0000:00:1d.3/usb4/4-1': KERNELS=="4-1" SUBSYSTEMS=="usb" DRIVERS=="usb" ATTRS{dev}=="189:450" ATTRS{configuration}=="" ATTRS{bNumInterfaces}==" 1" ATTRS{bConfigurationValue}=="2" ATTRS{bmAttributes}=="a0" ATTRS{bMaxPower}=="500mA" ATTRS{urbnum}=="13" ATTRS{idVendor}=="06e0" ATTRS{idProduct}=="f111" ATTRS{bcdDevice}=="0101" ATTRS{bDeviceClass}=="ff" ATTRS{bDeviceSubClass}=="00" ATTRS{bDeviceProtocol}=="00" ATTRS{bNumConfigurations}=="2" ATTRS{bMaxPacketSize0}=="8" ATTRS{speed}=="12" ATTRS{busnum}=="4" ATTRS{devnum}=="67" ATTRS{version}==" 1.10" ATTRS{maxchild}=="0" ATTRS{quirks}=="0x0" ATTRS{authorized}=="1" ATTRS{manufacturer}=="Texas Instruments" ATTRS{product}=="TUSB3410 Serial Port" looking at parent device '/devices/pci0000:00/0000:00:1d.3/usb4': KERNELS=="usb4" SUBSYSTEMS=="usb" DRIVERS=="usb" ATTRS{dev}=="189:384" ATTRS{configuration}=="" ATTRS{bNumInterfaces}==" 1" ATTRS{bConfigurationValue}=="1" ATTRS{bmAttributes}=="e0" ATTRS{bMaxPower}==" 0mA" ATTRS{urbnum}=="1416" ATTRS{idVendor}=="0000" ATTRS{idProduct}=="0000" ATTRS{bcdDevice}=="0206" ATTRS{bDeviceClass}=="09" ATTRS{bDeviceSubClass}=="00" ATTRS{bDeviceProtocol}=="00" ATTRS{bNumConfigurations}=="1" ATTRS{bMaxPacketSize0}=="64" ATTRS{speed}=="12" ATTRS{busnum}=="4" ATTRS{devnum}=="1" ATTRS{version}==" 1.10" ATTRS{maxchild}=="2" ATTRS{quirks}=="0x0" ATTRS{authorized}=="1" ATTRS{manufacturer}=="Linux 2.6.24-24-server uhci_hcd" ATTRS{product}=="UHCI Host Controller" ATTRS{serial}=="0000:00:1d.3" ATTRS{authorized_default}=="1" looking at parent device '/devices/pci0000:00/0000:00:1d.3': KERNELS=="0000:00:1d.3" SUBSYSTEMS=="pci" DRIVERS=="uhci_hcd" ATTRS{vendor}=="0x8086" ATTRS{device}=="0x27cb" ATTRS{subsystem_vendor}=="0x103c" ATTRS{subsystem_device}=="0x31fe" ATTRS{class}=="0x0c0300" ATTRS{irq}=="21" ATTRS{local_cpus}=="00000000,00000000" ATTRS{modalias}=="pci:v00008086d000027CBsv0000103Csd000031FEbc0Csc03i00" ATTRS{numa_node}=="-1" ATTRS{enable}=="1" ATTRS{broken_parity_status}=="0" ATTRS{msi_bus}=="" looking at parent device '/devices/pci0000:00': KERNELS=="pci0000:00" SUBSYSTEMS=="" DRIVERS=="" -- To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html