Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Possibility of using the newer kernel events? #22

Open
parkerlreed opened this issue Mar 30, 2018 · 0 comments
Open

Comments

@parkerlreed
Copy link

For example on my Plus I get this when connecting from Bluez 5

[114301.190380] wiimote 0005:057E:0330.0059: detected device: Nintendo Wii Remote Plus (Gen 2)
[114301.190631] input: Nintendo Wii Remote Accelerometer as /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/bluetooth/hci0/hci0:21/0005:057E:0330.0059/input/input168
[114301.190786] input: Nintendo Wii Remote IR as /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/bluetooth/hci0/hci0:21/0005:057E:0330.0059/input/input169
[114301.190876] input: Nintendo Wii Remote as /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/bluetooth/hci0/hci0:21/0005:057E:0330.0059/input/input167
[114301.287793] wiimote 0005:057E:0330.0059: detected extension: Nintendo Wii Motion Plus
[114301.287878] input: Nintendo Wii Remote Motion Plus as /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/bluetooth/hci0/hci0:21/0005:057E:0330.0059/input/input170

Taking the IR entry and enumerating the folder shows

[parker@inspiron15 ~]$ ls /sys/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/bluetooth/hci0/hci0:21/0005:057E:0330.0059/input/input169
capabilities  event24  modalias  phys   properties  uevent
device        id       name      power  subsystem   uniq

That event24 folder is the /dev/input/ mapping for that particular component (IR)

[parker@inspiron15 ~]$ cat /sys/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/bluetooth/hci0/hci0:21/0005:057E:0330.0059/input/input169/event24/uevent
MAJOR=13
MINOR=88
DEVNAME=input/event24

If the dev node could be used, it would make it so the Wiimote could stay connected to host without having to go through the 1+2/SYNC pairing every single time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant