Repository navigation
Blank a locked session's displays again after they are lit behind the lock - #16368
omarchybot wants to merge 7 commits into
Conversation
… lock The lock arms its five-second blank only from beginLock() and its own wakes. An idle cycle that ended while the session was already locked ran omarchy-system-wake, lighting the panels without the lock knowing, and the next idle lock found the session locked and did nothing, so the panels stayed on the lock screen for hours. The idle service now leaves a locked session's displays to the lock, and every lock request re-arms the blank, which also turns off panels lit by a resume or by Hyprland's own DPMS once the next request arrives. Blanking can now repeat without a wake in between, and brightnessctl saves the keyboard level as it turns it off, so a second off would save the 0 and every restore after it would bring back darkness. Only the first blank since a wake turns the keyboard off. Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Codex Medium <[email protected]>
[Medium impact] The PR appears safe to merge; no new actionable issue was found. SummaryThe PR lets repeated lock requests restart the display-blank countdown.
Reviews (3) · Last reviewed commit: "Keep lock fixture checks synchronous" · Reviewed by Greptile |
|
Reviewed at f034677 and run on a worker VM built from the Omarchy ISO, with the shell serving this branch. No defects found. What was run, through
Second opinion from Codex Medium and muse-spark-1.3 (high). Neither found a defect. Both had access to the earlier diagnosis on #15897, so their agreement with it is not independent. They raised three things worth knowing:
On Greptile's request for a regression test: none is added. The tests for this area check the QML source against regexes, and the repository's This waits on the maintainer. |
# Conflicts: # shell/plugins/lock/Service.qml
Every lock request now re-arms the five-second blank, including omarchy-system-sleep-lock before a suspend. When the panel was still lit, noteSleepRequested() did not start the resume watch, and if logind held the suspend past five seconds the blank paused the reader before the machine slept. The resume then lit the panel with nothing left to blank it again or bring the reader back. The sleep request is now remembered, and pausing the reader within its window starts the watch. Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Codex Medium <[email protected]> Co-Authored-By: muse-wonder High <[email protected]>
|
This branch had fallen behind The merge. One conflict, in The defect, now fixed (4a2fb5f). Run on a worker VM built from the Omarchy ISO, reading DPMS from
Tests. Second opinion. Codex Medium, with muse-wonder at high thinking alongside, reviewed the merge and found the held-suspend defect above independently. They reviewed the fix and found nothing further in the PR. Their independence from this review is not guaranteed. Both noted one case that is already on There is still no automated test for the re-arm on repeated lock requests or for the idle-wake guard. The area's fixture deliberately avoids |
|
Thank you for reproducing this and for the lock/idle split. I read the same two sites on current The CI I am not opening a second PR for #15897. Happy to help with a follow-up for the remaining case you noted (a panel lit with no later lock request, which needs the lock to watch DPMS). |
|
This also relates to #15897, #17394, and #18574. On Omarchy 4.5.0-3, Hyprland 0.56.2, and Quickshell 0.3.2, I reproduced the remaining case noted in this PR:
The display remained on beyond the five-second timeout; DPMS polling confirmed it stayed enabled for at least nine seconds, until unlocking. This followed finding the lock screen lit overnight. The original wake source is unknown, so this confirms the failure to re-blank, not what triggered that incident. Would you prefer extending this PR to detect display wakes while locked and idle, or handling that remaining case in a follow-up PR? |
…blanks Fold Jitheswar's repeated-lock guard and behavioural checks from #19387 into the earlier fix. A password conversation keeps the display lit without rearming its countdown. Extend the existing fixture to drive two blanks, wake, and blank again, observing the actual brightness dispatches while isolating hardware effects. Co-Authored-By: Jitheswar <[email protected]> Co-Authored-By: GPT-6 (Codex; reasoning effort not exposed) <[email protected]>
The lock's keyboardBlank flag stays set when a bound brightness key or firmware relights the keyboard without runWake. A later lock request then blanks only the displays. The keyboard helper already preserves the first saved level across repeated off calls, so always dispatch its off command and let that helper own the saved level. The fixture catches the skipped command before this fix; the existing keyboard helper test covers preserving brightness across two blanks. Co-Authored-By: Opus 5.5 High <[email protected]> Co-Authored-By: GPT-6 (Codex; reasoning effort not exposed) <[email protected]>
The asynchronous blank sequence kept lockRequested true across event-loop turns on the caller's compositor. A concurrent output change could acquire its real session lock. Restore the fixture's immediate teardown and retain the repeated-lock, password-check and held-suspend assertions. The keyboard helper already tests save-once brightness; with the redundant lock flag removed, dispatch coverage would only assert unchanged base behaviour. Co-Authored-By: Opus 5.5 High <[email protected]> Co-Authored-By: GPT-6 (Codex; reasoning effort not exposed) <[email protected]>
|
Reviewed at 09f0a0b. Folded Jitheswar’s repeated-lock and password-check guard/tests from #19387, with co-authorship credit. The final change also keeps the held-suspend resume watch and leaves keyboard brightness preservation to the existing helper. Every blank calls that helper, including after a keyboard backlight is relit outside the lock’s wake path. Run on a disposable worker built from the Omarchy ISO, with its shell serving the tested tree. On current
GPT-6 in Codex (reasoning effort not exposed) checked this with Opus 5.5 High and muse-wonder via pi with high thinking. Both second-opinion reviewers found no actionable finding on the final head; their independence from this review is not guaranteed. Greptile’s review of this head found no new actionable issue, and its earlier keyboard-coverage finding is answered. The classification refresh initially refused a head that changed during its read; the stable new head was then classified as a bug. The description’s paragraph about a per-lock keyboard flag is stale: that flag is absent from the final diff. Displays lit externally with no input and no later lock request remain outside this change, as described earlier; a DPMS watcher needs a separate decision. #9152 and #17450 overlap the idle-wake guard and remain separate open items. #19285 is now linked alongside #15897. This waits on maintainer review. GitHub’s test job is still running, so CI is not yet green. |
A locked session's panels could come back on and stay on the lock screen for hours. The lock arms its five-second blank only when it first locks and when it wakes the displays itself, and two things lit the panels without going through it:
cancelIdleCycle()ranomarchy-system-wake, which turns every output on, and the lock never heard about it. In the reporter's second log that is theidle-cycle-cancel: activity→process-start: wake omarchy-system-wakeat 01:17:47, followed by an hour and a half of lit panels. The wake now runs only when the session is not locked, the same guard the screensaver launch beside it already uses. While locked, the lock owns the displays: it wakes them on input and blanks them again.omarchy-shell lock lockon a session that was already locked did nothing about the displays, so the idle service's lock every cycle, andomarchy-system-sleep-lockbefore a suspend, left lit panels lit. That is despiteomarchy-system-lockbeing described as "Lock the computer and turn off the display". Every lock request now re-arms the blank, so panels lit by a resume or by Hyprland's own DPMS go off again within five seconds of the next request.Blanking can now repeat without a wake between.
omarchy-brightness-keyboard offsaves the current level before setting 0, so a second blank would save the 0, and every restore after it would bring back a dark keyboard. Only the first blank since a wake turns the keyboard backlight off.Not covered here: panels lit with no input and no later lock request still have nothing to blank them until one comes. Closing that needs the lock to watch DPMS itself. The pointer half of the report (motion on the lock surface waking the panels with
misc:mouse_move_enables_dpms = false) is a separate behaviour, and #15342 and #11991 are open for it.Fixes #15897
Fixes #19285