I had enabled "hibernate" option in my Ubuntu 12.10 few months back by adding the following lines to /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
:
[Re-enable hibernate by default]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
However, I don't know how, rather don't remember what led to it being disabled both in "power options" and in the "gear icon" on the menu bar.
The file is still intact.
One of the things I suspect is removing old kernels using Ubuntu tweak, but have no valid reason to allege this :P
Ghosh... how did I take so long in discovering that I didn't have an entry for the swap partition in my
/etc/fstab
file?The problem was, I had deleted my swap partition and then re-created it some days later, but did not realize that
/etc/fstab
had the old entry and the newer one was never added to it.Adding the entry and rebooting my laptop now gives me the option to hibernate.
Try running
sudo update-grub
, occasionally this is necessary if you change grub settings or configurations. From the highest searched answer to this question: (How to enable hibernation?) "Some users will then need to run sudo update-grub to get the hibernate option to be available in the power menu.."