-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Milestone
Description
After reading the release notes, I expected everything to work out of the box for Nintendo Switch 2 Pro Controllers, however I have found that to be anything but the case.
Compiled SDL 3.4.2 from source with testcontroller, see the output (no stick movement or button actions and lights constantly flash left/right at the top):
~/SDL/build/test$ ./testcontroller
Using udev for HIDAPI joystick device discovery
HIDAPI_SetupDeviceDriver() couldn't open 1-3:1.0: Failed to open a device with path '1-3:1.0': No such file or directory
Added HIDAPI device 'Nintendo Switch Pro Controller' VID 0x057e, PID 0x2069, bluetooth 0, version 513, serial NONE, interface 0, interface_class 3, interface_subclass 0, interface_protocol 0, usage page 0x0000, usage 0x0000, path = 1-3:1.0, driver = NONE (DISABLED)
Using udev for joystick device discovery
Gamepad 4 added
Opened gamepad Nintendo Switch 2 Pro Controller, guid 030002697e0500006920000011010000, /dev/input/event3
Player index: 0
Mapping: 030002697e0500006920000011010000,Nintendo Switch 2 Pro Controller,a:b0,b:b1,x:b3,y:b4,back:b10,guide:b12,start:b11,leftstick:b13,rightstick:b14,leftshoulder:b6,rightshoulder:b7,leftx:a0,lefty:a1,lefttrigger:b8,righttrigger:a3,platform:Linux,
(below is after I disconnect the controller)
Gamepad 4 removed
Removing HIDAPI device 'Nintendo Switch Pro Controller' VID 0x057e, PID 0x2069, bluetooth 0, version 513, serial NONE, interface 0, interface_class 3, interface_subclass 0, interface_protocol 0, usage page 0x0000, usage 0x0000, path = 1-3:1.0, driver = NONE (DISABLED)
this is after having already added
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="2069", MODE="0660", TAG+="uaccess"
as a udev rule, reloading, and rebooting.
for reference, kernel logs from plugging in the device over USB
[ 3773.843979] usb 1-3: new full-speed USB device number 20 using xhci_hcd
[ 3773.967244] usb 1-3: not running at top speed; connect to a high speed hub
[ 3773.968327] usb 1-3: New USB device found, idVendor=057e, idProduct=2069, bcdDevice= 2.01
[ 3773.968344] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3773.968353] usb 1-3: Product: Switch 2 Pro Controller
[ 3773.968360] usb 1-3: Manufacturer: Nintendo
[ 3773.968367] usb 1-3: SerialNumber: 00
[ 3773.973011] input: Nintendo Switch 2 Pro Controller as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/0003:057E:2069.0016/input/input43
[ 3773.973647] hid-generic 0003:057E:2069.0016: input,hidraw0: USB HID v1.11 Gamepad [Nintendo Switch 2 Pro Controller] on usb-0000:00:14.0-3/input0
[ 3773.976402] usb 1-3: Warning! Unlikely big volume range (=19999), cval->res is probably wrong.
[ 3773.976404] usb 1-3: [2] FU [PCM Playback Volume] ch = 1, val = -10000/9999/1
[ 3773.977008] usb 1-3: Warning! Unlikely big volume range (=4032), cval->res is probably wrong.
[ 3773.977009] usb 1-3: [5] FU [Mic Capture Volume] ch = 1, val = -4032/0/1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels