It drives me crazy when my monitors turn off while I’m watching a movie. If you want to quickly change the monitor timeout using the command line, it’s actually pretty simple.
当我在看电影时关闭监视器时,这使我发疯。 如果您想使用命令行快速更改监视器超时,则实际上非常简单。
The powercfg utility can be used on the command line to change power configuration settings, including the monitor timeout, which is what we’ll use here.
可以在命令行上使用powercfg实用程序来更改电源配置设置,包括监视器超时,这就是我们将在此处使用的功能。
The command syntax:
命令语法:
powercfg -Change -monitor-timeout-ac 120
powercfg-更改-monitor-timeout-ac 120
This will change the monitor setting to stay on for 120 minutes while on AC power. You can use -dc at the end to change the setting for when you are on battery power.
这将更改显示器设置,使其在使用交流电源时可保持开启120分钟。 您可以在最后使用-dc来更改电池供电时的设置。
翻译自: https://www.howtogeek.com/howto/windows-vista/quick-tip-change-monitor-timeout-from-command-line/