我最近升级到Ubuntu 12.04 LTS
了CentOS 6.5
.这是一台台式电脑(非服务器),我想在一段时间不活动后休眠/关闭电源。
我的部分中有以下设置Power Management
,但这些设置不起作用,无论电脑闲置多久,它都会保持完全开机。睡眠功能正在使用,Ubuntu
我是否在某处缺少设置?
[root@spaceship ~]# lshal |grep suspen
org.freedesktop.Hal.Device.SystemPowerManagement.method_execpaths = 'hal- system-power-suspend', 'hal-system-power-suspend-hybrid', 'hal-system-power-hibernate', 'hal-system-power-shutdown', 'hal-system-power-reboot', hal-system-power-set-power-save'} (string list)
power_management.can_suspend = true (bool)
power_management.can_suspend_hybrid = false (bool)
power_management.can_suspend_to_disk = true (bool)
power_management.can_suspend_to_ram = true (bool)
我发现以下命令确实可以挂起,但计算机仍然不会因不活动而挂起或休眠:
To suspend to ram:
echo mem > /sys/power/state
To suspend to disk:
echo disk > /sys/power/state