Locked session re-arms a hardcoded 5s display-blank timer, so slow displays can never finish waking
What happened
While the session is locked, waking the display re-arms a hardcoded 5-second timer that blanks it again. On a display that takes longer than 5 seconds to re-sync after DPMS off, the wake can never complete: the monitor is blanked again before it has finished showing the lock screen. Moving the mouse restarts the same race indefinitely.
From shell/plugins/lock/Service.qml:
Timer {
id: idleBlankTimer
interval: 5000
...
onTriggered: {
...
if (root.lockRequested && !root.authenticatingPassword) root.runBlank()
}
}
function armBlankTimer() {
idleBlankTimer.armedAt = Date.now()
idleBlankTimer.restart()
}
function runWake() {
if (!wakeProcess.running) wakeProcess.running = true
if (lockRequested) armBlankTimer() // every wake restarts the 5s countdown
}
function runBlank() {
if (!blankProcess.running) blankProcess.running = true
}
blankProcess runs omarchy-brightness-keyboard off; omarchy-brightness-display off,
and omarchy-brightness-display off issues hyprctl dispatch dpms disable.
DPMS off drops the link entirely, so the monitor enters its own standby and
must renegotiate on wake — commonly several seconds over DisplayPort, longer
than the 5s budget.
The only escape is authenticatingPassword, which suppresses blanking once
the user has started typing. In practice that means the workaround is to type
the password blind, into a lock screen you cannot see.
Expected
Waking a locked session should give the display enough time to actually become visible. Any of:
- Don't re-arm the blank timer inside
runWake()— let it blank once on lock and stay awake after a deliberate wake until idle re-triggers. - Make the interval configurable (e.g.
lock.blank-delayin shell.json) so slow displays can raise it. - Raise the hardcoded default well above typical DP re-sync time.
Steps to reproduce
Requires a display that takes more than ~5s to wake from DPMS off; a DisplayPort-connected desktop monitor is the usual case.
- Lock the session (
omarchy system lock, or wait foridle.lock). - After ~5s the display blanks and the monitor enters standby.
- Move the mouse. The compositor re-enables DPMS
(
misc:mouse_move_enables_dpmsis true), and the monitor begins re-syncing. - Before the monitor finishes and shows an image, the 5s timer fires and blanks it again.
- Repeat indefinitely. The lock screen is never visible.
- Type the password blind — it succeeds, confirming the session was responsive the whole time and only the display was unreachable.
System
- Omarchy 4.0.1-1 (upgraded from 3.x via omarchy-upgrade-to-quattro)
- Kernel 7.1.9-arch1-2
- AMD Ryzen 5 5600X, NVIDIA RTX 2060 (TU106), nvidia-open-dkms
- MSI MP271 on DP-1, 1920x1080@144, scale 1
misc:mouse_move_enables_dpmsandmisc:key_press_enables_dpmsboth true
I noticed this too, my display takes about 4s to wake up so I have about 1s to start typing otherwise it blanks again.
Confirming the mechanism on different hardware, and reporting a worse outcome than "the lock screen never becomes visible".
On a monitor that drops the HDMI/DP link when DPMS'd off rather than merely being
slow to re-sync, the re-arm at runWake() does not just delay the wake — it sustains
an indefinite disconnect/reconnect flap for as long as the session stays locked
(measured: one cycle per ~15 s, three inside a 47 s lock), and when a drop coincides
with an in-flight page flip the atomic commit fails, both outputs are torn down, and a
second, healthy monitor can be left without a CRTC until the session is reloaded.
This matters for choosing between your three options. Option 3 (raise the hardcoded
default) does not help this failure at all — the panel is not slow, it is gone, and a
longer interval just spaces the flap out. Option 1 (don't re-arm inside runWake())
fixes both classes.
Worth adding: LockView.qml:119 has onPositionChanged: root.wakeRequested() on a
hoverEnabled MouseArea covering the screen, so surface recreation on hotplug re-arms
the timer with no human input. On link-dropping hardware the blank generates its own
wake, which is what makes it self-sustaining rather than merely annoying.
Same mechanism on very different hardware, keyboard-only wake, still present in 4.0.2-1.
Measurement
I sampled hyprctl monitors all -j at 5 Hz through a full lock/wake cycle, logged every change in dpmsStatus, and correlated it against the omarchy idle / omarchy lock journal:
22:54:36.971 omarchy idle: idle-monitor: active <- single key press
22:54:36.973 DP-1 dpms on <- misc:key_press_enables_dpms
22:54:42.548 DP-1 dpms off <- 5.58 s later: runBlank()
22:54:42.760 DP-1 dpms on
22:54:49.417 DP-1 dpms off <- 6.66 s
22:54:51.440 DP-1 dpms on
22:54:57.009 DP-1 dpms off <- 5.57 s
22:54:58.601 DP-1 dpms on
22:55:08.855 DP-1 dpms off <- 10.25 s
22:55:09.822 DP-1 dpms on
22:55:18.573 DP-1 dpms off <- 8.75 s
22:55:19.659 DP-1 dpms on
22:55:27.241 omarchy lock: unlocked
Five re-blanks in one unlock attempt. The two cycles where I pressed one key and then waited measured 5.58 s and 5.57 s of light — the timer interval plus the sampling lag. The longer windows are the ones where I kept typing, each keypress re-arming through runWake().
The interval is the whole cause
Changing only interval: 5000 to interval: 30000 in shell/plugins/lock/Service.qml and restarting the shell moved the blank by exactly that much. One cycle at the new value measured 23:06:16.328 on -> 23:06:46.366 off, i.e. 30.04 s. Nothing else was touched.
Details that may widen the report
- Link type is not the variable. This is DisplayPort alt-mode over USB-C to a Philips 346B1C, not a plain DP desktop monitor, and it behaves identically to the DP cases already reported here.
- Keyboard alone reproduces it. No mouse involved. The lid is closed, so
eDP-1is disabled andDP-1is the only enabled output. - Nothing kernel-side accompanies any of it. No
drmconnector disconnect, no HPD event, no suspend, in either the kernel log or the Hyprland log. The link stays up throughout; it is purely the compositor DPMS toggle.
On the proposed fixes
(2) and (3) both solve it here. I would add a variant of (1) that keeps the lock-time dim: give the wake path a longer grace than the lock path. beginLock() genuinely wants a short timer — you just locked and walked away. runWake() is the opposite situation: someone is standing at the keyboard trying to get in. Arming both through the same armBlankTimer() is what couples the two.
The existing escape hatch, authenticatingPassword, only opens once a password has been submitted, which is after the point where you need to see the field.
System
Omarchy 4.0.2-1, kernel 7.1.9-arch1-2, Hyprland 0.56.2-1, Quickshell 0.3.1-1, ThinkPad P14s Gen 6 AMD (21RV000NUS), Ryzen AI 9 HX PRO 370 / Radeon 890M (amdgpu), Philips 346B1C on DP-1 over USB-C, [email protected], scale 1.
Same 5s runWake() → armBlankTimer() loop on different hardware, with one extra idle-service interaction that made the lock unusable after a long idle and forced a hard reset.
System
- Omarchy 4.0.2-1, Hyprland 0.56.2 (
efb5099378), kernel 7.1.9-arch1-2 - AMD Strix iGPU (Radeon 880M / 890M,
amdgpu), not a laptop (omarchy-hw-laptopexits 1) - Two external monitors: Acer KG271U on HDMI-A-1 (2560x1440@60), ASUS VG289 on DP-1 (3840x2160@60)
What happened
Idle lock at 14:40 (screensaver=150 lock=300). Display blanked as designed. User returned at 15:23 (~43 minutes later), saw the lock screen, could not get a single character into the password field, and the monitors cycled off/on on Super / short power-button presses. Journal ends at 15:25:45 with no shutdown — hard reset. No PAM / faillock records in that window, so Enter never reached omarchy-lock-password.
Idle service skipped wake on return (sibling of #9825)
lockSystem() always sets idledThisCycle = false. After the 14:40 lock, the compositor re-idled, a new idle cycle started at 14:42, and the lock timer fired again at 14:45. That second omarchy-system-lock was a no-op (already secure=true) but still cleared idledThisCycle. The machine then stayed idle until 15:23, so handleActiveSignal() returned immediately and never ran omarchy-system-wake:
14:40:26 idle lock-system: lock-timeout
14:40:26 lock lock-requested / lock-pending: screen-stabilizing / secure=true
14:42:56 idle idle-monitor: idle
14:42:56 idle idle-cycle-start: screensaver=150 lock=300
14:42:56 idle process-start: screensaver (skipped: already locked, exit 0)
14:45:26 idle lock-system: lock-timeout
14:45:26 idle process-start: lock omarchy-system-lock # no-op, still clears idledThisCycle
14:45:26 idle process-exit: lock exitCode=0
15:23:26 idle idle-monitor: active # no idle-cycle-cancel, no omarchy-system-wake
Contrast a successful unlock earlier the same afternoon (14:26 lock → 14:29 return, still inside the first extra idle cycle): idle-cycle-cancel: activity then omarchy-system-wake, then unlocked 15s later.
#9825 is the inverse of the same design: a new idle cycle at lock time can fire an unwanted wake ~3s after blanking. After a second lock-timeout while already locked, returning activity instead gets a missing wake.
5s re-blank + dual HDMI/DP
Once the user was at the lock, Hyprland key_press_enables_dpms / mouse_move_enables_dpms lit the outputs, and the lock plugin re-armed idleBlankTimer (5s) on any wakeRequested (including LockView onPositionChanged). Bar/lock surfaces were recreated on each DPMS cycle (IpcHandler duplicate-target warnings at 15:23:28, 15:24:24, 15:25:15, 15:25:45). That matches the HDMI/DP flap already reported on #8863.
Password field never took keys
No secure=false / unlocked after 14:40. forcePasswordFocus() still races secure=true as in #9292; after the DPMS recreates, click-to-focus (follow_mouse = 2 here) is required. Short power-button presses are bound locked = true to omarchy-menu toggle system, and that menu uses WlrKeyboardFocus.Exclusive, so those presses also steal the seat from the lock field. logind has HandlePowerKey=ignore.
On the proposed fixes in this issue
Option 1 (do not re-arm inside runWake()) is the one that would have stopped the off/on cycle here. A longer interval would not have restored omarchy-system-wake after the second lock-timeout; that needs the idle service to ignore lock-timeouts / idle-cycle starts while already locked (#9825 / #6995).
Filed by Grok 4.6 via Grok Build.
Same issue on Omarchy 4.0.4-1 / kernel 7.2.5-3-omarchy, multi-monitor setup.
My panels take ~4s to actually light up after the DPMS wake. The 5s idleBlankTimer starts at the wake request, not when the picture appears, so I get roughly a 1-second lit window at the password prompt — then it blanks again mid-typing. Pressing a key just replays the same 1-second flash. Blind-typing the password into a dark screen every unlock is rough.
The suspend/resume guard in idleBlankTimer.onTriggered doesn't help here — this isn't a frozen countdown, it's the panel wake latency consuming the whole budget.
Would 10s be enough? Yes. Making it configurable (e.g. idle.blank in shell.json or a setting on omarchy.lock) would cover slow-waking hardware and fingerprint pacing generally. Cloning the lock plugin just to change one constant is a maintenance hazard; there's currently no supported way to set this.
This affects my Vostro 1700, fwiw.
Same mechanism on a Dell U2725QE (3840x2160@120 over DisplayPort, earlier also over USB-C DP Alt Mode), AMD Radeon 680M, Omarchy 4.0.4-1, Hyprland 0.56.2-2, Quickshell 0.3.1-1. The monitor takes about 5 s to come out of standby (about 1 s for an older UltraSharp), so the blank lands before or just as the picture appears. One key press produced three disable/modeset cycles of DP-2 in the Hyprland log, with no suspend and no hotplug. A Windows laptop on the same monitor wakes it reliably every time. Full log and detail in #13066, which I am closing as a duplicate of this one.
This is the same bug as #7749, which was reported earlier and is still open, so I'm closing this one as a duplicate of it.
Both describe the same failure. runWake() re-arms the 5-second idleBlankTimer on every wake while locked, so a panel that needs more than about 5 seconds to come back from DPMS off is blanked again before it shows the lock screen. Both reports trace it to the same lines of shell/plugins/lock/Service.qml and propose the same fixes: don't re-arm on wake, make the delay configurable, or raise it. The code is unchanged on quattro at c352b62d: the timer is still a one-shot interval: 5000 (:732-733), re-armed from runWake() at :243. #7749 already carries a diagnosis checked against the source and several independent measurements, including a controlled run with a longer interval.
The measurements and hardware reports in this thread are still useful. In particular, the comments about link-dropping panels and the LockView pointer handler re-arming the timer are worth reading alongside #7749 when a fix is chosen. #13066, which was closed as a duplicate of this issue, describes the same bug too. Fixes for it are open as pull requests and are waiting on the maintainer's choice.
If this turns out to be a different problem from #7749, it can be reopened.
I checked this by comparing both reports and reading the current source, and Codex Medium separately judged the two reports to be the same bug. Nothing was run, because a duplicate needs no reproduction.