Password prompt flashes before displays blank on suspend and hibernate
System details
Omarchy 4.0.1 Quattro, Hyprland 0.56.2, Quickshell 0.3.1, NVIDIA RTX 3080 Ti, and two DisplayPort outputs.
Problem
Starting suspend briefly exposed the desktop lock password views before the displays entered S3. Hibernate showed the same transition whenever it also took the desktop session lock.
The ordering was secure but visually wrong. The lock request began, each WlSessionLockSurface mapped visibly, the compositor reported the session secure, and only then did sleep begin.
Expected behavior
Sleep preparation should remain visually black while still acquiring a secure ext-session-lock surface on every output. The synchronized password views should appear after resume. Suspend must never begin before the compositor reports the session lock secure.
Failed approach
Pre-sleep DPMS-off is unsafe on this system. Two hardware cycles left both physical DisplayPort sinks black after resume while Hyprland and the Vulkan shell still reported both outputs enabled. The original rendering-only candidate was also abandoned after a black wake that required a hard reboot. Neither approach is deployed or proposed for merge.
Verified design
The tested replacement adds a sleep-specific lock entry point. It turns on a black concealment state before requesting ext-session-lock, stops the ordinary five-second lock blank timer for the duration of sleep preparation, and never sends a pre-sleep DPMS-off request. The existing secure-lock poll still controls release of logind's delay inhibitor.
Concealment has three independent release paths. The persistent sleep monitor sends a generic resumeFromSleep event only after logind reports a known PreparingForSleep=false. Keyboard input can reveal the view directly. Pointer input can reveal it after the secure surface's initialization movement has settled. The resume event is shared with #9181, which also uses it to restore password focus; #9231 does not need a second sleep monitor.
The monitor arms the next delay inhibitor before retrying shell notification, so an immediate second suspend is still protected. Unknown logind state never reveals the view.
Verification
The exact dual-output hardware reproduction passed on 2026-09-02. Concealment was active before the lock mapped, the session became secure before the inhibitor was released, neither output received a pre-sleep blank request, and the user saw neither the desktop nor the password prompt flash. After real S3 resume, the shell accepted the shared resume event, both outputs remained active, the password view appeared normally, and the first unlock completed successfully.
The focused sleep-lock, sleep-monitor, focus-recovery, idle-handoff, and sleep-handoff tests all pass. The complete 228-file composed shell suite has no affected failures; its five failures are the same unrelated host/baseline categories present before this change.
The final branch is intentionally stacked on #9181 and #9632 so the resume bridge and idle concealment each have one owner. A separate #9231 pull request should wait for those prerequisites rather than duplicate their code.
I read the suspend path on current quattro (7f95505d), and the code explains what you saw. Claude Opus 5.5 did the diagnosis and Codex Medium reviewed it separately. Codex reached the same conclusion, though its independence from my reasoning is not guaranteed.
What happens: omarchy-system-sleep-monitor holds a logind delay inhibitor. On PrepareForSleep=true it runs omarchy-system-sleep-lock, which sends the same lock lock request a manual lock does (bin/omarchy-system-sleep-lock:72, bin/omarchy-system-lock:8). Each WlSessionLockSurface holds an ordinary LockView (shell/plugins/lock/Service.qml:469), and that view draws the password field from its first frame (shell/plugins/lock/LockView.qml:155). The helper releases the inhibitor once status() reports the lock secure (bin/omarchy-system-sleep-lock:116, Service.qml:850). Between that moment and the displays going dark, the password view is what is on screen. Nothing in this path is meant to hide the lock during sleep entry. The only blanking is the five-second timer beginLock() arms (Service.qml:732), and that controls DPMS, not what the view draws. So nothing here is failing: the lock view you saw is what the current design does. Nothing in the path depends on NVIDIA or on having two outputs, so other machines can show it too, though how noticeable it is depends on timing.
I did not try to reproduce it on a worker. It is a sub-second visual during real S3 entry, which a VM worker cannot show faithfully, and the source already explains it.
There is no duplicate issue and no open pull request for it. #9632 does the same kind of concealment for the idle handoff (#9184) and leaves suspend alone. #13962 changes when the lock reports secure, as part of fading the lock in, so it touches the same handoff this issue is about.
Painting the lock black during sleep entry and revealing it on resume, which is the design your branch takes, changes how the lock looks and when it appears. That is the maintainer's decision rather than a defect fix, so I have not opened a pull request. This waits on the maintainer.