Disclaimer: The real situation is slightly different (useful command, higher times) but for describing or reproducing the issue this is sufficient.
I have
- configured Windows 10 so that it should turn off the screen after 2 minutes
- a task in the task scheduler
- that runs every 1 minute
- with action “run program”
- with program
cmd - with arguments
/c echo foo
The problem is, that the task in the task scheduler is preventing the screen to be turned off.
If I lower the screen-off time to 1 minute, then Windows manages to turn off the screen between the next run and the run after the next run of the scheduled task, right before the following run starts.
But with the 2 minutes screen-off time, the screen is never turned off.
If I lock the screen, then the screen-off works, even with the scheduled task running.
So my question is, why is that task preventing the screen-off to happen and how could I work-around it.