Related
Quick Links
Hibernating and sleeping is for bears and computers alike!
A sleep state is very similar, though the power will not be completely taken away.
Such wake events can usually be configured from within the BIOS.
These levels are built into the kernel and the availability of them depend on the operating system being used.
The levels areSuspend-To-Idle(aptly nameds2idleorfreeze), Suspend-To-Memory (memor more correctlydeep) and Suspend-To-Disk (disk).
Your system may also support a Standby (
or
).
Desktops Failing to Present Hibernate or Sleep?
You may also see
or your system.
Thefreezeoption, when set, will initiate a lightweight software-based-only sleep state for your system.
Shutterstock/Moriz
Hopefully your operating system and hardware support other states also.
Changing power related options in the BIOS can also help.
Which option is used (Suspend-To-Idle or Suspend-To-RAM) depends on the setting of the/sys/power/mem_sleepfile.
Suspend-To-RAM, which is set by usingdeepin/sys/power/mem_sleep) rather than the Suspend-To-Idle mode as signified bys2idle.
This options allows us to Suspend-To-Disk.
Let’s see how to do this, safely.
Why the mention of safety?
Your desktop, unlocked, is still unlocked!
Implementation of this will depend on the operating system, as well as the chosen Desktop/GUI.
For this guide, we will use Linux Mint 20 running xcfe.
We simply invoicesleep 0.1as a dummy command.
Next we sleep for 3 seconds usingsleep 3.
Changing this script to Suspend-To-RAM/Memory is now easy: simply swap the worddisktomem.
Ifdeepis already selected as the current default, it will show as[deep].
Both servers and desktops alike can be hibernated.
Disclaimer: No computers where hurt in the various experiments made for this guide :)