this post was submitted on 02 Nov 2026
126 points (94.4% liked)

Linux

15397 readers
343 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 3 years ago
MODERATORS
 

Okay, killed by Ubuntu is an exaggeration, as Ubuntu is not the only Linux distro doing this.

Still, the big news is that Linux Mint is bringing hibernation back.

In a recent blog post, the Mint team previewed a new Sleep Modes page in the System Administration tool. It's meant to make enabling hibernation and setting it up correctly easy, without you editing config files by hand. The feature is planned for the upcoming Mint 27 release coming in December.

Mint hasn't magically fixed the problems that made Ubuntu drop hibernation. What it does is give you the choice, along with two hybrid modes that sit between suspend and hibernation.

Hibernation vs suspend: What's the difference?

Both features are about saving your session, which simply means everything you have open like your apps, windows and documents.

When you suspend (also called sleep), your computer keeps your session in RAM and powers down almost everything else. Waking up takes a couple of seconds. The catch is that RAM needs power to hold that data, so a suspended laptop keeps draining its battery.

If the battery dies while suspended, your session is lost, along with any unsaved work.

Hibernation copies your session from RAM to your disk and then powers off the machine completely. It uses no power at all. When you turn the computer back on, the session loads back from disk and your apps and windows are exactly where you left them.

In short, suspend is fast but needs power. Hibernation is slow but survives a dead battery.

Why Ubuntu and other distros dropped hibernation

Ubuntu disabled hibernation by default back in Ubuntu 12.04, I think. The reason was that it was unreliable slow, and that having two suspend modes confused people.

Every Ubuntu-based distro, including Linux Mint, inherited that decision. Actually, it's not just Ubuntu. Many other Linux distros also do not offer hibernation option anymore.

Speed is indeed a problem. Writing gigabytes of RAM to disk and reading it back can take longer than a full reboot, especially on older hard drives.

Hibernation also needs a lot of swap. Your swap space has to be at least as large as the RAM in use so the whole session fits. Ubuntu ships a small swap file by default, and Fedora uses zram, which lives in RAM and is useless for hibernation.

Then there's Secure Boot. With Secure Boot enabled, the Linux kernel runs in lockdown mode, and lockdown blocks hibernation because the saved image on disk isn't signed and could be tampered with.

Since most new computers ship with Secure Boot on, hibernation simply doesn't work for a large chunk of users. This is one of the main reasons Fedora Workstation doesn't offer hibernation out of the box either.

The three sleep modes in Linux Mint

The new Sleep Modes page gives you three options. You pick the one that suits how you use your computer. You can enable all of them and choose which one to use from the power menu (at least that's what it looks to me).

New sleep modes in Linux Mint 27

Hibernation

This is the classic mode. Your session is saved to disk and the computer shuts down completely, using no power. It's slower than suspend and can take longer than a reboot to hibernate and resume.

Hybrid Sleep

Hybrid Sleep suspends your computer and saves the session to disk at the same time. Most of the time, you get the quick wake-up of suspend. If the battery runs out, you'll need to plug in the charger, but your session is still there to resume from disk.

Suspend-then-Hibernate

This one suspends first and switches to hibernation only when the battery level gets critical. I think this is the most practical option for laptop users. You get fast resume in normal use and a safety net when the battery is about to die.

What Mint's new sleep mode doesn't fix

None of this removes the old limitations. You still need plenty of swap, and the tool flags a lack of swap as a problem. If Secure Boot is enabled, the tool lists it under Detected Problems. The good thing is that the tool writes its settings to its own systemd file, so you can turn these modes on and off without messing up your system.

I like how Mint takes a subtle approaches to "new features". Not every new feature needs to have AI in it. This is not a shiny new change but it's one of those changes that everyday Linux users are likely to use. Am I right?

top 30 comments
sorted by: hot top controversial new old
[–] logana@lemmychan.org 1 points 9 hours ago

"This classic feature"

Jesus fucking christ. What is wrong with people and the clickbait bullshit? Just say what it is, morons.

[–] orbituary@lemmy.dbzer0.com 11 points 21 hours ago

Why does this article keep doing verbal loop-de-loops? It repeats the same main points a few times. AI?

"Still, the big news is that Linux Mint is bringing hibernation back."

[–] unknownuserunknownlocation@kbin.earth 2 points 17 hours ago (2 children)

What do you mean bringing hibernation back? Why the fuck was it gone?

[–] Blackmist@feddit.uk 7 points 15 hours ago

I thought that big wall of text you scrolled past explained it pretty well...

[–] psud@aussie.zone 3 points 16 hours ago
  1. It's slow
  2. People don't understand the difference between suspend and hibernate, so fuck the people who do
  3. It's incompatible with secure boot
[–] elvith@feddit.org 17 points 1 day ago (2 children)

Then there's Secure Boot. With Secure Boot enabled, the Linux kernel runs in lockdown mode, and lockdown blocks hibernation because the saved image on disk isn't signed and could be tampered with.

I wonder... how does Windows solve that problem?

[–] 9tr6gyp3@lemmy.world 16 points 1 day ago* (last edited 1 day ago) (2 children)

It doesnt need to be signed if the hibernation file is stored on an encrypted disk. They use a combination of TPM and Bitlocker to protect the disk that the hyberfil.sys file is stored on.

Honestly, its probably possible to do the same in Linux, but I cant confirm that.

[–] elvith@feddit.org 4 points 20 hours ago (1 children)

I do use secure boot, I do dual boot (rarely, but Windows is not yet deleted). My windows partition is not encrypted. Still Windows does allow hibernation. And reports a clean secure boot state afterwards.

[–] 9tr6gyp3@lemmy.world 1 points 15 hours ago* (last edited 15 hours ago)

Im sure it allows that, but if your disk isnt encrypted, any files you have can easily be tampered with just by running a live boot environment from a cd/usb, or by transferring the disks to another machine.

Secure Boot verifies the kernel/system has not been tampered since the last system update occurred. During that process, the updated files are signed against your UEFI firmware. If an evil maid has access to your files, they can replace the kernel/system files with malicious versions, then re-sign against your firmware, and you would never know the difference.

Thats why it's important to encrypt the data stored on disk and have your UEFI BIOS secured with a password. Makes it so evil maids cant easily create/delete boot keys and tamper with your Secure Boot, or change the boot priority to a live cd/usb.

[–] Dultas@lemmy.world 1 points 19 hours ago

I use hibernate with the swapfile on my disk secured with luks, without secure boot. At least on Fedora (and I'd suspect others) it does look like doing it with secure boot is possible. https://gist.github.com/Cryptophobia/e304a04fcb156dd0959fbba6b7a26106

[–] Quibblekrust@thelemmy.club 8 points 1 day ago (1 children)

Windows uses a separate hibernation file. When it writes to the file, it adds checksums to verify integrity when it's read later, but that's it. No encryption. If you want your data to be safe, you need to use full-disk encryption.

[–] elvith@feddit.org 4 points 20 hours ago (1 children)

So as always - MS imposes the rules like Secure Boot and then gets to break them for convenience.

They already require a TPM. They already use it to manage keys. Why not set up a key for bitlocker for that one specific file?! Or at least sign the file header containing the checksum with a key from the TPM?

[–] Quibblekrust@thelemmy.club 2 points 6 hours ago

MS should hire you! You're smarter than most of their managers.

[–] WhiplashPost@programming.dev 11 points 1 day ago (6 children)

i can put my laptop into suspend and lose maybe 2% of battery per day at most. So hibernation seems a bit unnecessary. Maybe if your RAM is less efficient or something? Idk.

[–] esc@piefed.social 1 points 8 hours ago

You haven't had an experience with modern suspend, at best you'll get 10% by morning, probably it will just discharge completely in 5 to 8 hours.

[–] PokerChips@programming.dev 3 points 15 hours ago

Mine will die after 2 or 3 days of suspend.

Just takes a weekend.

[–] psud@aussie.zone 2 points 16 hours ago

I have a laptop I use sometimes every day, sometimes not for a week. Hibernate on critical battery would save the things that get lost when it batteries out on suspend

[–] klangcola@reddthat.com 18 points 1 day ago

There's also situations where you want the computer to be truly off (without loosing your open documents etc), to the point where you can take out the battery and it's no big deal.

Also, for work my fancy new computer has fancy new "modern suspend", which isn't actually suspend at all. The fan is still spinning and it's generating lots of heat. Not great in backpacks and certainly not great in industrial field work where there are areas where non rated powered electronics are not allowed due to potential explosive atmosphere.

Meanwhile hibernate is still hibernate. The computer is actually fully powered down.

[–] Wizard_Pope@lemmy.world 2 points 17 hours ago

Yeah I lose mlre than that jf I tirn it off. My battery is kinda fucked

[–] sinkingship@sh.itjust.works 6 points 23 hours ago (1 children)

Mine loses about 1% per hour.

[–] neo2478@sh.itjust.works 2 points 18 hours ago

Yeah same for me in Asahi Linux. Its the only thing I miss about macOS.

[–] anas@lemmy.world 3 points 21 hours ago

Good timing, this should be helpful until I get a replacement for my laptop’s dead battery.

[–] NotSteve_@lemmy.ca 6 points 1 day ago

I was hoping for the global menu :(. I have it on KDE now but I'd love to see a full comeback

[–] absGeekNZ@lemmy.nz 3 points 1 day ago

Suspend-then-hibernate sounds great; just need swap to be equal to RAM size....not a major problem; I already have that.

[–] mindbleach@sh.itjust.works 5 points 1 day ago

Put the proper noun in the dang headline.

[–] tuckerm@feddit.online 4 points 1 day ago (1 children)

I hadn't really thought about the fact that Ubuntu (and many others, apparently) don't have hibernation. I switched to Debian about a year ago, and I wasn't sure what the Hibernate button did when I saw it for the first time. But after I searched to find out, I started using it all the time.

[–] Dultas@lemmy.world 1 points 19 hours ago

Most don't have hibernate enabled because you'd need a swap or swapfile large enough to hold the full memory state. And with the larger ram sizes and sleep being good enough, at least until everything became s2idle only, no one wanted to set up a huge chunk of unusable disk for it.

Wait what? When was Mint killed by Ubuntu?

[–] mlg@lemmy.world 1 points 8 hours ago* (last edited 8 hours ago)

There was a post recently asking about doing hibernate with secure boot + LUKS + TPM on Fedora and it is actually possible and still pretty well supported, but it does mean you have to go through the lengthy setup yourself.

The one real modification you need is to use a kernel patch that sets a flag that allows hibernation images to be loaded in lockdown mode since using LUKS effectively mitigates the issue of image tampering.

Tbh I think its been long overdue as a returning feature because Linux has certainly grown a ton in the Laptop space where the battery save is a huge difference in sleep vs hibernate.