Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xpad return error -19 in the 8bitDo controller #253

Open
KonstantinDjairo opened this issue Jul 3, 2023 · 3 comments
Open

xpad return error -19 in the 8bitDo controller #253

KonstantinDjairo opened this issue Jul 3, 2023 · 3 comments

Comments

@KonstantinDjairo
Copy link

https://pasteboard.co/zDQ2xRgvaVVI.png

output from dmesg after reboot
i already tried to compile it again using dkms, but it doesn't change anything

the controller vibrates and the LED works, but it shuts itself down after 1s, i dont know why

@shadedmagus
Copy link

shadedmagus commented Oct 15, 2023

Can confirm. I have an 8bitdo Pro 2 Wired Controller and it disconnects and reconnects every 5 or so seconds. On every reconnect the controller rumbles for a split second.

It looks as though the system is recognizing the controller, so I'm not sure what is causing the constant disconnecting. I see no event in journalctl that explains the disconnect, but it instantly reconnects and increments the device ID in the bus.

journalctl output:

Oct 15 09:06:12 XXX kernel: usb 3-4: USB disconnect, device number 4
Oct 15 09:06:12 XXX kernel: xpad 3-4:1.0: xpad_try_sending_next_out_packet - usb_submit_urb failed with result -19
Oct 15 09:06:12 XXX kernel: usb 3-4: new full-speed USB device number 5 using xhci_hcd
Oct 15 09:06:12 XXX kernel: usb 3-4: New USB device found, idVendor=2dc8, idProduct=3106, bcdDevice=1.14
Oct 15 09:06:12 XXX kernel: usb 3-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Oct 15 09:06:12 XXX kernel: usb 3-4: Product: 8BitDo Pro 2 Wired Controller
Oct 15 09:06:12 XXX kernel: usb 3-4: Manufacturer: 8BitDo
Oct 15 09:06:12 XXX kernel: usb 3-4: SerialNumber: DE125C57B202
Oct 15 09:06:12 XXX kernel: input: 8BitDo Pro 2 Wired Controller as /devices/pci0000:00/0000:00:01.2/0000:01:00.0/0000:02:08.0/0000:0a:00.3/usb3/3-4/3-4:1.0/input/input648
Oct 15 09:06:12 XXX mtp-probe[12855]: checking bus 3, device 5: "/sys/devices/pci0000:00/0000:00:01.2/0000:01:00.0/0000:02:08.0/0000:0a:00.3/usb3/3-4"
Oct 15 09:06:12 XXX mtp-probe[12855]: bus: 3, device: 5 was not an MTP device
Oct 15 09:06:12 XXX mtp-probe[12857]: checking bus 3, device 5: "/sys/devices/pci0000:00/0000:00:01.2/0000:01:00.0/0000:02:08.0/0000:0a:00.3/usb3/3-4"
Oct 15 09:06:12 XXX mtp-probe[12857]: bus: 3, device: 5 was not an MTP device

lsusb output:

Bus 003 Device 049: ID 2dc8:3106 8BitDo 8BitDo Pro 2 Wired Controller
Device Descriptor:
bLength                18
bDescriptorType         1
bcdUSB               2.00
bDeviceClass          255 Vendor Specific Class
bDeviceSubClass       255 Vendor Specific Subclass
bDeviceProtocol       255 Vendor Specific Protocol
bMaxPacketSize0        64
idVendor           0x2dc8 8BitDo
idProduct          0x3106
bcdDevice            1.14
iManufacturer           1 8BitDo
iProduct                2 8BitDo Pro 2 Wired Controller
iSerial                 3 DE125C57B202
bNumConfigurations      1
Configuration Descriptor:
bLength                 9
bDescriptorType         2
wTotalLength       0x0030
bNumInterfaces          1
bConfigurationValue     1
iConfiguration          0
bmAttributes         0x80
(Bus Powered)
MaxPower              500mA
Interface Descriptor:
bLength                 9
bDescriptorType         4
bInterfaceNumber        0
bAlternateSetting       0
bNumEndpoints           2
bInterfaceClass       255 Vendor Specific Class
bInterfaceSubClass     93
bInterfaceProtocol      1
iInterface              0
** UNRECOGNIZED:  10 21 10 01 01 24 81 14 03 00 03 13 02 00 03 00
Endpoint Descriptor:
bLength                 7
bDescriptorType         5
bEndpointAddress     0x81  EP 1 IN
bmAttributes            3
Transfer Type            Interrupt
Synch Type               None
Usage Type               Data
wMaxPacketSize     0x0020  1x 32 bytes
bInterval               2
Endpoint Descriptor:
bLength                 7
bDescriptorType         5
bEndpointAddress     0x02  EP 2 OUT
bmAttributes            3
Transfer Type            Interrupt
Synch Type               None
Usage Type               Data
wMaxPacketSize     0x0020  1x 32 bytes
bInterval               4
Device Status:     0x0001
Self Powered

