Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm looking that there are some tasks that are embedded with Windows that runs when system goes to idle state (such as Scheduled Defrag, System Restore, DefenderScan and RegistryBackup).

However, even if I leave the system stopped for such as 3 or 4 minutes, I don't see any of there tasks start to running them job.

What are the criteria that Windows uses to put the system state on idle?

share|improve this question
    
You had accepted Mehrdad’s answer, but I don’t think it actually answered the question does it? Even in the original revision, you asked what criteria it uses to determine when the system is idle, which I interpret as meaning whether Windows examines mouse and keyboard input, CPU load, network activity, video rendering, etc. –  Synetech Oct 15 '13 at 17:49

2 Answers 2

up vote 5 down vote accepted

The SYSTEM_POWER_POLICY structure contains an IdleTimeout field and an IdleSensitivity field, each of which are as described as I've copied below:

IdleTimeout: The time that the level of system activity must remain below the idle detection threshold before the system idle timer expires, in seconds.

IdleSensitivity: The level of system activity that defines the threshold for idle detection, expressed as a percentage.

So it means as long as the system activity is below IdleSensitivity for at least a period of time equal to IdleTimeout, it is considered idle.

How you actually read/write those values without writing a program, I have no idea, sorry. :(

share|improve this answer

There's a DWORD in the registry at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SchedulingAgent\MinutesBeforeIdle. Its default value is 15.

There's also a command to force idle tasks to run:

rundll32.exe advapi32.dll,ProcessIdleTasks
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.