Clamshell flag survives reboot: booting undocked after a lid-closed shutdown starts the session with no outputs, and login windows are never mapped
System details
Omarchy 4.5.0-3, Hyprland 0.56.2, Dell Precision (Intel + NVIDIA RTX 2000 Ada), Dell WD19S dock.
What happened
Shut down docked with the lid closed, so ~/.local/state/omarchy/toggles/hypr/internal-monitor-clamshell.lua held hl.monitor({ output = "eDP-1", disabled = true }). Booted undocked with the lid open.
Hyprland started with eDP-1 disabled. FALLBACK was added at 2.58s and removed at 2.70s, leaving no outputs until the monitor watcher's sync_clamshell removed the flag and reloaded; eDP-1 arrived at 4.22s.
Ghostty and Nautilus windows created from hyprland.start in that gap were dropped by Hyprland (mapWindow: no valid monitor/workspace, aborting map) and never appear; the processes stay running with invisible windows. Chrome and Claude, which created their windows after 4.22s, were fine.
Expected
Booting undocked starts with the internal panel enabled, the same way omarchy-recover-internal-monitor.service already clears internal-monitor-disable.lua before graphical-session-pre.target when no external display is connected.
Steps to reproduce
- Dock and close the lid (clamshell engages).
- Shut down while docked with the lid closed.
- Undock, open the lid, boot and log in.
- Any login app whose window is created in the first ~1.5s of the session never appears.
Evidence (session-relative times)
0.07s config load monitors=[] clamshell_flag='hl.monitor({ output = "eDP-1", disabled = true })'
2.58s monitor.added FALLBACK
2.70s monitor.removed FALLBACK monitors=[]
ERR ]: mapWindow: no valid monitor/workspace, aborting map for … (com.mitchellh.ghostty)
ERR ]: mapWindow: no valid monitor/workspace, aborting map for … (org.gnome.Nautilus)
3.79s config load clamshell_flag=absent
4.22s monitor.added eDP-1
omarchy-hw-recover-internal-monitor on quattro only handles internal-monitor-disable.lua.
Suggested fix
Have the pre-session recovery also remove internal-monitor-clamshell.lua when no external display is connected. (Hyprland dropping a window mapped while no outputs exist is separate upstream behaviour; clearing the flag before the session avoids the no-output window entirely.)
Related, with different triggers: #16614, #9529, #13300.
Filed by Claude Opus 5.5 via Claude Code.
On current quattro, the pre-session recovery service requires internal-monitor-disable.lua, and its helper only clears that manual-disable flag. A saved internal-monitor-clamshell.lua therefore survives into Hyprland's initial configuration; the monitor watcher starts too late to prevent that initial disabled-panel state. PR #20172 changes both the service condition and helper and already links this issue.
Your hardware confirmation at full head 3f6c20abbfa8337c4c8eb927c6715d1dbc445d33 covers both boot paths: undocked startup clears the flag and Ghostty/Nautilus map, while docked lid-closed startup ends with the external display active, the internal panel off and all login windows mapped. These tests used the temporary service override pointing at that head; the undocked test ran with the local startup workaround disabled.
GPT-6 in Codex (effort setting unavailable) checked the source and the reported results. Opus 5.5 High and muse-wonder via pi, thinking high reviewed the diagnosis and fix and found no blocking defect; their agreement does not guarantee independence. This issue session ran no new worker or hardware tests.
The issue remains open pending maintainer review of #20172.