fix(builder): a Switch 2 Pro Controller's rumble takes the controller's whole range #3239

Merged
HumanBean merged 2 commits from fofuxo/Longshot:fix/switch2-rumble-strength into main 2026-12-05 17:51:25 +00:00
Contributor

Summary

On a Switch 2 Pro Controller over USB, the game's light rumbles could not be felt. The builder's driver
(build_core::switch2) turned the two motor strengths into the controller's rumble frame at 380 (low band) and 130
(high band) of the frame's 1023, kept to 511 together. That is the Switch2Connect bridge's limit, chosen for what it
took a USB port to power, and it was never measured. A fall in the game asks 0.08 of the low motor, which went out as
30 of 1023: about 3% of the controller's range, where SDL gives a Joy-Con or a Switch Pro Controller 8%.

Each band now takes its motor's share of 1023, and the two come down together when they pass it (limit_frame, the
check game_report already used), as SDL plays the motors on Nintendo's other pads. 0.08 on the low motor is now 81
of 1023; both motors at full are 511 + 511.

To see it on main: a Switch 2 Pro Controller on USB, Vibration on Auto, and fall from a ledge: the log shows
hid: vibration #...: low 0.08 and the controller barely moves. A Joy-Con playing the same strengths (it falls back to
its motors too, see Risks) shakes clearly.

Read first: rumble_report and AMP_SUM_MAX in builder/crates/build-core/src/switch2.rs.

See #2670 (the same driver over Bluetooth, which this doesn't add).

Testing

Tested: Windows 11 Pro (build 26300), AMD Ryzen 9 5900X, NVIDIA GeForce RTX 3070 (driver 621.47), a Switch 2 Pro
Controller on USB beside a pair of Joy-Cons over Bluetooth.

  • In the game, a runtime of this branch (acc8e34e, before a rebase over one unrelated commit of main) from my own
    save: falling from the same ledge as on main, the Pro Controller 2 now shakes about as hard as the left Joy-Con,
    which plays the same low motor through SDL. On main (nightly-1118-3a0f7d8f) the same falls were barely felt.

  • By hand, outside the game, writing the driver's own report 0x02 to the controller beside a Joy-Con pair rumbled
    through the same SDL3 Longshot ships, at the same motor strengths: the falls' 0.08 at 3% (main), 6% and 8% (this
    PR), then 2 to 100 % held on buttons. At 8% the two felt alike across the range. 1023 together shook clearly harder
    than 511 and started and stopped cleanly; both bands at 1023 felt no stronger than 1023 together.

  • dev.py test-changed: the crates the change reaches; cargo test -p build-core --lib switch2: 8 passed.

  • mise run test on Windows 11, with WinLibs' GCC 16.2 and the checkout's llvm-mingw clang first on the PATH:
    829 passed, 52 skipped, 30 failed. The same 30 fail on main @ 7bc53f84 in the same environment (run again
    alone there), none in the code this changes. Two more (test_run_all_junit.py, test_utf8_paths.py) failed once
    under load in an earlier run and pass alone.

    The 30 that also fail on main, by cause
    • The C compiler beside {cxx} not found on Windows (shutil.which gives clang++.EXE, so no ++ suffix to
      strip, and there is no cc): test_audio_output_errors, test_audio_source, test_audio_source_load,
      test_audio_wave_buffer_release, test_game_font, test_hd_rumble, test_pad_headphones_reader,
      test_pad_speaker, test_rumble_mapping, test_rumble_refresh, test_vibration_permission.
    • glslang not found (run_all.py looks for toolchain/glslang/bin/glslangValidator, the folder holds
      glslang.exe): test_framegen_hdr, test_fsr3fi_hud_layer, test_fsr3fi_hudless_colour, test_gfx_effects,
      test_temporal_present_bandwidth.
    • No spirv-val or llvm-mc on this PC: test_fsr4_tune, test_lifter. No symlink privilege (Windows' Developer
      Mode off): test_longshot_builder.
    • The fixture does not compile here (unknown type name 'VkImageView'): test_present_acquire_ahead,
      test_present_held_image, test_present_image_free.
    • An undeclared identifier in the fixture: test_present_geometry_trace (dlssg_active), test_sync_watch_event
      (settings_start), test_turf_budget (order_watch_on).
    • Not looked into: test_dlssg and test_ui_renderer (a source line the test looks for), test_no_map_reload,
      test_helpers_extract, test_no_game_title (it names tests/test_lower_cs2r_depbar.py).