The only times the controller seems to stop disconnecting are as follows:

  1. I invoke KDE System Settings > Input Devices > Controller. The controller stops disconnecting for the duration of this applet running. I can move to different sections in System Settings once the Controller applet has been invoked, and it will not disconnect again until I close System Settings completely.
  2. I run jstest /dev/input/js0 - the controller will stop disconnecting until I kill jstest.

I have unplugged the controller and held the B button while plugging it in, but it doesn't make any difference.

From referencing errno-base.h it appears that error 19 is /* No such device */. (I think that applies here, not certain.)

@vwbusguy
Copy link

vwbusguy commented Feb 17, 2024

Oddly it doesn't happen for me as long as Steam is open, but as soon as I close Steam, it happens every 4-5 seconds, including a little rumble and this in journald over and over:

Feb 17 10:50:06 tirian kernel: usb 1-1: USB disconnect, device number 111
Feb 17 10:50:06 tirian kernel: xpad 1-1:1.0: xpad_try_sending_next_out_packet - usb_submit_urb failed with result -19
Feb 17 10:50:06 tirian kernel: usb 1-1: new full-speed USB device number 112 using xhci_hcd
Feb 17 10:50:07 tirian kernel: usb 1-1: New USB device found, idVendor=2dc8, idProduct=3106, bcdDevice= 1.14
Feb 17 10:50:07 tirian kernel: usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Feb 17 10:50:07 tirian kernel: usb 1-1: Product: 8BitDo Pro 2 Wired Controller
Feb 17 10:50:07 tirian kernel: usb 1-1: Manufacturer: 8BitDo
Feb 17 10:50:07 tirian kernel: usb 1-1: SerialNumber: 4A5C227C0D03
Feb 17 10:50:07 tirian kernel: input: 8BitDo Pro 2 Wired Controller as /devices/pci0000:00/0000:00:08.1/0000:08:00.3/usb1/1-1/1-1:1.0/input/input132
Feb 17 10:50:07 tirian mtp-probe[182348]: checking bus 1, device 112: "/sys/devices/pci0000:00/0000:00:08.1/0000:08:00.3/usb1/1-1"
Feb 17 10:50:07 tirian mtp-probe[182348]: bus: 1, device: 112 was not an MTP device
Feb 17 10:50:07 tirian kernel: input input132: unable to receive magic message: -121
Feb 17 10:50:07 tirian kernel: input input132: unable to receive magic message: -121
Feb 17 10:50:07 tirian mtp-probe[182350]: checking bus 1, device 112: "/sys/devices/pci0000:00/0000:00:08.1/0000:08:00.3/usb1/1-1"
Feb 17 10:50:07 tirian mtp-probe[182350]: bus: 1, device: 112 was not an MTP device

Kernel: 6.7.4-200.fc39.x86_64

It's specific to the 8bitdo Pro 2, it seems. I also have a Logitech F310 plugged in and that one is not having the same issue.

@jschwartzenberg
Copy link

I have the same issue here. When the device is not used it keeps showing these disconnect messages. When it's used everything is ok. I bought this device in Action (NL), it has this on the bottom:
Lab31 BV
Westerblokker 32B
1695 AH Blokker
The Netherlands

Model no.: LB-GA-GPV101-B
Batcn no.: LB-18I
Made in PRC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants