How To Hibernate your computer in Ubuntu? The great thing is that Ubuntu is extremely powerful and at the same time it integrates some rather impressive visual ideas to. That being said, if you want to hibernate Ubuntu, you just have to visit the Terminal and include the command “ sudo pm-hibernate”.
Your PC will automatically turn off once you initiate and complete the command. And if you want to stop hibernation, you just have to stop it manually with the power button.
Is there a way to enable hibernation permanently?
For those people that don’t want the computer to enter hibernation all the time with the method above, you can use a rather tricky option if you want.
· Create a new text editor on the command line by writing “sudo nano /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla”
· Then, you have to copy and paste this text: “[Re-enable hibernate by default in upower] Identity=unix-user:*
[Re-enable hibernate by default in logind] Identity=unix-user:*
You will need to save this manually, just use CTRL and X. Logout the system, login again and you will have the hibernate option available.
There will be situations where you need to format the partition with the BTRFS file system. If this happens, you can’t do any sort of hibernation. Also, if you want to enter this sort of feature, you need to make sure that that the swap partition is as large as your RAM amount is. Used adequately, this can bring you a distinct and unique set of features that you may definitely need!