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.
To test if hibernate option works on Ubuntu System:
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:
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
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.
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
0 comments:
Post a Comment
Note: only a member of this blog may post a comment.