Repository navigation
fix(monitor): detect stranded outputs with no active scanout in omarchy-hyprland-monitor-modeless - #9110
fix(monitor): detect stranded outputs with no active scanout in omarchy-hyprland-monitor-modeless#9110harshithnadig wants to merge 1 commit into
Conversation
…hy-hyprland-monitor-modeless
'omarchy-hyprland-monitor-modeless' only checked whether an enabled monitor
had .width == 0 or .height == 0. When an output drops link during an atomic
commit (or loses its CRTC after DPMS off), it retains a valid mode in
'hyprctl monitors all' but is unassigned and absent from active scanout
('hyprctl monitors'), causing the recovery loop in 'monitor-watch' to abort
prematurely and leave the screen black.
Compare active scanout outputs with all connected outputs to detect
unassigned/stranded enabled monitors alongside 0x0 mode monitors.
Fixes omacom#9078
|
Thanks for picking up #9078. I reviewed this at 64cc9f5 and ran the monitor tests on a disposable Omarchy worker (Hyprland 0.56.2). As it stands, the new check can't match real The new clause never matches. Its third branch requires Fixing the comparison probably isn't enough. Hyprland's monitor tracker ( The existing tests fail at this head. They pass on
Even with working detection, a reload may not recover these outputs. What would move this forward: Who checked it: this review is Claude Opus 5.5 alone. The configured second opinion, Codex Medium, didn't run: it answered a ping, but today's review allowance was used up. Nothing here has been checked by a second model. This now waits on you, and on the maintainer's call between this approach and #12857. |
Problem
In #9078,
omarchy-hyprland-monitor-modelessonly checks if.width == 0 or .height == 0.When an external output drops link during an atomic commit or loses its CRTC, it reports a valid mode in
hyprctl monitors all -jbut is absent from actively scanned-out displays inhyprctl monitors -j. Because the query returned1("recovered"), the recovery loop inomarchy-hyprland-monitor-watchexited immediately, leaving the monitor dark indefinitely.Solution
Compare actively scanned-out outputs against
hyprctl monitors allto detect enabled non-mirrored outputs that have dropped scanout alongside 0x0 modes.Fixes #9078