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.

Possible Duplicate:
How to enable hibernation in 12.04?

I use Ubuntu 12.04 and don't have the hibernate button anywhere. Isn't there any way by which I can set up the hibernate button rather than running the command: "sudo s2disk" everytime from the terminal?

share|improve this question

marked as duplicate by Mitch, WarriorIng64, Ringtail, Stephen Myall, Anwar Shah Sep 14 '12 at 14:46

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

up vote 1 down vote accepted

Open Terminal. Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below.

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

Copy and paste the following code in file:

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

enter image description here

It will appear in the power menu!

share|improve this answer

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