We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4818 - Wired Nintendo Switch Controllers (HORI, PowerA) error with "Couldn't load stick calibration"
Summary: Wired Nintendo Switch Controllers (HORI, PowerA) error with "Couldn't load st...
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: joystick (show other bugs)
Version: HG 2.1
Hardware: x86_64 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-08 00:22 UTC by Anthony Pesch
Modified: 2020-01-08 15:15 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony Pesch 2019-10-08 00:22:02 UTC
Hey Sam,

I saw you committed the original Switch controller support and wanted to ask if you had any idea why the wired variants of the Switch controller fail around:

https://hg.libsdl.org/SDL/file/db9d0d0b7ebc/src/joystick/hidapi/SDL_hidapi_switch.c#l596

I've had users with:
https://www.amazon.com/Nintendo-Switch-HORIPAD-Controller-Officially-Licensed/dp/B01NAUATSM/ref=sr_1_3?crid=19VSH28WFGAHE&keywords=wired+switch+controller&qid=1570493099&sprefix=wired+switch+%2Caps%2C175&sr=8-3

as well as I believe:
https://www.amazon.com/PowerA-Wired-Controller-Nintendo-Switch-Black/dp/B07PDJ45BT/ref=sr_1_6?keywords=power+switch+controller&qid=1570493866&sr=8-6.

report their controllers not working due to the above error. I was trying to avoid buying a controller I didn't really need to come up with a patch, so I wanted to ask here first if you a.) happened to have one to test with or b.) had an inkling as to why that was failing.

 - Anthony
Comment 1 Anthony Pesch 2019-10-20 05:33:18 UTC
Hey Sam,

Just got hit with this again tonight.

If you have any input I'd appreciate it.

 - Anthony
Comment 2 Alex Szpakowski 2019-10-24 12:14:52 UTC
Have you tested it with the latest SDL source code? These two changes went in recently which seem like they might fix your issue:

https://hg.libsdl.org/SDL/rev/fbae11263ac5
https://hg.libsdl.org/SDL/rev/1f9ceaf6310a
Comment 3 Anthony Pesch 2019-10-24 17:37:25 UTC
Hey Alex,

Fantastic, I'll give those changes a shot tonight.
Comment 4 Sam Lantinga 2019-11-17 06:38:04 UTC
I think this was fixed, thanks!
Comment 5 Anthony Pesch 2020-01-08 02:03:37 UTC
While this is already marked as fixed I wanted to confirm it from my end, thanks for the patch Sam.
Comment 6 Sam Lantinga 2020-01-08 15:15:45 UTC
Great, thanks!