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

Open
opened 2026-12-05 21:55:13 +00:00 by Caesar1111 · 1 comment

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:

349: longshot: switch2: Switch 2 Pro Controller over USB: started (sticks calibrated at 2057 2220 / 2168 2028)
350: longshot: switch2: its reports arrive (ID 05, 64 bytes)
595: [hos host] hid: controller "Nintendo Switch 2 Pro Controller" connected (SDL in the builder), with a gyroscope
598: [hos host] vibration: "Nintendo Switch 2 Pro Controller": its motors
599: [hos host] vibration: RenHDrum 0.7.1

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 at its motors (lines 2130, 2142 in the same log).

Why (code)

  • host/pad_switch2.c attaches an SDL virtual gamepad (vendor 0x057e, product 0x2069, name Nintendo Switch 2 Pro Controller).
  • host/vibration.h, vibration_pad_kind(): maps SDL3 gamepad types 3 (Xbox One), 6 (PS5), 7-10 (Switch Pro / Joy-Con); otherwise only the name DualSense is recognised. Everything else is VIB_PAD_OTHER.
  • vibration_pick() returns VIB_MOTORS for VIB_PAD_OTHER, so VIB_RH_SWITCH (RenHDrum) can never be selected for this pad.
  • The virtual pad's SDL gamepad type is none of the mapped values and its name is not 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 to VIB_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.

**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: ``` 349: longshot: switch2: Switch 2 Pro Controller over USB: started (sticks calibrated at 2057 2220 / 2168 2028) 350: longshot: switch2: its reports arrive (ID 05, 64 bytes) 595: [hos host] hid: controller "Nintendo Switch 2 Pro Controller" connected (SDL in the builder), with a gyroscope 598: [hos host] vibration: "Nintendo Switch 2 Pro Controller": its motors 599: [hos host] vibration: RenHDrum 0.7.1 ``` 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 at `its motors` (lines `2130`, `2142` in the same log). **Why (code)** - `host/pad_switch2.c` attaches an SDL virtual gamepad (vendor `0x057e`, product `0x2069`, name `Nintendo Switch 2 Pro Controller`). - `host/vibration.h`, `vibration_pad_kind()`: maps SDL3 gamepad types `3` (Xbox One), `6` (PS5), `7`-`10` (Switch Pro / Joy-Con); otherwise only the name `DualSense` is recognised. Everything else is `VIB_PAD_OTHER`. - `vibration_pick()` returns `VIB_MOTORS` for `VIB_PAD_OTHER`, so `VIB_RH_SWITCH` (RenHDrum) can never be selected for this pad. - The virtual pad's SDL gamepad type is none of the mapped values and its name is not `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 to `VIB_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.
Member

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.h already defines vibration_switch2_pro(vendor, product) for 0x057e:0x2069, but vibration_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:828 supplies the detected kind. This aligns with the reported its motors status 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:

  • host/pad_sdl.c:639 — After the general vibration choice, Auto can select VIB_RH_SWITCH2 by USB IDs when HOS_SWITCH2_HD is enabled, independently of the controller kind.
  • host/pad_sdl.c:651 — If the selected RenHDrum backend cannot open, the code falls back to motors.
  • docs/dev/reference/input.md:142 — The documented default is the builder's motor-strength path; HOS_SWITCH2_HD=1 enables the experimental HD Rumble 2 path.
  • host/vibration.h:74 — Basic selects motors and Off selects no vibration.
  • host/pad_sdl.c:685 — An effect-write failure disables HD rumble for the pad.
  • host/pad_sdl.c:641 — Blame attributes the separate Switch 2 selection to commit ca830e895; the same selection exists in reported revision bb5a5682.

Possibly related, for context:

  • issue #3233 Game: Switch Pro Controller HD rumble weak and missing detail unless HOS_SWITCH_DETAILED=1 — Related Switch Pro HD rumble behavior, but reports weak/missing detail rather than Switch 2 being classified for motors.

Automated triage by BeanBot (gpt-6-luna). Nothing was run; a maintainer decides.

**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.h` already defines `vibration_switch2_pro(vendor, product)` for 0x057e:0x2069, but `vibration_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:828` supplies the detected kind. This aligns with the reported `its motors` status 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: - host/pad_sdl.c:639 — After the general vibration choice, Auto can select `VIB_RH_SWITCH2` by USB IDs when `HOS_SWITCH2_HD` is enabled, independently of the controller kind. - host/pad_sdl.c:651 — If the selected RenHDrum backend cannot open, the code falls back to motors. - docs/dev/reference/input.md:142 — The documented default is the builder's motor-strength path; `HOS_SWITCH2_HD=1` enables the experimental HD Rumble 2 path. - host/vibration.h:74 — Basic selects motors and Off selects no vibration. - host/pad_sdl.c:685 — An effect-write failure disables HD rumble for the pad. - host/pad_sdl.c:641 — Blame attributes the separate Switch 2 selection to commit `ca830e895`; the same selection exists in reported revision `bb5a5682`. --- Possibly related, for context: - issue #3233 Game: Switch Pro Controller HD rumble weak and missing detail unless HOS_SWITCH_DETAILED=1 — Related Switch Pro HD rumble behavior, but reports weak/missing detail rather than Switch 2 being classified for motors. --- <sub>Automated triage by BeanBot (gpt-6-luna). Nothing was run; a maintainer decides.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot#3286
No description provided.