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

Incorrect pathing for device #76

Open alkaris2 opened 2 years ago

alkaris2 commented 2 years ago

Joycond has incorrect pathing for the device;

Aug 29 20:52:23 tohru joycond[1173423]: no match found for /sys//devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0/0003:057E:2009.000C/input/input34>
Aug 29 20:52:23 tohru joycond[1173423]: no match found for /sys//devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0/0003:057E:2009.000C/input/input34>
Aug 29 20:52:23 tohru joycond[1173423]: no match found for /sys//devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0/0003:057E:2009.000C/input/input34>
Aug 29 20:52:23 tohru joycond[1173423]: no match found for /sys//devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0/0003:057E:2009.000C/input/input34>
Aug 29 20:52:23 tohru joycond[1173423]: no match found for /sys//devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0/0003:057E:2009.000C/input/input34>
Aug 29 20:52:23 tohru joycond[1173423]: no match found for /sys//devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0/0003:057E:2009.000C/input/input34>
Aug 29 20:52:23 tohru joycond[1173423]: no match found for /sys//devices/pci0000:00/0000:00:14.0/usb1/1-13/1-13:1.0/0003:057E:2009.000C/input/input34>
Aug 29 20:52:23 tohru joycond[1173423]: driver_name: Nintendo Co., Ltd. Pro Controller
Aug 29 20:52:23 tohru joycond[1173423]: MAC: 000000000001
Aug 29 20:52:23 tohru joycond[1173423]: adding epoll_subscriber: fd=5

Why is there a double / in /sys//devices ?? This shouldn't be like that. How do I edit this to correct the path?

alkaris2 commented 2 years ago

Anybody?

marcothms commented 2 years ago

I'm also encountering the same issue.

xiaoxiae commented 2 years ago

Same here.

wakeupingear commented 2 years ago

Also having this issue.

wakeupingear commented 2 years ago

I changed the source to replace "/sys/" with "/sys" in the devpath and recompiled, but the result was the same. This seems to be unrelated to the double slash. May 22 22:42:57 linux joycond[18410]: no match found for /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/0003>

PSeitz commented 2 years ago

For me it worked, and then stopped working with the same error

infirit commented 2 years ago

Linux only cares about multiple slashes if you start a path with more than one. Otherwise they will be treated as one. Should it be avoided, sure, but it won't make any difference in this case.