Konsole
sudo pm-suspend àS3
sudo pm-hibernate àS4
sudo pm-suspend-hybrid àS3 and S4
附錄1: 檢測電腦支援的待命模式
測試是否支援 suspend 模式
$ pm-is-supported --suspend ; echo $?
$ pm-is-supported --suspend ; echo $?
測試是否支援 hibernate 模式
$ pm-is-supported --hibernate ; echo $?
$ pm-is-supported --hibernate ; echo $?
測試是否支援 suspend-hybrid 模式
$ pm-is-supported --suspend-hybrid ; echo $?
$ pm-is-supported --suspend-hybrid ; echo $?
以上結果 0 = 支援; 1 = 不支援
查看 ACPI 支援模式
$ cat /sys/power/state
$ cat /sys/power/state
standby
(S1) - 低電源待命, 回復速度最快, 新式電腦不再支援
mem (S3) - 只有記憶體供電, 回復速度次於 S1 模式
disk (S4) - 完全不供電, 回復速度最慢
mem (S3) - 只有記憶體供電, 回復速度次於 S1 模式
disk (S4) - 完全不供電, 回復速度最慢
附錄2: 直接變更 ACPI 狀態
S1 standby 待機模式
$ echo "standby" | sudo tee /sys/power/state
$ echo "standby" | sudo tee /sys/power/state
S3 suspend
to mem, 等同 sudo
pm-suspend
$ echo "mem" | sudo tee /sys/power/state
$ echo "mem" | sudo tee /sys/power/state
S4 suspend
to disk, 等同 sudo
pm-hibernate
$ echo "disk" | sudo tee /sys/power/state
$ echo "disk" | sudo tee /sys/power/state
在Linux下查看核心支持ACPI情况的方法如下:
# cat /proc/acpi/sleep
S0 S1 S3 S4 S5
Sleep, Suspend, Hibernate
# cat /proc/acpi/sleep
S0 S1 S3 S4 S5
Sleep, Suspend, Hibernate
pm-suspend (aka sleep.
Fast wake.)
pm-hibernate (save most power. Slow wake.)
pm-suspend-hybrid (a combination of sleep and hibernate.)
pm-is-supported (test which is supported)
pm-powersave
Shutdown & Restart
You need to be root. So, add sudo in front.
Shutdown: shutdown -P 0
Restart: shutdown -r 0
pm-hibernate (save most power. Slow wake.)
pm-suspend-hybrid (a combination of sleep and hibernate.)
pm-is-supported (test which is supported)
pm-powersave
Shutdown & Restart
You need to be root. So, add sudo in front.
Shutdown: shutdown -P 0
Restart: shutdown -r 0
沒有留言:
張貼留言