How to enable hibernation on Linux Mint 22.3 before Mint 27

You need: a laptop running Linux Mint 22.3 “Zena” (Cinnamon, Xfce or MATE), admin rights, an ext4 root partition, and a spare 10 minutes to read before you touch anything. Budget roughly 30 minutes for the work itself (our estimate), including two reboots. As of 3 November 2026, this is the only route on a released version of Mint.

The reason to bother: when you close the lid, Mint suspends. The session sits in RAM and the battery keeps draining, and OMG! Ubuntu reports that Mint itself calls a flat battery during suspend an outcome “worse than a normal shutdown”. Hibernation writes the session to disk and powers off completely.

Mint’s own October 2026 monthly news says hibernation doesn’t work out of the box and needs a large amount of swap space on disk. It also says Ubuntu removed hibernation from the available sleep modes, which is why Mint users rarely saw it.

What was verified, and what wasn’t

The release this guide targets is Linux Mint 22.3 “Zena”, which How-To Geek describes as using Linux kernel 6.14 on an Ubuntu 24.04 LTS package base, with Cinnamon 6.6 as the flagship desktop. A GitHub issue on the Mint tracker documents the failures on 22.3 (tested with systemd 255, ext4, a swap file and UEFI with GRUB). The commands below follow that report and Mint community guides such as FOSTips.

We haven’t run this on hardware today. Treat the steps as a checked synthesis of those sources, and take a Timeshift snapshot first. The Mint 27 “Sleep Modes” page is only a preview as of today, so no menu path for it is verified.

One setup caveat: everything here assumes a swap file on ext4, which is what Mint’s installer creates by default according to the same GitHub report. If you use a swap partition, skip the offset in steps 3 and 4 and point the resume parameter at the partition’s UUID, as Linux Uprising explains.

Before you start: three checks

Open a terminal with Ctrl+Alt+T. Run these in order and write down the results.

  1. Secure Boot. Run mokutil –sb-state. If it says Secure Boot is enabled, hibernation will be blocked. OMG! Ubuntu notes it’s usually blocked on such systems.
  2. RAM. Run free -h and note the total under “Mem”.
  3. Swap. Run swapon –show. You want a /swapfile entry whose size is at least your RAM, or at the least the amount you actually have in use. That’s the usual rule, and a swap file smaller than your used memory can’t hold the session.

If Secure Boot is on, you have a decision. Turning it off means entering your firmware setup at boot and disabling it there, and the menu names vary by laptop maker. Dual-booting with Windows and BitLocker? Have your recovery key to hand, since changing firmware security settings can trigger a prompt for it.

Step-by-step: set up hibernation on Mint 22.3

1. Resize the swap file if it’s too small

Skip this if check 3 above showed enough space. Otherwise run these steps one at a time, replacing the size with your RAM figure rounded up (the “G” means gigabytes):

  1. sudo swapoff /swapfile
  2. sudo fallocate -l SIZEG /swapfile (for example, a laptop with 16GB of RAM would use 16G or a little more)
  3. sudo chmod 600 /swapfile, then sudo mkswap /swapfile
  4. sudo swapon /swapfile

Then open /etc/fstab with sudo xed /etc/fstab and confirm it contains the line /swapfile none swap sw 0 0, as this Medium walkthrough shows. Add it if missing. Make sure you’re on an ext4 volume; btrfs swap files need different handling that this guide doesn’t cover.

2. Find the UUID and the swap file offset

The kernel needs two facts to find your session on wake: which partition holds the swap file, and where on that partition the file starts.

  1. Run findmnt -no UUID -T /swapfile and copy the long UUID it prints.
  2. Run sudo filefrag -v /swapfile. In the table that follows, look at the first row (extent 0) and note the first number in the physical_offset column, the one before the double dots. Linux Uprising calls this the first block of numbers in that column.

Keep both values in a text file. You’ll paste them twice.

3. Add the resume parameters to GRUB

  1. Run sudo xed /etc/default/grub.
  2. Find the line starting with GRUB_CMDLINE_LINUX_DEFAULT. Inside the quotes, after “quiet splash”, add resume=UUID=YOUR-UUID resume_offset=YOUR-OFFSET.
  3. If the line already contains resume=/swapfile, delete that piece. The GitHub report says the installer’s default there is incorrect for swap files.
  4. Save, then run sudo update-grub.

Mint 22.3 also added a System Administration app that, per Ubuntu Handbook, can edit boot parameters. If you’d rather click than edit a file, that’s the place to look, but we haven’t verified its exact layout.

4. Tell the initramfs where to resume from

  1. Run echo “RESUME=UUID=YOUR-UUID resume_offset=YOUR-OFFSET” | sudo tee /etc/initramfs-tools/conf.d/resume
  2. Run sudo update-initramfs -u and wait for it to finish.

