DanielOgorchock / joycond

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

freezing on "adding epoll_subscriber" #75

Open ghost opened 3 years ago

ghost commented 3 years ago

i can't pair joycons with SL+SR, L+R, etc

● joycond.service - joycond
     Loaded: loaded (/etc/systemd/system/joycond.service; enabled; vendor preset: disabled)
     Active: active (running) since Thu 2021-08-12 12:25:15 EEST; 13s ago
   Main PID: 4821 (joycond)
      Tasks: 1 (limit: 19023)
     Memory: 384.0K
        CPU: 3ms
     CGroup: /system.slice/joycond.service
             └─4821 /usr/bin/joycond

Aug 12 12:25:15 fedora systemd[1]: Started joycond.
Aug 12 12:25:15 fedora joycond[4821]: adding epoll_subscriber: fd=4

theres the logs, (yes they are full logs)

ghost commented 3 years ago

extra info: im on Fedora 34 and i built joycond and dkms-hid-nintendo from source

ghost commented 3 years ago

is anyone gonna answer?

ghost commented 3 years ago

is anyone gonna answer?

gamezoid123 commented 3 years ago

Yeah, I'm having the same issue on gentoo. would really appreciate some help as well.

githubwasamistake commented 3 years ago

Happening to me on ubuntu 20.04, also built joycond and dkms-hid-nintendo from source

githubwasamistake commented 2 years ago

ok, I got the pad working when I switched usb ports, I previously connected it through a usb hub, everything appears to work except the gyro... does this driver support the gyro?

ghost commented 2 years ago

what usb port? as far as i know joycons dont have usb, and this issue is:

i can't pair joycons

oh and i fixed it, i dont know how, but it fixed itself and i just realised gyro pointer doesnt exist on joycond, so there goes my project :D

githubwasamistake commented 2 years ago

I was using a pro controller by usb through a usb hub and it was giving the same error as you got when I decided to plug it directly into a motherboard port, it was finally able to pair properly there's another joycon driver on github and it appears to have gyro, I'll be trying that out since I wanna try gyro controls in fps

charJe commented 2 years ago

I have this same problem. I'm using Guix and have tried the package from guix and building from source. Same issue. I have hid_nintendo kernel module loaded.

infirit commented 2 years ago

afaik you need to press a couple buttons before things start to work, https://github.com/DanielOgorchock/joycond#usage

charJe commented 2 years ago

This is probably the problem then. My joycons are only in pairing mode (blinking lights) before connecting to bluetooth. As soon as they connect with bluetooth, one gets a single light, and the other gets two lights.

infirit commented 2 years ago

I agree the message about polling isn't very helpful. Maybe it can print out the button combinations and mention it's waiting for them untill it does something.

charJe commented 2 years ago

Maybe I should create a new issue for this.

charJe commented 2 years ago

I tested this on a different operating system (ubuntu) (same machine). Everything is built from source and using dkms hid-nintendo. I tried this with several configurations. Here is the result of each.

configuration 1: no hid-nintendo, no joycond.

Joycons connect with bluetooth. After connecting, the lights continue to bounce back and forth. This seems all normal, obviously we can't move on because we have no driver.

configuration 2: hid-nintendo, no joycond.

Joycons connect with bluetooth. After connecting, one joycon becomes single player (1 light) the other becomes second player (2 lights). Interestingly this is the same thing that happens on my guix computer whether running joycond or not.

configuration 3: hid-nintendo, joycond (run with sudo joycond)

Joycons connect with bluetooth. After connecting, all the lights go out (different than what is described in the "Usage" document). At this point, joycond has a lot of output whereas before it was just adding epoll_subscriber. Pressing buttons on the joycons does not make them light up. Pressing buttons on the joycons does make joycond identify the joycon with a log. The joycons can be paired together with the shoulder buttons as intended. A single joycon can go into horizontal mode by using the side buttons (SL & SR); however, only one controller can be in horizontal mode, and the other one needs a partner while the side buttons do nothing (this is most certainly a separate issue though).

conclusion

This indicates that the problem does not lie with my bluetooth configuration or the hid-nintendo, but indeed somehow with joycond not picking up on the joycons. I'm not sure how to continue from here though.

mcs615-2 commented 1 week ago

same, but ZorinOS 17.2 Core and sudo doesn't turn them off, their keep bouncing. before now i used AntimicroX and to set the right profile so that the screenshot button also can be used is hard. Now I left with a not working joycond!