OPINIONATED OMARCHY
TROUBLESHOOTING CORPUS
790
RECORDS
790
AUDITED
0
UNCHECKED
2388
SOURCES
LIVE
power-suspend medium common DISPUTE

Make the laptop hibernate after sitting suspended instead of dying flat

archomarchyendeavouroscachyosmanjarolaptoplimine
AUDITED Audited against its sources and confirmed accurate.

Symptom

I suspend the laptop on Friday and by Monday it is completely dead and has lost the session. I want it to sleep briefly and then hibernate, the way macOS and Windows do.

Cause

systemctl suspend alone never escalates to hibernation. suspend-then-hibernate does, but it needs working hibernation, and on s2idle-only machines it also needs a functioning RTC alarm to wake up and hand over to hibernate.

Fix

Get hibernation working first (see the swap/resume records), then:


# /etc/systemd/sleep.conf.d/s2h.conf
[Sleep]
HibernateDelaySec=60min

Trigger it manually:


systemctl suspend-then-hibernate

To make it the automatic idle action:


# /etc/systemd/logind.conf.d/idle-action.conf
[Login]
IdleAction=suspend-then-hibernate
IdleActionSec=15min

And for lid close:


# /etc/systemd/logind.conf.d/lid.conf
[Login]
HandleLidSwitch=suspend-then-hibernate

On s2idle-only machines the RTC alarm often does not fire. Omarchy's own hibernation setup adds this kernel parameter for exactly that case:


sudo mkdir -p /etc/limine-entry-tool.d
echo 'KERNEL_CMDLINE[default]+=" rtc_cmos.use_acpi_alarm=1"' | sudo tee /etc/limine-entry-tool.d/rtc-alarm.conf
sudo tee -a /etc/default/limine < /etc/limine-entry-tool.d/rtc-alarm.conf
sudo limine-mkinitcpio

If you leave HibernateDelaySec unset, systemd estimates the delay from the measured battery discharge rate (SuspendEstimationSec), briefly waking the machine once to take the measurement. That brief wake is expected, not a bug.

Verify

Run systemctl suspend-then-hibernate, wait past HibernateDelaySec, and confirm the machine has powered itself fully off. After power-on, journalctl -b -1 | grep -i hibernat should show the handover.

Sources

suspend-then-hibernate-not-configured