Repository navigation
Conversation
|
Hit the same bug independently in #11654, which I'm closing in favour of this PR. Two data points that may help review:
|
BigTorro
left a comment
There was a problem hiding this comment.
Checked this on a scratch copy: green on the PR head and on current quattro (applies cleanly), and removing the FALLBACK exclusion turns external-active is false when only FALLBACK remains after unplug red, so the test does guard the fix.
One gap worth closing: nothing pins that a headless output created with hyprctl output create still counts as a display, which is the concern raised on #11654 and the behaviour a ^HEADLESS- exclusion like the one suggested in #10935 would change. With such an exclusion added as its own select, both monitor-external-active-test.sh and monitor-recovery-test.sh stay green; the case suggested inline turns red.
#10935 reports the same bug, so Fixes #10935 next to Fixes #10584 would close both.
When every real output is gone or soft-disabled, Hyprland invents a synthetic FALLBACK headless monitor. omarchy-hyprland-monitor-external-active treated that head as a live external display, so recover() short-circuited after unplug and the internal panel stayed disabled (black screen). Exclude name == FALLBACK from the active-external filter so unplug can clear internal-monitor-disable and re-enable the laptop panel. User-created HEADLESS-* outputs still count as active externals. Fixes #10584 Fixes #10935 Signed-off-by: fresh3nough <[email protected]>
4abb4cc to
6bfd273
Compare
|
Rebased onto current Incorporated review feedback already on the branch:
Tests re-run green after rebase:
Notes from the new confirmations on #10584 / #11654:
|
|
Reviewed and tested on a disposable Omarchy VM running Hyprland 0.56.2, at
Codex at medium effort reviewed it as a second opinion and found no defect. It notes that the two Two other open pull requests fix the same bug: #12616 asks the kernel whether each output has a DRM connector, and #13749 excludes I linked #13741 and #8027, which describe the same failure, so they close with this. It now waits on the maintainer. |
|
Confirming this on real hardware: TUXEDO InfinityBook Pro 14 Gen10 (AMD), Omarchy 4.0.4, Hyprland 0.56.2. I hit it twice in normal use, with the panel turned off through Menu → Trigger → Laptop display while a USB-C monitor was attached:
Reproduced without a monitor: hyprctl output create headless
omarchy-hyprland-monitor-internal off
hyprctl output remove HEADLESS-n
|
|
Closing this in favour of #13749, which has merged into Closed at the maintainer's request after #13749 merged; Claude Opus 5.5 compared the two diffs, and no second-opinion review was run on that comparison. Thank you for the fix and the test. |
Summary
Fixes #10584.
Fixes #10935.
When the internal panel is soft-disabled (
omarchy-hyprland-monitor-internal off) and the external cable is unplugged, Hyprland/aquamarine creates a syntheticFALLBACKheadless output so it is never left with zero monitors.omarchy-hyprland-monitor-external-activeonly excluded laptop connector name prefixes (eDP/LVDS/DSI).FALLBACKmatched as an "active external", soomarchy-hyprland-monitor-internal recover()returned early and never clearedinternal-monitor-disable— black screen until manual recovery.Change
added to the jq filter in
bin/omarchy-hyprland-monitor-external-active.User-created headless outputs (
hyprctl output create headless→HEADLESS-*) still count as active externals; only Hyprland's ownFALLBACKis excluded.Evidence
Bug reproduced (pre-fix filter)
[{"name":"eDP-1","disabled":true},{"name":"FALLBACK","disabled":false}]Old filter → external-active = true (FALLBACK fools it).
Matches the issue's live socket2 capture after
monitorremoved>>HDMI-A-1.Fix validated
Test plan
bash test/shell.d/monitor-external-active-test.sh(incl. HEADLESS-1 pin)bash test/shell.d/monitor-recovery-test.sh^HEADLESS-exclusion keeps old cases green and turns the new case redFixes #13741
Fixes #8027
Fixes #7209