You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Okay, I think I know what the actual problem is. The generic chinese pro controller clone I'm using doesn't actually have an led under the home button unlike the real pro controller.
Connecting to the controller works after simply disabling the home LED in joycon_leds_create(), however none of the inputs seem to be recognized.
/* configure the home LED */if (false &&jc_type_has_right(ctlr)) {
//...
[13580.885490] hid-generic 0005:057E:2009.0003: unknown main item tag 0x0
[13580.885725] input: Pro Controller as /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4:1.0/bluetooth/hci0/hci0:256/0005:057E:2009.0003/input/input28
[13580.886100] hid-generic 0005:057E:2009.0003: input,hidraw2: BLUETOOTH HID v0.01 Gamepad [Pro Controller] on xx:xx:xx:xx:xx:xx
[13580.891310] hid_nintendo: loading out-of-tree module taints kernel.
[13580.891409] hid_nintendo: module verification failed: signature and/or required key missing - tainting kernel
[13580.944392] nintendo 0005:057E:2009.0003: unknown main item tag 0x0
[13580.944585] nintendo 0005:057E:2009.0003: hidraw2: BLUETOOTH HID v80.01 Gamepad [Pro Controller] on xx:xx:xx:xx:xx:xx
[13583.015320] nintendo 0005:057E:2009.0003: controller MAC = 80:A5:03:61:63:25
[13583.021817] input: Nintendo Switch Pro Controller as /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4:1.0/bluetooth/hci0/hci0:256/0005:057E:2009.0003/input/input29
[13583.021945] input: Nintendo Switch Pro Controller IMU as /devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4:1.0/bluetooth/hci0/hci0:256/0005:057E:2009.0003/input/input30
Changed the issue name since it seems like this is not a simple fix. I've tried to get my controller to produce HID input reports over bluetooth, but haven't been successful so far.
Okay, I think I know what the actual problem is. The generic chinese pro controller clone I'm using doesn't actually have an led under the home button unlike the real pro controller.
I know this is not hid-sony but IIRC they explicitly stated that they won't make extra effort supporting knockoffs that don't work already since there are just too many of then all with their own quirks.
(Well unless if your knockoff controller used some unsupported official method to select "supported features" like 3rd party PS4 controllers. In that case support definitely sounds possible if the dev is willing to do it. Again seems that hid-sony didn't really got the interest to do this for their supported devices. I think the Xbox controller driver did though.)
There is a conversation in the hid-nintendo latest patchset thread on the linux-input mailing list discussing how to handle the generic clones.
I think supporting them will be tricky when they don't support the full interface, but maybe portions of the driver can be tweaked to fail gracefully without exiting the probe. The thing about that which makes me weary is if that ends up masking real errors on the official controllers.
Reacted by dogtopus, João Ribeiro Bezerra, Eduardo Villegas, Valeri, rongchun wu and moving-hawk
After a whole system reinstall, fiddling with dkms modules and changing distro, I found finally found out here that it was a hardware-related issue. Such a shame, provided the quality of the clone.
To add some information:
I recently bought an off-brand pro controller that works perfectly fine on the switch and android as well. This one
Similar errors over bluetooth:
[ 5880.300160] nintendo 0005:057E:2009.0005: unknown main item tag 0x0
[ 5880.300363] nintendo 0005:057E:2009.0005: hidraw1: BLUETOOTH HID v80.01 Gamepad [Pro Controller] on e4:70:b8:52:ec:79
[ 5884.359242] nintendo 0005:057E:2009.0005: failed reading SPI flash; ret=-110
[ 5884.359248] nintendo 0005:057E:2009.0005: using factory cal for left stick
[ 5886.385707] nintendo 0005:057E:2009.0005: failed reading SPI flash; ret=-110
[ 5886.385711] nintendo 0005:057E:2009.0005: using factory cal for right stick
[ 5888.412576] nintendo 0005:057E:2009.0005: failed reading SPI flash; ret=-110
[ 5888.412581] nintendo 0005:057E:2009.0005: Failed to read left stick cal, using dflts; e=-110
[ 5890.439234] nintendo 0005:057E:2009.0005: failed reading SPI flash; ret=-110
[ 5890.439241] nintendo 0005:057E:2009.0005: Failed to read right stick cal, using dflts; e=-110
[ 5892.465897] nintendo 0005:057E:2009.0005: failed reading SPI flash; ret=-110
[ 5892.465901] nintendo 0005:057E:2009.0005: using factory cal for IMU
[ 5894.492594] nintendo 0005:057E:2009.0005: failed reading SPI flash; ret=-110
[ 5894.492600] nintendo 0005:057E:2009.0005: Failed to read IMU cal, using defaults; ret=-110
[ 5894.492602] nintendo 0005:057E:2009.0005: Unable to read IMU calibration data
[ 5896.519246] nintendo 0005:057E:2009.0005: Failed to set report mode; ret=-110
[ 5897.052570] nintendo 0005:057E:2009.0005: Failed to enable rumble; ret=-110
[ 5897.052953] nintendo 0005:057E:2009.0005: probe - fail = -110
[ 5897.052978] nintendo: probe of 0005:057E:2009.0005 failed with error -110
When connecting over USB and switching to switch mode (it first pretends to be an XBOX controller) i get :
[ 6542.305622] usb 1-9: new full-speed USB device number 67 using xhci_hcd
[ 6542.428960] usb 1-9: device descriptor read/64, error -71
[ 6542.679072] usb 1-9: New USB device found, idVendor=057e, idProduct=2009, bcdDevice= 2.00
[ 6542.679074] usb 1-9: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 6542.679075] usb 1-9: Product: Pro Controller
[ 6542.679076] usb 1-9: Manufacturer: Nintendo Co., Ltd.
[ 6542.679078] usb 1-9: SerialNumber: 000000000001
[ 6542.699657] nintendo 0003:057E:2009.0007: hidraw1: USB HID v81.11 Joystick [Nintendo Co., Ltd. Pro Controller] on usb-0000:00:14.0-9/input0
[ 6546.812296] nintendo 0003:057E:2009.0007: failed reading SPI flash; ret=-110
[ 6546.812297] nintendo 0003:057E:2009.0007: using factory cal for left stick
[ 6548.838972] nintendo 0003:057E:2009.0007: failed reading SPI flash; ret=-110
[ 6548.838974] nintendo 0003:057E:2009.0007: using factory cal for right stick
[ 6550.865644] nintendo 0003:057E:2009.0007: failed reading SPI flash; ret=-110
[ 6550.865645] nintendo 0003:057E:2009.0007: Failed to read left stick cal, using dflts; e=-110
[ 6552.892302] nintendo 0003:057E:2009.0007: failed reading SPI flash; ret=-110
[ 6552.892304] nintendo 0003:057E:2009.0007: Failed to read right stick cal, using dflts; e=-110
[ 6554.918961] nintendo 0003:057E:2009.0007: failed reading SPI flash; ret=-110
[ 6554.918964] nintendo 0003:057E:2009.0007: using factory cal for IMU
[ 6556.945626] nintendo 0003:057E:2009.0007: failed reading SPI flash; ret=-110
[ 6556.945628] nintendo 0003:057E:2009.0007: Failed to read IMU cal, using defaults; ret=-110
[ 6556.945629] nintendo 0003:057E:2009.0007: Unable to read IMU calibration data
[ 6558.972267] nintendo 0003:057E:2009.0007: Failed to set report mode; ret=-110
[ 6559.505642] nintendo 0003:057E:2009.0007: Failed to enable rumble; ret=-110
[ 6559.505822] nintendo 0003:057E:2009.0007: probe - fail = -110
[ 6559.505832] nintendo: probe of 0003:057E:2009.0007 failed with error -110
[ 6559.505858] usbcore: registered new interface driver usbhid
[ 6559.505859] usbhid: USB HID core driver
I just tested the same controller today on RetroPie, and got the same (kind of) result. The controller pairs up nicely through bluetooth, and is visible with the "jstest" app. The four numbered LEDs are blinking and none of the buttons seem to do anything at all. Again, the build quality seems quite nice, so it would be awesome if it worked :-/
I see no major difference on input, but calibration is different:
[21098.090523] nintendo 0003:057E:2009.002C: using factory cal for left stick
[21098.090528] nintendo 0003:057E:2009.002C: requesting SPI flash data
[21098.113164] nintendo 0003:057E:2009.002C: using user cal for right stick
[21098.113176] nintendo 0003:057E:2009.002C: requesting SPI flash data
[21098.129168] nintendo 0003:057E:2009.002C: requesting SPI flash data
[21098.145237] nintendo 0003:057E:2009.002C: calibration:
l_x_c=2020 l_x_max=3500 l_x_min=379
l_y_c=2013 l_y_max=3573 l_y_min=535
r_x_c=15 r_x_max=1251 r_x_min=-135
r_y_c=1555 r_y_max=2900 r_y_min=-2336
Not sure where that info comes from, but see right cal comes from user.
I just use the calibration from left joycon and that just works. Well it needs a manual calibration later, but not it is centered.
diff --git i/src/hid-nintendo.c w/src/hid-nintendo.c
index 6f77fa6..800e4bd 100644
--- i/src/hid-nintendo.c
+++ w/src/hid-nintendo.c
@@ -768,7 +768,8 @@ static int joycon_request_calibration(struct joycon_ctlr *ctlr)
}
/* read the right stick calibration data */
- ret = joycon_read_stick_calibration(ctlr, right_stick_addr,
+ ret = joycon_read_stick_calibration(ctlr, left_stick_addr,
&ctlr->right_stick_cal_x,
&ctlr->right_stick_cal_y,
false);
Not sure if there's a way to detect this controller and use a different address for user calibration. Any ideas on how to find specs and how to detect this controller would be appreciated to provide a patch.
Do you have a nintendo switch you could use to recalibrate the controller? If not, I'd try hardcoding joycon_check_for_cal_magic() to always return 1, making the controller use factory calibrations for both sticks. It sounds like there's bad user calibration data stored for the right stick, and the magic value is present, telling the driver to read the bad data.
@DanielOgorchock Do you think this is general issue? As this is a generic pro controller, my suspiction is that only cheap generic ones has this problems:
I have a pro controller and generic joycons to test (note squared + and - buttons, this are the cheapest ones):
Probably I can check with original ones and see if they behave different.
when the dkms (I'm on kernel 5.4 lts) is not active the axis are reported as 057e:2009 (pro controller), but as no driver deals with that, they are disconnected and reported as 0f0d:00c1 (horypad):
dmesg --follow
[14882.673977] usb 2-1.1: new full-speed USB device number 21 using ehci-pci
[14882.829410] usb 2-1.1: New USB device found, idVendor=057e, idProduct=2009, bcdDevice= 0.20
[14882.829417] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[14882.829421] usb 2-1.1: Product: Pro Controller
[14882.829425] usb 2-1.1: Manufacturer: Nintendo Co., Ltd.
[14882.829428] usb 2-1.1: SerialNumber: 000000000001
[14882.832869] input: Nintendo Co., Ltd. Pro Controller as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/0003:057E:2009.000E/input/input36
[14882.833320] hid-generic 0003:057E:2009.000E: input,hidraw0: USB HID v1.11 Joystick [Nintendo Co., Ltd. Pro Controller] on usb-0000:00:1d.0-1.1/input0
[14883.914066] usb 2-1.1: USB disconnect, device number 21
[14884.453983] usb 2-1.1: new full-speed USB device number 22 using ehci-pci
[14884.608810] usb 2-1.1: New USB device found, idVendor=0f0d, idProduct=00c1, bcdDevice= 5.72
[14884.608817] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[14884.608821] usb 2-1.1: Product: Switch Controller
[14884.608824] usb 2-1.1: Manufacturer:
[14884.611064] input: Switch Controller as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/0003:0F0D:00C1.000F/input/input37
[14884.611606] hid-generic 0003:0F0D:00C1.000F: input,hidraw0: USB HID v1.11 Gamepad [ Switch Controller] on usb-0000:00:1d.0-1.1/input0
from horipad the axis are reported as: ABS_ZZAN from 0-255 while on hid-nintendo they are reported as ABS_RX from -23764
to 32767. After manual calibration:
it works as expected.
Wonder if there's a way that dkms or kernel when it land on 5.10 attends an external config file, so you can calibrate joycons or procontroller for you personal use case. I can work a patch on that.
After that I want to fix the led (not available for joycons but available and not working for procontroller home) and add SLSR buttons (recognized on horipad, but not on hid-nintendo.
I review the @nadiaholmquist improvements and think that SL and SR are covered there so I can help reviewing those.
I'm totally disappointed :
I had to reinstall my computer, and I can't even make a genuine pro controller to work and have its IMU recognized on AntiMicroX...
I still have this in dmesg :
[ 1080.868054] usb 3-1: new full-speed USB device number 12 using xhci_hcd
[ 1081.042253] usb 3-1: New USB device found, idVendor=057e, idProduct=2009, bcdDevice= 2.10
[ 1081.042262] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1081.042266] usb 3-1: Product: Pro Controller
[ 1081.042269] usb 3-1: Manufacturer: Nintendo Co., Ltd.
[ 1081.042272] usb 3-1: SerialNumber: 000000000001
[ 1081.074872] input: Nintendo Co., Ltd. Pro Controller as /devices/pci0000:00/0000:00:08.1/0000:04:00.4/usb3/3-1/3-1:1.0/0003:057E:2009.0009/input/input60
[ 1081.075287] hid-generic 0003:057E:2009.0009: input,hidraw5: USB HID v1.11 Joystick [Nintendo Co., Ltd. Pro Controller] on usb-0000:04:00.4-1/input0
[ 1081.197031] nintendo 0003:057E:2009.0009: hidraw5: USB HID v81.11 Joystick [Nintendo Co., Ltd. Pro Controller] on usb-0000:04:00.4-1/input0
[ 1082.090876] nintendo 0003:057E:2009.0009: using factory cal for left stick
[ 1082.130568] nintendo 0003:057E:2009.0009: using factory cal for right stick
[ 1082.234657] nintendo 0003:057E:2009.0009: using factory cal for IMU
[ 1082.434673] nintendo 0003:057E:2009.0009: controller MAC = D0:55:09:BC:51:FA
[ 1082.514630] input: Nintendo Switch Pro Controller as /devices/pci0000:00/0000:00:08.1/0000:04:00.4/usb3/3-1/3-1:1.0/0003:057E:2009.0009/input/input61
[ 1082.515141] input: Nintendo Switch Pro Controller IMU as /devices/pci0000:00/0000:00:08.1/0000:04:00.4/usb3/3-1/3-1:1.0/0003:057E:2009.0009/input/input62
, but evtest shows one input device, which doesn't send motion events....
I've tried with dkms-hid-nintendo module, but still the same...
What did I forgot ?
Edit : Finally found it : I had to add a udev rule so the second input event device would have the correct access rights !
Now AntiMicroX and even yuzu recognize it !
I'm totally disappointed : I had to reinstall my computer, and I can't even make a genuine pro controller to work and have its IMU recognized on AntiMicroX...
if it's a genuine pro controller this is not the right thread. glad you solved though
Is there a list of generic pads that work with or without tweaks?
I bought one cold off amazon only to find the reported vendor ID corresponded to a XBox360 controller, at which point there's only so much I can do without messing with xpad too
My device is a "Battletron Game Controller" (suitable for Nintendo Switch) that reports with 057e:2009, so the classical Nintendo Switch Pro Controller ID.
I still did not manage to pair it. I use a KDE based system, and it does find the controller as an available bluetooth device, and it seems like it wants some input as confirmation.
The GUI of KDE indicates that it does its part of the sync, and the controller is not answering.
Wired: Detected as an xbox controller (surprisingly, RZ and ZL are analog inputs). I've edited nintendolic to make it so the driver takes over it. It fails to enable everything and just doesn't respond to any input.
Bluetooth: Fails to enable everything, doesn't respond to input. If I rmmod hid_nintendo and disable joycond, it actually works but there's no IMU (motion).
J-C PAD
I'm pretty sure these are the joycons I bought, but I threw away the package too soon. I think it's this product, but mine is in pastel purple/green.
They're identical to the original ones and all buttons/analog sticks feel the same, maybe Rs/Ls might have a different resistance but it's impressive how close it is to the real thing. The right one has a black plastic under it which makes me think it even supports IR, but I have no games to test it on.
Works really well over bluetooth, only rumble doesn't. Tested with joycond-cemuhook and motion works well.
And this is what I mean in "failed to load everything":
For documentation purposes, here's the output when I connect the PXN-9607X controller:
[ 287.914363] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 287.914371] Bluetooth: HIDP socket layer initialized
[ 287.915169] hid-generic 0005:057E:2009.0005: unknown main item tag 0x0
[ 287.915268] input: Pro Controller as /devices/pci0000:00/0000:00:08.1/0000:06:00.3/usb1/1-4/1-4:1.0/bluetooth/hci0/hci0:512/0005:057E:2009.0005/input/input25
[ 287.915611] hid-generic 0005:057E:2009.0005: input,hidraw3: BLUETOOTH HID v0.01 Gamepad [Pro Controller] on 14:85:7f:0b:02:dd
[ 288.001421] nintendo 0005:057E:2009.0005: unknown main item tag 0x0
[ 288.001739] nintendo 0005:057E:2009.0005: hidraw3: BLUETOOTH HID v80.01 Gamepad [Pro Controller] on 14:85:7f:0b:02:dd
[ 292.080529] nintendo 0005:057E:2009.0005: failed reading SPI flash; ret=-110
[ 292.080541] nintendo 0005:057E:2009.0005: using factory cal for left stick
[ 294.128340] nintendo 0005:057E:2009.0005: failed reading SPI flash; ret=-110
[ 294.128348] nintendo 0005:057E:2009.0005: using factory cal for right stick
[ 296.180580] nintendo 0005:057E:2009.0005: failed reading SPI flash; ret=-110
[ 296.180602] nintendo 0005:057E:2009.0005: Failed to read left stick cal, using defaults; e=-110
[ 298.223993] nintendo 0005:057E:2009.0005: failed reading SPI flash; ret=-110
[ 298.224005] nintendo 0005:057E:2009.0005: Failed to read right stick cal, using defaults; e=-110
[ 300.271815] nintendo 0005:057E:2009.0005: failed reading SPI flash; ret=-110
[ 300.271823] nintendo 0005:057E:2009.0005: using factory cal for IMU
[ 302.323646] nintendo 0005:057E:2009.0005: failed reading SPI flash; ret=-110
[ 302.323655] nintendo 0005:057E:2009.0005: Failed to read IMU cal, using defaults; ret=-110
[ 302.323657] nintendo 0005:057E:2009.0005: Unable to read IMU calibration data
[ 304.371483] nintendo 0005:057E:2009.0005: Failed to set report mode; ret=-110
[ 304.371649] nintendo 0005:057E:2009.0005: probe - fail = -110
[ 304.371666] nintendo: probe of 0005:057E:2009.0005 failed with error -110
Hi guys, I want to add my contribute to this issue.
I have a similar problem with a generic switch wireless controller. I solved this downgrading bluez package to 5.50.
Hope it helps!
Hi @dietolive-tw , I have a controller doesn't work at all.
I have tried upgrade hid-nintendo.c to 6.8.0, but it still not work.
Dmesg as follow:
6.1.25
[ 1.370097] calling nintendo_hid_driver_init+0x0/0x20 @ 1
[ 1.370964] initcall nintendo_hid_driver_init+0x0/0x20 returned 0 after 22 usecs
[ 474.990100] nintendo 0005:057E:2009.0002: hidraw1: BLUETOOTH HID v80.01 Gamepad [Pro Controller] on
[ 478.295807] nintendo 0005:057E:2009.0002: using user cal for left stick
[ 479.084437] nintendo 0005:057E:2009.0002: using user cal for right stick
[ 479.313216] nintendo 0005:057E:2009.0002: Failed to read left stick cal, using defaults; e=-22
[ 480.436963] nintendo 0005:057E:2009.0002: using factory cal for IMU
[ 483.187149] nintendo 0005:057E:2009.0002: Failed to enable rumble; ret=-110
[ 483.189044] nintendo 0005:057E:2009.0002: probe - fail = -110
[ 483.189972] nintendo: probe of 0005:057E:2009.0002 failed with error -110
6.8.0:
[ 1.370623] calling nintendo_hid_driver_init+0x0/0x20 @ 1
[ 1.371492] initcall nintendo_hid_driver_init+0x0/0x20 returned 0 after 22 usecs
[ 122.427682] nintendo 0005:057E:2009.0002: hidraw1: BLUETOOTH HID v80.01 Gamepad [Pro Controller] on
[ 122.867448] nintendo 0005:057E:2009.0002: controller MAC = 98:B6:E9:EB:FB:0C
[ 123.657613] nintendo 0005:057E:2009.0002: using user cal for left stick
[ 125.003035] nintendo 0005:057E:2009.0002: using user cal for right stick
[ 126.805682] nintendo 0005:057E:2009.0002: Failed to read left stick cal, using defaults; e=-22
[ 128.154430] nintendo 0005:057E:2009.0002: using factory cal for IMU
[ 128.940997] nintendo 0005:057E:2009.0002: inaccurate IMU divisors (3)
[ 131.047075] nintendo 0005:057E:2009.0002: Failed to enable the IMU; ret=-110
[ 131.048090] nintendo 0005:057E:2009.0002: Failed to initialize controller; ret=-110
[ 131.049601] nintendo 0005:057E:2009.0002: probe - fail = -110
[ 131.050474] nintendo: probe of 0005:057E:2009.0002 failed with error -110
Hi @dietolive-tw , I have a controller doesn't work at all. I have tried upgrade hid-nintendo.c to 6.8.0, but it still not work.
Are there any suggestion about this issue?
Hi @dietolive-tw , I have a controller doesn't work at all. I have tried upgrade hid-nintendo.c to 6.8.0, but it still not work.
Are there any suggestion about this issue?
Not directly related to hid-nintendo but I thought some people here could find this information useful:
I have two N-SL SW001 Switch-compatible controllers like this:
They don't work over Bluetooth on PC. The hid-nintendo probe times out (ret: -110) because the report_descriptor of the controller is incorrect. However, they work with the Switch, so the protocol they speak is close enough.
I have created a custom BPF filter that fixes the BT input and output reports between the host and the controller and makes it compatible with hid-nintendo and SDL.
Activity
rodolpheh commentedon May 15, 2020
I also have the same issue with a generic Pro Controller, here is the relevant dmesg messages :
Let me know if you need more information.
Woazboat commentedon May 15, 2020
Okay, I think I know what the actual problem is. The generic chinese pro controller clone I'm using doesn't actually have an led under the home button unlike the real pro controller.
https://www.aliexpress.com/item/4000571346668.html
Woazboat commentedon May 15, 2020
Connecting to the controller works after simply disabling the home LED in
joycon_leds_create(), however none of the inputs seem to be recognized.rodolpheh commentedon May 15, 2020
I tried the same, with the same result... I also have the same controller than you.
[-]Failed to set home LED dflt; ret=-110[/-][+]Compatibility with generic pro controllers[/+]Woazboat commentedon May 23, 2020
Changed the issue name since it seems like this is not a simple fix. I've tried to get my controller to produce HID input reports over bluetooth, but haven't been successful so far.
dogtopus commentedon May 23, 2020
I know this is not hid-sony but IIRC they explicitly stated that they won't make extra effort supporting knockoffs that don't work already since there are just too many of then all with their own quirks.
(Well unless if your knockoff controller used some unsupported official method to select "supported features" like 3rd party PS4 controllers. In that case support definitely sounds possible if the dev is willing to do it. Again seems that hid-sony didn't really got the interest to do this for their supported devices. I think the Xbox controller driver did though.)
DanielOgorchock commentedon Jun 6, 2020
There is a conversation in the hid-nintendo latest patchset thread on the linux-input mailing list discussing how to handle the generic clones.
I think supporting them will be tricky when they don't support the full interface, but maybe portions of the driver can be tweaked to fail gracefully without exiting the probe. The thing about that which makes me weary is if that ends up masking real errors on the official controllers.
ludenticus commentedon Jul 5, 2020
After a whole system reinstall, fiddling with dkms modules and changing distro, I found finally found out here that it was a hardware-related issue. Such a shame, provided the quality of the clone.
Thanks anyway, @DanielOgorchock
SimonDaniel21 commentedon Jul 14, 2020
my pro controller clone also has the same issue, but works flawless with my android phone over bluetooth...
jorants commentedon Jul 27, 2020
To add some information:
I recently bought an off-brand pro controller that works perfectly fine on the switch and android as well.
This one
Similar errors over bluetooth:
When connecting over USB and switching to switch mode (it first pretends to be an XBOX controller) i get :
hcsaustrup commentedon Aug 18, 2020
I just tested the same controller today on RetroPie, and got the same (kind of) result. The controller pairs up nicely through bluetooth, and is visible with the "jstest" app. The four numbered LEDs are blinking and none of the buttons seem to do anything at all. Again, the build quality seems quite nice, so it would be awesome if it worked :-/
albfan commentedon Sep 27, 2020
Hi, I'm using a HORIPAD (aliexpress cheapest ones) and everything seems to be mapped correctly using dkms hid-nintendo, expect for:
ABS_RX which looks like only map the half of the movement.
Using generic hid driver, axis are correctly mapped so I supposed there was something incorrect here.
After add some traces on
ABS_RX,ABS_RY,ABS_XandABX_Y:I see no major difference on input, but calibration is different:
Not sure where that info comes from, but see right cal comes from user.
I just use the calibration from left joycon and that just works. Well it needs a manual calibration later, but not it is centered.
Not sure if there's a way to detect this controller and use a different address for user calibration. Any ideas on how to find specs and how to detect this controller would be appreciated to provide a patch.
DanielOgorchock commentedon Sep 27, 2020
Do you have a nintendo switch you could use to recalibrate the controller? If not, I'd try hardcoding joycon_check_for_cal_magic() to always return 1, making the controller use factory calibrations for both sticks. It sounds like there's bad user calibration data stored for the right stick, and the magic value is present, telling the driver to read the bad data.
albfan commentedon Sep 28, 2020
@DanielOgorchock Do you think this is general issue? As this is a generic pro controller, my suspiction is that only cheap generic ones has this problems:
I have a pro controller and generic joycons to test (note squared
+and-buttons, this are the cheapest ones):Probably I can check with original ones and see if they behave different.
when the dkms (I'm on kernel 5.4 lts) is not active the axis are reported as
057e:2009(pro controller), but as no driver deals with that, they are disconnected and reported as0f0d:00c1(horypad):from horipad the axis are reported as:
ABS_ZZANfrom 0-255 while on hid-nintendo they are reported as ABS_RX from -23764to 32767. After manual calibration:
it works as expected.
Wonder if there's a way that dkms or kernel when it land on 5.10 attends an external config file, so you can calibrate joycons or procontroller for you personal use case. I can work a patch on that.
After that I want to fix the led (not available for joycons but available and not working for procontroller home) and add
SLSRbuttons (recognized on horipad, but not on hid-nintendo.I review the @nadiaholmquist improvements and think that
SLandSRare covered there so I can help reviewing those.109 remaining items
LudovicLemarinel commentedon May 16, 2023
I'm totally disappointed :
I had to reinstall my computer, and I can't even make a genuine pro controller to work and have its IMU recognized on AntiMicroX...
I still have this in dmesg :
, but evtest shows one input device, which doesn't send motion events....
I've tried with dkms-hid-nintendo module, but still the same...
What did I forgot ?
Edit : Finally found it : I had to add a udev rule so the second input event device would have the correct access rights !
Now AntiMicroX and even yuzu recognize it !
cipitaua commentedon May 16, 2023
if it's a genuine pro controller this is not the right thread. glad you solved though
okorpela commentedon Jun 22, 2023
How do I get the controller to the Switch Mode while connected to USB? I have a PXN 9607x, but it only shows as X-Box 360 pad.
dmadisetti commentedon Jul 11, 2023
Is there a list of generic pads that work with or without tweaks?
I bought one cold off amazon only to find the reported vendor ID corresponded to a XBox360 controller, at which point there's only so much I can do without messing with xpad too
ShalokShalom commentedon Dec 27, 2023
My device is a "Battletron Game Controller" (suitable for Nintendo Switch) that reports with 057e:2009, so the classical Nintendo Switch Pro Controller ID.
I still did not manage to pair it. I use a KDE based system, and it does find the controller as an available bluetooth device, and it seems like it wants some input as confirmation.
The GUI of KDE indicates that it does its part of the sync, and the controller is not answering.
What can I do?
joaorb64 commentedon Dec 30, 2023
Sharing knowledge from the devices I have here:
PXN-9607X
Wired: Detected as an xbox controller (surprisingly, RZ and ZL are analog inputs). I've edited nintendolic to make it so the driver takes over it. It fails to enable everything and just doesn't respond to any input.
Bluetooth: Fails to enable everything, doesn't respond to input. If I rmmod hid_nintendo and disable joycond, it actually works but there's no IMU (motion).
J-C PAD
I'm pretty sure these are the joycons I bought, but I threw away the package too soon. I think it's this product, but mine is in pastel purple/green.
They're identical to the original ones and all buttons/analog sticks feel the same, maybe Rs/Ls might have a different resistance but it's impressive how close it is to the real thing. The right one has a black plastic under it which makes me think it even supports IR, but I have no games to test it on.
Works really well over bluetooth, only rumble doesn't. Tested with joycond-cemuhook and motion works well.
And this is what I mean in "failed to load everything":

joaorb64 commentedon Dec 30, 2023
For documentation purposes, here's the output when I connect the PXN-9607X controller:
dylanmilesmsu commentedon Jan 17, 2024
This is what shows up when connecting my RetroFighters BattlerGC
dietolive-tw commentedon Jan 24, 2024
Anyone with 3rdParty pro-controller that can not work, may try to use my patch:#40 (comment)
ShalokShalom commentedon Jan 24, 2024
Thanks a lot
@DanielOgorchock I would like to test this change, although I am not sure I manage to apply that patch and compile the whole thing for myself.
Do you think there is any chance you might merge this?
I hope to see this in a release one day, thanks.
TheKarls commentedon May 14, 2024
Hi guys, I want to add my contribute to this issue.
I have a similar problem with a generic switch wireless controller. I solved this downgrading bluez package to 5.50.
Hope it helps!
a2daz commentedon Nov 5, 2025
Hi @dietolive-tw , I have a controller doesn't work at all.
I have tried upgrade hid-nintendo.c to 6.8.0, but it still not work.
Dmesg as follow:
6.1.25
[ 1.370097] calling nintendo_hid_driver_init+0x0/0x20 @ 1
[ 1.370964] initcall nintendo_hid_driver_init+0x0/0x20 returned 0 after 22 usecs
[ 474.990100] nintendo 0005:057E:2009.0002: hidraw1: BLUETOOTH HID v80.01 Gamepad [Pro Controller] on
[ 478.295807] nintendo 0005:057E:2009.0002: using user cal for left stick
[ 479.084437] nintendo 0005:057E:2009.0002: using user cal for right stick
[ 479.313216] nintendo 0005:057E:2009.0002: Failed to read left stick cal, using defaults; e=-22
[ 480.436963] nintendo 0005:057E:2009.0002: using factory cal for IMU
[ 483.187149] nintendo 0005:057E:2009.0002: Failed to enable rumble; ret=-110
[ 483.189044] nintendo 0005:057E:2009.0002: probe - fail = -110
[ 483.189972] nintendo: probe of 0005:057E:2009.0002 failed with error -110
6.8.0:
[ 1.370623] calling nintendo_hid_driver_init+0x0/0x20 @ 1
[ 1.371492] initcall nintendo_hid_driver_init+0x0/0x20 returned 0 after 22 usecs
[ 122.427682] nintendo 0005:057E:2009.0002: hidraw1: BLUETOOTH HID v80.01 Gamepad [Pro Controller] on
[ 122.867448] nintendo 0005:057E:2009.0002: controller MAC = 98:B6:E9:EB:FB:0C
[ 123.657613] nintendo 0005:057E:2009.0002: using user cal for left stick
[ 125.003035] nintendo 0005:057E:2009.0002: using user cal for right stick
[ 126.805682] nintendo 0005:057E:2009.0002: Failed to read left stick cal, using defaults; e=-22
[ 128.154430] nintendo 0005:057E:2009.0002: using factory cal for IMU
[ 128.940997] nintendo 0005:057E:2009.0002: inaccurate IMU divisors (3)
[ 131.047075] nintendo 0005:057E:2009.0002: Failed to enable the IMU; ret=-110
[ 131.048090] nintendo 0005:057E:2009.0002: Failed to initialize controller; ret=-110
[ 131.049601] nintendo 0005:057E:2009.0002: probe - fail = -110
[ 131.050474] nintendo: probe of 0005:057E:2009.0002 failed with error -110
Are there any suggestion about this issue?
cipitaua commentedon Nov 5, 2025
yes, try to use the nintendolic driver:
https://gitlab.com/cipitaua/dkms-hid-nintendolic
a2daz commentedon Nov 5, 2025
What's the kernel version based on?
morallo commentedon Sep 13, 2026
Not directly related to hid-nintendo but I thought some people here could find this information useful:
I have two N-SL SW001 Switch-compatible controllers like this:
They don't work over Bluetooth on PC. The hid-nintendo probe times out (ret: -110) because the report_descriptor of the controller is incorrect. However, they work with the Switch, so the protocol they speak is close enough.
I have created a custom BPF filter that fixes the BT input and output reports between the host and the controller and makes it compatible with hid-nintendo and SDL.
https://github.com/morallo/nsl-sw001-hid/