These commands can be used to put the machine in a sleep state. The precise way how this
is done can be influenced by installing executables and configuration snippets. For some
options external programs are needed.
These commands will usually be called by UPower or hald when triggered to do so by a
program in a desktop session such as gnome-power-manager. Calling them from the command
line is also possible, but it is not guaranteed that all programs in your desktop session
keep working as expected.
pm-suspend
During suspend most devices are shutdown, and system state is saved in RAM. The system
still requires power in this state. Most modern systems require 3 to 5 seconds to
enter and leave suspend, and most laptops can stay in suspend mode for 1 to 3 days
before exhausting their battery.
pm-hibernate
During hibernate the system is fully powered off, and system state is saved to disk.
The system does not require power, and can stay in hibernate mode indefinitely. Most
modern systems require 15 to 45 seconds to enter and leave hibernate, and entering and
leaving hibernate takes longer when you have more memory.
pm-suspend-hybrid
Hybrid-suspend is the process where the system does everything it needs to hibernate,
but suspends instead of shutting down. This means that your computer can wake up
quicker than for normal hibernation if you do not run out of power, and you can resume
even if you run out of power. s2both(8) is an hybrid-suspend implementation.
它被称为“会话管理”
不在默认桌面中
但是您可以为此使用Linux 窗口会话管理器或gnome 的Gnome Window 会话管理器扩展。您将在 Gnome Shell 顶部栏上获得一个指示器,您可以在其中保存和恢复会话。从第二个链接安装(第一个有类似的设置):
它没有关闭,无论如何看一下以下命令:
从手册页: