Skip to content

Hibernate on critical battery when hibernation is set up - #13610

Closed
AnPod wants to merge 1 commit into
omacom:quattrofrom
AnPod:cursor/fix-critical-battery-hibernate-e0d3
Closed

AnPod wants to merge 1 commit into
omacom:quattrofrom
AnPod:cursor/fix-critical-battery-hibernate-e0d3

Conversation

@AnPod

@AnPod AnPod commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Fixes #13256

UPower CriticalPowerAction=Auto follows logind Sleep() (suspend-then-hibernate) at 2%. On laptops that often means a hard power-off before the hibernation image finishes.

  • Ship default/UPower/UPower.conf.d/70-omarchy-critical-hibernate.conf
  • omarchy-hibernation-setup / remove install and clear it
  • Migration installs it on existing installs with the Omarchy resume hook

Draft.

UPower CriticalPowerAction=Auto follows logind Sleep() (suspend-then-hibernate)
at 2%, which hard-powers-off before the hibernation image finishes. Install a
UPower drop-in for Hibernate at 5% whenever Omarchy hibernation is configured.

Co-authored-by: AnPod <AnPod@users.noreply.github.com>
@cursor
cursor Bot force-pushed the cursor/fix-critical-battery-hibernate-e0d3 branch from a2358d7 to e542708 Compare September 29, 2026 21:09
@omarchybot omarchybot added the enhancement New feature or request label Oct 3, 2026
@jandrusk

jandrusk commented Oct 7, 2026

Copy link
Copy Markdown

This looks like the same change as #13540, which is further along. It already has the migration for existing hibernating laptops, a battery-presence check so desktops are left alone, manual coverage, and confirmations on real hardware (LG Gram, ROG Zephyrus G16) in its thread. #13967 takes a broader approach to the same problem. Unless this one has something #13540 is missing, I'd suggest closing it in favor of #13540 so review stays in one place.

AnPod commented Oct 23, 2026

Copy link
Copy Markdown
Contributor Author

Closing as superseded by #13540.

@AnPod AnPod closed this Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Laptops don't hibernate on critical battery: UPower's default Auto resolves to suspend-then-hibernate at 2 %, and the battery can die first

4 participants