Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- With 2 SSH sessions, in one I ran:
- Lakka:~ # bluetoothctl
- [NEW] Controller B8:27:EB:16:9B:AD BlueZ 5.43 [default]
- [NEW] Device 00:12:A1:6D:1A:65 ION iCade Game Controller
- [CHG] Device 00:12:A1:6D:1A:65 Connected: yes
- [CHG] Device 00:12:A1:6D:1A:65 Connected: no
- [CHG] Device 00:12:A1:6D:1A:65 Connected: yes
- [CHG] Device 00:12:A1:6D:1A:65 Connected: no
- [bluetooth]# connect 00:12:A1:6D:1A:65
- Attempting to connect to 00:12:A1:6D:1A:65
- [CHG] Device 00:12:A1:6D:1A:65 Connected: yes
- Connection successful
- [CHG] Device 00:12:A1:6D:1A:65 ServicesResolved: yes
- [ION iCade Game Controller]#
- On the other I ran:
- Lakka:~ # udevadm monitor
- monitor will print the received events for:
- UDEV - the event which udev sends out after rule processing
- KERNEL - the kernel uevent
- KERNEL[476.060067] add /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hc i0/hci0:11 (bluetooth)
- UDEV [476.065081] add /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hc i0/hci0:11 (bluetooth)
- KERNEL[480.387038] remove /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hc i0/hci0:11 (bluetooth)
- UDEV [480.391240] remove /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hc i0/hci0:11 (bluetooth)
- KERNEL[483.816397] add /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hc i0/hci0:11 (bluetooth)
- UDEV [483.824761] add /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hc i0/hci0:11 (bluetooth)
- KERNEL[488.070387] remove /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hc i0/hci0:11 (bluetooth)
- UDEV [488.074260] remove /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hc i0/hci0:11 (bluetooth)
- KERNEL[517.677335] add /module/hidp (module)
- UDEV [517.681820] add /module/hidp (module)
- KERNEL[517.793367] add /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hc i0/hci0:12 (bluetooth)
- UDEV [517.798485] add /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hc i0/hci0:12 (bluetooth)
- KERNEL[517.907234] add /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hc i0/hci0:12/0005:15E4:0132.0002 (hid)
- UDEV [517.913343] add /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hc i0/hci0:12/0005:15E4:0132.0002 (hid)
- so it appears udevadm is picking up on events?
- Lakka:~ # cat /proc/bus/input/devices
- I: Bus=0003 Vendor=0079 Product=0006 Version=0110
- N: Name="Generic USB Joystick "
- P: Phys=usb-3f980000.usb-1.2/input0
- S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:0079:0006.0001/input/input0
- U: Uniq=
- H: Handlers=js0 event0
- B: PROP=0
- B: EV=20001b
- B: KEY=fff 0 0 0 0 0 0 0 0 0
- B: ABS=3002f
- B: MSC=10
- B: FF=1 7030000 0 0
- but this outputs only my N64 USB controller :(
- and finally:
- Lakka:~ # udevadm info --name=input/event0
- P: /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:0079:0006.0001/input/input0/event0
- N: input/event0
- S: input/by-id/usb-0079_Generic_USB_Joystick-event-joystick
- S: input/by-path/platform-3f980000.usb-usb-0:1.2:1.0-event-joystick
- 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
- E: DEVNAME=/dev/input/event0
- 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
- E: ID_BUS=usb
- E: ID_FOR_SEAT=input-platform-3f980000_usb-usb-0_1_2_1_0
- E: ID_INPUT=1
- E: ID_INPUT_JOYSTICK=1
- E: ID_MODEL=Generic_USB_Joystick
- E: ID_MODEL_ENC=Generic\x20\x20\x20USB\x20\x20Joystick\x20\x20
- E: ID_MODEL_ID=0006
- E: ID_PATH=platform-3f980000.usb-usb-0:1.2:1.0
- E: ID_PATH_TAG=platform-3f980000_usb-usb-0_1_2_1_0
- E: ID_REVISION=0109
- E: ID_SERIAL=0079_Generic_USB_Joystick
- E: ID_TYPE=hid
- E: ID_USB_DRIVER=usbhid
- E: ID_USB_INTERFACES=:030000:
- E: ID_USB_INTERFACE_NUM=00
- E: ID_VENDOR=0079
- E: ID_VENDOR_ENC=0079
- E: ID_VENDOR_ID=0079
- E: MAJOR=13
- E: MINOR=64
- E: SUBSYSTEM=input
- E: TAGS=:uaccess:seat:
- E: USEC_INITIALIZED=4718152
- Lakka:~ # udevadm info --name=input/event1
- device node not found
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement