Repository navigation
Wake the display and lock screen when opening the laptop lid - #21163
Merged
Merged
Conversation
With HandleLidSwitchExternalPower=ignore, closing the lid while plugged in locks and blanks the panel without suspending. On lid open, Hyprland only ran omarchy-hyprland-monitor-clamshell, which skips DPMS enable outside docked clamshell mode and never wakes the lock service, leaving the display dark and fingerprint authentication paused until a key is pressed. Add omarchy-system-lid-open and bind switch:off lid events to it. When open, wake through a new omarchy-shell lock wake IPC method when locked (or fall back to omarchy-system-wake when unlocked or if the shell is unreachable), both of which reconcile clamshell state. Re-check omarchy-hw-laptop-closed once after 100ms before treating a lid-open event as a replayed closed switch (for non-ACPI laptops where logind lags Hyprland), and preserve the longer resume blank window and fingerprint resume grace when waking right after suspend.
Contributor
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge; no actionable defects were found. SummaryOpening the laptop lid now wakes the display through the lock service, bringing fingerprint authentication back without requiring a keypress.
|
This was referenced Dec 2, 2026
lbssousa
added a commit
to lbssousa/omarchy-multiuser
that referenced
this pull request
Dec 2, 2026
The lock fork takes rc3's lid-open handling (omacom/omarchy#21163): the `lock wake` call, answered only by the session on screen, and a blank countdown that input can't shorten. Update > Secure Bootloader and removing the Epic Games Launcher become administrators' entries, and the Antigravity CLI defaults migration is mixed, not system. Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
4 of 6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With
HandleLidSwitchExternalPower=ignore(etc/systemd/logind.conf.d/30-lid-external-power.conf), closing the lid while plugged in locks and blanks the panel without suspending. On lid open, Hyprland only ranomarchy-hyprland-monitor-clamshell, which skips DPMS enable outside docked clamshell mode and never wakes the lock service — leaving the screen dark and fingerprint auth paused until a key is pressed.Changes
bin/omarchy-system-lid-openand bind the threeswitch:offlid events indefault/hypr/bindings/utilities.luato it.lock wakeIPC inshell/plugins/lock/Service.qml(and add it to the session-path redirect list inbin/omarchy-shell) callingrunWake()so opening the lid while locked lights the panel, resumes fingerprint auth, and re-arms the blank timer.armBlankTimer()and the pending-resume check intorunWake()so a lid-open wake right after suspend preserves the 15s resume blank window and fingerprint resume grace.omarchy-hw-laptop-closedonce after 100ms before treatingswitch:offas a replayed closed switch (for non-ACPI laptops wheresystemd-logindcan briefly lag Hyprland).test/shell.d/lid-close-test.shandtest/shell.d/fixtures/lock-fingerprint-service/shell.qml.Testing
bash test/shell.d/lid-close-test.shbash test/shell.d/lock-fingerprint-service-test.shbash test/shell.d/lock-state-test.shbash test/shell.d/shell-ipc-test.shbash test/shell.d/hyprland-default-config-test.sh./test/cli