Still to test:

  • A Switch 2 Pro Controller on USB, Windows, another PC and USB port: long sessions with strong rumble (Megaton Hammer,
    falls, Din's Fire), expecting no write refused/stuck rumble any more often than on main (by hand). One hand test
    here stopped taking reports after many full-strength presses while it also kept writing zero reports every 12 ms,
    which the driver never does; with the driver's own stops it held up through many more full presses, and the driver
    falls back to the controller's own samples (Rumble::written) if its motor-strength reports are refused three times in a row. HD-report writes do not use that fallback.
  • HOS_SWITCH2_HD=1: RenHDrum's HD Rumble 2 reports are now limited at 1023 together instead of 511, expecting louder
    strong effects and the same light ones (by hand, nobody has run it yet).

Measurements

Verdict: the bug's light rumble goes from 30 to 81 of 1023, as a Joy-Con plays the same request; felt by hand
beside one.

Setup: the game-free test, cargo test -p build-core --lib switch2, on main and here; the in-game falls above.

Before: main @ 7bc53f84 After: this PR @ 176fe70d
the_rumble_s_reports_then_its_samples_once_the_controller_stops_taking_them: 0.08 on the low motor 30 of 1023 (FAILED) 81 of 1023 (ok)
the same test: both motors at full 380 + 130 (FAILED) 511 + 511 (ok)
only_a_whole_hd_rumble_2_report_of_the_game_s_is_written: a game report at 900 + 900 255 + 255 (FAILED) 511 + 511 (ok)

Risks

  • The Switch 2 Pro Controller on USB rumbles up to twice as hard; a player who liked it soft has the Vibration strength
    row. Nothing changes for other pads, Bluetooth, or Linux (the kernel's driver).
  • If a controller stops taking reports more often at the higher ceiling, the driver falls back to its own
    samples after three refused motor-strength reports. HD-report writes do not use that fallback. A revert puts 511 back.
    No switch.
  • Nothing to update: no save, setting or cache changes.

Seen while testing, not changed here (worth issues of their own):

  • A Joy-Con pair refused HD rumble mid-run (hid: "Nintendo Switch Joy-Con (L/R)" did not take HD rumble ()) and fell
    back to its motors, where SDL plays the low motor on the left Joy-Con alone and the high one on the right alone, so
    a fall barely moves the right one.
  • build_core::switch2's own log lines (switch2: ... started, HOS_SWITCH2_RUMBLE_TEST's result, the stuck-rumble
    notice) reach no log: the builder's console sink keeps only its own crate's target and build_core::report.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (any failure that also fails on main is named). (30 fail here and on main alike,
    named in Testing.)
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A fix: a game-free test that fails on main and passes here.
  • Docs updated.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.
## Summary On a Switch 2 Pro Controller over USB, the game's light rumbles could not be felt. The builder's driver (`build_core::switch2`) turned the two motor strengths into the controller's rumble frame at 380 (low band) and 130 (high band) of the frame's 1023, kept to 511 together. That is the Switch2Connect bridge's limit, chosen for what it took a USB port to power, and it was never measured. A fall in the game asks 0.08 of the low motor, which went out as 30 of 1023: about 3% of the controller's range, where SDL gives a Joy-Con or a Switch Pro Controller 8%. Each band now takes its motor's share of 1023, and the two come down together when they pass it (`limit_frame`, the check `game_report` already used), as SDL plays the motors on Nintendo's other pads. 0.08 on the low motor is now 81 of 1023; both motors at full are 511 + 511. To see it on `main`: a Switch 2 Pro Controller on USB, Vibration on Auto, and fall from a ledge: the log shows `hid: vibration #...: low 0.08` and the controller barely moves. A Joy-Con playing the same strengths (it falls back to its motors too, see Risks) shakes clearly. Read first: `rumble_report` and `AMP_SUM_MAX` in `builder/crates/build-core/src/switch2.rs`. See #2670 (the same driver over Bluetooth, which this doesn't add). ## Testing **Tested:** Windows 11 Pro (build 26300), AMD Ryzen 9 5900X, NVIDIA GeForce RTX 3070 (driver 621.47), a Switch 2 Pro Controller on USB beside a pair of Joy-Cons over Bluetooth. - In the game, a runtime of this branch (`acc8e34e`, before a rebase over one unrelated commit of `main`) from my own save: falling from the same ledge as on `main`, the Pro Controller 2 now shakes about as hard as the left Joy-Con, which plays the same low motor through SDL. On `main` (`nightly-1118-3a0f7d8f`) the same falls were barely felt. - By hand, outside the game, writing the driver's own report 0x02 to the controller beside a Joy-Con pair rumbled through the same SDL3 Longshot ships, at the same motor strengths: the falls' 0.08 at 3% (`main`), 6% and 8% (this PR), then 2 to 100 % held on buttons. At 8% the two felt alike across the range. 1023 together shook clearly harder than 511 and started and stopped cleanly; both bands at 1023 felt no stronger than 1023 together. - `dev.py test-changed`: the crates the change reaches; `cargo test -p build-core --lib switch2`: 8 passed. - `mise run test` on Windows 11, with WinLibs' GCC 16.2 and the checkout's llvm-mingw clang first on the PATH: 829 passed, 52 skipped, 30 failed. The same 30 fail on `main` @ 7bc53f84 in the same environment (run again alone there), none in the code this changes. Two more (`test_run_all_junit.py`, `test_utf8_paths.py`) failed once under load in an earlier run and pass alone. <details><summary>The 30 that also fail on <code>main</code>, by cause</summary> - The C compiler beside `{cxx}` not found on Windows (`shutil.which` gives `clang++.EXE`, so no `++` suffix to strip, and there is no `cc`): `test_audio_output_errors`, `test_audio_source`, `test_audio_source_load`, `test_audio_wave_buffer_release`, `test_game_font`, `test_hd_rumble`, `test_pad_headphones_reader`, `test_pad_speaker`, `test_rumble_mapping`, `test_rumble_refresh`, `test_vibration_permission`. - glslang not found (`run_all.py` looks for `toolchain/glslang/bin/glslangValidator`, the folder holds `glslang.exe`): `test_framegen_hdr`, `test_fsr3fi_hud_layer`, `test_fsr3fi_hudless_colour`, `test_gfx_effects`, `test_temporal_present_bandwidth`. - No spirv-val or llvm-mc on this PC: `test_fsr4_tune`, `test_lifter`. No symlink privilege (Windows' Developer Mode off): `test_longshot_builder`. - The fixture does not compile here (`unknown type name 'VkImageView'`): `test_present_acquire_ahead`, `test_present_held_image`, `test_present_image_free`. - An undeclared identifier in the fixture: `test_present_geometry_trace` (`dlssg_active`), `test_sync_watch_event` (`settings_start`), `test_turf_budget` (`order_watch_on`). - Not looked into: `test_dlssg` and `test_ui_renderer` (a source line the test looks for), `test_no_map_reload`, `test_helpers_extract`, `test_no_game_title` (it names `tests/test_lower_cs2r_depbar.py`). </details> **Still to test:** - A Switch 2 Pro Controller on USB, Windows, another PC and USB port: long sessions with strong rumble (Megaton Hammer, falls, Din's Fire), expecting no `write refused`/stuck rumble any more often than on `main` (by hand). One hand test here stopped taking reports after many full-strength presses while it also kept writing zero reports every 12 ms, which the driver never does; with the driver's own stops it held up through many more full presses, and the driver falls back to the controller's own samples (`Rumble::written`) if its motor-strength reports are refused three times in a row. HD-report writes do not use that fallback. - `HOS_SWITCH2_HD=1`: RenHDrum's HD Rumble 2 reports are now limited at 1023 together instead of 511, expecting louder strong effects and the same light ones (by hand, nobody has run it yet). ## Measurements **Verdict:** the bug's light rumble goes from 30 to 81 of 1023, as a Joy-Con plays the same request; felt by hand beside one. Setup: the game-free test, `cargo test -p build-core --lib switch2`, on `main` and here; the in-game falls above. | | Before: main @ 7bc53f84 | After: this PR @ 176fe70d | |---|---|---| | `the_rumble_s_reports_then_its_samples_once_the_controller_stops_taking_them`: 0.08 on the low motor | 30 of 1023 (FAILED) | 81 of 1023 (ok) | | the same test: both motors at full | 380 + 130 (FAILED) | 511 + 511 (ok) | | `only_a_whole_hd_rumble_2_report_of_the_game_s_is_written`: a game report at 900 + 900 | 255 + 255 (FAILED) | 511 + 511 (ok) | ## Risks - The Switch 2 Pro Controller on USB rumbles up to twice as hard; a player who liked it soft has the Vibration strength row. Nothing changes for other pads, Bluetooth, or Linux (the kernel's driver). - If a controller stops taking reports more often at the higher ceiling, the driver falls back to its own samples after three refused motor-strength reports. HD-report writes do not use that fallback. A revert puts 511 back. No switch. - Nothing to update: no save, setting or cache changes. Seen while testing, not changed here (worth issues of their own): - A Joy-Con pair refused HD rumble mid-run (`hid: "Nintendo Switch Joy-Con (L/R)" did not take HD rumble ()`) and fell back to its motors, where SDL plays the low motor on the left Joy-Con alone and the high one on the right alone, so a fall barely moves the right one. - `build_core::switch2`'s own log lines (`switch2: ... started`, `HOS_SWITCH2_RUMBLE_TEST`'s result, the stuck-rumble notice) reach no log: the builder's console sink keeps only its own crate's target and `build_core::report`. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [x] `mise run test` passes (any failure that also fails on `main` is named). (30 fail here and on `main` alike, named in Testing.) - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A fix: a game-free test that fails on `main` and passes here. - [x] Docs updated. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold.
The motors' rumble report for a Switch 2 Pro Controller over USB should give
each motor its share of the controller's whole range, 1023 together, as SDL
gives a Switch Pro Controller or a Joy-Con: 0.08 on the low motor is 81 of
1023. On main it is 30 (the low band capped at 380, the pair at 511), and
the game's fall is barely felt where a Joy-Con beside it shakes clearly.

Fails on main: the full-strength frame is 380 + 130, the light one 30, and
a game report louder than the cap comes down to 511 together.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix(builder): a Switch 2 Pro Controller's rumble takes the controller's whole range
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
176fe70d9b
The builder played the motors' strengths on a Switch 2 Pro Controller over
USB at 380 (the low band) and 130 (the high) of the frame's 1023, kept to
511 together, the Switch2Connect bridge's limit for what it took a USB port
to power. That limit was never measured, and the game's light rumbles went
unfelt: its fall, 0.08 on the low motor, played at 30.

Each band now takes its motor's share of 1023, the two coming down together
past it, as SDL plays a Switch Pro Controller's or a Joy-Con's motors. Held
beside a Joy-Con playing the same strengths through SDL, by hand, from 2 to
100 %, the two now feel alike; 1023 together shakes clearly harder than 511
and starts and stops cleanly, while both bands at 1023 feel no stronger.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Contributor

Tested in game: RTX 3070 (621.47), Windows 11, Switch 2 Pro Controller on USB beside Joy-Cons over Bluetooth: a fall now shakes the Pro Controller 2 about as hard as the left Joy-Con, where on main it was barely felt

Tested in game: RTX 3070 (621.47), Windows 11, Switch 2 Pro Controller on USB beside Joy-Cons over Bluetooth: a fall now shakes the Pro Controller 2 about as hard as the left Joy-Con, where on main it was barely felt
Member

Possibly related, for context:

  • issue #2061 Idea: all rumble uptions — Open Switch 2 rumble behavior request; this PR improves USB motor fallback strength.
Possibly related, for context: - issue #2061 Idea: all rumble uptions — Open Switch 2 rumble behavior request; this PR improves USB motor fallback strength.
fofuxo changed title from WIP: fix(builder): a Switch 2 Pro Controller's rumble takes the controller's whole range to fix(builder): a Switch 2 Pro Controller's rumble takes the controller's whole range 2026-12-05 09:42:30 +00:00
Owner
@review
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The reported in-game comparison shows that the light-rumble fix helps on the tested controller. The higher ceiling still needs the stated sustained-use and experimental HD-rumble runs before merge. Recommend approval; not approved on the forge.

The Windows USB driver gives each rumble band more of the controller’s range and limits their combined amplitude. This makes light effects feel stronger, while also raising the ceiling for experimental HD reports.

Nits (1): optional.

  • L3: The risk description says the driver falls back to controller samples if reports stop being accepted, but that is not true for the HD-report path. When: With HOS_SWITCH2_HD=1 and incoming HD reports, the rumble thread discards write results and continues taking the HD branch; it never calls Rumble::written to enter the sample fallback. Do: Qualify the fallback claim as applying to motor-derived reports, and describe the HD path’s behavior.

Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)

  • L1 builder/crates/build-core/src/switch2.rs:340: The higher ceiling needs the sustained controller and USB-port comparison already listed in Still to test. (more on the line) Do: Run comparable long sessions on main and this branch with strong effects on another Windows PC and USB port, recording refused writes and stuck rumble.
  • L2 builder/crates/build-core/src/switch2.rs:340: The changed limit also applies to experimental HD reports, but that mode has not been exercised on the controller. (more on the line) Do: Run representative light and strong HD effects in game on the USB controller and compare playback and stopping with main. (@fix does its part first: Keep the previous 511 limit for game_report while applying the new ceiling only to motor-derived reports.)

