pm-suspend 和 pm-suspend-hybrid 之间有什么区别?

pm-suspend 和 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

这与暂停不一样吗?

答案1

pm-suspend 基本上是关闭 CPU 但保持内存通电。这可以快速恢复,但如果电量耗尽,内存中的数据将丢失。混合挂起会将内存内容保存到磁盘,然后挂起,您可以像正常挂起一样从此唤醒,但是如果断电,您可以启动,机器将从磁盘重新加载保存的状态并恢复,就像传统的休眠恢复一样。

答案2

手册页 pm-action

    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.

我猜测这里的区别在于系统状态保存到磁盘(而不是 RAM),但系统不是完全关闭(如休眠状态)而是挂起。

答案3

与 pm-suspend 相比,我猜这里的区别在于系统状态保存到磁盘和 RAM - 两者,但系统并未完全关闭(如休眠状态)而是挂起。

然后恢复:
1. 如果没有耗尽电量 - 从 RAM 恢复
2. 如果耗尽电量 - 从磁盘恢复

答案4

艾伯特,

挂起是一种“暖恢复”,意味着系统仍然“活跃”,只是“睁着一只眼睛”打盹,用常用的短语来说,而休眠时系统完全关闭,并具有“不要打扰我客房服务人员”的心态

相关内容