Change Monitor Timeout from Command Line - Quick Tip

Adjusting Monitor Timeout via Command Line
A common frustration for many users is having their monitor automatically power down during video playback. Fortunately, altering the monitor timeout settings through the command line is a straightforward process.
The powercfg utility provides a means to modify power configurations directly from the command line. This includes the ability to adjust the duration before the monitor enters sleep mode, which is the focus of this guide.
Using the powercfg Command
The basic command syntax for changing the monitor timeout is as follows:
powercfg -Change -monitor-timeout-ac 120
Executing this command will configure the monitor to remain active for 120 minutes when the system is connected to AC power.
To modify the timeout setting specifically for battery power operation, simply append the -dc flag to the command.
- For AC power:
powercfg -Change -monitor-timeout-ac 120 - For battery power:
powercfg -Change -monitor-timeout-dc 120
Remember that the number following -monitor-timeout-ac or -monitor-timeout-dc represents the timeout duration in minutes. Adjust this value to your preferred setting.
By utilizing the powercfg utility, you can easily customize your monitor's behavior to prevent unwanted interruptions during media consumption or other activities.