Hibernate option saves all the currently running applications and turns off the system without any further power consumption. When the system wakes up on the next restart, all the previously running applications are restored. By default, Hibernation is disabled in Ubuntu and it is removed from the Ubuntu's shutdown menu (for versions 12.04 and onwards). This article will guide you to re-enable the Hibernate feature in Ubuntu systems.
Check Whether Hibernation Works in Your SystemFirst this you'll have to do is to check if hibernation works fine in your system or not. You need to enter a command after which your system will turn off.
You'll have to reboot the system again and check if previously active applications re-open, if they do, hibernation works well for your system. If they don’t re-open, see whether the swap partition is not less than the available RAM.
Enabling Hibernate OptionTo enable Hibernate option in the Ubuntu shutdown menu, you'll have to create a hibernation configuration file as follows:
sudo gedit /var/lib/polkit-1/localauthority/50-local.d/hibernate.pkla
Edit the file with following bunch of lines:
[Enable/Disable Hibernate Option] Identity=unix-user:* Action=org.freedesktop.upower.hibernate ResultActive=yes
Save the file, restart the system and you're done.
|Hibernate Option in Shutdown Menu|