paroj / xpad

Linux Kernel Driver for the Xbox/ Xbox 360/ Xbox One Controllers
801 stars 178 forks source link

8Bitdo Ultimate Bluetooth Controller connected via 2.4 GHz dongle turns off almost instantly after connecting if it's not immediately actively used #274

Open Reonu opened 2 months ago

Reonu commented 2 months ago

Note that this doesn't happen if Steam is open, presumably because Steam takes over the controller, but that's not a solution, as I would like to use it with non-Steam apps too without having to add everything to Steam.

Also note that this is specifically about the 8Bitdo Ultimate Bluetooth Controller, and only when connected via the dongle.

So the issue is that the controller will turn off pretty much instantly after connecting if it's not being used. Even if I do maintain it connected by connecting it while a game is running, it can also turn off if, for example, I close the app that was actively interacting with the controller.

As an example, this happens with the Parallel Launcher N64 emulator.

If I manage to get in-game with the controller connected, everything is fine. But the moment I close the game, the controller will instantly disconnect (even though Parallel Launcher itself is still open). None of this happens if Steam is open in the background, it will work fine if that's the case, but that creates a new whole subset off issues.

None of this happens on Windows. There the controller stays connected until it's innactive for a few minutes and THEN it disconnects,, as expected.

OS: EndeavourOS, up to date.

williamlagos commented 2 months ago

I can confirm that I have the same issue here, with an 8Bitdo Ultimate Bluetooth controller, connected via USB 2.4GHz dongle to a Raspberry Pi 2B with RetroPie installed. The controller turns on, it recognizes its buttons for 6 seconds and then turns off. My workaround for now is playing with the same controller at the same 2.4GHz mode but connected directly via USB to the RPi.

I haven't tried the Bluetooth mode yet. Just tested yesterday, and when it is on Bluetooth / Switch Mode, it works just fine, just needs to be paired and connected from one time to another. That's why I think it would be nice to troubleshoot this for the 2.4GHz Mode and see what's happening.

I'll look for system logs later to show here what is happening. Here are the logs from dmesg at the moment the controller tries to connect:

