Questions tagged [hibernate]

aka Suspend-to-disk.

Save OS state and memory contentsto storage, resume your session later. Similar to 'standby'/'suspend-to-RAM', but doesn't require host to be powered.

226 questions
34
votes
11 answers

Screen corruption after hibernate — Is there another way to refresh the X11 display?

When I restore from hibernate the screen is often corrupted. I suspect the graphics memory is not being saved. Suspend-to-ram works fine otherwise. It also looks like the font-cache is corrupted, as all letters are corrupted consistently. The effect…
ctrl-alt-delor
  • 27,473
  • 9
  • 58
  • 102
27
votes
1 answer

How does the kernel know it's resuming from hibernation, not booting?

When a Linux system hibernates and resumes from hibernation, I think that the kernel needs to know that it's resuming, not booting. Otherwise, the kernel will start the usual boot process, and will not load the swapped data. How does the kernel know…
user356126
  • 599
  • 4
  • 11
23
votes
2 answers

How to run systemd user service to trigger on sleep (aka. suspend, hibernate)?

Based on various sources I have cobbled together ~/.config/systemd/user/screenlock.service: [Unit] Description=Lock X session Before=sleep.target [Service] Environment=DISPLAY=:0 ExecStart=/usr/bin/xautolock…
l0b0
  • 50,672
  • 41
  • 197
  • 360
20
votes
3 answers

How to properly lock desktop when hibernating?

If I lock the screen, hibernate by closing the laptop lid, open the laptop lid and press the power button, the screen will just show a black surface and I can start typing the password immediately. If I don't lock the screen before hibernating, wait…
l0b0
  • 50,672
  • 41
  • 197
  • 360
15
votes
1 answer

Guide on how to enable hibernation on Linux Mint 20 Cinnamon (Ubuntu 20) and prevent unwanted wakeups

How can I enable hibernation on Linux Mint 20 Cinnamon (Ubuntu 20) and prevent unwanted wakeups?
Texno
  • 171
  • 1
  • 1
  • 5
12
votes
1 answer

What happens to data in swap when your computer hibernates?

When a computer goes into hibernation mode, it saves the contents of the RAM into the swap space so that it can resume exactly where it left off when it powers back on. So, what if you are currently using more memory than you have RAM. In this…
David Oneill
  • 1,198
  • 3
  • 13
  • 21
10
votes
5 answers

hibernate to disk not restoring, but suspend to ram is working

I have Debian 6, I have also seen this under Ubuntu (can not remember how I fixed it). I can hibernate, but when I switch on the system cold boots (it does not restore previous session). Note suspend works fine. Have looked in…
ctrl-alt-delor
  • 27,473
  • 9
  • 58
  • 102
10
votes
7 answers

Hibernation resume fail on linux kernel 4.9.0, Debian 9

I recently upgraded my kernel from 3.16.4 (Debian jessie) to 4.9.0 (Debian stretch). Everything was fine, until I tried to "Hibernate" (suspend to disk). When I use Hibernate option in LXDE, it appears to hibernate. I can hear the disk spindle…
Enginecrafter77
  • 345
  • 3
  • 11
9
votes
2 answers

Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7

Few days back, I ran dmesg on my terminal to see this line Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7 Sometimes, as in the image below [attached], the kernel ring buffer only prints this line repeatedly! What is…
SHERLOCK
  • 115
  • 1
  • 1
  • 6
9
votes
1 answer

Is hybrid-sleep effective in case of battery drain (restoring session and open programs)?

I think that Sleep/Suspend to RAM is just saving session to RAM, therefore entering sleep and restoring very quickly, but in case of total battery drain the session is lost as the machine shuts down by power failure. In Hibernation, the session…
user32012
9
votes
3 answers

Samsung Ultra book won't wake up after hibernate and suspend on Crunchbang

I've been struggling for a few hours to get suspend and hibernate working on my Samsung ATIV BOOK 9 Lite. When I try to resume the screen power led goes on, but screen stays black. The capslock led doesn't react when pressing the capslock key, so…
OrangeTux
  • 1,053
  • 2
  • 16
  • 26
8
votes
1 answer

Linux Mint: Hibernate does not work

I have tried hibernate multiple times on my Linux Mint 14. It does not seem to work. I have added some log which I think may be useful. Can someone help me diagnose the problem? laptop model: I: TOSHIBA Satellite R630/Portable PC, BIOS Version…
rag
  • 1,246
  • 2
  • 19
  • 31
8
votes
3 answers

Hibernation not working on Linux Mint 19

I'm currently on Linux Mint 19.1 and it uses swap file by default instead of swap partition. Everything including suspend works fine. But resume after hibernation is not working. I have following configuration in my…
Basil K Y
  • 201
  • 2
  • 7
8
votes
2 answers

How to diagnose & fix Arch Linux not waking up from hibernation?

Some update in the meantime has solved this problem. This works again I spoke too soon. It turns out the system only locks up if power is connected. So it's related to power handling, but not in any way I can detect. The workaround is to unplug…
l0b0
  • 50,672
  • 41
  • 197
  • 360
8
votes
2 answers

A way for saving running state of a program

I have a program that will perform a lengthy calculation which may take several days to be completed. Is there a way to save the program's running state; so I will be able to turn off the computer and run the program from a saved state. Or if the…
Minimus Heximus
  • 2,377
  • 6
  • 24
  • 33
1
2 3
15 16