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:

1067 questions
484
votes
13 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
  • 4,843
  • 3
  • 16
  • 6
433
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,727
  • 10
  • 34
  • 46
382
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,199
  • 5
  • 17
  • 10
147
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?
Richard Holloway
  • 29,974
  • 7
  • 52
  • 57
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,929
  • 4
  • 19
  • 25
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
  • 2
  • 9
  • 6
115
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,151
  • 2
  • 6
  • 3
75
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)…
Sergey Stadnik
  • 1,175
  • 1
  • 9
  • 10
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
  • 209,003
  • 167
  • 543
  • 707
67
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
  • 959
  • 2
  • 10
  • 13
65
votes
4 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,241
  • 4
  • 13
  • 18
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
  • 28,405
  • 26
  • 107
  • 221
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
  • 1
  • 5
  • 4
49
votes
2 answers

How to activate hibernation in 16.04.1 ? (systemd)

I have a fresh install of 16.04.1 on a Lenovo T450s that always worked fine with respect to suspend/hibernate on Ubuntu (previous version I used was 14.04.5). Swap is comfortably bigger than RAM on this install. As I am used to now, after the…
Marc
  • 1,252
  • 1
  • 10
  • 11
49
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
  • 514
  • 1
  • 5
  • 6
1
2 3
71 72