How to Set Up Hibernation on Linux (Swap Done Right)

Read the full article: How to Set Up Hibernation on Linux (Swap Done Right)

I recently reinstalled my main desktop from scratch: Debian testing via Kali underneath (read first before judging) and XFCE on top. One of the reasons I keep coming back to XFCE is its built-in power management. Hibernation in particular has never once glitched on me, on any hardware I’ve run it on. I don’t shut… continue reading.
9 Likes

I’ve switched to Hybrid Sleep. I guess I’m living under a rock or old school but I’ve never used hybrid sleep before. :melting_face:

Also 1 hour idle delay is too short. But it’s the max via XFCE GUI. So to increase the delay you can edit:

~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml:

Pros and cons:

Suspend Hibernate Hybrid Sleep
Entering instant ~10s (writes swap) ~10s
Resume instant full boot + image read instant, or boot-and-restore if power lost
Power draw while asleep yes none yes
Survives power loss no yes yes

I have not shutdown PC completely in 10 days:
image

Hybrid Sleep support was added to Xfce4 in 2024:

3 Likes