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.

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

1 Answer 1

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]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes

  • 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. –  green7 Nov 9 '12 at 8:25

Your Answer

 
discard

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.