Sunday 22 January 2017

How To Enable Hibernate Option On Ubuntu 16.10 System

How to enable Hibernate option in Ubuntu 16.10 Linux System. In Ubuntu Hibernate is not enabled by default, users can use ubuntu hibernate command to enable Hibernate option on Ubuntu Systems. When the computer hibernates, all the applications and documents are stored and the computer completely switches off so it does not use any power, but the applications and documents will still be open when you switch on the computer again.

Test if hibernate works

Please make sure to save your work before hibernating so that just in case something goes wrong and your open applications and documents cannot be recovered when you switch on the computer again.
To test if hibernate option works on Ubuntu System:
  • Open Terminal and run the comand sudo pm-hibernate into the terminal and press Enter.
  • After you computer turns off, switch it back on. Did your open applications re-open. If yes, hibernate is enabled else not.
If hibernate doesn’t work, check if your swap partition is at least as large as your available RAM. Check that you’re not using any btrfs partitions. You may need to remove the btrfs-tools package by running the following command:

sudo apt purge btrfs-tools

Enable hibernate

If the hibernate test works, you can continue to use the sudo pm-hibernate command when you want to hibernate.
You can also enable the hibernate option in the menus. To do that, use your favorite text editor to create /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla. Add the following to the file and save.
To do the above task, open Terminal and run the command:

gksudo gedit /var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla

Once the com.ubuntu.enable-hibernate.pkla file opens, paste the following lines into the file and save.
[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

Harry

Author & Editor

A technology enthusiast and addictive blogger who likes to hacking tricks and wish to be the best White Hacket Hacker of the World.

0 comments:

Post a Comment

Note: only a member of this blog may post a comment.