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:

1092 questions
515
votes
14 answers

How can I suspend/hibernate from command line?

How can I suspend or hibernate my laptop using command line, without installing additional software?
user1034
  • 5,153
434
votes
10 answers

How to enable hibernation?

In Ubuntu 12.04 and newer, hibernation has been disabled by default in policykit. How can I enable this back?
Dima
  • 9,955
387
votes
23 answers

Unable to mount Windows (NTFS) filesystem due to hibernation

Whenever I boot Ubuntu, I get a message that it cannot mount my windows partition, and I can choose to either wait, skip or manually mount. When I try to enter my Windows partition through Nautilus I get a message saying that this partition is…
yotamoo
  • 4,259
161
votes
5 answers

What is the difference between Hibernate and Suspend

Logout, Restart and Shutdown are all self explanatory to me. What are the differences between Suspend and Hibernate on the shutdown menu?
127
votes
8 answers

How to enable the hibernate option in Ubuntu 20.04?

I tried different options to enable hibernation in Ubuntu 20.04 but nothing is working. How can I enable the hibernate option in Ubuntu 20.04?
Rajesh
  • 1,271
126
votes
6 answers

Where is the suspend/hibernate button in GNOME Shell?

In 17.04 I could suspend\hibernate from the power off menu button. I can't find how to do this in Ubuntu 17.10 GNOME Shell.
Kobi T
  • 1,969
  • 4
  • 22
  • 26
118
votes
11 answers

How can I hibernate on Ubuntu 16.04?

How should I successfully hibernate Ubuntu 16.04? I've tried almost every solution on the web but non of them was actually helpful. I found my problem almost completely similar to this one
Mahyar
  • 1,281
77
votes
10 answers

How to go automatically from Suspend into Hibernate?

Is it possible to make Ubuntu go into Hibernate state from Suspend, aka "Suspend Sedation"? What I am looking for is this: When I close the lid, the laptop is put into Suspend. Then, after a pre-determined time (even if the battery is going strong)…
71
votes
1 answer

swap partition vs swap file

I was reading the new changes with Ubuntu 17.04 and one caught my eye which was moving from the typical swap partition model to a new swap file model for new installs. Are there benefits for using this as opposed to a swap partition, maybe related…
Luis Alvarado
  • 216,643
71
votes
2 answers

How do I increase swapfile in Ubuntu 18.04?

I have laptop with 8 GB RAM and 1TB HDD. I have swapfile which is 2 GB (Ubuntu 18.04 uses a swapfile instead of a separate swap partition by default) and I want to increase it to use hibernation. I want to increase it from 2 GB to 16 GB. Here is a…
Miroslav
  • 999
69
votes
5 answers

Automatically sleep and wake-up at specific times

How can I hibernate or sleep my Ubuntu 10.10 desktop and have it "wake up" the next day? I have seen software that can do this on windows, so it can't be hard on Ubuntu!
drnessie
  • 1,301
53
votes
4 answers

Hibernation is still missing from menu in 13.10 after enabling via polkit. How to enable?

I know that since 12.04, we need to add a policykit rule to enable hibernation (see question How to enable hibernation? and the Official Documentation). I can successfully bring my laptop into hibernation mode with sudo pm-hibernate or sudo s2disk,…
LiveWireBT
  • 29,597
53
votes
3 answers

Enable Hibernate in Ubuntu 18.04 LTS

How can I set Hibernation in Ubuntu 18.04 LTS (laptop)? When I open the Power option > When the Power Button is pressed, I just see the following options: Suspend Power OFF Nothing But does not show Hibernate.
Rodolfho
  • 643
51
votes
6 answers

Hibernate and resume from a swap file

I have configured a new Ubuntu installation in a Notebook to use a swap file, instead of using a swap partition. By default is not possible to get Ubuntu to hibernate using a swap file, so I tried this tutorial, but it is specific to grub1, and…
tfmoraes
  • 534
50
votes
8 answers

How to prevent computer from automatically sleeping and/or hibernating?

I'm running Ubuntu 12.04, and my laptop* won't wake from sleep/suspend/hibernate. (Is sleep the same thing as suspend?) I'm not even sure which of these things it's doing. When I am done working for the day, I lock my screen (Control-Alt-L). When I…
1
2 3
72 73