Game: a Switch 2 Pro Controller on USB only plays its motors - the native pad is vibration kind VIB_PAD_OTHER, so RenHDrum's HD rumble is bypassed #3286
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot#3286
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What happens
With the native USB path for a Switch 2 Pro Controller (the
switch2:driver, from #279/#280), the pad only plays ordinary motor vibration, even though RenHDrum is loaded and reports its version. The log says both things side by side:The pad is kind
VIB_PAD_OTHER, so only its motors are driven; the voice-coil (HD) path is never used. Auto / Basic / Off make no difference - choosing Off, then switching back, still ends atits motors(lines2130,2142in the same log).Why (code)
host/pad_switch2.cattaches an SDL virtual gamepad (vendor0x057e, product0x2069, nameNintendo Switch 2 Pro Controller).host/vibration.h,vibration_pad_kind(): maps SDL3 gamepad types3(Xbox One),6(PS5),7-10(Switch Pro / Joy-Con); otherwise only the nameDualSenseis recognised. Everything else isVIB_PAD_OTHER.vibration_pick()returnsVIB_MOTORSforVIB_PAD_OTHER, soVIB_RH_SWITCH(RenHDrum) can never be selected for this pad.DualSense, so it falls through even though vendor/product name it.Expected
The native USB Switch 2 Pro pad should be treated as a Switch controller and use RenHDrum's HD rumble - the same pad on the same USB cable plays HD rumble in Brontide-NS2 (RenHDrum's own host), so the pad and cable are fine.
Suggested fix
In
vibration_pad_kind(), recognise the native pad by vendor/product (0x057e/0x2069) or by name before falling through toVIB_PAD_OTHER(and/or give the virtual pad a gamepad type SDL reports). #3239 fixed the rumble range; this is the kind resolution, which keeps the pad on the motors.Version
nightly-1179-bb5a5682 (RenHDrum 0.7.1), Windows 10 26H2 (build 26300), Ryzen 9 9950X3D, RTX 5090 D, pad wired over USB.
From the code, this looks like intended behaviour. A maintainer will confirm.
The code intentionally uses ordinary vibration by default for this controller; its experimental HD Rumble 2 path requires
HOS_SWITCH2_HD=1. The reported controller kind does not prevent that path from being selected: the code checks the USB IDs separately after the general vibration choice. I could not determine from the supplied report whether that setting was enabled or whether the HD path failed to open.For maintainers
host/vibration.halready definesvibration_switch2_pro(vendor, product)for 0x057e:0x2069, butvibration_pad_kind()does not call it. The function's switch mapping then allows only mapped SDL types and DualSense name before returning VIB_PAD_OTHER.host/pad_sdl.c:828supplies the detected kind. This aligns with the reportedits motorsstatus despite RenHDrum 0.7.1 being loaded.The proposed classification change would not by itself select the dedicated Switch 2 backend. If HD still fails with the experimental setting enabled, investigate backend opening and effect-write failures; the supplied excerpt does not establish their cause.
Seen in the code:
VIB_RH_SWITCH2by USB IDs whenHOS_SWITCH2_HDis enabled, independently of the controller kind.HOS_SWITCH2_HD=1enables the experimental HD Rumble 2 path.ca830e895; the same selection exists in reported revisionbb5a5682.Possibly related, for context:
Automated triage by BeanBot (gpt-6-luna). Nothing was run; a maintainer decides.