udevadm info -a /dev/input/event19 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/virtual/misc/uhid/0005:17EF:6088.0003/input/input20/event19': KERNEL=="event19" SUBSYSTEM=="input" DRIVER=="" looking at parent device '/devices/virtual/misc/uhid/0005:17EF:6088.0003/input/input20': KERNELS=="input20" SUBSYSTEMS=="input" DRIVERS=="" ATTRS{name}=="ThinkPad X1 Mouse" ATTRS{phys}=="44:85:00:10:3A:9B" ATTRS{properties}=="0" ATTRS{uniq}=="F4:D5:41:4F:B0:5E" looking at parent device '/devices/virtual/misc/uhid/0005:17EF:6088.0003': KERNELS=="0005:17EF:6088.0003" SUBSYSTEMS=="hid" DRIVERS=="hid-generic" ATTRS{country}=="00" looking at parent device '/devices/virtual/misc/uhid': KERNELS=="uhid" SUBSYSTEMS=="misc" DRIVERS==""