[ 1027.278670] nintendo: probe of 0005:057E:2009.0002 failed with error -110
[ 5981.779038] usb 1-1.2: new full-speed USB device number 5 using dwc_otg
[ 5981.914073] usb 1-1.2: New USB device found, idVendor=057e, idProduct=2009, bcdDevice= 2.00
[ 5981.914177] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 5981.914194] usb 1-1.2: Product: Pro Controller
[ 5981.914212] usb 1-1.2: Manufacturer: Nintendo.Co.Ltd.
[ 5981.914225] usb 1-1.2: SerialNumber: 000000000001
[ 5981.929993] nintendo 0003:057E:2009.0003: hidraw0: USB HID v81.11 Joystick [Nintendo.Co.Ltd. Pro Controller] on usb-3f980000.usb-1.2/input0
[ 5982.313006] nintendo 0003:057E:2009.0003: using factory cal for left stick
[ 5982.338148] nintendo 0003:057E:2009.0003: using factory cal for right stick
[ 5982.396932] nintendo 0003:057E:2009.0003: using factory cal for IMU
[ 5982.506039] nintendo 0003:057E:2009.0003: controller MAC = 7F:9E:CA:D8:17:E4
[ 5983.069129] nintendo 0003:057E:2009.0003: Failed to set home LED default, unregistering home LED
[ 5983.608469] leds 0003:057E:2009.0003:blue:player-5: Setting an LED's brightness failed (-110)
[ 5983.610281] input: Nintendo Switch Pro Controller as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:057E:2009.0003/input/input5
[ 5983.611658] input: Nintendo Switch Pro Controller IMU as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:057E:2009.0003/input/input6
[ 5985.670370] usb 1-1.2: USB disconnect, device number 5
[ 5986.248942] usb 1-1.2: new full-speed USB device number 6 using dwc_otg
[ 5986.385419] usb 1-1.2: New USB device found, idVendor=2dc8, idProduct=3106, bcdDevice= 1.14
[ 5986.385471] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 5986.385486] usb 1-1.2: Product: Ultimate Wireless Controller
[ 5986.385500] usb 1-1.2: Manufacturer: 8BitDo
[ 5986.386438] usb 1-1.2: can't set config #1, error -32
[ 5986.596270] usb 1-1.2: USB disconnect, device number 6
[ 5987.409231] usb 1-1.2: new full-speed USB device number 7 using dwc_otg
[ 5987.543319] usb 1-1.2: New USB device found, idVendor=2dc8, idProduct=3109, bcdDevice= 2.00
[ 5987.543385] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 5987.543407] usb 1-1.2: Product: Ultimate Wireless Controller
[ 5987.543424] usb 1-1.2: Manufacturer: 8BitDo
[ 5987.543439] usb 1-1.2: SerialNumber: aebaead817e4
[ 5987.551049] hid-generic 0003:2DC8:3109.0004: hiddev96,hidraw0: USB HID v1.11 Device [8BitDo Ultimate Wireless Controller] on usb-3f980000.usb-1.2/input0
[ 5999.654326] usb 1-1.2: USB disconnect, device number 7
[ 6000.458958] usb 1-1.2: new full-speed USB device number 8 using dwc_otg
[ 6000.592557] usb 1-1.2: New USB device found, idVendor=057e, idProduct=2009, bcdDevice= 2.00
[ 6000.592626] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 6000.592649] usb 1-1.2: Product: Pro Controller
[ 6000.592665] usb 1-1.2: Manufacturer: Nintendo.Co.Ltd.
[ 6000.592682] usb 1-1.2: SerialNumber: 000000000001
[ 6000.611044] nintendo 0003:057E:2009.0005: hidraw0: USB HID v81.11 Joystick [Nintendo.Co.Ltd. Pro Controller] on usb-3f980000.usb-1.2/input0
[ 6000.978075] nintendo 0003:057E:2009.0005: using factory cal for left stick
[ 6001.003094] nintendo 0003:057E:2009.0005: using factory cal for right stick
[ 6001.078075] nintendo 0003:057E:2009.0005: using factory cal for IMU
[ 6001.179066] nintendo 0003:057E:2009.0005: controller MAC = 7F:9E:CA:D8:17:E4
[ 6001.718991] nintendo 0003:057E:2009.0005: Failed to set home LED default, unregistering home LED
[ 6002.239046] leds 0003:057E:2009.0005:blue:player-5: Setting an LED's brightness failed (-110)
[ 6002.241002] input: Nintendo Switch Pro Controller as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:057E:2009.0005/input/input7
[ 6002.242448] input: Nintendo Switch Pro Controller IMU as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:057E:2009.0005/input/input8
[ 6004.350233] usb 1-1.2: USB disconnect, device number 8
[ 6004.928952] usb 1-1.2: new full-speed USB device number 9 using dwc_otg
[ 6005.064825] usb 1-1.2: New USB device found, idVendor=2dc8, idProduct=3106, bcdDevice= 1.14
[ 6005.064899] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 6005.064916] usb 1-1.2: Product: Ultimate Wireless Controller
[ 6005.064930] usb 1-1.2: Manufacturer: 8BitDo
[ 6005.064942] usb 1-1.2: SerialNumber: aebaead817e4
[ 6005.135020] xpad: loading out-of-tree module taints kernel.
[ 6005.137465] input: 8BitDo Ultimate Wireless / Pro 2 Wired Controller as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/input/input9
[ 6005.138725] usbcore: registered new interface driver xpad
[ 6005.579047] xpad 1-1.2:1.0: xpad_irq_in - usb_submit_urb failed with result -1
[ 6009.643351] usb 1-1.2: USB disconnect, device number 9
[ 6009.643823] xpad 1-1.2:1.0: xpad_try_sending_next_out_packet - usb_submit_urb failed with result -19
[ 6010.159003] usb 1-1.2: new full-speed USB device number 10 using dwc_otg
[ 6010.294921] usb 1-1.2: New USB device found, idVendor=2dc8, idProduct=3106, bcdDevice= 1.14
[ 6010.294978] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 6010.294995] usb 1-1.2: Product: Ultimate Wireless Controller
[ 6010.295009] usb 1-1.2: Manufacturer: 8BitDo
[ 6010.295021] usb 1-1.2: SerialNumber: fe51ebd817e4
[ 6010.296920] input: 8BitDo Ultimate Wireless / Pro 2 Wired Controller as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/input/input10
[ 6010.412363] usb 1-1.2: USB disconnect, device number 10
[ 6010.412793] xpad 1-1.2:1.0: xpad_try_sending_next_out_packet - usb_submit_urb failed with result -19
[ 6011.219071] usb 1-1.2: new full-speed USB device number 11 using dwc_otg
[ 6011.352328] usb 1-1.2: New USB device found, idVendor=2dc8, idProduct=3109, bcdDevice= 2.00
[ 6011.352400] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 6011.352422] usb 1-1.2: Product: Ultimate Wireless Controller
[ 6011.352440] usb 1-1.2: Manufacturer: 8BitDo
[ 6011.352455] usb 1-1.2: SerialNumber: fe51ebd817e4
[ 6011.365079] hid-generic 0003:2DC8:3109.0006: hiddev96,hidraw0: USB HID v1.11 Device [8BitDo Ultimate Wireless Controller] on usb-3f980000.usb-1.2/input0
unicornsandcandies commented 2 months ago

I can confirm that it's the issue. I'm on the newest fedora

KonstantinDjairo commented 4 weeks ago

same here