Advertisement
Guest User

Untitled

a guest
Jun 7th, 2018
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.43 KB | None | 0 0
  1. With 2 SSH sessions, in one I ran:
  2.  
  3. Lakka:~ # bluetoothctl
  4.  
  5. [NEW] Controller B8:27:EB:16:9B:AD BlueZ 5.43 [default]
  6. [NEW] Device 00:12:A1:6D:1A:65 ION iCade Game Controller
  7. [CHG] Device 00:12:A1:6D:1A:65 Connected: yes
  8. [CHG] Device 00:12:A1:6D:1A:65 Connected: no
  9. [CHG] Device 00:12:A1:6D:1A:65 Connected: yes
  10. [CHG] Device 00:12:A1:6D:1A:65 Connected: no
  11. [bluetooth]# connect 00:12:A1:6D:1A:65
  12. Attempting to connect to 00:12:A1:6D:1A:65
  13. [CHG] Device 00:12:A1:6D:1A:65 Connected: yes
  14. Connection successful
  15. [CHG] Device 00:12:A1:6D:1A:65 ServicesResolved: yes
  16. [ION iCade Game Controller]#
  17.  
  18. On the other I ran:
  19.  
  20. Lakka:~ # udevadm monitor
  21.  
  22. monitor will print the received events for:
  23. UDEV - the event which udev sends out after rule processing
  24. KERNEL - the kernel uevent
  25.  
  26. KERNEL[476.060067] add /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hc i0/hci0:11 (bluetooth)
  27. UDEV [476.065081] add /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hc i0/hci0:11 (bluetooth)
  28. KERNEL[480.387038] remove /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hc i0/hci0:11 (bluetooth)
  29. UDEV [480.391240] remove /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hc i0/hci0:11 (bluetooth)
  30. KERNEL[483.816397] add /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hc i0/hci0:11 (bluetooth)
  31. UDEV [483.824761] add /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hc i0/hci0:11 (bluetooth)
  32. KERNEL[488.070387] remove /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hc i0/hci0:11 (bluetooth)
  33. UDEV [488.074260] remove /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hc i0/hci0:11 (bluetooth)
  34. KERNEL[517.677335] add /module/hidp (module)
  35. UDEV [517.681820] add /module/hidp (module)
  36. KERNEL[517.793367] add /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hc i0/hci0:12 (bluetooth)
  37. UDEV [517.798485] add /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hc i0/hci0:12 (bluetooth)
  38. KERNEL[517.907234] add /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hc i0/hci0:12/0005:15E4:0132.0002 (hid)
  39. UDEV [517.913343] add /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hc i0/hci0:12/0005:15E4:0132.0002 (hid)
  40.  
  41. so it appears udevadm is picking up on events?
  42.  
  43. Lakka:~ # cat /proc/bus/input/devices
  44.  
  45. I: Bus=0003 Vendor=0079 Product=0006 Version=0110
  46. N: Name="Generic USB Joystick "
  47. P: Phys=usb-3f980000.usb-1.2/input0
  48. S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:0079:0006.0001/input/input0
  49. U: Uniq=
  50. H: Handlers=js0 event0
  51. B: PROP=0
  52. B: EV=20001b
  53. B: KEY=fff 0 0 0 0 0 0 0 0 0
  54. B: ABS=3002f
  55. B: MSC=10
  56. B: FF=1 7030000 0 0
  57.  
  58. but this outputs only my N64 USB controller :(
  59.  
  60. and finally:
  61.  
  62. Lakka:~ # udevadm info --name=input/event0
  63. P: /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:0079:0006.0001/input/input0/event0
  64. N: input/event0
  65. S: input/by-id/usb-0079_Generic_USB_Joystick-event-joystick
  66. S: input/by-path/platform-3f980000.usb-usb-0:1.2:1.0-event-joystick
  67. E: DEVLINKS=/dev/input/by-id/usb-0079_Generic_USB_Joystick-event-joystick /dev/input/by-path/platform-3f980000.usb-usb-0:1.2:1.0-event-joystick
  68. E: DEVNAME=/dev/input/event0
  69. E: DEVPATH=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:0079:0006.0001/input/input0/event0
  70. E: ID_BUS=usb
  71. E: ID_FOR_SEAT=input-platform-3f980000_usb-usb-0_1_2_1_0
  72. E: ID_INPUT=1
  73. E: ID_INPUT_JOYSTICK=1
  74. E: ID_MODEL=Generic_USB_Joystick
  75. E: ID_MODEL_ENC=Generic\x20\x20\x20USB\x20\x20Joystick\x20\x20
  76. E: ID_MODEL_ID=0006
  77. E: ID_PATH=platform-3f980000.usb-usb-0:1.2:1.0
  78. E: ID_PATH_TAG=platform-3f980000_usb-usb-0_1_2_1_0
  79. E: ID_REVISION=0109
  80. E: ID_SERIAL=0079_Generic_USB_Joystick
  81. E: ID_TYPE=hid
  82. E: ID_USB_DRIVER=usbhid
  83. E: ID_USB_INTERFACES=:030000:
  84. E: ID_USB_INTERFACE_NUM=00
  85. E: ID_VENDOR=0079
  86. E: ID_VENDOR_ENC=0079
  87. E: ID_VENDOR_ID=0079
  88. E: MAJOR=13
  89. E: MINOR=64
  90. E: SUBSYSTEM=input
  91. E: TAGS=:uaccess:seat:
  92. E: USEC_INITIALIZED=4718152
  93.  
  94. Lakka:~ # udevadm info --name=input/event1
  95. device node not found
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement