答案1
这可以在 CMD 中完成,以管理员身份运行 CMD 并运行以下命令:
powercfg /更改“设置值” 0
下面您将看到不同设置的设置值。末尾的 0 表示触发前需要等待多少分钟,0 表示永不触发。
对于休眠状态将使用这个命令:
powercfg /Change hibernate-timeout-ac 0 or powercfg /Change hibernate-timeout-dc 0
/Change settingvalue
/x setting value
Modify one of the following settings in the current power scheme:
monitor-timeout-ac minutes
monitor-timeout-dc minutes
disk-timeout-ac minutes
disk-timeout-dc minutes
standby-timeout-ac minutes
standby-timeout-dc minutes
hibernate-timeout-ac minutes
hibernate-timeout-dc minutes
Setting any value to 0 will set the timeout=Never
AC settings are used when the system is on AC power. DC settings on battery power.
有关 powercfg 的更多文档看这里