Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # udevadm info -an /dev/input/js0
- 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:1a.0/usb3/3-1/3-1:1.0/bluetooth/hci0/hci0:70/0005:2820:0009.0005/input/input11/js0':
- KERNEL=="js0"
- SUBSYSTEM=="input"
- DRIVER==""
- looking at parent device '/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0/bluetooth/hci0/hci0:70/0005:2820:0009.0005/input/input11':
- KERNELS=="input11"
- SUBSYSTEMS=="input"
- DRIVERS==""
- ATTRS{name}=="8Bitdo NES30 GamePad Joystick"
- ATTRS{phys}=="00:1a:7d:da:71:0b"
- ATTRS{uniq}=="9e:fb:f1:65:8e:fe"
- ATTRS{properties}=="0"
- looking at parent device '/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0/bluetooth/hci0/hci0:70/0005:2820:0009.0005':
- KERNELS=="0005:2820:0009.0005"
- SUBSYSTEMS=="hid"
- DRIVERS=="hid-generic"
- looking at parent device '/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0/bluetooth/hci0/hci0:70':
- KERNELS=="hci0:70"
- SUBSYSTEMS=="bluetooth"
- DRIVERS==""
- ATTRS{type}=="ACL"
- ATTRS{address}=="9e:fb:f1:65:8e:fe"
- looking at parent device '/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0/bluetooth/hci0':
- KERNELS=="hci0"
- SUBSYSTEMS=="bluetooth"
- DRIVERS==""
- ATTRS{name}=="BlueZ 5.27"
- ATTRS{type}=="BR/EDR"
- ATTRS{address}=="00:1a:7d:da:71:0b"
- looking at parent device '/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0':
- KERNELS=="3-1:1.0"
- SUBSYSTEMS=="usb"
- DRIVERS=="btusb"
- ATTRS{bInterfaceClass}=="e0"
- ATTRS{bInterfaceSubClass}=="01"
- ATTRS{bInterfaceProtocol}=="01"
- ATTRS{bNumEndpoints}=="03"
- ATTRS{supports_autosuspend}=="1"
- ATTRS{bAlternateSetting}==" 0"
- ATTRS{bInterfaceNumber}=="00"
- looking at parent device '/devices/pci0000:00/0000:00:1a.0/usb3/3-1':
- KERNELS=="3-1"
- SUBSYSTEMS=="usb"
- DRIVERS=="usb"
- ATTRS{bDeviceSubClass}=="01"
- ATTRS{bDeviceProtocol}=="01"
- ATTRS{devpath}=="1"
- ATTRS{idVendor}=="0a12"
- ATTRS{speed}=="12"
- ATTRS{bNumInterfaces}==" 2"
- ATTRS{bConfigurationValue}=="1"
- ATTRS{bMaxPacketSize0}=="64"
- ATTRS{busnum}=="3"
- ATTRS{devnum}=="2"
- ATTRS{configuration}==""
- ATTRS{bMaxPower}=="100mA"
- ATTRS{authorized}=="1"
- ATTRS{bmAttributes}=="e0"
- ATTRS{bNumConfigurations}=="1"
- ATTRS{maxchild}=="0"
- ATTRS{bcdDevice}=="8891"
- ATTRS{avoid_reset_quirk}=="0"
- ATTRS{quirks}=="0x0"
- ATTRS{version}==" 2.00"
- ATTRS{urbnum}=="551"
- ATTRS{ltm_capable}=="no"
- ATTRS{removable}=="unknown"
- ATTRS{idProduct}=="0001"
- ATTRS{bDeviceClass}=="e0"
- ATTRS{product}=="CSR8510 A10"
- looking at parent device '/devices/pci0000:00/0000:00:1a.0/usb3':
- KERNELS=="usb3"
- SUBSYSTEMS=="usb"
- DRIVERS=="usb"
- ATTRS{bDeviceSubClass}=="00"
- ATTRS{bDeviceProtocol}=="00"
- ATTRS{devpath}=="0"
- ATTRS{idVendor}=="1d6b"
- ATTRS{speed}=="12"
- ATTRS{bNumInterfaces}==" 1"
- ATTRS{bConfigurationValue}=="1"
- ATTRS{bMaxPacketSize0}=="64"
- ATTRS{authorized_default}=="1"
- ATTRS{busnum}=="3"
- ATTRS{devnum}=="1"
- ATTRS{configuration}==""
- ATTRS{bMaxPower}=="0mA"
- ATTRS{authorized}=="1"
- ATTRS{bmAttributes}=="e0"
- ATTRS{bNumConfigurations}=="1"
- ATTRS{maxchild}=="2"
- ATTRS{bcdDevice}=="0319"
- ATTRS{avoid_reset_quirk}=="0"
- ATTRS{quirks}=="0x0"
- ATTRS{serial}=="0000:00:1a.0"
- ATTRS{version}==" 1.10"
- ATTRS{urbnum}=="34"
- ATTRS{ltm_capable}=="no"
- ATTRS{manufacturer}=="Linux 3.19.2 uhci_hcd"
- ATTRS{removable}=="unknown"
- ATTRS{idProduct}=="0001"
- ATTRS{bDeviceClass}=="09"
- ATTRS{product}=="UHCI Host Controller"
- looking at parent device '/devices/pci0000:00/0000:00:1a.0':
- KERNELS=="0000:00:1a.0"
- SUBSYSTEMS=="pci"
- DRIVERS=="uhci_hcd"
- ATTRS{irq}=="16"
- ATTRS{subsystem_vendor}=="0x1028"
- ATTRS{broken_parity_status}=="0"
- ATTRS{class}=="0x0c0300"
- ATTRS{driver_override}=="(null)"
- ATTRS{consistent_dma_mask_bits}=="32"
- ATTRS{dma_mask_bits}=="32"
- ATTRS{local_cpus}=="0003"
- ATTRS{device}=="0x3a67"
- ATTRS{enable}=="1"
- ATTRS{msi_bus}=="1"
- ATTRS{local_cpulist}=="0-1"
- ATTRS{vendor}=="0x8086"
- ATTRS{subsystem_device}=="0x0420"
- ATTRS{numa_node}=="-1"
- ATTRS{d3cold_allowed}=="0"
- looking at parent device '/devices/pci0000:00':
- KERNELS=="pci0000:00"
- SUBSYSTEMS==""
- DRIVERS==""
- </code>
- <code>
- # cat /proc/bus/input/devices
- I: Bus=0019 Vendor=0000 Product=0001 Version=0000
- N: Name="Power Button"
- P: Phys=PNP0C0C/button/input0
- S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0
- U: Uniq=
- H: Handlers=kbd event0
- B: PROP=0
- B: EV=3
- B: KEY=10000000000000 0
- I: Bus=0019 Vendor=0000 Product=0001 Version=0000
- N: Name="Power Button"
- P: Phys=LNXPWRBN/button/input0
- S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input1
- U: Uniq=
- H: Handlers=kbd event1
- B: PROP=0
- B: EV=3
- B: KEY=10000000000000 0
- I: Bus=0003 Vendor=046d Product=4024 Version=0111
- N: Name="Logitech K400"
- P: Phys=usb-0000:00:1d.0-1:1
- S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.2/0003:046D:C52B.0003/0003:046D:4024.0004/input/input5
- U: Uniq=
- H: Handlers=sysrq kbd mouse0 event2
- B: PROP=0
- B: EV=12001f
- B: KEY=3007f 0 0 83ffff17aff32d bf54444600000000 ffff0001 130f978b17c007 ffff73fad9415fff febeffdfffefffff fffffffffffffffe
- B: REL=1c3
- B: ABS=100000000
- B: MSC=10
- B: LED=1f
- I: Bus=0001 Vendor=11d4 Product=194a Version=0001
- N: Name="HDA Digital PCBeep"
- P: Phys=card0/codec#2/beep0
- S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card0/hdaudioC0D2/input6
- U: Uniq=
- H: Handlers=kbd event3
- B: PROP=0
- B: EV=40001
- B: SND=6
- I: Bus=0000 Vendor=0000 Product=0000 Version=0000
- N: Name="HDA Intel Mic"
- P: Phys=ALSA
- S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card0/input7
- U: Uniq=
- H: Handlers=event4
- B: PROP=0
- B: EV=21
- B: SW=10
- I: Bus=0000 Vendor=0000 Product=0000 Version=0000
- N: Name="HDA Intel Line"
- P: Phys=ALSA
- S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card0/input8
- U: Uniq=
- H: Handlers=event5
- B: PROP=0
- B: EV=21
- B: SW=2000
- I: Bus=0000 Vendor=0000 Product=0000 Version=0000
- N: Name="HDA Intel Line Out"
- P: Phys=ALSA
- S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card0/input9
- U: Uniq=
- H: Handlers=event6
- B: PROP=0
- B: EV=21
- B: SW=40
- I: Bus=0000 Vendor=0000 Product=0000 Version=0000
- N: Name="HDA Intel Front Headphone"
- P: Phys=ALSA
- S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card0/input10
- U: Uniq=
- H: Handlers=event7
- B: PROP=0
- B: EV=21
- B: SW=4
- I: Bus=0005 Vendor=2820 Product=0009 Version=0100
- N: Name="8Bitdo NES30 GamePad Joystick"
- P: Phys=00:1a:7d:da:71:0b
- S: Sysfs=/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0/bluetooth/hci0/hci0:70/0005:2820:0009.0006/input/input12
- U: Uniq=9e:fb:f1:65:8e:fe
- H: Handlers=sysrq kbd mouse1 js0 event8
- B: PROP=0
- B: EV=12001f
- B: KEY=400000000 ffff0000001f0000 1000002000007 ff9f307ac14057ff febeffdfffefffff fffffffffffffffe
- B: REL=103
- B: ABS=30627
- B: MSC=10
- B: LED=1f
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement