hibernate-ram

smartly puts your computer to sleep (suspend to RAM or disk)

Install

All systems
curl cmd.cat/hibernate-ram.sh
Debian Debian
apt-get install hibernate
Ubuntu
apt-get install hibernate
image/svg+xml Kali Linux
apt-get install hibernate
Windows (WSL2)
sudo apt-get update sudo apt-get install hibernate
Raspbian
apt-get install hibernate

hibernate

smartly puts your computer to sleep (suspend to RAM or disk)

The hibernate script helps you in putting your computer to sleep, using one of the various methods available in the kernel. Hibernate can take care of loading and unloading modules, provides various hacks needed to get some video cards to resume properly under X, can optionally restart networking and system services, and basically do whatever else you ask it. It can be extended by writing new "scriptlets" which run at different points during the suspend process. Currently the script supports all suspend mechanisms available through the /sys/power/state interface (including ACPI suspend and the in-kernel software suspend), as well as TuxOnIce.