@fix can do L2 and L3.

Checks: Still running: 11 checks.

More: does it help, other systems, switches, what was read

Does it help: Yes for the reported light-rumble case: the generated low-band amplitude rises from 30 to 81 out of 1023, and the author reports that the same in-game fall became clearly perceptible beside a Joy-Con. The hardware comparison was on one PC and controller; sustained reliability at the higher ceiling remains unproven.

Other systems: The changed driver handles the Switch 2 Pro Controller over USB on Windows. Linux, Bluetooth and other controllers do not use this encoding. The shared limit also changes experimental RenHDrum HD reports; that path has not been tested with the new ceiling.

Switches: No switch added, removed or changed. The existing HOS_SWITCH2_HD switch defaults off; enabling it selects the experimental HD path whose amplitude ceiling changes here.

Reviewed: 176fe70d9b against 7bc53f8413: Read AGENTS.md, CONTRIBUTING.md, the PR template, the diff and commit messages; reviewed the changed encoding, tests, Windows rumble thread and host selection path, and the input reference change. Skimmed the remainder of switch2.rs, input.md and standards.md. docs/review-checklist.md and the adjacent Tooling checkout were absent. No generated files or recorded runs were changed.; nothing run (a code review).

Checked and fine:

  • The new arithmetic fits in u32, and the limiter preserves the ratio of the two encoded amplitudes.
  • The game-free assertions cover the light input and combined full-strength limit and would fail with the previous encoding.
  • Both commits record AI assistance; no game-derived or generated files are in the diff.

