Friday, October 26, 2012

How to enable hibernation in Ubuntu 12.04 lts [Solved]

After upgrading to Precice Pangolin - Ubuntu 12.04 lts, I was unable to hibernate my machine by default. I googled it and found a solution(It worked for me.)

To check whether hibernate is supported, Open a terminal and type:

pm -hibernate

after entering this, your system will attempt a hibernate.

to enable hibernation, open a terminal and type the following line and press enter.

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

insert the following content

[Re-enable hibernate by default]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
 
save and exit.
 
restart the system once and hibernation will be enabled.