Skip to content

Unable to run examples #65

@medakk

Description

@medakk

Thanks for creating this library!

I'm having some trouble running the examples on Ubuntu 20.04, with kernel 5.11.0-38-generic. I paired my Joy-Con (R) via bluetooth.

$ dmesg
[   52.887339] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[   52.887344] Bluetooth: HIDP socket layer initialized
[   53.950876] hid-generic 0005:057E:2007.0007: unknown main item tag 0x0
[   53.951099] input: Joy-Con (R) as /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/bluetooth/hci0/hci0:256/0005:057E:2007.0007/input/input31
[   53.951471] hid-generic 0005:057E:2007.0007: input,hidraw4: BLUETOOTH HID v0.01 Gamepad [Joy-Con (R)] on c8:21:58:8e:32:ca

If I run cat /dev/input/js0 I can see that button presses are getting sent to my computer. However, the joycon-rs examples (for example scan_for_joycons) don't seem to recognize my joycon. There is no output and I can only close it with Ctrl+C

I also tried the "Receiving reports" example on the README.md and the same behaviour occurs there. Using a debugger, its stuck on the line managed_devices.into_iter()

I've also tried using the dkms-hid-nintendo kernel module, but I still can't get the library to work.

Do you have any pointers on what else I could try/check?

EDIT: to confirm the dkms HID nintendo kernel module works, I have verified with dmesg:

[ 1841.730027] input: Nintendo Switch Right Joy-Con as /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/bluetooth/hci0/hci0:256/0005:057E:2007.0009/input/input34
[ 1841.730617] input: Nintendo Switch Right Joy-Con IMU as /devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/bluetooth/hci0/hci0:256/0005:057E:2007.0009/input/input35

and two controllers(regulars controls, and IMU) show up in jstest-gtk

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions