Repository navigation
Don't reload a 0x0 monitor that already has video modes - #12857
suhitanantula wants to merge 1 commit into
Conversation
omacom#6701 recovers the unpowered-EDID case: 0x0 and an empty mode list, where only a reload re-reads the EDID. A rejected atomic modeset looks the same at width/height but still advertises availableModes. Reloading that retries the same EINVAL commit and never recovers. Treat 0x0 as modeless only when availableModes is empty, so the watcher stops looping on a failed modeset.
|
Verified: No actionable defect found in the tested scope at Synthetic monitor responses, using the production helper and recovery logic:
Another output with an empty mode list can still trigger a global reload. Excluding an output from recovery does not mean it is displaying correctly or that the underlying modeset failure is fixed. Review informationTest scope: Baseline/head shell-level comparisons with synthetic Community review: Independent automated community review, unaffiliated with the Omarchy team, intended to help prepare PRs for their review. Automated AI review: Astra source inspection, independent Opus 5 xhigh and Astra xhigh technical reviews, followed by coordinator verification against saved targeted evidence and a fresh Astra Medium editorial check. |
|
Reviewed at What ran. I ran
What could not run. A QEMU worker's virtio-gpu accepts every mode, so the rejected modeset itself could not be produced there. The state this PR keys on comes from people other than its author: #13073 (NVIDIA: every EDID mode listed at 0x0, reload rejected again, the watcher reloading every 60 seconds) and hyprwm/aquamarine#386 (Intel and AMD docks, every mode down to 720x400 failing). The #6668 report says that case has no modes, so the original recovery should still fire. The new tests cover that with a stub, not with that hardware. Scope. One jq condition and its tests, which is proportionate to the problem. It stops the loop and does not bring the screen back. #13073 still wants that, and its second half (an output left Second opinion. None. The configured reviewer (Codex Medium) answered a ping but refused the review because the day's review budget was spent. This verdict rests on Claude Opus 5.5's review and the worker run alone, so the PR is labelled |
The bug
#6701 /
omarchy-hyprland-monitor-modelesstreats any enabled0x0output as the unpowered-EDID case from #6668: a partial EDID with no video modes, so onlyhyprctl reloadcan recover it.That is also how a rejected atomic modeset presents. Hyprland still has the full EDID (
availableModespopulated) andwidth/heightstay0. Reload cannot apply those modes. The watcher sees modeless, reloads, retries the sameEINVALcommit, and never stops.Confirmed on Omarchy 4.0.4, Hyprland 0.56.2, aquamarine 0.15.0-2, Framework 13 AMD Krackan (
1002:1114, Radeon 840M). After docking, KoganDP-3sat at0x0@60with 21availableModes. The Hyprland log walked every mode, including themax_bpcretry from hyprwm/aquamarine#316, then failed with:omarchy-hyprland-monitor-modelessreturned 0 the whole time. Reloads did not light the screen. What did:bitdepth = 8on the monitor rule (and disabling the second external so it stopped sharing1410x0).The same
0x0+ full mode list + EINVAL walk-down is hyprwm/aquamarine#386. This PR does not fix that modeset. It stops Omarchy from looping a reload that cannot.The fix
Count an output as modeless only when it is enabled,
0x0, andavailableModesis empty (or absent, which is the original #6668 fixture).omarchy-hyprland-monitor-watchalready stops when the helper returns 1, so the loop ends on a rejected modeset.Tests
test/shell.d/monitor-modeless-test.sh:0x0withavailableModes: ["[email protected]", …]is not modeless0x0withavailableModes: []is still the unpowered-EDID case0x0output that already has video modesExisting no-field fixtures stay modeless (
availableModes // []).18/18 passed.
Related
monitors all) or Require a mode before counting an external monitor as active #12253 (external-active requiring a mode)