Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My question should be pretty simple.
I have 12.10 with Gnome 3.6 as desktop, and I was wondering if it is possible to shutdown my computer and then start up again and all my windows and screens was restored from earlier, and just popped up again as before?

share|improve this question
up vote 2 down vote accepted

Hibernating your computer should help.

As Wikipedia page for hibernation says:

Hibernation in computing is powering down a computer while retaining its state.

Upon hibernation, the computer saves the contents of its random access memory (RAM) to a hard disk or other non-volatile storage. Upon resumption, the computer is exactly as it was upon entering hibernation.

To enable hibernation:

  • Open a terminal (Ctrl+Alt+T).

  • Run the following command:

gksudo gedit /var/lib/polkit-1/localauthority/50-local.d/hibernate.pkla
  • Paste these in the file:

[Enable Hibernate]

  • Save and close the file.

  • Logout and login to see the hibernate option in the cog (Switch Off) menu.

share|improve this answer
but when i have to restart forced by an error in ubuntu, i can't use the hibernate solution. and that is my problem ? – Daniel Guldberg Aaes Nov 8 '12 at 10:01
In that case, you cannot do anything yet. – green Nov 9 '12 at 8:25

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.