Testing: Read-only review; no tests or project code were run. The author reports the game-free tests and an in-game Windows comparison. CI was still running.

Overlaps and merge order: Not checked; the network is closed.


Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The code is ready: only testing is left. The reported in-game comparison shows that the light-rumble fix helps on the tested controller. The higher ceiling still needs the stated sustained-use and experimental HD-rumble runs before merge. Recommend approval; not approved on the forge. The Windows USB driver gives each rumble band more of the controller’s range and limits their combined amplitude. This makes light effects feel stronger, while also raising the ceiling for experimental HD reports. **Nits (1)**: optional. - **L3**: The risk description says the driver falls back to controller samples if reports stop being accepted, but that is not true for the HD-report path. *When:* With HOS_SWITCH2_HD=1 and incoming HD reports, the rumble thread discards write results and continues taking the HD branch; it never calls Rumble::written to enter the sample fallback. **Do:** Qualify the fallback claim as applying to motor-derived reports, and describe the HD path’s behavior. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L1** `builder/crates/build-core/src/switch2.rs:340`: The higher ceiling needs the sustained controller and USB-port comparison already listed in Still to test. (more on the line) **Do:** Run comparable long sessions on main and this branch with strong effects on another Windows PC and USB port, recording refused writes and stuck rumble. - **L2** `builder/crates/build-core/src/switch2.rs:340`: The changed limit also applies to experimental HD reports, but that mode has not been exercised on the controller. (more on the line) **Do:** Run representative light and strong HD effects in game on the USB controller and compare playback and stopping with main. *(`@fix` does its part first: Keep the previous 511 limit for game_report while applying the new ceiling only to motor-derived reports.)* `@fix` can do L2 and L3. **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes for the reported light-rumble case: the generated low-band amplitude rises from 30 to 81 out of 1023, and the author reports that the same in-game fall became clearly perceptible beside a Joy-Con. The hardware comparison was on one PC and controller; sustained reliability at the higher ceiling remains unproven. **Other systems:** The changed driver handles the Switch 2 Pro Controller over USB on Windows. Linux, Bluetooth and other controllers do not use this encoding. The shared limit also changes experimental RenHDrum HD reports; that path has not been tested with the new ceiling. **Switches:** No switch added, removed or changed. The existing HOS_SWITCH2_HD switch defaults off; enabling it selects the experimental HD path whose amplitude ceiling changes here. **Reviewed:** 176fe70d9b7b against 7bc53f841323: Read AGENTS.md, CONTRIBUTING.md, the PR template, the diff and commit messages; reviewed the changed encoding, tests, Windows rumble thread and host selection path, and the input reference change. Skimmed the remainder of switch2.rs, input.md and standards.md. docs/review-checklist.md and the adjacent Tooling checkout were absent. No generated files or recorded runs were changed.; nothing run (a code review). **Checked and fine:** - The new arithmetic fits in u32, and the limiter preserves the ratio of the two encoded amplitudes. - The game-free assertions cover the light input and combined full-strength limit and would fail with the previous encoding. - Both commits record AI assistance; no game-derived or generated files are in the diff. **Testing:** Read-only review; no tests or project code were run. The author reports the game-free tests and an in-game Windows comparison. CI was still running. **Overlaps and merge order:** Not checked; the network is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
@ -339,0 +337,4 @@
/// The most a motor's two amplitudes may be together (as [`rumble_report`] keeps them). On a Pro Controller 2 over
/// USB, 1023 together shook clearly harder than 511 and still started and stopped cleanly, while both fields at their
/// full 1023 felt no stronger than 1023 together (measured by hand).
pub const AMP_SUM_MAX: u64 = 1023;
Member

L1 (should fix): The higher ceiling needs the sustained controller and USB-port comparison already listed in Still to test.

When: Strong effects can now send up to 1023 combined instead of 511; the author observed a controller stop accepting reports during a separate repeated-write experiment, so normal long-session reliability at this ceiling remains unknown.

Do: Run comparable long sessions on main and this branch with strong effects on another Windows PC and USB port, recording refused writes and stuck rumble.

**L1** (should fix): The higher ceiling needs the sustained controller and USB-port comparison already listed in Still to test. *When:* Strong effects can now send up to 1023 combined instead of 511; the author observed a controller stop accepting reports during a separate repeated-write experiment, so normal long-session reliability at this ceiling remains unknown. **Do:** Run comparable long sessions on main and this branch with strong effects on another Windows PC and USB port, recording refused writes and stuck rumble.
Member

L2 (should fix): The changed limit also applies to experimental HD reports, but that mode has not been exercised on the controller.

When: With HOS_SWITCH2_HD=1, game_report now permits stronger frames than main; the unit test checks the bytes, not whether actual HD effects play and stop correctly.

Do: Run representative light and strong HD effects in game on the USB controller and compare playback and stopping with main.

**L2** (should fix): The changed limit also applies to experimental HD reports, but that mode has not been exercised on the controller. *When:* With HOS_SWITCH2_HD=1, game_report now permits stronger frames than main; the unit test checks the bytes, not whether actual HD effects play and stop correctly. **Do:** Run representative light and strong HD effects in game on the USB controller and compare playback and stopping with main.
Owner
@fix
Member

I didn't fix this pull request: the change I made would remove a switch this pull request adds (assert_eq!(&kept[2..7], &super::rumble_frame(511, 511)); in builder/crates/build-core/src/switch2.rs), which undoes it. So L2 is the author's now. Nothing was pushed.


Automated fix by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

I didn't fix this pull request: the change I made would remove a switch this pull request adds (`assert_eq!(&kept[2..7], &super::rumble_frame(511, 511));` in `builder/crates/build-core/src/switch2.rs`), which undoes it. So L2 is the author's now. Nothing was pushed. --- <sub>Automated fix by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
Owner
@fix
BeanBot force-pushed fix/switch2-rumble-strength from 176fe70d9b
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to 9efeb46123
Some checks are pending
PR description / Title and description (pull_request_target) Successful in 6s
CI / What the change needs (pull_request) Successful in 7s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Waiting to run
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Waiting to run
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Waiting to run
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Waiting to run
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Waiting to run
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Waiting to run
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Waiting to run
CI / Website build and checks (pull_request) Waiting to run
CI / Third-party parts and guide screenshots (pull_request) Successful in 12s
2026-12-05 17:48:07 +00:00
Compare
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The light-rumble fix is demonstrated in game, but the higher ceiling still needs the sustained USB comparison and a controller run of the experimental HD mode. Recommend approval; not approved on the forge.

What @fix changed
I changed this pull request: the new head is 9efeb46123. I rebased it onto main (3778dbdf52). I edited its description to match the change.

Nothing was built or run: the checks run again on the new head.

Switch 2 Pro Controller motor strengths now use the controller's full rumble range, making light effects easier to feel. The same higher limit applies to experimental HD reports, with sustained behavior still untested.

Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)

  • L1 builder/crates/build-core/src/switch2.rs:340: The higher ceiling needs the sustained controller and USB-port comparison already listed in Still to test. When: Strong effects can now send up to 1023 combined instead of 511; the author observed a controller stop accepting reports during a separate repeated-write experiment, so normal long-session reliability at this ceiling remains unknown. Do: Run comparable long sessions on main and this branch with strong effects on another Windows PC and USB port, recording refused writes and stuck rumble.
  • L2 builder/crates/build-core/src/switch2.rs:340: The changed limit also applies to experimental HD reports, but that mode has not been exercised on the controller. When: With HOS_SWITCH2_HD=1, game_report now permits stronger frames than main; the unit test checks the bytes, not whether actual HD effects play and stop correctly. Do: Run representative light and strong HD effects in game on the USB controller and compare playback and stopping with main.

Checks: they run again on this head; a failure shows on the pull request.

Also noticed (1; not asked for, not blocking)
  • The rebased builder now includes switch2 log targets in its console sink, so the description's note that those lines reach no log is stale.
More: does it help, other systems, switches, what was read

Does it help: Yes. The reported test changes a 0.08 low-motor request from 30 to 81 of 1023, and the author reports that the same fall felt comparable to a Joy-Con on Windows.

Other systems: The changed driver runs on Windows with the Switch 2 Pro Controller over USB. Linux, Bluetooth and other controllers do not use this path. Experimental HD reports share the higher limit and have not been exercised on the controller.

Switches: No switches added, changed or removed. Existing HOS_SWITCH2_HD is off by default; when enabled, its reports receive the higher limit.

Reviewed: 9efeb46123 against 3778dbdf52: Read AGENTS.md, CONTRIBUTING.md, the pull request template, standards, the rebased diff and commits, and the relevant rumble, report, fallback and test code. Skimmed the rest of switch2.rs, input.md and the related callers. Tooling's AGENTS.md and docs/review-checklist.md were unavailable.; nothing run (a code review).

Checked and fine:

  • The motor report scales both bands together when their sum exceeds 1023.
  • The HD report validates its length and report ID and limits all three frames for both motors.
  • The description now distinguishes motor-report fallback from HD-report handling.

Testing: No commands from the project or tests were run. The author reports an in-game Windows comparison and game-free tests; CI has not run on this head.

Overlaps and merge order: None identified from the supplied information.


Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its fix. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The code is ready: only testing is left. The light-rumble fix is demonstrated in game, but the higher ceiling still needs the sustained USB comparison and a controller run of the experimental HD mode. Recommend approval; not approved on the forge. **What `@fix` changed** I changed this pull request: the new head is 9efeb4612385. I rebased it onto `main` (3778dbdf52bd). I edited its description to match the change. Nothing was built or run: the checks run again on the new head. Switch 2 Pro Controller motor strengths now use the controller's full rumble range, making light effects easier to feel. The same higher limit applies to experimental HD reports, with sustained behavior still untested. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L1** `builder/crates/build-core/src/switch2.rs:340`: The higher ceiling needs the sustained controller and USB-port comparison already listed in Still to test. *When:* Strong effects can now send up to 1023 combined instead of 511; the author observed a controller stop accepting reports during a separate repeated-write experiment, so normal long-session reliability at this ceiling remains unknown. **Do:** Run comparable long sessions on main and this branch with strong effects on another Windows PC and USB port, recording refused writes and stuck rumble. - **L2** `builder/crates/build-core/src/switch2.rs:340`: The changed limit also applies to experimental HD reports, but that mode has not been exercised on the controller. *When:* With HOS_SWITCH2_HD=1, game_report now permits stronger frames than main; the unit test checks the bytes, not whether actual HD effects play and stop correctly. **Do:** Run representative light and strong HD effects in game on the USB controller and compare playback and stopping with main. **Checks:** they run again on this head; a failure shows on the pull request. <details> <summary>Also noticed (1; not asked for, not blocking)</summary> - The rebased builder now includes switch2 log targets in its console sink, so the description's note that those lines reach no log is stale. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes. The reported test changes a 0.08 low-motor request from 30 to 81 of 1023, and the author reports that the same fall felt comparable to a Joy-Con on Windows. **Other systems:** The changed driver runs on Windows with the Switch 2 Pro Controller over USB. Linux, Bluetooth and other controllers do not use this path. Experimental HD reports share the higher limit and have not been exercised on the controller. **Switches:** No switches added, changed or removed. Existing HOS_SWITCH2_HD is off by default; when enabled, its reports receive the higher limit. **Reviewed:** 9efeb4612385 against 3778dbdf52bd: Read AGENTS.md, CONTRIBUTING.md, the pull request template, standards, the rebased diff and commits, and the relevant rumble, report, fallback and test code. Skimmed the rest of switch2.rs, input.md and the related callers. Tooling's AGENTS.md and docs/review-checklist.md were unavailable.; nothing run (a code review). **Checked and fine:** - The motor report scales both bands together when their sum exceeds 1023. - The HD report validates its length and report ID and limits all three frames for both motors. - The description now distinguishes motor-report fallback from HD-report handling. **Testing:** No commands from the project or tests were run. The author reports an in-game Windows comparison and game-free tests; CI has not run on this head. **Overlaps and merge order:** None identified from the supplied information. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its fix. Nothing was run; a maintainer decides.</sub>
HumanBean deleted branch fix/switch2-rumble-strength 2026-12-05 17:51:25 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 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!3239
No description provided.