Skipping this step is the most common reason a machine “hibernates” and then boots fresh. The system writes the image, but the early boot environment never looks for it.

5. Unblock the Hibernate button with a polkit rule

The GitHub report traces the hidden menu entry to a rule inherited from Ubuntu in /usr/share/polkit-1/rules.d/com.ubuntu.desktop.rules, which disables hibernate for everyone without checking whether the hardware supports it. A rule of your own in /etc takes priority.

  1. Run sudo xed /etc/polkit-1/rules.d/10-enable-hibernate.rules
  2. Paste this as one block: polkit.addRule(function(action, subject) { if (action.id == “org.freedesktop.login1.hibernate” || action.id == “org.freedesktop.login1.hibernate-multiple-sessions” || action.id == “org.freedesktop.upower.hibernate” || action.id == “org.freedesktop.login1.handle-hibernate-key” || action.id == “org.freedesktop.login1.hibernate-ignore-inhibit”) { return polkit.Result.YES; } });
  3. Save the file.

A user on the Mint forums who hit this on 22.1 found the entry only appeared after they installed the legacy policy package with sudo apt install polkitd-pkla, according to the thread. Try that only if the rule alone does nothing.

6. Reboot and test

  1. Reboot, so GRUB and the initramfs changes load.
  2. Run busctl call org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager CanHibernate. A reply of “yes” means the system considers hibernation available. “no” or “na” means one of the checks above still fails.
  3. Save your work, close heavy apps for the first test, and run systemctl hibernate.
  4. Press the power button once the screen and fans go dark. Your windows should return where you left them.

Be patient on the way down. The Mint team says hibernation can take longer than a reboot to hibernate and resume, and the forum user above saw a delay of several seconds between clicking Hibernate and anything happening.

Once the command-line test works, use the Hibernate entry in the shutdown menu. For lid-close behaviour, look in Cinnamon’s Power Management settings; we couldn’t confirm the exact wording of that option on 22.3, so check what your version offers before relying on it.

Common problems and fixes

Symptom Likely cause Fix
No Hibernate entry in the shutdown menu Ubuntu’s inherited polkit rule blocks it Create 10-enable-hibernate.rules (step 5); install polkitd-pkla if still missing
CanHibernate returns “no” Secure Boot on, swap too small, or resume parameters missing Re-run the three checks, then confirm step 3 and step 4 were saved
Laptop powers off but boots fresh, apps gone Wrong UUID or offset, or initramfs not rebuilt Re-run filefrag, correct both files, run update-grub and update-initramfs -u
Offset changed after resizing swap A new file sits at a new physical location Repeat step 2 and update both files again
Hibernate fails with a swap or memory error Swap smaller than the RAM in use Resize the swap file (step 1)
Hibernating takes ages The whole session is written to disk Close big apps first; expect it to be slower than suspend

What Linux Mint 27 changes

Mint 27 “Adrien” will be based on Ubuntu 26.04, according to the Linux Mint blog, and Linuxiac reports it’s scheduled around Christmas. Its System Administration tool gets a Sleep Modes page that the Mint team says makes it easy to enable hibernation and set it up correctly. All of this is still in development.

The page covers three modes, as the preview describes them:

  • Hibernate: saves the session to disk and powers off.
  • Hybrid Sleep: suspends and saves the session to disk at the same time, so a flat battery costs you a trip to the charger rather than your open work.
  • Suspend-then-Hibernate: suspends first, then hibernates when the battery gets critically low.

The limits remain. Per Linuxiac, the tool still depends on enough swap and on Secure Boot being off, and project lead Clem has said on the blog that the tool writes to its own systemd file, so enabling or disabling a mode is reversible. How it will treat a setup you built by hand is unknown. If you follow this guide now, keep your edits written down so you can undo them cleanly before the upgrade.

Note also that Mint is changing its numbering. The September 2026 news post says there will be no more point releases, so the release after 27 will be 28, and you’ll upgrade from one to the next.

What this means for you

If your laptop runs Mint 22.3 and you regularly close the lid for hours, the manual setup is worth doing today. Do it in this order: Timeshift snapshot, Secure Boot check, swap size, UUID and offset, GRUB, initramfs, polkit rule, reboot, test.

If you only suspend for short breaks and you’re happy with it, wait for Mint 27 and the Sleep Modes page. The Mint team itself says hibernation doesn’t work out of the box.

If Secure Boot has to stay on (a corporate laptop, say), hibernation isn’t an option on Mint, and you should keep the laptop plugged in or shut it down.

Sources

Header image: illustration, AI-generated.

Leave a Comment