Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Regarding the below (-----) info from another post, my system will try (as is said below) to hibernate, but it won't get all the way there. Hard drive activity stops, but it does not shut down. If I turn the power off, then back on, it will start, but I have to "restore previous session" in the browser and other open apps don't restart, with the accompanying hassle.

So because it tries, will the suggested fix then cause it to work correctly, or is the literal "try" not really what he means?!?

PLEASE NOTE - this is a desktop system, not a laptop.

Before enabling hibernation, please try to test whether it works correctly by running pm-hibernate in a terminal. The system will try to hibernate. If you are able to start the system again then you are more or less safe to add an override.

To do so, start editing

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

Fill it with this

[Re-enable hibernate by default] Identity=unix-user:* Action=org.freedesktop.upower.hibernate ResultActive=yes

Save by pressing Ctrl-O and exit nano by pressing Ctrl-X

Restart and hibernation is back!

share|improve this question
Can you provide a link to the post (which you've quoted extensively) that reads "Before enabling hibernation, please try..."? –  Eliah Kagan Jun 5 '12 at 3:32
add comment

1 Answer

* Making the swap partition work for hibernate (optional)

You only need to do this if you want to use your new, bigger swap partition to hibernate your computer. Pull up a Terminal again and run cat /proc/swaps and hopefully you see the path to your swap partition listed there.

gksu gedit /etc/default/grub & to pull up the boot loader configuration

**If you are using grub: Look for the line GRUB_CMDLINE_LINUX="" and make sure it looks like this (using your UUID of course) GRUB_CMDLINE_LINUX="resume=UUID=1bee8ce8-1770-4f8b-8009-90127976d7f2" and save the file

sudo update-grub and wait for it to finish

**If you are using burg: Look for the line "linux /boot/vmlinuz" and add "resume=UUID=1bee8ce8-1770-4f8b-8009-90127976d7f2" inside it.

gksu gedit /etc/initramfs-tools/conf.d/resume & and make sure its contents are resume=UUID=1bee8ce8-1770-4f8b-8009-90127976d7f2 (with your UUID of course in place of mine). Save the file!

sudo update-initramfs -u


Now you should be able to hibernate and resume!

share|improve this answer
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.