pm-suspend-hybrid 有什么作用?

pm-suspend-hybrid 有什么作用?

man

   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.

从描述来看,我仍然不明白最后一个与前两个有何关联和不同。例如,它可以在没电的情况下工作,然后它不是也保存到磁盘上,因此与第二个相同吗?

谢谢。

答案1

手册说明了一切,pm-suspend-hybrid基本上同时执行以下操作:suspendhibernate,即将系统状态保存到 RAM到磁盘。pm-suspend-hybrid与仅当您的系统将经历断电时相同pm-hibernate,但如果挂起时始终存在电源,pm-suspend-hybrid则更像是pm-suspend因为系统将像 pure 中一样快地唤醒pm-suspend

事实上,您可以忘记前两种可能性并pm-suspend-hybrid一直使用。唯一的缺点是,将状态保存到 RAM 和磁盘显然要慢一些。

相关内容