DanielOgorchock / joycond

userspace daemon to combine joy-cons from the hid-nintendo kernel driver
GNU General Public License v3.0
340 stars 68 forks source link

Joycond does not find joycons #71

Closed ettmetal closed 2 years ago

ettmetal commented 2 years ago

I don't know how else to explain the issue. When connecting a joycon (L or R), bluetooth settings report that it is connected but instead of all lights blinking as expected with joycond, they continues to ping-pong up and down.

running sudo journalctl -u joycond --follow shows many lines of output like

Jan 1 00:00:00 example joycond[0000]: no match found for /sys//devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0/bluetooth/hci0/hci0:256/0000:0000:0000.0000/input/input39/event258/device/device/leds/player4

(real values redacted)

At first, I thought the "//" was maaaybe a mistake, so I changed phys_ctlr.cpp:35 to not add a slash before devpath, but after recompiling I get the same output (with one less slash).

DanielOgorchock commented 2 years ago

What version of hid-nintendo are you using? Are you using the dkms module or building it into the kernel yourself?

DanielOgorchock commented 2 years ago

Also I assume you're building joycond including this patch? https://github.com/DanielOgorchock/joycond/commit/0ae9c8fc07260786d86b19ca43525422073fe8a9

I thought that patch was backwards compat with the older hid-nintendo naming scheme for the leds, but maybe I broke it.

ettmetal commented 2 years ago

I'm using dkms, dkms-hid-nintendo v3.1. I didn't see that had been updated, I'll give it a try

ettmetal commented 2 years ago

Yes, the version of joycond I was building included that patch

ettmetal commented 2 years ago

It looks like updating hid-nintendo worked, it seems the change wasn't backward compatible as you hoped. Thanks for pointing me in the right direction, though :)

May I suggest adding a hid-nintendo version to the readme? If nothing else to remind impatient folks like myself that there is a dependency here, and we should go check it before disturbing you. Thanks for the hard work :D

tarTG commented 2 years ago

Hello, i get the exact same issue using the current master-branch of joycond and dkms-hid-nintendo 3.2 i use manjaro-linux with kernel 5.14. Is there anything i can miss during the installation or should i use an older #commit to avoid this issue??

tarTG commented 2 years ago

I found the problem... dkms-hid-nintendo was not installed, but the package-manager prompted install successful. I was missing the linux-headers.