Sunday, December 1, 2013

Ubuntu: Regaining the hibernation option in 13.10

For a while the hibernation option is disabled in ubuntu linux by default. This is because of compatibility issues. There are certain conditions that have to be met for it to work, otherwise it just causes system crashes.

The most important condition is that your swap partition where the contents of your RAM will be saved has to be at least as big as your RAM. You can chack this by typing 'free' in the terminal. If your total swap is larger than your ram, hibernation should work.

You should also manually test hibernation with the 'sudo pm-hibernate' command. If it works, you can restore the menu functionality by running the following command:

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

Copy this as the content, save and close the file:

 [Re-enable hibernate by default in upower]  
 [Re-enable hibernate by default in logind]  

After the next reboot you should have the hibernate option available again.

No comments:

Post a Comment