The driver watch counts warnings and errors only, not the Auto HDR notice #1255

Manually merged
github merged 1 commit from gh-pr/1255/head into gh-pr/1255/base 2026-11-26 04:00:29 +00:00
Owner

@⁠CarverXI on GitHub · 2026-11-26 02:52 UTC · original
CarverXI:fix/drvwatch-auto-hdr → main · +14 −6 · 1 files · 1 commits · merged 2026-11-26 03:41 UTC

Part 1 of #1253.

Problem

drvwatch subscribes to every System-log entry of the Display source. That source also writes information entries that are no fault, among them 4125 ("Good news-… has been enhanced"), the Auto HDR notice Windows 11 writes when a game's window first shows. On a machine with Auto HDR on, the watch logged "the graphics driver reported an error to the system's event log" about one second into every run and turned the draw windows off for the rest of it, so VICTORY_INDIRECT_WINDOW=1 never took effect there.

Change

The query (now the constant QUERY, used by start and by the_system_takes_the_subscription) asks for levels 1 to 3 only: critical, error, warning.

*[System[Provider[@Name='nvlddmkm' or @Name='amdkmdag' or @Name='amdwddmg' or @Name='igfx'
  or @Name='igfxn' or @Name='Display'] and (Level=1 or Level=2 or Level=3)]]

Display 4101 ("display driver stopped responding and has recovered") is a warning, so it stays in; nvlddmkm 153 is an error and stays in.

Checked

  • The new XPath run against the System log of the machine that showed it (Windows 11 build 26300, RTX 5090, driver 621.01) with Get-WinEvent -FilterXPath: it returns the one nvlddmkm 153 error and none of the 14 Display 4125 entries; the old query returns all 15.
  • In the game: before the change, the run that showed it logged the drvwatch error at 1.0 s after start, at the same second as the Display 4125 entry in the System log; after it, 0 trips in 39 runs of up to five minutes each, with draw windows on throughout.
  • cargo test -p victory-gpu --features diagnostics drvwatch: 2 passed (the subscription test now subscribes with the new query), 1 ignored as before.
  • cargo clippy reports nothing in drvwatch.rs.

One file, crates/victory-gpu/src/drvwatch.rs.

🤖 Generated with Claude Code

**@⁠CarverXI** on GitHub · 2026-11-26 02:52 UTC · [original](https://github.com/fxceless/victory-fork/pull/1255) `CarverXI:fix/drvwatch-auto-hdr` → `main` · +14 −6 · 1 files · 1 commits · merged 2026-11-26 03:41 UTC Part 1 of #1253. ## Problem `drvwatch` subscribes to every System-log entry of the `Display` source. That source also writes *information* entries that are no fault, among them 4125 ("Good news-… has been enhanced"), the Auto HDR notice Windows 11 writes when a game's window first shows. On a machine with Auto HDR on, the watch logged "the graphics driver reported an error to the system's event log" about one second into every run and turned the draw windows off for the rest of it, so `VICTORY_INDIRECT_WINDOW=1` never took effect there. ## Change The query (now the constant `QUERY`, used by `start` and by `the_system_takes_the_subscription`) asks for levels 1 to 3 only: critical, error, warning. ``` *[System[Provider[@Name='nvlddmkm' or @Name='amdkmdag' or @Name='amdwddmg' or @Name='igfx' or @Name='igfxn' or @Name='Display'] and (Level=1 or Level=2 or Level=3)]] ``` `Display` 4101 ("display driver stopped responding and has recovered") is a warning, so it stays in; `nvlddmkm` 153 is an error and stays in. ## Checked - The new XPath run against the System log of the machine that showed it (Windows 11 build 26300, RTX 5090, driver 621.01) with `Get-WinEvent -FilterXPath`: it returns the one `nvlddmkm` 153 error and none of the 14 `Display` 4125 entries; the old query returns all 15. - In the game: before the change, the run that showed it logged the `drvwatch` error at 1.0 s after start, at the same second as the `Display` 4125 entry in the System log; after it, 0 trips in 39 runs of up to five minutes each, with draw windows on throughout. - `cargo test -p victory-gpu --features diagnostics drvwatch`: 2 passed (the subscription test now subscribes with the new query), 1 ignored as before. - `cargo clippy` reports nothing in `drvwatch.rs`. One file, `crates/victory-gpu/src/drvwatch.rs`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The subscription took every entry of the `Display` source, which also
writes information entries that are no fault. Windows 11 writes one of
them, 4125 ("Good news-... has been enhanced", Auto HDR), when a game's
window first shows: on a machine with Auto HDR on it tripped the switch
about a second into every run, and the draw windows were off from the
start. Measured on an RTX 5090 (driver 621.01): n=1 at 1.0 s in every
run, no device loss after.

The query now asks for levels 1-3 (critical, error, warning). On the
test machine's System log it keeps the one nvlddmkm 153 error and drops
all 14 Auto HDR entries; Display 4101 ("stopped responding and has
recovered") is a warning and stays in.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:00:27 +00:00
github manually merged commit ca8ce8a31e into gh-pr/1255/base 2026-11-26 04:00:29 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.