GameInput: motor_powered_on returns false for all motors (breaks rumble) #4560
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA#4560
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?
@gbmrrr on GitHub · 2026-11-30 22:26 UTC · original
Summary
GameInputMotorPoweredOn(slot 0x38) unconditionally returnsfalse. The title queries this to know if a motor is powered before sending rumble commands — if it getsfalse, it never vibrates.Reproduction
VICTORY_PAD_LOG=1motor powered onis called but returnsfalse(no log line appears due to #2 below, but the return value isfalse)Fix
In
crates/victory-hle/src/modules/gameinput.rs~line 1969:Context
Measured on Xbox Series X controller (VID_045E PID_0B12) over USB with the
XboxCompositedriver. The controller does have motors powered on when the title asks — returningfalseis the bug that makes rumble feel "incomplete" (two short pulses then nothing).Related
motor powered online (see separate issue)VICTORY_TRIGGER_MOTORSdoc claimed "on unless =0" while code required =="1" (see separate issue)@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.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU, Windows version (10 or 11)
@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.logThe title does ask for rumble, and asks for a lot of it. 1248 matching lines in that run:
Note
low=0in every line: the low-frequency motor never receives a value, and the whole signal rides onhigh. That is the title's trigger rumble being folded into the body motor - which is what ourset_rumbledoes deliberately, following Microsoft's ownSetRumbleStateremark 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:
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) andhaptics(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_onreturningfalseis real inv2026.11.30.03:We changed it to
motor < 2in 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 staletarget\release\victory.exewhilecargo buildwrote to a different target dir, so the instrumented build never ran.What the trigger motors actually do here
Windows.Gaming.Inputenumerates nothing for this pad under theXboxCompositedriver, so the WinRT route to the trigger motors is closed on this hardware. Notetriggers_winrtis 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.logdoes not exist on this machine, and there is no*.crash.logundertemp\. 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-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
mainstill has it, unchanged: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 ofgame_scarlett_master.exe1.0.2.1, the title asks for exactly one thing:motor powered on(0x38),force feedback(0x30) andhaptics(0x48) are never called in any run. So whatevermotor_powered_onreturns, this title never asks — changing it tomotor < 2in 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):low=0throughout: the signal rides entirely on the high-frequency motor, because the trigger levels are folded into it — which is what ourset_rumbledoes deliberately, per Microsoft'sSetRumbleStateremark 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 buildwrote toCARGO_TARGET_DIR(E:\caches\cargo-target) while the launcher startedtarget\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:
_motor < 2is one line and makes the surface honest for any title that does query it.VICTORY_PAD_LOGis 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_calledhelper. 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.logdoes not exist and there is no*.crash.logundertemp\.@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.mdsays to list the open pull requests that change the same main file and to stop if one covers the same problem. Doing that:MERGEABLE, last touched today, and it editscrates/victory-hle/src/modules/gameinput.rs— the same file this one would have to 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: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 formotor 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=1reporting 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 againstmainfrom a clean branch asAGENTS.mdrequires.github-bot referenced this issue2026-12-01 00:57:58 +00:00
@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:
forceFeedbackMotorCount; a pad's body motors aresupportedRumbleMotors(we report0x3) and are driven bySetRumbleState(slot0x50), which never consults this query.forceFeedbackMotorCount = 0, sotruefor any index claimed a motor our ownDeviceInfosays does not exist.0x18(device info), andVICTORY_PAD_LOGnever once recorded0x38. Changing the return tomotor < 2made no difference to what the player feels, because the path that matters does not pass through here.So
falseis 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=1plusnote_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 whengameinput.rsis 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.