Questions tagged [hibernate]

Hibernation (ACPI S4 or HTD) is a power-saving mode in which the machine state is written to disk, either a swap partition or swap file, allowing the device to be completely powered off. On resume, the machine state is loaded back into RAM. This allows a faster boot time than a normal power cycle and for the user to resume their session with the applications that were open when hibernate was initiated.

When a computer hibernates, it saves the contents of RAM to a swap file or partition and completely powers off. Another operating system can be booted if necessary during the time the other system is hibernated (however, this is not recommended). When the system resumes from hibernation, it copies this data back into RAM and resumes with the same state and opened programs as before.

Hibernation on Ubuntu can usually be initiated by executing pm-hibernate with root privilege. Because resume-from-hibernation does not work well on all hardware, possibly corrupting opened filesystems or files and destroying non-saved data, hibernation is not available by default in the GUI shutdown options in current versions of Ubuntu and must be enabled manually.

In addition to pm-utils, systemctl (the interface of systemd) may be used to initiate hibernation and other ACPI states.

Touching a filesystem (or swap partition) in use by a hibernated operating system is dangerous, and so Ubuntu will not mount a hibernated Windows drive. It must be either mounted read-only (preferred) or have its hibernation file removed before it can be accessed.

Related tags:

1070 questions
22
votes
9 answers

Pros and cons of hibernating

I've recently started to systematically hibernate my laptop instead of shutting it down. The main reason I chose to do this is that I use one of my workspace as a highly customized dashboard. It's a bunch of windows spatially arranged in a specific…
10
votes
1 answer

I have enabled hibernate but it isn't working. What can I do?

I enabled Hibernate in 12.04 following the procedure given in this question : How to enable hibernation? But, Even after I enabled it, The hibernate isn't working. By not working, I mean the computer is hibernating correctly, but it is not resuming.…
Anwar
  • 76,649
10
votes
5 answers

Got back Hibernation option, but cannot resume from Hibernate

In my Ubuntu 12.04, the hibernation option was working well and fine. However, I installed Debian on another partition recently and when I again tried to boot to Ubuntu, I got a message on the boot splash screen saying : The disk drive for / is not…
harisibrahimkv
  • 7,256
  • 11
  • 44
  • 71
7
votes
3 answers

Cannot hibernate twice

I am running Ubuntu 13.10, and I manage to suspend to RAM without any incidents. Suspending to disk (hibernate), however, does not work the second time I do it (after a reboot). I tried to hibernate with pm-hibernate and also with uswusp. The…
7
votes
2 answers

Hibernation failed due to insufficient Swap partition

Possible Duplicate: Adding swap partition after system installation I got 8GB RAM on my laptop but only partitioned 1GB for swap, now the hibernation cannot be achieved even if I use sudo pm-hibernate. Is there any solution?
Yang Xia
  • 171
6
votes
1 answer

deleting hibernate image after failed hibernation

after trying sudo pm-hibernate my w520 can't start anymore. only when adding a 'noresume' to the kernel parameters I can start with grup. what are the steps to remove all the hibernate disaster? formating swap partition? what about fstab?
6
votes
4 answers

Where do I even start if hibernate / un-hibernate is slow?

I've been using Ubuntu for about 8 months now, and the time it takes to un-hibernate seems to vary by minutes sometimes. I haven't been able to see a correlation between what's open when it's hibernated and how long it takes. I'm wondering how to go…
5
votes
2 answers

No splash screen on hibernate

Hibernate is working fine. A bit slow when resuming from a hibernate but I can bear with it just so that I have all open applications on the desktop as I left it. Then again the "slowness" might be because of the 4GB RAM, although I'm assuming only…
Marky
  • 1,531
5
votes
2 answers

Why is hibernation so complicated on Ubuntu (and other Linux distributions)?

I've been an Ubuntu user since version 9.04, and I'm wondering why hibernation on Ubuntu (and other Linux distributions) is so complicated. Recently I installed 18.04. I tried several tutorials on the internet to make the system capable of…
user919500
4
votes
3 answers

Ubuntu needs Swap, Why not Windows?

Ive learned that one should allot a swap space inorder to have Hibernate option in Ubuntu, Why isnt it same with Windows? My Win 7 doesnt have any Swap space but still hibernates without a glitch.
kernel_panic
  • 11,732
4
votes
3 answers

Hibernation with Ubuntu 16.10 fails

After upgrading from ubuntu 16.04 to 16.10 the hibernate function no longer works. When hibernate is invoked the machine hangs. Under 16.04 it worked perfectly. Trying "sudo pm-hibernate" also fails.
4
votes
1 answer

How do I fix hibernate?

Suspend and Hibernate was not working in my Ubuntu 11.04 and I followed these instructions to fix the issue by installing uswsusp. The commands s2ram and s2disk were working fine for me and hence I replaced the contents of…
Vivek
  • 3,749
4
votes
1 answer

Hibernate is broken: where are the logs?

Hibernation doesn't work anymore for me. Where can I find the related logs? Thanks
4
votes
1 answer

way to disable Hibernate from within gconf-editor so button disappears?

There used to be a way to disable Hibernate from gconf-editor: apps -> gnome-power-manager -> can_hibernate. unticking "can_hibernate" would even remove the hibernate button from the shutdown menu. This gconf option appears to no longer be present.…
Chad
  • 41
3
votes
0 answers

Hibernation stalls

To start, I installed Ubuntu 11.10, I disliked Unity and then installed the Xubuntu session on top of it. I only say this to make you understand that I have this problem in both sessions. Whenever I click on the hibernate option, or the suspend…
Kyle
  • 31
1
2 3 4 5