Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Every time I use some external device (pen-drive or external hdd) on my desktop, after some idle time my Windows 7 put it into sleep state, turning it off. Sometimes it sleeps and dont come back. There is a way to configure Windows to avoid the sleeping of my external device?

share|improve this question
I think that the advanced power option is working. – Diogo Jul 7 '11 at 13:10
@KCotreau: Can you post it as an answear??? It solved my problem. Thanks – Diogo Jul 7 '11 at 14:11
up vote 7 down vote accepted

Go into the Power Options in Control Panel, then click on "Change Plan Settings" for your plan, then there should be an option "Change advanced power settings", then look under the "Hard Disk" and "USB Settings" areas.

This one may not be the actual answer, but set your "Turn off Hard Disk after" to never (set 0), but I think the real one is to set "USB selective suspend settings" to "disabled" at least when plugged in...but maybe also when on battery if you are using it that way when it happens.

share|improve this answer

Windows USB are set to be disabled if idle to save power, you can disable this function by going to

  • Control Panel
  • Device Manager
  • Universal Serial Bus controllers (expend this)

You should see a list of Generic USB Hub

Right click on each one of them and select Properties | Power Management and uncheck the Allow the computer to turn off this device to save power

share|improve this answer
It was already unchecked – Diogo Jul 7 '11 at 13:14

Try this piece of software: NosleepHD: It writes an empty file every minute.

share|improve this answer
Please read… for guidance on recommending software in an answer. – fixer1234 May 7 '15 at 3:03

I'm encountering the same issue (Windows 8.1) and none of the "power setting" solutions worked for me.

I ended up playing a movie file, an audio file... anything that cause regular accesses to the disk.

For less overhead, it should be feasible to write some script that just regularly access the disk, before it goes to sleep.

edit: here is a quick script that does the job.

A blank file "mzt7dbs5ffxamzsj.txt" (just some random name) will be created (then regularly written to) at the same location as the batch file:

SET FILE=%~dp0mzt7dbs5ffxamzsj.txt

ECHO Timeout: %TIMEOUT% seconds
ECHO Script is running...


side notes:

  • I tried DIR but it didn't work as the results are cached. There should be some way that doesn't require to use a file.
  • Resource of interest: How to create empty text file from a batch file?
  • Debugging was easy as my drive spins down every 40 seconds >_<
share|improve this answer

Your Answer


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.