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.

Is there a way I can disable SuperFetch whenever my Windows 7 laptop is running on battery power, and reenable it when the laptop is plugged in to AC power?

share|improve this question
2  
Can you clarify what you mean? Start/stop the Superfetch service? Surely a side-effect of SuperFetch is improved battery life, because frequently used software is in memory and doesn't need to paged-in from the hard disk? –  sblair Sep 22 '11 at 19:23
    
Although, if you boot the laptop with SuperFetch off, it might use less battery initially. –  sblair Sep 22 '11 at 19:26
    
Disabling Superfetch doesn't empty out the cache that it has already loaded, but it stops it from spending more energy loading it further. There should be no energy savings from loading software before it's needed, but there should be some waste when it guesses wrong. On AC power, I want the computer to spend free cycles loading stuff it thinks I might need off the disk. On battery power, I don't want it spending energy doing these things. –  Michael Hoffman Sep 22 '11 at 20:55
add comment

2 Answers

up vote 1 down vote accepted

You could write a service to detect when the power state changes and stop/start the service yourself. http://msdn.microsoft.com/en-us/library/bb968807%28v=VS.85%29.aspx This could be extended to other services you don't like (Indexing Service).

You could change the service to Manual start and have your application decide at boot time whether to start SuperFetch or not, so you don't get all the costs of pre-loading without any of the benefit (if you stop the service after it has preloaded the apps).

share|improve this answer
add comment

As far as I know, this is not possible by windows. You can simply create a batch or powershell script that enables/disables the service and run it manually.

To stop the service

net stop Superfetch

To start it over

net start Superfetch

*You must run this as Administrator.

share|improve this answer
add comment

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.