| $ udevadm monitor | |
| monitor will print the received events for: | |
| UDEV - the event which udev sends out after rule processing | |
| KERNEL - the kernel uevent | |
| KERNEL[7429.428712] remove /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0 (usb) | |
| KERNEL[7429.430890] remove /devices/pci0000:00/0000:00:14.0/usb3/3-2 (usb) | |
| UDEV [7429.430949] remove /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0 (usb) | |
| UDEV [7429.440597] remove /devices/pci0000:00/0000:00:14.0/usb3/3-2 (usb) | |
| KERNEL[7432.639003] add /devices/pci0000:00/0000:00:14.0/usb3/3-2 (usb) | |
| KERNEL[7432.639558] add /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0 (usb) | |
| UDEV [7432.655997] add /devices/pci0000:00/0000:00:14.0/usb3/3-2 (usb) | |
| UDEV [7432.656725] add /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0 (usb) | |
| --- | |
| $ dmesg | tail | |
| [ 7137.991935] usb 3-2: USB disconnect, device number 9 | |
| [ 7139.339655] usb 3-2: new full-speed USB device number 10 using xhci_hcd | |
| [ 7139.358112] usb 3-2: New USB device found, idVendor=0451, idProduct=16ae | |
| [ 7139.358120] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 | |
| [ 7139.358125] usb 3-2: Product: CC2531 USB Dongle | |
| [ 7139.358129] usb 3-2: Manufacturer: Texas Instruments | |
| --- | |
| $ cat /lib/udev/rules.d/69-cc2531.rules | |
| KERNEL=="ttyUSB?", SUBSYSTEMS=="usb", GROUP=="a", ATTRS{idVendor}=="0451", ATTRS{idProduct}=="16ae", SYMLINK+="cc2531" | |
| --- | |
| $ tail /var/log/syslog | |
| Jan 27 16:29:15 workstation kernel: [ 5696.840158] usb 3-2: new full-speed USB device number 7 using xhci_hcd | |
| Jan 27 16:29:15 workstation kernel: [ 5696.858408] usb 3-2: New USB device found, idVendor=0451, idProduct=16ae | |
| Jan 27 16:29:15 workstation kernel: [ 5696.858417] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 | |
| Jan 27 16:29:15 workstation kernel: [ 5696.858422] usb 3-2: Product: CC2531 USB Dongle | |
| Jan 27 16:29:15 workstation kernel: [ 5696.858426] usb 3-2: Manufacturer: Texas Instruments | |
| Jan 27 16:29:15 workstation mtp-probe: checking bus 3, device 7: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2" | |
| Jan 27 16:29:15 workstation mtp-probe: bus: 3, device: 7 was not an MTP device |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment