Saturday, July 1, 2017

How can I hibernate on Ubuntu 16.04?

In this post I will show how to Enable Hibernate in Ubuntu.

In the previous posts I had shown How to...
OutPut:

First check if hibernate works on your system or not using below Command in Terminal.

sudo pm-hibernate

If it does not work, check your swap size is grater than or equal to your system RAM.
To add Hibernate option to the settings menu, you can create a configuration file.
Open a terminal and run below command.

sudo nano /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla

It will open nano with an empty file. Copy and paste the below lines into the nano window.

[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes

[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit
ResultActive=yes

Then save the file and restart the system. Then you will find the menu as shown in the above out put.

For more information you can check this link

No comments:

Post a Comment