Skip to content

Instantly share code, notes, and snippets.

@akoidan
Created October 23, 2019 00:33
Show Gist options
  • Save akoidan/ea481d843a3d196583a574a467717003 to your computer and use it in GitHub Desktop.
Save akoidan/ea481d843a3d196583a574a467717003 to your computer and use it in GitHub Desktop.
Udevadm info 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:14.0/usb1/1-2/1-2.1':
KERNEL=="1-2.1"
SUBSYSTEM=="usb"
DRIVER=="usb"
ATTR{removable}=="unknown"
ATTR{bNumConfigurations}=="1"
ATTR{bDeviceSubClass}=="00"
ATTR{authorized}=="1"
ATTR{avoid_reset_quirk}=="0"
ATTR{busnum}=="1"
ATTR{manufacturer}=="Creative Technology Ltd"
ATTR{bConfigurationValue}=="1"
ATTR{idVendor}=="041e"
ATTR{ltm_capable}=="no"
ATTR{bDeviceClass}=="00"
ATTR{tx_lanes}=="1"
ATTR{urbnum}=="5167"
ATTR{bcdDevice}=="0100"
ATTR{bNumInterfaces}==" 5"
ATTR{version}==" 1.10"
ATTR{bmAttributes}=="80"
ATTR{devspec}=="(null)"
ATTR{configuration}==""
ATTR{bMaxPower}=="500mA"
ATTR{bDeviceProtocol}=="00"
ATTR{devnum}=="86"
ATTR{devpath}=="2.1"
ATTR{quirks}=="0x0"
ATTR{speed}=="12"
ATTR{maxchild}=="0"
ATTR{product}=="SB Omni Surround 5.1"
ATTR{serial}=="000000Hk"
ATTR{bMaxPacketSize0}=="64"
ATTR{rx_lanes}=="1"
ATTR{idProduct}=="322c"
looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-2':
KERNELS=="1-2"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRS{configuration}==""
ATTRS{removable}=="removable"
ATTRS{avoid_reset_quirk}=="0"
ATTRS{bNumConfigurations}=="1"
ATTRS{manufacturer}=="VIA Labs, Inc. "
ATTRS{bcdDevice}=="9004"
ATTRS{speed}=="480"
ATTRS{idVendor}=="2109"
ATTRS{devspec}=="(null)"
ATTRS{bMaxPacketSize0}=="64"
ATTRS{bDeviceProtocol}=="01"
ATTRS{bConfigurationValue}=="1"
ATTRS{urbnum}=="1265"
ATTRS{devpath}=="2"
ATTRS{bNumInterfaces}==" 1"
ATTRS{busnum}=="1"
ATTRS{tx_lanes}=="1"
ATTRS{maxchild}=="4"
ATTRS{bmAttributes}=="e0"
ATTRS{version}==" 2.10"
ATTRS{product}=="USB2.0 Hub "
ATTRS{rx_lanes}=="1"
ATTRS{quirks}=="0x0"
ATTRS{bDeviceSubClass}=="00"
ATTRS{ltm_capable}=="no"
ATTRS{bDeviceClass}=="09"
ATTRS{devnum}=="2"
ATTRS{authorized}=="1"
ATTRS{idProduct}=="2813"
ATTRS{bMaxPower}=="0mA"
looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1':
KERNELS=="usb1"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRS{bConfigurationValue}=="1"
ATTRS{configuration}==""
ATTRS{interface_authorized_default}=="1"
ATTRS{manufacturer}=="Linux 5.2.11-arch1-1-ARCH xhci-hcd"
ATTRS{bMaxPower}=="0mA"
ATTRS{removable}=="unknown"
ATTRS{bDeviceProtocol}=="01"
ATTRS{bmAttributes}=="e0"
ATTRS{devspec}=="(null)"
ATTRS{idVendor}=="1d6b"
ATTRS{version}==" 2.00"
ATTRS{bDeviceClass}=="09"
ATTRS{tx_lanes}=="1"
ATTRS{speed}=="480"
ATTRS{avoid_reset_quirk}=="0"
ATTRS{authorized_default}=="1"
ATTRS{ltm_capable}=="no"
ATTRS{product}=="xHCI Host Controller"
ATTRS{bDeviceSubClass}=="00"
ATTRS{maxchild}=="16"
ATTRS{rx_lanes}=="1"
ATTRS{bNumConfigurations}=="1"
ATTRS{bMaxPacketSize0}=="64"
ATTRS{serial}=="0000:00:14.0"
ATTRS{quirks}=="0x0"
ATTRS{devpath}=="0"
ATTRS{urbnum}=="2368"
ATTRS{authorized}=="1"
ATTRS{bcdDevice}=="0502"
ATTRS{bNumInterfaces}==" 1"
ATTRS{idProduct}=="0002"
ATTRS{busnum}=="1"
ATTRS{devnum}=="1"
looking at parent device '/devices/pci0000:00/0000:00:14.0':
KERNELS=="0000:00:14.0"
SUBSYSTEMS=="pci"
DRIVERS=="xhci_hcd"
ATTRS{vendor}=="0x8086"
ATTRS{d3cold_allowed}=="1"
ATTRS{subsystem_device}=="0x1155"
ATTRS{class}=="0x0c0330"
ATTRS{enable}=="1"
ATTRS{ari_enabled}=="0"
ATTRS{subsystem_vendor}=="0x1462"
ATTRS{consistent_dma_mask_bits}=="64"
ATTRS{devspec}==""
ATTRS{broken_parity_status}=="0"
ATTRS{driver_override}=="(null)"
ATTRS{msi_bus}=="1"
ATTRS{numa_node}=="-1"
ATTRS{irq}=="137"
ATTRS{dma_mask_bits}=="64"
ATTRS{local_cpus}=="ff"
ATTRS{revision}=="0x31"
ATTRS{device}=="0xa12f"
ATTRS{local_cpulist}=="0-7"
looking at parent device '/devices/pci0000:00':
KERNELS=="pci0000:00"
SUBSYSTEMS==""
DRIVERS==""
03:31:26:andrew:/home/andrew:0
: udevadm info --attribute-walk --path "devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1"^C
03:32:04:andrew:/home/andrew:130
: sudo udevadm monitor --environment --udev
[sudo] password for andrew:
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
UDEV [63624.499954] remove /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.0/sound/card1/controlC1 (sound)
ACTION=remove
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.0/sound/card1/controlC1
SUBSYSTEM=sound
DEVNAME=/dev/snd/controlC1
SEQNUM=9476
USEC_INITIALIZED=63366957346
ID_VENDOR=Creative_Technology_Ltd
ID_VENDOR_ENC=Creative\x20Technology\x20Ltd
ID_VENDOR_ID=041e
ID_MODEL=SB_Omni_Surround_5.1
ID_MODEL_ENC=SB\x20Omni\x20Surround\x205.1
ID_MODEL_ID=322c
ID_REVISION=0100
ID_SERIAL=Creative_Technology_Ltd_SB_Omni_Surround_5.1_000000Hk
ID_SERIAL_SHORT=000000Hk
ID_TYPE=audio
ID_BUS=usb
ID_USB_INTERFACES=:010100:010200:030000:
ID_USB_INTERFACE_NUM=00
ID_USB_DRIVER=snd-usb-audio
ID_PATH=pci-0000:00:14.0-usb-0:2.1:1.0
ID_PATH_TAG=pci-0000_00_14_0-usb-0_2_1_1_0
MAJOR=116
MINOR=17
DEVLINKS=/dev/snd/by-path/pci-0000:00:14.0-usb-0:2.1:1.0 /dev/snd/by-id/usb-Creative_Technology_Ltd_SB_Omni_Surround_5.1_000000Hk-00
TAGS=:uaccess:
UDEV [63624.502013] remove /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.0/sound/card1/pcmC1D2p (sound)
ACTION=remove
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.0/sound/card1/pcmC1D2p
SUBSYSTEM=sound
DEVNAME=/dev/snd/pcmC1D2p
DEVTYPE=pcm
SEQNUM=9477
USEC_INITIALIZED=63366953272
MAJOR=116
MINOR=16
TAGS=:uaccess:
UDEV [63624.502182] remove /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.0/sound/card1/pcmC1D1p (sound)
ACTION=remove
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.0/sound/card1/pcmC1D1p
SUBSYSTEM=sound
DEVNAME=/dev/snd/pcmC1D1p
DEVTYPE=pcm
SEQNUM=9478
USEC_INITIALIZED=63366955424
MAJOR=116
MINOR=15
TAGS=:uaccess:
UDEV [63624.505130] remove /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.0/sound/card1/pcmC1D0p (sound)
ACTION=remove
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.0/sound/card1/pcmC1D0p
SUBSYSTEM=sound
DEVNAME=/dev/snd/pcmC1D0p
DEVTYPE=pcm
SEQNUM=9479
USEC_INITIALIZED=63366949845
MAJOR=116
MINOR=13
TAGS=:uaccess:
UDEV [63624.507359] remove /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.0/sound/card1/pcmC1D0c (sound)
ACTION=remove
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.0/sound/card1/pcmC1D0c
SUBSYSTEM=sound
DEVNAME=/dev/snd/pcmC1D0c
DEVTYPE=pcm
SEQNUM=9480
USEC_INITIALIZED=63366956367
MAJOR=116
MINOR=14
TAGS=:uaccess:
UDEV [63624.507576] unbind /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.1 (usb)
ACTION=unbind
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.1
SUBSYSTEM=usb
DEVTYPE=usb_interface
PRODUCT=41e/322c/100
TYPE=0/0/0
INTERFACE=1/2/0
SEQNUM=9484
USEC_INITIALIZED=63366934470
adb_user=yes
UDEV [63624.508330] unbind /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.3 (usb)
ACTION=unbind
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.3
SUBSYSTEM=usb
DEVTYPE=usb_interface
PRODUCT=41e/322c/100
TYPE=0/0/0
INTERFACE=1/2/0
SEQNUM=9488
USEC_INITIALIZED=63366935646
adb_user=yes
UDEV [63624.508583] unbind /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.2 (usb)
ACTION=unbind
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.2
SUBSYSTEM=usb
DEVTYPE=usb_interface
PRODUCT=41e/322c/100
TYPE=0/0/0
INTERFACE=1/2/0
SEQNUM=9486
USEC_INITIALIZED=63366936185
adb_user=yes
UDEV [63624.512284] remove /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.2 (usb)
ACTION=remove
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.2
SUBSYSTEM=usb
DEVTYPE=usb_interface
PRODUCT=41e/322c/100
TYPE=0/0/0
INTERFACE=1/2/0
MODALIAS=usb:v041Ep322Cd0100dc00dsc00dp00ic01isc02ip00in02
SEQNUM=9487
USEC_INITIALIZED=63366936185
adb_user=yes
UDEV [63624.512620] remove /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.0/sound/card1 (sound)
ACTION=remove
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.0/sound/card1
SUBSYSTEM=sound
SEQNUM=9481
USEC_INITIALIZED=63366940345
ID_PATH=pci-0000:00:14.0-usb-0:2.1:1.0
ID_PATH_TAG=pci-0000_00_14_0-usb-0_2_1_1_0
ID_FOR_SEAT=sound-pci-0000_00_14_0-usb-0_2_1_1_0
SOUND_INITIALIZED=1
ID_VENDOR_FROM_DATABASE=Creative Technology, Ltd
ID_VENDOR=Creative_Technology_Ltd
ID_VENDOR_ENC=Creative\x20Technology\x20Ltd
ID_VENDOR_ID=041e
ID_MODEL=SB_Omni_Surround_5.1
ID_MODEL_ENC=SB\x20Omni\x20Surround\x205.1
ID_MODEL_ID=322c
ID_REVISION=0100
ID_SERIAL=Creative_Technology_Ltd_SB_Omni_Surround_5.1_000000Hk
ID_SERIAL_SHORT=000000Hk
ID_TYPE=audio
ID_BUS=usb
ID_USB_INTERFACES=:010100:010200:030000:
ID_USB_INTERFACE_NUM=00
ID_USB_DRIVER=snd-usb-audio
ID_ID=usb-Creative_Technology_Ltd_SB_Omni_Surround_5.1_000000Hk-00
PULSE_PROFILE_SET=sb-omni-surround-5.1.conf
SYSTEMD_WANTS=sound.target
TAGS=:systemd:seat:
UDEV [63624.512895] remove /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.3 (usb)
ACTION=remove
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.3
SUBSYSTEM=usb
DEVTYPE=usb_interface
PRODUCT=41e/322c/100
TYPE=0/0/0
INTERFACE=1/2/0
MODALIAS=usb:v041Ep322Cd0100dc00dsc00dp00ic01isc02ip00in03
SEQNUM=9489
USEC_INITIALIZED=63366935646
adb_user=yes
UDEV [63624.515152] remove /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.1 (usb)
ACTION=remove
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.1
SUBSYSTEM=usb
DEVTYPE=usb_interface
PRODUCT=41e/322c/100
TYPE=0/0/0
INTERFACE=1/2/0
MODALIAS=usb:v041Ep322Cd0100dc00dsc00dp00ic01isc02ip00in01
SEQNUM=9485
USEC_INITIALIZED=63366934470
adb_user=yes
UDEV [63624.518127] unbind /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.0 (usb)
ACTION=unbind
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.0
SUBSYSTEM=usb
DEVTYPE=usb_interface
PRODUCT=41e/322c/100
TYPE=0/0/0
INTERFACE=1/1/0
SEQNUM=9482
USEC_INITIALIZED=63366931883
adb_user=yes
UDEV [63624.523611] remove /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.0 (usb)
ACTION=remove
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.0
SUBSYSTEM=usb
DEVTYPE=usb_interface
PRODUCT=41e/322c/100
TYPE=0/0/0
INTERFACE=1/1/0
MODALIAS=usb:v041Ep322Cd0100dc00dsc00dp00ic01isc01ip00in00
SEQNUM=9483
USEC_INITIALIZED=63366931883
adb_user=yes
UDEV [63624.605183] remove /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.4/0003:041E:322C.0053/hidraw/hidraw0 (hidraw)
ACTION=remove
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.4/0003:041E:322C.0053/hidraw/hidraw0
SUBSYSTEM=hidraw
DEVNAME=/dev/hidraw0
SEQNUM=9494
USEC_INITIALIZED=63624603717
MAJOR=240
MINOR=0
UDEV [63624.608537] remove /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.4/0003:041E:322C.0053/input/input190/event7 (input)
ACTION=remove
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.4/0003:041E:322C.0053/input/input190/event7
SUBSYSTEM=input
DEVNAME=/dev/input/event7
SEQNUM=9490
USEC_INITIALIZED=63366993110
ID_INPUT=1
ID_INPUT_KEY=1
ID_VENDOR=Creative_Technology_Ltd
ID_VENDOR_ENC=Creative\x20Technology\x20Ltd
ID_VENDOR_ID=041e
ID_MODEL=SB_Omni_Surround_5.1
ID_MODEL_ENC=SB\x20Omni\x20Surround\x205.1
ID_MODEL_ID=322c
ID_REVISION=0100
ID_SERIAL=Creative_Technology_Ltd_SB_Omni_Surround_5.1_000000Hk
ID_SERIAL_SHORT=000000Hk
ID_TYPE=hid
ID_BUS=usb
ID_USB_INTERFACES=:010100:010200:030000:
ID_USB_INTERFACE_NUM=04
ID_USB_DRIVER=usbhid
ID_PATH=pci-0000:00:14.0-usb-0:2.1:1.4
ID_PATH_TAG=pci-0000_00_14_0-usb-0_2_1_1_4
LIBINPUT_DEVICE_GROUP=3/41e/322c:usb-0000:00:14.0-2
MAJOR=13
MINOR=71
DEVLINKS=/dev/input/by-id/usb-Creative_Technology_Ltd_SB_Omni_Surround_5.1_000000Hk-event-if04 /dev/input/by-path/pci-0000:00:14.0-usb-0:2.1:1.4-event
TAGS=:power-switch:
UDEV [63624.610390] remove /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.4/0003:041E:322C.0053/input/input191/event8 (input)
ACTION=remove
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.4/0003:041E:322C.0053/input/input191/event8
SUBSYSTEM=input
DEVNAME=/dev/input/event8
SEQNUM=9492
USEC_INITIALIZED=63366980993
ID_INPUT=1
ID_INPUT_KEY=1
ID_INPUT_KEYBOARD=1
ID_VENDOR=Creative_Technology_Ltd
ID_VENDOR_ENC=Creative\x20Technology\x20Ltd
ID_VENDOR_ID=041e
ID_MODEL=SB_Omni_Surround_5.1
ID_MODEL_ENC=SB\x20Omni\x20Surround\x205.1
ID_MODEL_ID=322c
ID_REVISION=0100
ID_SERIAL=Creative_Technology_Ltd_SB_Omni_Surround_5.1_000000Hk
ID_SERIAL_SHORT=000000Hk
ID_TYPE=hid
ID_BUS=usb
ID_USB_INTERFACES=:010100:010200:030000:
ID_USB_INTERFACE_NUM=04
ID_USB_DRIVER=usbhid
ID_PATH=pci-0000:00:14.0-usb-0:2.1:1.4
ID_PATH_TAG=pci-0000_00_14_0-usb-0_2_1_1_4
LIBINPUT_DEVICE_GROUP=3/41e/322c:usb-0000:00:14.0-2
MAJOR=13
MINOR=72
DEVLINKS=/dev/input/by-path/pci-0000:00:14.0-usb-0:2.1:1.4-event-kbd /dev/input/by-id/usb-Creative_Technology_Ltd_SB_Omni_Surround_5.1_000000Hk-if04-event-kbd
TAGS=:power-switch:
UDEV [63624.787590] remove /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.4/0003:041E:322C.0053/input/input190 (input)
ACTION=remove
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.4/0003:041E:322C.0053/input/input190
SUBSYSTEM=input
PRODUCT=3/41e/322c/111
NAME="Creative Technology Ltd SB Omni Surround 5.1 Consumer Control"
PHYS="usb-0000:00:14.0-2.1/input4"
UNIQ="000000Hk"
PROP=0
EV=13
KEY=80000004000000 0 0 0 3800000000 e000000000000 0
MSC=10
MODALIAS=input:b0003v041Ep322Ce0111-e0,1,4,k71,72,73,A3,A4,A5,19A,1B7,ram4,lsfw
SEQNUM=9491
USEC_INITIALIZED=63366950995
ID_INPUT=1
ID_INPUT_KEY=1
ID_VENDOR=Creative_Technology_Ltd
ID_VENDOR_ENC=Creative\x20Technology\x20Ltd
ID_VENDOR_ID=041e
ID_MODEL=SB_Omni_Surround_5.1
ID_MODEL_ENC=SB\x20Omni\x20Surround\x205.1
ID_MODEL_ID=322c
ID_REVISION=0100
ID_SERIAL=Creative_Technology_Ltd_SB_Omni_Surround_5.1_000000Hk
ID_SERIAL_SHORT=000000Hk
ID_TYPE=hid
ID_BUS=usb
ID_USB_INTERFACES=:010100:010200:030000:
ID_USB_INTERFACE_NUM=04
ID_USB_DRIVER=usbhid
ID_PATH=pci-0000:00:14.0-usb-0:2.1:1.4
ID_PATH_TAG=pci-0000_00_14_0-usb-0_2_1_1_4
ID_FOR_SEAT=input-pci-0000_00_14_0-usb-0_2_1_1_4
TAGS=:seat:
UDEV [63624.787812] remove /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.4/0003:041E:322C.0053/input/input191 (input)
ACTION=remove
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.4/0003:041E:322C.0053/input/input191
SUBSYSTEM=input
PRODUCT=3/41e/322c/111
NAME="Creative Technology Ltd SB Omni Surround 5.1 Keyboard"
PHYS="usb-0000:00:14.0-2.1/input4"
UNIQ="000000Hk"
PROP=0
EV=100013
KEY=e080ffdf01cfffff fffffffffffffffe
MSC=10
MODALIAS=input:b0003v041Ep322Ce0111-e0,1,4,14,k77,7D,7E,7F,ram4,lsfw
SEQNUM=9493
USEC_INITIALIZED=63366948309
ID_INPUT=1
ID_INPUT_KEY=1
ID_INPUT_KEYBOARD=1
ID_VENDOR=Creative_Technology_Ltd
ID_VENDOR_ENC=Creative\x20Technology\x20Ltd
ID_VENDOR_ID=041e
ID_MODEL=SB_Omni_Surround_5.1
ID_MODEL_ENC=SB\x20Omni\x20Surround\x205.1
ID_MODEL_ID=322c
ID_REVISION=0100
ID_SERIAL=Creative_Technology_Ltd_SB_Omni_Surround_5.1_000000Hk
ID_SERIAL_SHORT=000000Hk
ID_TYPE=hid
ID_BUS=usb
ID_USB_INTERFACES=:010100:010200:030000:
ID_USB_INTERFACE_NUM=04
ID_USB_DRIVER=usbhid
ID_PATH=pci-0000:00:14.0-usb-0:2.1:1.4
ID_PATH_TAG=pci-0000_00_14_0-usb-0_2_1_1_4
ID_FOR_SEAT=input-pci-0000_00_14_0-usb-0_2_1_1_4
TAGS=:seat:
UDEV [63624.789404] unbind /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.4/0003:041E:322C.0053 (hid)
ACTION=unbind
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.4/0003:041E:322C.0053
SUBSYSTEM=hid
HID_ID=0003:0000041E:0000322C
HID_NAME=Creative Technology Ltd SB Omni Surround 5.1
HID_PHYS=usb-0000:00:14.0-2.1/input4
HID_UNIQ=000000Hk
SEQNUM=9495
USEC_INITIALIZED=63624789311
UDEV [63624.790574] remove /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.4/0003:041E:322C.0053 (hid)
ACTION=remove
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.4/0003:041E:322C.0053
SUBSYSTEM=hid
HID_ID=0003:0000041E:0000322C
HID_NAME=Creative Technology Ltd SB Omni Surround 5.1
HID_PHYS=usb-0000:00:14.0-2.1/input4
HID_UNIQ=000000Hk
MODALIAS=hid:b0003g0001v0000041Ep0000322C
SEQNUM=9496
USEC_INITIALIZED=63624603857
UDEV [63624.792218] unbind /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.4 (usb)
ACTION=unbind
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.4
SUBSYSTEM=usb
DEVTYPE=usb_interface
PRODUCT=41e/322c/100
TYPE=0/0/0
INTERFACE=3/0/0
SEQNUM=9497
USEC_INITIALIZED=63366936561
adb_user=yes
UDEV [63624.794157] remove /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.4 (usb)
ACTION=remove
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1/1-2.1:1.4
SUBSYSTEM=usb
DEVTYPE=usb_interface
PRODUCT=41e/322c/100
TYPE=0/0/0
INTERFACE=3/0/0
MODALIAS=usb:v041Ep322Cd0100dc00dsc00dp00ic03isc00ip00in04
SEQNUM=9498
USEC_INITIALIZED=63366936561
adb_user=yes
UDEV [63624.796076] unbind /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1 (usb)
ACTION=unbind
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1
SUBSYSTEM=usb
DEVNAME=/dev/bus/usb/001/086
DEVTYPE=usb_device
PRODUCT=41e/322c/100
TYPE=0/0/0
BUSNUM=001
DEVNUM=086
SEQNUM=9499
USEC_INITIALIZED=63366892425
adb_user=yes
ID_PATH=pci-0000:00:14.0-usb-0:2.1
ID_PATH_TAG=pci-0000_00_14_0-usb-0_2_1
ID_FOR_SEAT=usb-pci-0000_00_14_0-usb-0_2_1
MAJOR=189
MINOR=85
DEVLINKS=/dev/android
TAGS=:uaccess:seat:
UDEV [63624.812639] remove /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1 (usb)
ACTION=remove
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2.1
SUBSYSTEM=usb
DEVNAME=/dev/bus/usb/001/086
DEVTYPE=usb_device
PRODUCT=41e/322c/100
TYPE=0/0/0
BUSNUM=001
DEVNUM=086
SEQNUM=9500
USEC_INITIALIZED=63366892425
adb_user=yes
ID_PATH=pci-0000:00:14.0-usb-0:2.1
ID_PATH_TAG=pci-0000_00_14_0-usb-0_2_1
ID_FOR_SEAT=usb-pci-0000_00_14_0-usb-0_2_1
MAJOR=189
MINOR=85
DEVLINKS=/dev/android
TAGS=:uaccess:seat:
devadm info 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:14.0/usb1/1-2/1-2.1':
KERNEL=="1-2.1"
SUBSYSTEM=="usb"
DRIVER=="usb"
ATTR{removable}=="unknown"
ATTR{bNumConfigurations}=="1"
ATTR{bDeviceSubClass}=="00"
ATTR{authorized}=="1"
ATTR{avoid_reset_quirk}=="0"
ATTR{busnum}=="1"
ATTR{manufacturer}=="Creative Technology Ltd"
ATTR{bConfigurationValue}=="1"
ATTR{idVendor}=="041e"
ATTR{ltm_capable}=="no"
ATTR{bDeviceClass}=="00"
ATTR{tx_lanes}=="1"
ATTR{urbnum}=="5167"
ATTR{bcdDevice}=="0100"
ATTR{bNumInterfaces}==" 5"
ATTR{version}==" 1.10"
ATTR{bmAttributes}=="80"
ATTR{devspec}=="(null)"
ATTR{configuration}==""
ATTR{bMaxPower}=="500mA"
ATTR{bDeviceProtocol}=="00"
ATTR{devnum}=="86"
ATTR{devpath}=="2.1"
ATTR{quirks}=="0x0"
ATTR{speed}=="12"
ATTR{maxchild}=="0"
ATTR{product}=="SB Omni Surround 5.1"
ATTR{serial}=="000000Hk"
ATTR{bMaxPacketSize0}=="64"
ATTR{rx_lanes}=="1"
ATTR{idProduct}=="322c"
looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-2':
KERNELS=="1-2"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRS{configuration}==""
ATTRS{removable}=="removable"
ATTRS{avoid_reset_quirk}=="0"
ATTRS{bNumConfigurations}=="1"
ATTRS{manufacturer}=="VIA Labs, Inc. "
ATTRS{bcdDevice}=="9004"
ATTRS{speed}=="480"
ATTRS{idVendor}=="2109"
ATTRS{devspec}=="(null)"
ATTRS{bMaxPacketSize0}=="64"
ATTRS{bDeviceProtocol}=="01"
ATTRS{bConfigurationValue}=="1"
ATTRS{urbnum}=="1265"
ATTRS{devpath}=="2"
ATTRS{bNumInterfaces}==" 1"
ATTRS{busnum}=="1"
ATTRS{tx_lanes}=="1"
ATTRS{maxchild}=="4"
ATTRS{bmAttributes}=="e0"
ATTRS{version}==" 2.10"
ATTRS{product}=="USB2.0 Hub "
ATTRS{rx_lanes}=="1"
ATTRS{quirks}=="0x0"
ATTRS{bDeviceSubClass}=="00"
ATTRS{ltm_capable}=="no"
ATTRS{bDeviceClass}=="09"
ATTRS{devnum}=="2"
ATTRS{authorized}=="1"
ATTRS{idProduct}=="2813"
ATTRS{bMaxPower}=="0mA"
looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1':
KERNELS=="usb1"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRS{bConfigurationValue}=="1"
ATTRS{configuration}==""
ATTRS{interface_authorized_default}=="1"
ATTRS{manufacturer}=="Linux 5.2.11-arch1-1-ARCH xhci-hcd"
ATTRS{bMaxPower}=="0mA"
ATTRS{removable}=="unknown"
ATTRS{bDeviceProtocol}=="01"
ATTRS{bmAttributes}=="e0"
ATTRS{devspec}=="(null)"
ATTRS{idVendor}=="1d6b"
ATTRS{version}==" 2.00"
ATTRS{bDeviceClass}=="09"
ATTRS{tx_lanes}=="1"
ATTRS{speed}=="480"
ATTRS{avoid_reset_quirk}=="0"
ATTRS{authorized_default}=="1"
ATTRS{ltm_capable}=="no"
ATTRS{product}=="xHCI Host Controller"
ATTRS{bDeviceSubClass}=="00"
ATTRS{maxchild}=="16"
ATTRS{rx_lanes}=="1"
ATTRS{bNumConfigurations}=="1"
ATTRS{bMaxPacketSize0}=="64"
ATTRS{serial}=="0000:00:14.0"
ATTRS{quirks}=="0x0"
ATTRS{devpath}=="0"
ATTRS{urbnum}=="2368"
ATTRS{authorized}=="1"
ATTRS{bcdDevice}=="0502"
ATTRS{bNumInterfaces}==" 1"
ATTRS{idProduct}=="0002"
ATTRS{busnum}=="1"
ATTRS{devnum}=="1"
looking at parent device '/devices/pci0000:00/0000:00:14.0':
KERNELS=="0000:00:14.0"
SUBSYSTEMS=="pci"
DRIVERS=="xhci_hcd"
ATTRS{vendor}=="0x8086"
ATTRS{d3cold_allowed}=="1"
ATTRS{subsystem_device}=="0x1155"
ATTRS{class}=="0x0c0330"
ATTRS{enable}=="1"
ATTRS{ari_enabled}=="0"
ATTRS{subsystem_vendor}=="0x1462"
ATTRS{consistent_dma_mask_bits}=="64"
ATTRS{devspec}==""
ATTRS{broken_parity_status}=="0"
ATTRS{driver_override}=="(null)"
ATTRS{msi_bus}=="1"
ATTRS{numa_node}=="-1"
ATTRS{irq}=="137"
ATTRS{dma_mask_bits}=="64"
ATTRS{local_cpus}=="ff"
ATTRS{revision}=="0x31"
ATTRS{device}=="0xa12f"
ATTRS{local_cpulist}=="0-7"
looking at parent device '/devices/pci0000:00':
KERNELS=="pci0000:00"
SUBSYSTEMS==""
DRIVERS==""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment