emilyst / hid-nx-dkms

Alternative Linux kernel HID driver for Nintendo Switch controllers
GNU General Public License v2.0
40 stars 6 forks source link

3rd party gamepad: Failed to set baudrate; ret=-110 #19

Closed moving-hawk closed 4 months ago

moving-hawk commented 4 months ago

I use a third-party gamepad for which I can switch to NS mode on Windows. However, for Linux, I encounter the following error:

[ 3413.101168] usb 9-1: new full-speed USB device number 7 using xhci_hcd
[ 3413.265872] usb 9-1: New USB device found, idVendor=057e, idProduct=2009, bcdDevice= 2.00
[ 3413.265877] usb 9-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 3413.265879] usb 9-1: Product: BEITONG A1N3 NS GAMEPAD 
[ 3413.265881] usb 9-1: Manufacturer: BEITONG 
[ 3413.293446] nintendo 0003:057E:2009.0005: hidraw1: USB HID v81.11 Joystick [BEITONG  BEITONG A1N3 NS GAMEPAD ] on usb-0000:05:00.4-1/input0
[ 3415.387098] nintendo 0003:057E:2009.0005: Failed to set baudrate; ret=-110
[ 3415.387105] nintendo 0003:057E:2009.0005: Failed to initialize controller; ret=-110
[ 3415.387596] nintendo 0003:057E:2009.0005: probe - fail = -110
[ 3415.387608] nintendo: probe of 0003:057E:2009.0005 failed with error -110
[ 3415.387936] nx 0003:057E:2009.0005: hidraw1: USB HID v81.11 Joystick [BEITONG  BEITONG A1N3 NS GAMEPAD ] on usb-0000:05:00.4-1/input0
[ 3417.499076] nx 0003:057E:2009.0005: Failed to set baudrate; ret=-110
[ 3417.499299] nx 0003:057E:2009.0005: probe - fail = -110
[ 3417.499310] nx: probe of 0003:057E:2009.0005 failed with error -110

I think perhaps I can modify the file hid-nx.c to make my gamepad run correctly, but I don't know how to do it. In advance, thank you for your help.

nfp0 commented 4 months ago

The Linux kernel has native support for these controllers now (since kernel 6.8). Have you tried that instead of this DKMS?

moving-hawk commented 4 months ago

The Linux kernel has native support for these controllers now (since kernel 6.8). Have you tried that instead of this DKMS?

the kernel module hid-nintendo has the same error

SuperSamus commented 4 months ago

The baudrate fix (on the kernel driver) is going to land on Linux 6.10. https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git/commit/?h=for-next&id=28ba6011f5dfd337e61e9c5618824115c63be66a

moving-hawk commented 4 months ago

The baudrate fix (on the kernel driver) is going to land on Linux 6.10. https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git/commit/?h=for-next&id=28ba6011f5dfd337e61e9c5618824115c63be66a

thank you. Maybe i just need to wait for it?