How to Enable Hibernation in Ubuntu 13.10

Last updated on December 20th, 2013

I’ve written a post about how to enable hibernate option in previous Ubuntu releases. Ubuntu 13.10 is a little different, so I write this tutorial to teach how to enable this feature in Saucy Salamander. Hope it helps!

Hibernate is disabled by default in Ubuntu, when the computer hibernates, all of your applications and documents are stored and the computer completely switches off so it does not use any power, but the applications and documents will still be open when you switch on the computer again.

Test if hibernate works

Before getting started, press Ctrl+ALt+T on your keyboard to open terminal. When it opens, run:

sudo pm-hibernate

After you computer turns off, switch it back on. Did your open applications re-open? If hibernate doesn’t work, check if your swap partition is at least as large as your available RAM.

Enable Hibernate

The indicator-session was updated to use logind instead of upower. Hibernate is disabled by default in both upower and logind.

To re-enable hibernate, run below command to edit the config file:

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

Copy and paste below lines into the file and save it.

[Re-enable hibernate by default in upower]

[Re-enable hibernate by default in logind]

After reboot, the login screen session menu should have a Hibernate option.

After logged in, the desktop session menu still doesn’t have the Hibernate option. Run killall indicator-session-service and the menu will be updated with Hibernate. This is a little buggy, because you need to run this command everytime you login to get the option. If you know how to fix it, tell me and thanks!

UPDATE: Thanks to MoonShadow, here’s the method to kill indicator services at startup:

1. Go to Startup Application from Unity Dash.

2. Click Add and type in:

Name: restart indicator services
Command: sleep 60 && killall indicator-session-service