Advertisement
paalfe

PC1-Lakka-udevadm-info-js0

Aug 2nd, 2015
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 7.24 KB | None | 0 0
  1. # udevadm info -an /dev/input/js0
  2.  
  3. Udevadm info starts with the device specified by the devpath and then
  4. walks up the chain of parent devices. It prints for every device
  5. found, all possible attributes in the udev rules key format.
  6. A rule to match, can be composed by the attributes of the device
  7. and the attributes from one single parent device.
  8.  
  9.   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':
  10.     KERNEL=="js0"
  11.     SUBSYSTEM=="input"
  12.     DRIVER==""
  13.  
  14.   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':
  15.     KERNELS=="input11"
  16.     SUBSYSTEMS=="input"
  17.     DRIVERS==""
  18.     ATTRS{name}=="8Bitdo NES30 GamePad Joystick"
  19.     ATTRS{phys}=="00:1a:7d:da:71:0b"
  20.     ATTRS{uniq}=="9e:fb:f1:65:8e:fe"
  21.     ATTRS{properties}=="0"
  22.  
  23.   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':
  24.     KERNELS=="0005:2820:0009.0005"
  25.     SUBSYSTEMS=="hid"
  26.     DRIVERS=="hid-generic"
  27.  
  28.   looking at parent device '/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0/bluetooth/hci0/hci0:70':
  29.     KERNELS=="hci0:70"
  30.     SUBSYSTEMS=="bluetooth"
  31.     DRIVERS==""
  32.     ATTRS{type}=="ACL"
  33.     ATTRS{address}=="9e:fb:f1:65:8e:fe"
  34.  
  35.   looking at parent device '/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0/bluetooth/hci0':
  36.     KERNELS=="hci0"
  37.     SUBSYSTEMS=="bluetooth"
  38.     DRIVERS==""
  39.     ATTRS{name}=="BlueZ 5.27"
  40.     ATTRS{type}=="BR/EDR"
  41.     ATTRS{address}=="00:1a:7d:da:71:0b"
  42.  
  43.   looking at parent device '/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0':
  44.     KERNELS=="3-1:1.0"
  45.     SUBSYSTEMS=="usb"
  46.     DRIVERS=="btusb"
  47.     ATTRS{bInterfaceClass}=="e0"
  48.     ATTRS{bInterfaceSubClass}=="01"
  49.     ATTRS{bInterfaceProtocol}=="01"
  50.     ATTRS{bNumEndpoints}=="03"
  51.     ATTRS{supports_autosuspend}=="1"
  52.     ATTRS{bAlternateSetting}==" 0"
  53.     ATTRS{bInterfaceNumber}=="00"
  54.  
  55.   looking at parent device '/devices/pci0000:00/0000:00:1a.0/usb3/3-1':
  56.     KERNELS=="3-1"
  57.     SUBSYSTEMS=="usb"
  58.     DRIVERS=="usb"
  59.     ATTRS{bDeviceSubClass}=="01"
  60.     ATTRS{bDeviceProtocol}=="01"
  61.     ATTRS{devpath}=="1"
  62.     ATTRS{idVendor}=="0a12"
  63.     ATTRS{speed}=="12"
  64.     ATTRS{bNumInterfaces}==" 2"
  65.     ATTRS{bConfigurationValue}=="1"
  66.     ATTRS{bMaxPacketSize0}=="64"
  67.     ATTRS{busnum}=="3"
  68.     ATTRS{devnum}=="2"
  69.     ATTRS{configuration}==""
  70.     ATTRS{bMaxPower}=="100mA"
  71.     ATTRS{authorized}=="1"
  72.     ATTRS{bmAttributes}=="e0"
  73.     ATTRS{bNumConfigurations}=="1"
  74.     ATTRS{maxchild}=="0"
  75.     ATTRS{bcdDevice}=="8891"
  76.     ATTRS{avoid_reset_quirk}=="0"
  77.     ATTRS{quirks}=="0x0"
  78.     ATTRS{version}==" 2.00"
  79.     ATTRS{urbnum}=="551"
  80.     ATTRS{ltm_capable}=="no"
  81.     ATTRS{removable}=="unknown"
  82.     ATTRS{idProduct}=="0001"
  83.     ATTRS{bDeviceClass}=="e0"
  84.     ATTRS{product}=="CSR8510 A10"
  85.  
  86.   looking at parent device '/devices/pci0000:00/0000:00:1a.0/usb3':
  87.     KERNELS=="usb3"
  88.     SUBSYSTEMS=="usb"
  89.     DRIVERS=="usb"
  90.     ATTRS{bDeviceSubClass}=="00"
  91.     ATTRS{bDeviceProtocol}=="00"
  92.     ATTRS{devpath}=="0"
  93.     ATTRS{idVendor}=="1d6b"
  94.     ATTRS{speed}=="12"
  95.     ATTRS{bNumInterfaces}==" 1"
  96.     ATTRS{bConfigurationValue}=="1"
  97.     ATTRS{bMaxPacketSize0}=="64"
  98.     ATTRS{authorized_default}=="1"
  99.     ATTRS{busnum}=="3"
  100.     ATTRS{devnum}=="1"
  101.     ATTRS{configuration}==""
  102.     ATTRS{bMaxPower}=="0mA"
  103.     ATTRS{authorized}=="1"
  104.     ATTRS{bmAttributes}=="e0"
  105.     ATTRS{bNumConfigurations}=="1"
  106.     ATTRS{maxchild}=="2"
  107.     ATTRS{bcdDevice}=="0319"
  108.     ATTRS{avoid_reset_quirk}=="0"
  109.     ATTRS{quirks}=="0x0"
  110.     ATTRS{serial}=="0000:00:1a.0"
  111.     ATTRS{version}==" 1.10"
  112.     ATTRS{urbnum}=="34"
  113.     ATTRS{ltm_capable}=="no"
  114.     ATTRS{manufacturer}=="Linux 3.19.2 uhci_hcd"
  115.     ATTRS{removable}=="unknown"
  116.     ATTRS{idProduct}=="0001"
  117.     ATTRS{bDeviceClass}=="09"
  118.     ATTRS{product}=="UHCI Host Controller"
  119.  
  120.   looking at parent device '/devices/pci0000:00/0000:00:1a.0':
  121.     KERNELS=="0000:00:1a.0"
  122.     SUBSYSTEMS=="pci"
  123.     DRIVERS=="uhci_hcd"
  124.     ATTRS{irq}=="16"
  125.     ATTRS{subsystem_vendor}=="0x1028"
  126.     ATTRS{broken_parity_status}=="0"
  127.     ATTRS{class}=="0x0c0300"
  128.     ATTRS{driver_override}=="(null)"
  129.     ATTRS{consistent_dma_mask_bits}=="32"
  130.     ATTRS{dma_mask_bits}=="32"
  131.     ATTRS{local_cpus}=="0003"
  132.     ATTRS{device}=="0x3a67"
  133.     ATTRS{enable}=="1"
  134.     ATTRS{msi_bus}=="1"
  135.     ATTRS{local_cpulist}=="0-1"
  136.     ATTRS{vendor}=="0x8086"
  137.     ATTRS{subsystem_device}=="0x0420"
  138.     ATTRS{numa_node}=="-1"
  139.     ATTRS{d3cold_allowed}=="0"
  140.  
  141.   looking at parent device '/devices/pci0000:00':
  142.     KERNELS=="pci0000:00"
  143.     SUBSYSTEMS==""
  144.     DRIVERS==""
  145. </code>
  146.  
  147. <code>
  148. # cat /proc/bus/input/devices
  149.  
  150. I: Bus=0019 Vendor=0000 Product=0001 Version=0000
  151. N: Name="Power Button"
  152. P: Phys=PNP0C0C/button/input0
  153. S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0
  154. U: Uniq=
  155. H: Handlers=kbd event0
  156. B: PROP=0
  157. B: EV=3
  158. B: KEY=10000000000000 0
  159.  
  160. I: Bus=0019 Vendor=0000 Product=0001 Version=0000
  161. N: Name="Power Button"
  162. P: Phys=LNXPWRBN/button/input0
  163. S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input1
  164. U: Uniq=
  165. H: Handlers=kbd event1
  166. B: PROP=0
  167. B: EV=3
  168. B: KEY=10000000000000 0
  169.  
  170. I: Bus=0003 Vendor=046d Product=4024 Version=0111
  171. N: Name="Logitech K400"
  172. P: Phys=usb-0000:00:1d.0-1:1
  173. 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
  174. U: Uniq=
  175. H: Handlers=sysrq kbd mouse0 event2
  176. B: PROP=0
  177. B: EV=12001f
  178. B: KEY=3007f 0 0 83ffff17aff32d bf54444600000000 ffff0001 130f978b17c007 ffff73fad9415fff febeffdfffefffff fffffffffffffffe
  179. B: REL=1c3
  180. B: ABS=100000000
  181. B: MSC=10
  182. B: LED=1f
  183.  
  184. I: Bus=0001 Vendor=11d4 Product=194a Version=0001
  185. N: Name="HDA Digital PCBeep"
  186. P: Phys=card0/codec#2/beep0
  187. S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card0/hdaudioC0D2/input6
  188. U: Uniq=
  189. H: Handlers=kbd event3
  190. B: PROP=0
  191. B: EV=40001
  192. B: SND=6
  193.  
  194. I: Bus=0000 Vendor=0000 Product=0000 Version=0000
  195. N: Name="HDA Intel Mic"
  196. P: Phys=ALSA
  197. S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card0/input7
  198. U: Uniq=
  199. H: Handlers=event4
  200. B: PROP=0
  201. B: EV=21
  202. B: SW=10
  203.  
  204. I: Bus=0000 Vendor=0000 Product=0000 Version=0000
  205. N: Name="HDA Intel Line"
  206. P: Phys=ALSA
  207. S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card0/input8
  208. U: Uniq=
  209. H: Handlers=event5
  210. B: PROP=0
  211. B: EV=21
  212. B: SW=2000
  213.  
  214. I: Bus=0000 Vendor=0000 Product=0000 Version=0000
  215. N: Name="HDA Intel Line Out"
  216. P: Phys=ALSA
  217. S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card0/input9
  218. U: Uniq=
  219. H: Handlers=event6
  220. B: PROP=0
  221. B: EV=21
  222. B: SW=40
  223.  
  224. I: Bus=0000 Vendor=0000 Product=0000 Version=0000
  225. N: Name="HDA Intel Front Headphone"
  226. P: Phys=ALSA
  227. S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card0/input10
  228. U: Uniq=
  229. H: Handlers=event7
  230. B: PROP=0
  231. B: EV=21
  232. B: SW=4
  233.  
  234. I: Bus=0005 Vendor=2820 Product=0009 Version=0100
  235. N: Name="8Bitdo NES30 GamePad Joystick"
  236. P: Phys=00:1a:7d:da:71:0b
  237. 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
  238. U: Uniq=9e:fb:f1:65:8e:fe
  239. H: Handlers=sysrq kbd mouse1 js0 event8
  240. B: PROP=0
  241. B: EV=12001f
  242. B: KEY=400000000 ffff0000001f0000 1000002000007 ff9f307ac14057ff febeffdfffefffff fffffffffffffffe
  243. B: REL=103
  244. B: ABS=30627
  245. B: MSC=10
  246. B: LED=1f
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement