GameInput: motor_powered_on returns false for all motors (breaks rumble) #4560

Closed
opened 2026-11-30 22:30:10 +00:00 by github-bot · 5 comments
Owner

@⁠gbmrrr on GitHub · 2026-11-30 22:26 UTC · original

Summary

GameInputMotorPoweredOn (slot 0x38) unconditionally returns false. The title queries this to know if a motor is powered before sending rumble commands — if it gets false, it never vibrates.

Reproduction

  1. Run any title with VICTORY_PAD_LOG=1
  2. Observe: motor powered on is called but returns false (no log line appears due to #2 below, but the return value is false)
  3. Rumble never triggers

Fix

In crates/victory-hle/src/modules/gameinput.rs ~line 1969:

// Before
Ok(false)

// After  
Ok(true)

Context

Measured on Xbox Series X controller (VID_045E PID_0B12) over USB with the XboxComposite driver. The controller does have motors powered on when the title asks — returning false is the bug that makes rumble feel "incomplete" (two short pulses then nothing).

  • The pad log instrumentation had a bitmap collision that could swallow the motor powered on line (see separate issue)
  • VICTORY_TRIGGER_MOTORS doc claimed "on unless =0" while code required =="1" (see separate issue)
**@⁠gbmrrr** on GitHub · 2026-11-30 22:26 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4559) ## Summary `GameInputMotorPoweredOn` (slot 0x38) unconditionally returns `false`. The title queries this to know if a motor is powered before sending rumble commands — if it gets `false`, it never vibrates. ## Reproduction 1. Run any title with `VICTORY_PAD_LOG=1` 2. Observe: `motor powered on` is called but returns `false` (no log line appears due to #2 below, but the return value is `false`) 3. Rumble never triggers ## Fix In `crates/victory-hle/src/modules/gameinput.rs` ~line 1969: ```rust // Before Ok(false) // After Ok(true) ``` ## Context Measured on Xbox Series X controller (VID_045E PID_0B12) over USB with the `XboxComposite` driver. The controller *does* have motors powered on when the title asks — returning `false` is the bug that makes rumble feel "incomplete" (two short pulses then nothing). ## Related - The pad log instrumentation had a bitmap collision that could swallow the `motor powered on` line (see separate issue) - `VICTORY_TRIGGER_MOTORS` doc claimed "on unless =0" while code required =="1" (see separate issue)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 22:30:10 +00:00
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-30 22:26 UTC · original

Please attach both logs from the run that went wrong. Without them we can only guess. Paste %LOCALAPPDATA% into the address bar of File Explorer to get there.

  1. The play log, in %LOCALAPPDATA%\victory\logs\: the newest victory-nvidia-play-<date>-<time>-<number>.log (from victory.exe) or victory-nvidia-<date>-<time>.log (from the script launcher). The window shows its path at the start, on the line Log: ....
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newest victory-<date>-<time>-<number>.crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\.

Also say which GPU, Windows version (10 or 11)

**@⁠github-actions[bot]** on GitHub · 2026-11-30 22:26 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4559#issuecomment-7293843848) Please attach both logs from the run that went wrong. Without them we can only guess. Paste `%LOCALAPPDATA%` into the address bar of File Explorer to get there. 1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`. Also say which GPU, Windows version (10 or 11)
Author
Owner

@⁠gbmrrr on GitHub · 2026-11-30 23:12 UTC · original

Logs, GPU and Windows version as asked, plus one correction to my own report.

GPU: NVIDIA GeForce RTX 5070 Ti, driver 621.40
Windows: 11 Home Single Language, build 26300, 26H2
Pad: Xbox Series X controller over USB - VID_045E PID_0B12, enumerating as \\?\usb#vid_045e&pid_0b12#3039373030303238373234343433#{020bc73c-0dca-4ee3-96d5-ab006ada5938}

The log, from %LOCALAPPDATA%\victory\logs\victory-nvidia-20261130-161023.log

The title does ask for rumble, and asks for a lot of it. 1248 matching lines in that run:

2026-11-30T19:13:02.976282Z INFO victory_hle::modules::gameinput::host: sending the rumble to the pad slot=0 shim=false low=0 high=7423
                                                                                                   low=0 high=7423
                                                                                                   low=0 high=0
2026-11-30T19:13:52.419564Z ...                                                                     low=0 high=12031

Note low=0 in every line: the low-frequency motor never receives a value, and the whole signal rides on high. That is the title's trigger rumble being folded into the body motor - which is what our set_rumble does deliberately, following Microsoft's own SetRumbleState remark that "trigger vibration values are emulated on 2-motor gamepads by adding a small amount of additional vibration intensity to the high-frequency vibration motor".

And the capability query the title actually makes, from the same run:

2026-11-30T19:10:26.039679Z INFO victory_hle::modules::gameinput: the title called device info slot=0x18

That is the only capability it asks for. Across 14 instrumented runs, 0x18 (device info) appears once each and nothing else does - motor powered on (0x38), force feedback (0x30) and haptics (0x48) are never called. So in this title the motor-powered query is not what gates the rumble, and fixing it alone does not change what the player feels. I had assumed it did; the log says otherwise.

Correction to this issue

motor_powered_on returning false is real in v2026.11.30.03:

extern "system" fn motor_powered_on(_: *const Device, _motor: u32) -> bool {
    false
}

We changed it to motor < 2 in our own tree, and it did not fix the missing rumble - because, per the log above, the title never asks. Worth fixing for correctness of the API surface, but it is not the rumble bug, and I should not have titled it that way. The earlier local measurement that made it look decisive came from running a stale target\release\victory.exe while cargo build wrote to a different target dir, so the instrumented build never ran.

What the trigger motors actually do here

2026-11-30T19:02:16.444723Z INFO victory_hle::modules::gameinput::triggers_winrt: trigger motors: Gamepads() size count=0
2026-11-30T19:02:16.444731Z INFO victory_hle::modules::gameinput::triggers_winrt: trigger motors: Windows.Gaming.Input lists no gamepad; the triggers stay still (the two body motors are XInput's and are unaffected) error=The operation attempted to access data outside the valid range (0x8000000B)

Windows.Gaming.Input enumerates nothing for this pad under the XboxComposite driver, so the WinRT route to the trigger motors is closed on this hardware. Note triggers_winrt is our symbol, not yours - that path is our fork's, so this half is not a report against upstream.

Crash log

%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log does not exist on this machine, and there is no *.crash.log under temp\. The run did not crash.

Happy to attach the full 4.6 MB log if the excerpt above is not enough - say the word and I will upload it as a file rather than pasting.

**@⁠gbmrrr** on GitHub · 2026-11-30 23:12 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4559#issuecomment-7294848878) Logs, GPU and Windows version as asked, plus one correction to my own report. **GPU:** NVIDIA GeForce RTX 5070 Ti, driver 621.40 **Windows:** 11 Home Single Language, build 26300, 26H2 **Pad:** Xbox Series X controller over USB - `VID_045E PID_0B12`, enumerating as `\\?\usb#vid_045e&pid_0b12#3039373030303238373234343433#{020bc73c-0dca-4ee3-96d5-ab006ada5938}` ## The log, from `%LOCALAPPDATA%\victory\logs\victory-nvidia-20261130-161023.log` The title does ask for rumble, and asks for a lot of it. 1248 matching lines in that run: ``` 2026-11-30T19:13:02.976282Z INFO victory_hle::modules::gameinput::host: sending the rumble to the pad slot=0 shim=false low=0 high=7423 low=0 high=7423 low=0 high=0 2026-11-30T19:13:52.419564Z ... low=0 high=12031 ``` Note `low=0` in every line: the low-frequency motor never receives a value, and the whole signal rides on `high`. That is the title's trigger rumble being folded into the body motor - which is what our `set_rumble` does deliberately, following Microsoft's own `SetRumbleState` remark that "trigger vibration values are emulated on 2-motor gamepads by adding a small amount of additional vibration intensity to the high-frequency vibration motor". And the capability query the title actually makes, from the same run: ``` 2026-11-30T19:10:26.039679Z INFO victory_hle::modules::gameinput: the title called device info slot=0x18 ``` That is the **only** capability it asks for. Across 14 instrumented runs, `0x18` (`device info`) appears once each and nothing else does - `motor powered on` (0x38), `force feedback` (0x30) and `haptics` (0x48) are never called. So in this title the motor-powered query is not what gates the rumble, and fixing it alone does not change what the player feels. I had assumed it did; the log says otherwise. ## Correction to this issue `motor_powered_on` returning `false` is real in `v2026.11.30.03`: ```rust extern "system" fn motor_powered_on(_: *const Device, _motor: u32) -> bool { false } ``` We changed it to `motor < 2` in our own tree, and it did not fix the missing rumble - because, per the log above, the title never asks. Worth fixing for correctness of the API surface, but it is not the rumble bug, and I should not have titled it that way. The earlier local measurement that made it look decisive came from running a stale `target\release\victory.exe` while `cargo build` wrote to a different target dir, so the instrumented build never ran. ## What the trigger motors actually do here ``` 2026-11-30T19:02:16.444723Z INFO victory_hle::modules::gameinput::triggers_winrt: trigger motors: Gamepads() size count=0 2026-11-30T19:02:16.444731Z INFO victory_hle::modules::gameinput::triggers_winrt: trigger motors: Windows.Gaming.Input lists no gamepad; the triggers stay still (the two body motors are XInput's and are unaffected) error=The operation attempted to access data outside the valid range (0x8000000B) ``` `Windows.Gaming.Input` enumerates nothing for this pad under the `XboxComposite` driver, so the WinRT route to the trigger motors is closed on this hardware. Note `triggers_winrt` is our symbol, not yours - that path is our fork's, so this half is not a report against upstream. ## Crash log `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log` does not exist on this machine, and there is no `*.crash.log` under `temp\`. The run did not crash. Happy to attach the full 4.6 MB log if the excerpt above is not enough - say the word and I will upload it as a file rather than pasting.
Author
Owner

@⁠gbmrrr on GitHub · 2026-12-01 00:01 UTC · original

Status check against main (7d93ee07), and a correction that makes this issue weaker than I filed it.

Still present

main still has it, unchanged:

/// `IsForceFeedbackMotorPoweredOn`: no force-feedback motors are reported.
extern "system" fn motor_powered_on(_: *const Device, _motor: u32) -> bool {
    false
}

But it is not the rumble bug, and my title says it is

I instrumented the module with VICTORY_PAD_LOG=1, which reports once per device-method slot the title calls. Across 14 runs of game_scarlett_master.exe 1.0.2.1, the title asks for exactly one thing:

the title called device info slot=0x18

motor powered on (0x38), force feedback (0x30) and haptics (0x48) are never called in any run. So whatever motor_powered_on returns, this title never asks — changing it to motor < 2 in our tree made no difference to what the player feels.

Evidence that the title does drive motors, from victory-nvidia-20261130-161023.log (1248 matching lines):

sending the rumble to the pad slot=0 shim=false low=0 high=7423
                                                       low=0 high=0
                                                       low=0 high=12031

low=0 throughout: the signal rides entirely on the high-frequency motor, because the trigger levels are folded into it — which is what our set_rumble does deliberately, per Microsoft's SetRumbleState remark that trigger vibration is emulated on 2-motor pads by adding intensity to the high-frequency motor.

What I got wrong in the first post

I attributed the missing rumble to this field. The attribution came from a run where cargo build wrote to CARGO_TARGET_DIR (E:\caches\cargo-target) while the launcher started target\release\victory.exe — an older binary — so the instrumented build never executed. The "no rumble" observation was from a build without the fix, and the conclusion was drawn from it anyway.

So what is actually worth doing here

Two things, both small, neither a bug fix for a symptom:

  1. The API surface is wrong as documented: the comment says "no force-feedback motors are reported" for a pad that has two, and that a title could ask about. Returning _motor < 2 is one line and makes the surface honest for any title that does query it.
  2. The instrumentation that produced this whole finding does not exist upstream — VICTORY_PAD_LOG is ours. Without something like it there is no way to tell "the pad does not buzz" from "the title never asked", which is exactly the mistake I made.

If you would rather have this as a PR than an issue, say so and I will send the one-line change plus the note_called helper. Otherwise feel free to close this: I would not call it a defect, just an API surface that says the opposite of the hardware.

GPU: NVIDIA GeForce RTX 5070 Ti, driver 621.40. Windows: 11 Home Single Language, build 26300, 26H2. Pad: Xbox Series X over USB, VID_045E PID_0B12. No crash log — %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log does not exist and there is no *.crash.log under temp\.

**@⁠gbmrrr** on GitHub · 2026-12-01 00:01 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4559#issuecomment-7295830758) Status check against `main` (7d93ee07), and a correction that makes this issue weaker than I filed it. ## Still present `main` still has it, unchanged: ```rust /// `IsForceFeedbackMotorPoweredOn`: no force-feedback motors are reported. extern "system" fn motor_powered_on(_: *const Device, _motor: u32) -> bool { false } ``` ## But it is not the rumble bug, and my title says it is I instrumented the module with `VICTORY_PAD_LOG=1`, which reports once per device-method slot the title calls. Across 14 runs of `game_scarlett_master.exe` 1.0.2.1, the title asks for exactly one thing: ``` the title called device info slot=0x18 ``` `motor powered on` (0x38), `force feedback` (0x30) and `haptics` (0x48) are never called in any run. So whatever `motor_powered_on` returns, this title never asks — changing it to `motor < 2` in our tree made no difference to what the player feels. Evidence that the title does drive motors, from `victory-nvidia-20261130-161023.log` (1248 matching lines): ``` sending the rumble to the pad slot=0 shim=false low=0 high=7423 low=0 high=0 low=0 high=12031 ``` `low=0` throughout: the signal rides entirely on the high-frequency motor, because the trigger levels are folded into it — which is what our `set_rumble` does deliberately, per Microsoft's `SetRumbleState` remark that trigger vibration is emulated on 2-motor pads by adding intensity to the high-frequency motor. ## What I got wrong in the first post I attributed the missing rumble to this field. The attribution came from a run where `cargo build` wrote to `CARGO_TARGET_DIR` (`E:\caches\cargo-target`) while the launcher started `target\release\victory.exe` — an older binary — so the instrumented build never executed. The "no rumble" observation was from a build without the fix, and the conclusion was drawn from it anyway. ## So what is actually worth doing here Two things, both small, neither a bug fix for a symptom: 1. The API surface is wrong as documented: the comment says "no force-feedback motors are reported" for a pad that has two, and that a title *could* ask about. Returning `_motor < 2` is one line and makes the surface honest for any title that does query it. 2. The instrumentation that produced this whole finding does not exist upstream — `VICTORY_PAD_LOG` is ours. Without something like it there is no way to tell "the pad does not buzz" from "the title never asked", which is exactly the mistake I made. If you would rather have this as a PR than an issue, say so and I will send the one-line change plus the `note_called` helper. Otherwise feel free to close this: I would not call it a defect, just an API surface that says the opposite of the hardware. GPU: NVIDIA GeForce RTX 5070 Ti, driver 621.40. Windows: 11 Home Single Language, build 26300, 26H2. Pad: Xbox Series X over USB, `VID_045E PID_0B12`. No crash log — `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log` does not exist and there is no `*.crash.log` under `temp\`.
Author
Owner

@⁠gbmrrr on GitHub · 2026-12-01 00:51 UTC · original

Checked against the repository's own rules for contributors before doing anything else, and the answer is: I am not opening a pull request for this, on purpose.

AGENTS.md says to list the open pull requests that change the same main file and to stop if one covers the same problem. Doing that:

  • #2835 ("Input: rumble for the generic pads Linux can rumble…", by @⁠sonokweii) is open, MERGEABLE, last touched today, and it edits crates/victory-hle/src/modules/gameinput.rs — the same file this one would have to touch.
  • It does not touch motor_powered_on: the one-line change I proposed does not overlap its diff.

So this is not the "stop, someone claimed it" case, but it is close enough to matter: a one-line PR in that file would put a rebase on an active contributor's work for a change that, as my own logs show, fixes nothing a player can feel. That trade is not worth their time.

What I would send, if you want it as a patch rather than an issue, is this — against crates/victory-hle/src/modules/gameinput.rs:

-/// `IsForceFeedbackMotorPoweredOn`: no force-feedback motors are reported.
-extern "system" fn motor_powered_on(_: *const Device, _motor: u32) -> bool {
-    false
+/// `IsForceFeedbackMotorPoweredOn`: the pad's two motors are powered whenever it is connected.
+extern "system" fn motor_powered_on(_: *const Device, motor: u32) -> bool {
+    motor < 2
 }

And I would say plainly in the description what I said in my last comment: this does not fix rumble. The title asks for device info (0x18) and never for motor powered on (0x38), so the field is only wrong for a title that does ask — a correctness fix for the API surface, not a symptom.

The more useful thing this branch has for you is the instrumentation behind that finding, and it does not exist upstream: VICTORY_PAD_LOG=1 reporting once per device-method slot the title calls. Without it there is no way to tell "the pad does not buzz" from "the title never asked", which is exactly the mistake I made and had to retract. If a PR is welcome for that on its own — one file, one switch, no behaviour change when unset — say so and I will open it against main from a clean branch as AGENTS.md requires.

**@⁠gbmrrr** on GitHub · 2026-12-01 00:51 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4559#issuecomment-7296825243) Checked against the repository's own rules for contributors before doing anything else, and the answer is: **I am not opening a pull request for this, on purpose.** `AGENTS.md` says to list the open pull requests that change the same main file and to stop if one covers the same problem. Doing that: - **#2835** ("Input: rumble for the generic pads Linux can rumble…", by @⁠sonokweii) is open, `MERGEABLE`, last touched today, and it edits `crates/victory-hle/src/modules/gameinput.rs` — the same file this one would have to touch. - It does **not** touch `motor_powered_on`: the one-line change I proposed does not overlap its diff. So this is not the "stop, someone claimed it" case, but it is close enough to matter: a one-line PR in that file would put a rebase on an active contributor's work for a change that, as my own logs show, fixes nothing a player can feel. That trade is not worth their time. What I would send, if you want it as a patch rather than an issue, is this — against `crates/victory-hle/src/modules/gameinput.rs`: ```rust -/// `IsForceFeedbackMotorPoweredOn`: no force-feedback motors are reported. -extern "system" fn motor_powered_on(_: *const Device, _motor: u32) -> bool { - false +/// `IsForceFeedbackMotorPoweredOn`: the pad's two motors are powered whenever it is connected. +extern "system" fn motor_powered_on(_: *const Device, motor: u32) -> bool { + motor < 2 } ``` And I would say plainly in the description what I said in my last comment: **this does not fix rumble.** The title asks for `device info` (0x18) and never for `motor powered on` (0x38), so the field is only wrong for a title that does ask — a correctness fix for the API surface, not a symptom. The more useful thing this branch has for you is the instrumentation behind that finding, and it does not exist upstream: `VICTORY_PAD_LOG=1` reporting once per device-method slot the title calls. Without it there is no way to tell "the pad does not buzz" from "the title never asked", which is exactly the mistake I made and had to retract. If a PR is welcome for that on its own — one file, one switch, no behaviour change when unset — say so and I will open it against `main` from a clean branch as `AGENTS.md` requires.
Author
Owner

@⁠gbmrrr on GitHub · 2026-12-01 02:27 UTC · original

Closing: #4661 answers it, and my diagnosis was wrong.

I filed this as "motor_powered_on returns false, which breaks rumble". The second half is false. @⁠RochDawid's reading in #4662 is the correct one:

  • Force-feedback motors are not rumble motors. In GameInput the force-feedback motors belong to wheels and flight sticks and are counted by forceFeedbackMotorCount; a pad's body motors are supportedRumbleMotors (we report 0x3) and are driven by SetRumbleState (slot 0x50), which never consults this query.
  • Every device of ours reports forceFeedbackMotorCount = 0, so true for any index claimed a motor our own DeviceInfo says does not exist.
  • My own measurement says the same thing and I should have drawn the conclusion from it: across 18 instrumented runs the title calls only slot 0x18 (device info), and VICTORY_PAD_LOG never once recorded 0x38. Changing the return to motor < 2 made no difference to what the player feels, because the path that matters does not pass through here.

So false is the honest value and it stays. I have reverted my local change and folded the distinction into the doc comment, pointing at #4560 and #4662.

The thing that was actually missing from this report is the instrumentation: VICTORY_PAD_LOG=1 plus note_called, which says once per slot which device methods the title asks for. Without it there is no way to tell "the pad does not buzz" from "the title never asked" — and I made exactly that mistake here, on a run that turned out to be using a stale binary. That part is still ours and I will send it as its own PR when gameinput.rs is free of the open ones (#2835 touches it).

Sorry for the round trip, and thanks for turning it into a test instead of a bad one-liner.

**@⁠gbmrrr** on GitHub · 2026-12-01 02:27 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4559#issuecomment-7298637498) Closing: **#4661 answers it, and my diagnosis was wrong.** I filed this as "motor_powered_on returns false, which breaks rumble". The second half is false. @⁠RochDawid's reading in #4662 is the correct one: - **Force-feedback motors are not rumble motors.** In GameInput the force-feedback motors belong to wheels and flight sticks and are counted by `forceFeedbackMotorCount`; a pad's body motors are `supportedRumbleMotors` (we report `0x3`) and are driven by `SetRumbleState` (slot `0x50`), which never consults this query. - Every device of ours reports `forceFeedbackMotorCount = 0`, so `true` for any index claimed a motor our own `DeviceInfo` says does not exist. - My own measurement says the same thing and I should have drawn the conclusion from it: across 18 instrumented runs the title calls **only** slot `0x18` (device info), and `VICTORY_PAD_LOG` never once recorded `0x38`. Changing the return to `motor < 2` made no difference to what the player feels, because the path that matters does not pass through here. So `false` is the honest value and it stays. I have reverted my local change and folded the distinction into the doc comment, pointing at #4560 and #4662. The thing that was actually missing from this report is the instrumentation: `VICTORY_PAD_LOG=1` plus `note_called`, which says once per slot which device methods the title asks for. Without it there is no way to tell "the pad does not buzz" from "the title never asked" — and I made exactly that mistake here, on a run that turned out to be using a stale binary. That part is still ours and I will send it as its own PR when `gameinput.rs` is free of the open ones (#2835 touches it). Sorry for the round trip, and thanks for turning it into a test instead of a bad one-liner.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
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
github/trustno1-coder--VIctory-NVIDIA#4560
No description provided.