Repository navigation
Conversation
logind and Hyprland both acted on the same lid event, so a 2s close/open committed to S3 with the lid already open. user.slice is frozen then, so the compositor never turns the panel back on.
This was referenced Sep 17, 2026
Those Alpine Ridge machines take about 7s to resume, so a 3s debounce still drops a glance-close into that wait. Default stays 3s; T1 MacBook Pros use 20s. /etc/omarchy/lid-suspend-delay overrides both.
Contributor
Author
|
Follow-up: T1 MacBook Pros (MacBookPro13,x / 14,x) now wait 20s before S3 instead of 3s. Those Alpine Ridge machines take ~7s to resume, so a short close still felt like a hang. Everyone else stays at 3s. Any machine can set |
This was referenced Sep 27, 2026
|
Thanks for the debounce design — agreeing Omarchy should own lid suspend if we want cancel-on-reopen. Blocked on merge right now:
|
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.
Fixes #12193
Why
logind's default
HandleLidSwitch=suspendand Hyprland's lid bind both fire on the same close. A 2-second close/open then commits to S3 with the lid already open.user.sliceis frozen, so Hyprland never seesswitch:offand the panel stays at the lid-closed backlight. On this machine that looked like a hang and needed a power-button hold.What
HandleLidSwitch=ignore(and ExternalPower). Docked stays ignore.omarchy-system-lid-closestill locks immediately, then startsomarchy-system-lid-suspend.OMARCHY_LID_SUSPEND_DELAY), thensystemctl suspendonly if the lid is still shut, there is no external monitor, and suspend is not toggled off.omarchy-system-lid-open) cancels the pending job, runsomarchy-system-wake, and forces DPMS on.omarchy-brightness-display oncan no-op whendpmsStatusis already true after S3 with backlight saved at 0.posthook wakes the session 1s after thaw, because the compositor missed the lid event while frozen.Not in this PR
The 20s delay used locally on a MacBookPro14,2. That number is because Alpine Ridge S3 resume is ~7s on that hardware (see the sibling Alpine Ridge PR). The portable debounce is 3s.
Test plan
omarchy toggle suspendoff: lid close locks, does not suspend../test/cliand the lid-* / monitor-recovery shell tests.Proven on Omarchy 4.0.2-1, MacBookPro14,2, kernel 7.1.9-arch1-2.