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

Set up enough swap for hibernation to actually resume

omarchyarchlaptop
CORRECTED An auditor found the fix wrong or incomplete and rewrote it.
AUDIT NOTE

Largely accurate and the tooling checks out: bin/omarchy-hibernation-setup and bin/omarchy-hibernation-remove both exist, it does create a /swap btrfs subvolume with a swapfile sized to MemTotal via btrfs filesystem mkswapfile -s, and it writes resume params to the kernel cmdline through /etc/limine-entry-tool.d/resume.conf, so the /proc/cmdline | grep resume check is valid. One genuinely risky instruction: sudo systemctl restart systemd-logind is unnecessary here (systemd-sleep reads /etc/systemd/sleep.conf at hibernate time, not from logind) and restarting logind can tear down the running graphical session and any active user sessions. Also /etc/systemd/sleep.conf is a package-managed file, and a drop-in under /etc/systemd/sleep.conf.d/ is the correct place for the override. Minor: the menu is reached via Super + Space.

The cause above was not rewritten and may still contain the error described. The fix below is the corrected version.
RISK

The swap subvolume consumes RAM-sized disk space permanently (32 GB RAM = 32 GB gone). A wrong resume_offset in the kernel cmdline causes a failed resume that discards the session. Save work before testing.

Symptom

Enabling hibernation from *Setup > System Sleep* fails, or hibernate is offered under Super + Esc but the machine just powers off and cold-boots instead of restoring. On some laptops the hibernate image creation aborts partway.

Cause

Hibernation writes the entire contents of RAM to disk. Omarchy's setup creates a /swap btrfs subvolume sized to physical RAM. If the drive doesn't have that much free space the swapfile can't be created or is too small, and the resume image never gets written. Firmware/ACPI quirks on some laptops also break the default HibernateMode.

Fix

Check RAM and free space first. You need at least RAM-size free:


free -h
btrfs filesystem usage /

Free space, then re-run the setup (menu: Super + Space > **Setup** > **System Sleep**):


omarchy-hibernation-setup

Confirm the swapfile and resume offset are wired up. Omarchy creates a /swap btrfs subvolume with a swapfile sized to physical RAM, adds HOOKS+=(resume) via /etc/mkinitcpio.conf.d/omarchy_resume.conf, and appends the resume parameters to the kernel cmdline via /etc/limine-entry-tool.d/resume.conf:


swapon --show
cat /proc/cmdline | tr ' ' '\n' | grep -E 'resume'
# expect resume=UUID=... and resume_offset=...
cat /etc/limine-entry-tool.d/resume.conf

If the offset came out empty, re-running omarchy-hibernation-setup repairs it in place.

If image creation aborts on your laptop, switch hibernate to shutdown mode. Use a drop-in rather than editing the packaged /etc/systemd/sleep.conf:


sudo mkdir -p /etc/systemd/sleep.conf.d
printf '[Sleep]\nHibernateMode=shutdown\n' | sudo tee /etc/systemd/sleep.conf.d/omarchy-hibernate.conf

Then just try it. Do NOT restart systemd-logind, which will kill your graphical session and is not needed (systemd-sleep reads this config at hibernate time):


sudo systemctl hibernate

To back it all out:


omarchy-hibernation-remove

Verify

swapon --show lists a swapfile at least as large as RAM, and sudo systemctl hibernate powers off and then restores the exact session on next power-on.

Sources

hibernation-fails-no-swap-space