Linux Mint Hibernate (2024)

I have a Thinkpad T470p laptop with Linux Mint 20.1 (Xfce) installed forpersonal use and power management is one of the things I dislike in otherwise apretty good laptop. Compared to my work laptop, a Macbook, the Thinkpad drainsbattery in sleep mode and I often find the battery completely drained if Ihappen to not to use the laptop for a couple of days.

Since Linux Mint does not come with Hibernation option enabled out of the box,following are the steps I did to enable this option.

Swap partition

I found it is easier to have the right size of swap partition at installationtime rather than trying hibernation support based on a swap file. Followinginstructions are based on my setup with a swap partition.

I created a swap partition of 25G since I have 24G of RAM at install time.

Install hibernate utilities

Install hibernate utils,

sudo apt install pm-utils && sudo pm-hibernate

Update grub

Find the UUID of the swap partition by grep swap /etc/fstab.

You need to update grub boot loader to add option to resume from disk. For that,edit /etc/default/grub and modify the GRUB_CMDLINE_LINUX_DEFAULT as superuser1.

In my case the the required edit looks as follows.

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=putYourSwapUUIDhere"

Then update grub with command sudo update-grub.

Power menu

Now you should be able to hibernate with systemctl hibernate.

However the power menu in Linux Mint doesn’t show the Hibernate option.

For that I needed to add the following policy2 to/etc/polkit-1/localauthority/90-mandatory.d/enable-hibernate.pkla.

[Enable hibernate]Identity=unix-user:*Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessionsResultActive=yes

After adding the policy Hibernate should show up as a power management option inthe Mint menu.

Hibernation has been working quite smoothly thus far in my laptop. I prefer touse this option when I know that I’m not likely to pick up the laptop in awhile.

Linux Mint Hibernate (2024)

FAQs

Does Linux Mint hibernate? ›

If you look at the references in the tutorial, you will find that the hibernation process under Linux Mint is fairly complicated, but the main requirement is that your swap file or partition must be as large as your RAM, plus a bit more, preferably.

How do I wake up Linux Mint from suspend? ›

You have to turn the computer back on to resume from suspend. Pressing a key on a keyboard does not turn the computer on when it is hibernating. However, you also have to make sure hibernation is set up on your computer for it to resume where it left off. Hibernation is not set up by default on Linux Mint.

How to use Hibernate in Linux? ›

To hibernate the computer having the Linux operating system, open the terminal and run the command “sudo systemctl hibernate”. In this way, the computer will go into hibernate mode.

How do I keep Linux Mint awake? ›

Re: is there any way to keep my linux mint pc on permanently? you can certainly disable the screensaver / lockscreen. Check either (both) (a) "Display" or (b) "Power" settings to disable screensaver / screen blank after X minutes / lock on resume.

Which is better, hibernate or suspend? ›

The difference is when you suspend your machine stores the essentials into ram if there is enough space. and it's faster. Down side is that suspend can't save to ram if you running out of power. Hibernate stores everything to disc so it will be safe during power loss, But it's slower than suspend.

What is the disadvantage of Linux Mint? ›

Drawbacks of Switching to Linux Mint

You play a lot of video games on your machine. You are locked into an ecosystem of applications and feel Linux alternatives don't meet your needs.

What does Linux suspend do? ›

“Suspend session” is standard Linux vocabulary meaning basically power save mode, yes. This involves the monitor shutting down, but also the rest of the system; your computer will no longer do any work in the background while it's suspended, which saves more power than just no longer lighting up the screen.

Does suspend mean sleep in Linux? ›

Sleep (suspend or standby)

This mode is also known as the standby, suspend, or suspend-to-ram mode. In this mode, Linux saves the current state of the system into the RAM and cuts the power supply of all devices except the RAM.

What is suspend Linux Mint? ›

by spamegg » Mon Oct 02, 2023 7:06 pm. Suspend puts it in a low power state so that contents of RAM are not lost. Then you press a key on the keyboard to bring it back.

When should I use hibernate? ›

Use hibernation when you know that you won't use your laptop or tablet for an extended period and won't have an opportunity to charge the battery during that time. First check to see if this option is available on your PC and if it is, turn it on.

What is the difference between hibernate and sleep in Linux? ›

During hibernation, data is automatically stored in a non-volatile memory before the hardware shuts down. In sleep mode, the data is still in the RAM, which is volatile. In case of a power outage, any unsaved data is lost and cannot be recovered. Time to resume: Faster in sleep mode.

How do I enable hibernate in Linux Mint 20? ›

Open terminal, run sudo pm-hibernate . Your computer should hibernate. Boot it up again and make sure it restores everything. If it does, then your hardware supports hibernation.

Is Linux Mint good for daily use? ›

It is a solid distro for everyday usage. I was a Windows user myself but I had quite a lot of issues and I wanted more control and freedom on my system. After hopping between a few of the beginner distros, I finally settled on Mint. If you use Microsoft built in software, like office 365, you won't like it.

Why is Linux Mint so stable? ›

With centralized software updates, system snapshots, a unique Update Manager and the robustness of its Linux architecture, Linux Mint requires very little maintenance. It works, it's safe and it doesn't break.

Does Linux have hibernate? ›

High level interface (systemd)

systemd provides native commands for suspend, hibernate and a hybrid suspend. This is the default interface used in Arch Linux.

What is the difference between suspend and hibernate in Linux Mint? ›

Suspend saves its state to the RAM , hibernation saves it to disk. Suspension is quicker but doesn't work when running out of energy, while hibernating can deal with running out of power but it is slower.

Top Articles
Latest Posts
Article information

Author: Rev. Leonie Wyman

Last Updated:

Views: 6091

Rating: 4.9 / 5 (59 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Rev. Leonie Wyman

Birthday: 1993-07-01

Address: Suite 763 6272 Lang Bypass, New Xochitlport, VT 72704-3308

Phone: +22014484519944

Job: Banking Officer

Hobby: Sailing, Gaming, Basketball, Calligraphy, Mycology, Astronomy, Juggling

Introduction: My name is Rev. Leonie Wyman, I am a colorful, tasty, splendid, fair, witty, gorgeous, splendid person who loves writing and wants to share my knowledge and understanding with you.