我知道联想 ThinkPad X1 超极本支持休眠功能,但我不知道如何让它工作。我已经创建了一个交换分区。我尝试运行sudo pm-hibernate
,但没有效果。
编辑.....................
upower -d | grep can-hibernate
输出
can-hibernate: no
为了
free-m
输出
total used free shared buffers cached
Mem: 7687 3399 4287 0 88 1936
-/+ buffers/cache: 1375 6312
Swap: 7887 0 7887
答案1
您想暂停到 RAM 还是磁盘?(暂停到 RAM 速度更快并且只需要为 RAM 供电)?
更多细节:
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.
笔记:还有一种介于挂起到 RAM 和磁盘之间的混合模式。
查找您的笔记本电脑支持哪些状态,例如(支持内存和磁盘):
cat /sys/power/state
mem disk
无论如何,您都可以从命令行执行此操作:
选项1:使用pm-utils
(需要安装软件包并且用户需要有执行暂停的权限)
暂停至 RAM:sudo pm-suspend
休眠(至磁盘):sudo pm-hibernate
选项 2:直接更改sysfs
(需要root权限)
暂停至 RAM:echo "mem" > /sys/power/state
休眠(至磁盘):echo "disk" > /sys/power/state
参考系统电源管理状态