omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Laptop display stays disabled after undocking: FALLBACK output counted as external monitor

Open encelyte-llc opened this issue 1 month ago • 3 comments

What happened

When I turn off the laptop display (Super+Ctrl+Delete → omarchy-hyprland-monitor-internal off) while docked and then unplug the dock, the laptop display stays off. With no other screen, I'm left with a black laptop.

Expected

On unplug, omarchy-hyprland-monitor-watch → omarchy-hyprland-monitor-clamshell → omarchy-hyprland-monitor-internal recover should clear the internal-monitor-disable toggle and turn the panel back on.

Cause (from reading the scripts)

recover() returns early when omarchy-hyprland-monitor-external-active succeeds:

omarchy-hyprland-monitor-external-active && return 0

That check treats any enabled output whose name doesn't match ^(eDP|LVDS|DSI)- as external:

hyprctl monitors all -j | jq -e '.[] | select(.name | test("^(eDP|LVDS|DSI)-") | not) | select(.disabled == false)'

When the last real output goes away, Hyprland adds its headless FALLBACK output. FALLBACK passes this filter, so recover decides an external monitor is still on and never re-enables the panel. The journal at unplug time shows the FALLBACK output coming and going:

quickshell.hyprland.ipc: Got removal for monitor "FALLBACK" which was not previously tracked.

omarchy-hw-recover-internal-monitor reads the sysfs connector status instead, so it gets this case right. As far as I can tell, though, it only runs from omarchy-recover-internal-monitor.service, not on hotplug.

Suggested fix

Exclude FALLBACK (and maybe headless outputs in general) in omarchy-hyprland-monitor-external-active, e.g.:

select(.name | test("^(eDP|LVDS|DSI)-|^FALLBACK$") | not)

Another option is to have recover use omarchy-hw-external-monitors (sysfs) instead.

My local workaround: a socket2 listener that, on monitorremoved, runs omarchy-hyprland-monitor-internal on when omarchy-hw-external-monitors is false and the toggle is still set. With that in place the panel comes back.

Steps to reproduce

  1. Laptop docked with external monitor(s), lid open.
  2. Super+Ctrl+Delete to turn off the laptop display.
  3. Unplug the dock.
  4. The laptop display stays off.

System

  • Omarchy 4.0.6-1
  • Hyprland 0.56.2
  • CPU: Intel Core Ultra X7 358H
  • GPU: Intel Arc B390 (Panther Lake iGPU)
  • Two DisplayPort monitors through a dock (DP-6 / DP-7)

encelyte-llc avatar Oct 31 '26 19:10 encelyte-llc

This looks fixed on current quattro (ae64a4b). omarchy-hyprland-monitor-external-active now excludes the output with select(.name != "FALLBACK"), along with a comment explaining this exact case. Should be safe to close once it ships.

jamesponwith avatar Nov 03 '26 12:11 jamesponwith

Codex High reviewed the report and follow-up. The report describes a bug, but the required second classifier returned no answer, so classification remains unsettled. I have not reproduced the dock disconnect or independently verified the fix mentioned above. This remains open pending an agreed classification and verification against current quattro.

omarchybot avatar Nov 18 '26 18:11 omarchybot

Closing as a duplicate of #16614, which already tracks the same failure on Omarchy 4.0.6-1: disabling the internal panel, unplugging the last external display, and having the enabled FALLBACK output block recovery. That report also preserves the additional recovery observations. Your Intel Arc B390 setup with two DisplayPort monitors through a dock remains recorded here as another affected setup.

The source fix excluding FALLBACK landed in #13749, commit 36faffc071e8de10399b10f211c63ba202a2abdb, and is included in v4.5.0. This assessment compared the reports, current quattro recovery code and release history; it did not reproduce a physical dock disconnect or run tests. GPT-6 in Codex (reasoning effort is not exposed to this session), Opus 5.5 High and muse-wonder via pi, thinking high reviewed this comparison. Both second opinions agreed that the earlier report covers this one; independence is not guaranteed.

Please follow #16614 for recovery follow-up. This issue can be reopened if it describes a distinct failure that the earlier report does not cover.

omarchybot avatar Nov 23 '26 03:11 omarchybot