/home/ben # udevadm info /dev/input/event8 P: /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.2/0003:1532:0210.0005/input/input10/event8 N: input/event8 S: input/by-id/usb-Razer_Razer_Blade_Pro-if02-event-mouse S: input/by-path/pci-0000:00:14.0-usb-0:8:1.2-event-mouse E: DEVLINKS=/dev/input/by-id/usb-Razer_Razer_Blade_Pro-if02-event-mouse /dev/input/by-path/pci-0000:00:14.0-usb-0:8:1.2-event-mouse E: DEVNAME=/dev/input/event8 E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.2/0003:1532:0210.0005/input/input10/event8 E: ID_BUS=usb E: ID_INPUT=1 E: ID_INPUT_MOUSE=1 E: ID_MODEL=Razer_Blade_Pro E: ID_MODEL_ENC=Razer\x20Blade\x20Pro E: ID_MODEL_ID=0210 E: ID_PATH=pci-0000:00:14.0-usb-0:8:1.2 E: ID_PATH_TAG=pci-0000_00_14_0-usb-0_8_1_2 E: ID_REVISION=0200 E: ID_SERIAL=Razer_Razer_Blade_Pro E: ID_TYPE=hid E: ID_USB_DRIVER=usbhid E: ID_USB_INTERFACES=:030101:030001:030102:ffff00: E: ID_USB_INTERFACE_NUM=02 E: ID_VENDOR=Razer E: ID_VENDOR_ENC=Razer E: ID_VENDOR_ID=1532 E: LIBINPUT_DEVICE_GROUP=3/1532/210/111:usb-0000:00:14.0-8 E: MAJOR=13 E: MINOR=72 E: SUBSYSTEM=input E: USEC_INITIALIZED=14518911 /home/ben # udevadm info -a -p $(udevadm info -q path -n /dev/input/event8) 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-8/1-8:1.2/0003:1532:0210.0005/input/input10/event8': KERNEL=="event8" SUBSYSTEM=="input" DRIVER=="" looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.2/0003:1532:0210.0005/input/input10': KERNELS=="input10" SUBSYSTEMS=="input" DRIVERS=="" ATTRS{uniq}=="" ATTRS{properties}=="0" ATTRS{phys}=="usb-0000:00:14.0-8/input2" ATTRS{name}=="Razer Razer Blade Pro" looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.2/0003:1532:0210.0005': KERNELS=="0003:1532:0210.0005" SUBSYSTEMS=="hid" DRIVERS=="hid-generic" ATTRS{country}=="00" looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.2': KERNELS=="1-8:1.2" SUBSYSTEMS=="usb" DRIVERS=="usbhid" ATTRS{bInterfaceProtocol}=="02" ATTRS{bInterfaceNumber}=="02" ATTRS{bInterfaceSubClass}=="01" ATTRS{bInterfaceClass}=="03" ATTRS{bAlternateSetting}==" 0" ATTRS{authorized}=="1" ATTRS{bNumEndpoints}=="01" ATTRS{supports_autosuspend}=="1" looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1/1-8': KERNELS=="1-8" SUBSYSTEMS=="usb" DRIVERS=="usb" ATTRS{bDeviceClass}=="00" ATTRS{manufacturer}=="Razer" ATTRS{bmAttributes}=="a0" ATTRS{bConfigurationValue}=="1" ATTRS{version}==" 2.00" ATTRS{devnum}=="5" ATTRS{bMaxPower}=="500mA" ATTRS{idProduct}=="0210" ATTRS{avoid_reset_quirk}=="0" ATTRS{urbnum}=="859" ATTRS{bDeviceSubClass}=="00" ATTRS{maxchild}=="0" ATTRS{bcdDevice}=="0200" ATTRS{bMaxPacketSize0}=="64" ATTRS{idVendor}=="1532" ATTRS{product}=="Razer Blade Pro" ATTRS{speed}=="12" ATTRS{removable}=="fixed" ATTRS{ltm_capable}=="no" ATTRS{bNumConfigurations}=="1" ATTRS{busnum}=="1" ATTRS{authorized}=="1" ATTRS{quirks}=="0x0" ATTRS{configuration}=="" ATTRS{devpath}=="8" ATTRS{bDeviceProtocol}=="00" ATTRS{bNumInterfaces}==" 4" looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1': KERNELS=="usb1" SUBSYSTEMS=="usb" DRIVERS=="usb" ATTRS{bDeviceClass}=="09" ATTRS{manufacturer}=="Linux 4.9.10-gentoo xhci-hcd" ATTRS{bmAttributes}=="e0" ATTRS{bConfigurationValue}=="1" ATTRS{version}==" 2.00" ATTRS{devnum}=="1" ATTRS{bMaxPower}=="0mA" ATTRS{idProduct}=="0002" ATTRS{avoid_reset_quirk}=="0" ATTRS{urbnum}=="102" ATTRS{bDeviceSubClass}=="00" ATTRS{maxchild}=="16" ATTRS{bcdDevice}=="0409" ATTRS{bMaxPacketSize0}=="64" ATTRS{idVendor}=="1d6b" ATTRS{product}=="xHCI Host Controller" ATTRS{speed}=="480" ATTRS{authorized_default}=="1" ATTRS{interface_authorized_default}=="1" ATTRS{removable}=="unknown" ATTRS{ltm_capable}=="no" ATTRS{serial}=="0000:00:14.0" ATTRS{bNumConfigurations}=="1" ATTRS{busnum}=="1" ATTRS{authorized}=="1" ATTRS{quirks}=="0x0" ATTRS{configuration}=="" ATTRS{devpath}=="0" ATTRS{bDeviceProtocol}=="01" ATTRS{bNumInterfaces}==" 1" looking at parent device '/devices/pci0000:00/0000:00:14.0': KERNELS=="0000:00:14.0" SUBSYSTEMS=="pci" DRIVERS=="xhci_hcd" ATTRS{subsystem_device}=="0x6750" ATTRS{vendor}=="0x8086" ATTRS{d3cold_allowed}=="1" ATTRS{msi_bus}=="1" ATTRS{device}=="0xa12f" ATTRS{local_cpulist}=="0-7" ATTRS{class}=="0x0c0330" ATTRS{driver_override}=="(null)" ATTRS{local_cpus}=="ff" ATTRS{enable}=="1" ATTRS{irq}=="120" ATTRS{broken_parity_status}=="0" ATTRS{dma_mask_bits}=="64" ATTRS{consistent_dma_mask_bits}=="64" ATTRS{subsystem_vendor}=="0x1a58" looking at parent device '/devices/pci0000:00': KERNELS=="pci0000:00" SUBSYSTEMS=="" DRIVERS=="" /home/ben #