Skip to content

How to hibernate Ubuntu

Rate this post

How to hibernate Ubuntu: After reading my article on how to install linux, you decided to try Ubuntu. You feel very comfortable with your new operating system but you cannot find the option to send the computer into hibernation. Don’t worry, it’s not your problem. Hibernation in the latest version of Ubuntu is not enabled by default but there is a way to get it back easily.

All you have to do is follow the guide on how to hibernate Ubuntu I’m going to offer you and carefully type in the Ubuntu terminal all the commands that I will indicate to you during the procedure. Guaranteed: in less than five minutes you will be able to solve your problem.

Before finding out in detail how to hibernate Ubuntu, you need to make sure that your system supports this shutdown mode and that the SWAP partition is large enough to take advantage of. I know, it sounds complicated but it’s actually a no-brainer.

All you have to do is open the Terminal (you can search it in the Dash), type the command sudo pm-hibernate and press the key Submit on your PC keyboard. Then type in your user account password and press again Submit to hibernate the computer.

Next, try to turn your PC back on and Ubuntu should start automatically reopening all programs that were running before hibernating the computer. If this does not happen, it means that hibernation is not supported by your system and therefore you cannot continue driving.

Once you are sure that your PC supports Ubuntu hibernation, you need to add the option to hibernate the computer to the operating system shutdown menu. To do this, open the Terminal, give the command sudo -e /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla and type the password of your user account to confirm the operation.

In this way, you created the configuration file for Ubuntu hibernation but to make it active you have to copy a few lines of code in it. Then type the following into the terminal window and save the changes made to the file by pressing the key combination first Ctrl + Shift + O and then Submit is Ctrl + Shift + X on the PC keyboard.

[Re-enable hibernate by default]

Identity = unix-user: *

Action = org.freedesktop.upower.hibernate

ResultActive = yes

At this point, restart your computer and, the next time you log in to the operating system, you should be able to hibernate Ubuntu from the shutdown menu at the top right.