I recently upgraded to Windows 8.1. Unfortunately, my NIC prevents the system from automatically entering Hibernate (if I disable/unplug it the system sleeps properly). To work around this, I thought I would use a Scheduled Task to run shutdown /h after x minutes of inactivity (probably an hour).
I set my task's trigger to be an hourly check indefinitely.
I set the action to be shutdown /h
I set the conditions to be:
- Start the task only if the computer is idle for: 1 hour (checked)
- Wait for idle for: Do not wait
The problem I have found is that the task runs if the computer has been idle for only four minutes as per the Task Idle Conditions states (http://msdn.microsoft.com/en-us/library/windows/desktop/aa383561%28v=vs.85%29.aspx). In my mind I should leave the computer alone, the hour ticks over and the task is initiated. It should then check to see how long the system has been idle for:
- >= 1 hour? Run the task
- < 1 hour? Do nothing until the next hour
What seems to be happening is it is checking for an idle state and running the task, even if the computer has only been idle for the minimum four minutes.
Has anyone else found this issue? Are there any ideas on how I can fix this? My next idea is to write a batch file to sleep for an hour and then hibernate and to have the task cancel the batch process when the system is no longer idle. Seems like it could work.
Thanks in advance.