Simply Way to Enable Hibernate Feature in Ubuntu Precise

SHARE :google Simply Way to Enable Hibernate Feature in Ubuntu Precise5facebook Simply Way to Enable Hibernate Feature in Ubuntu Precise1twitter Simply Way to Enable Hibernate Feature in Ubuntu Precise10stumbleupon Simply Way to Enable Hibernate Feature in Ubuntu Precise0pinterest Simply Way to Enable Hibernate Feature in Ubuntu Precise0reddit Simply Way to Enable Hibernate Feature in Ubuntu Precise0linkedin Simply Way to Enable Hibernate Feature in Ubuntu Precise2

hibernate ubuntu 12.04 Simply Way to Enable Hibernate Feature in Ubuntu PreciseIf you have installed Ubuntu 12.04 LTS or upgrade earlier versions of ubuntu to Ubuntu 12.04 LTS, one thing that you will find missing in ubuntu precise is Hibernate feature.

For those of you who are not aware or don’t use this feature at all, the Hibernate button usually lies above the Shutdown option and it allows you to save your current state to the hard drive so the next time you boot up, it can restore to the previous saved state without going through the usual boot up loop.

The reason Hibernate feature is disabled by default in Ubuntu 12.04 LTS is because Ubuntu’s Hibernate feature has always not been working well in many computers. For new hardware models, the Hibernate feature often don’t work by default. In some instances, the Hibernate feature will even lead to data loss.

How to Enable Hibernate feature In Ubuntu 12.04?

Currently, the Hibernate feature is only available in the “Power -> When power is critically low” settings. You can get your laptop to go into Hibernate mode when your batter power is critically low.

To ensure your Laptop/PC that installed Ubuntu 12.04 LTS supports the Hibernate feature, you can open a terminal then type command:

sudo pm-hibernate

If your PC/Laptops succeed in going to Hibernate mode and you have no problem waking it up, your PC supports the Hibernate feature. You can then proceed to the next step to enable the Hibernate option.

To enable the Hibernate option open gedit by press ALT+F2 then type:

gksu gedit

Now, open file com.ubuntu.desktop.pkla , this file placed in directory /etc/polkit-1/localauthority/50-local.d/
Add the following:

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

then Save.

If the file com.ubuntu.desktop.pkla not yet available in directory /etc/polkit-1/localauthority/50-local.d/ you can create manualy via terminal

sudo touch /etc/polkit-1/localauthority/50-local.d/com.ubuntu.desktop.pkla
sudo nano  /etc/polkit-1/localauthority/50-local.d/com.ubuntu.desktop.pkla

then Add the following statement:

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

to save: Ctrl + O, to exit : Ctrl + X

Restart your laptop / PC. now, the hibernate feature is enable on your Ubuntu PC

You may also like...