



Hibernate option is disabled by default in Ubuntu 12.04 and enabling hibernate required changing some system files manually.

Few days back, we reported thatand enabling hibernate required changing some system files manually.





However, a nice PPA is now available which will enable hibernate on Ubuntu 12.04 without any need to manually change system files.





Just run the commands below and then re-login to get hibernate back:





sudo add-apt-repository ppa:vanhoof/policykit-d-p-hibernate-enabled

sudo apt-get update

sudo apt-get upgrade





To revert, first run the commands below:





sudo apt-get install ppa-purge

sudo ppa-purge ppa:vanhoof/policykit-d-p-hibernate-enabled



Now run:



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



Remove following lines and reboot.



[Enable hibernate by default]

Identity=unix-user:*

Action=org.freedesktop.upower.hibernate

ResultActive=yes