How to Keep Your Computer Awake During a Long Download
To keep your computer awake during a long download, the thing to prevent is sleep, not the screen turning off. A dark screen doesn't stop a download. A sleeping computer stops everything. The best fix is one that lasts exactly as long as the file: a temporary hold with an end time, not a power setting changed to Never and forgotten. Below you'll find the time math, the options for each system, and what to check when a download dies anyway.
The short version
| Your situation | What to do |
|---|---|
| Downloading in Chrome or Edge | Probably nothing. The browser already asks the system not to sleep. Keep the lid open and plug in. |
| A game launcher, torrent client, or other app | A temporary hold: PowerToys Awake on Windows, caffeinate on a Mac |
| Can't install anything or change settings | A visible naodorme.com tab on Black Screen, with a duration |
| An overnight download | Change the system sleep timer, and write down the old value |
Why downloads die: screen-off and sleep are two different things
Your computer runs two idle timers. The first turns off the display. The second puts the system to sleep. Microsoft describes sleep as a state that uses very little power and puts you instantly back where you left off. Back where you left off means nothing moved in the meantime, your download included.
Factory limits are short. On current Windows 11 defaults, a modern laptop sleeps after 3 minutes on battery and 5 minutes plugged in if nobody touches it. You start a 90 GB game, go make dinner, and come back to a download that stalled before you'd finished chopping the onion.
Two other things put a computer to sleep immediately, with no timer involved: closing the lid and pressing the power button. And on battery, Windows shuts the machine down by itself when the charge gets too low.
What your browser already does for you
Here's a detail most guides miss. In Chrome and Edge, a download protects itself. In the source code of Chromium, the engine behind both, every in-progress download opens a request to the system labeled "Download in progress," of a type that, per the code's own comments, prevents the system from sleeping on all platforms. The screen can go dark. The computer stays up until the file is done.
I read that in the code and haven't tested it on every system. Three caveats:
- It covers downloads made by the browser. Game launchers, torrent clients, and cloud-sync apps each do their own thing, and I haven't checked them one by one.
- I haven't verified Firefox or Safari.
- It doesn't protect against a closed lid or a dying battery.
First, figure out how long the download will take
Knowing the duration is what lets you use a hold that ends on time.
The ideal math: size in GB × 8,000 ÷ speed in Mbps = time in seconds.
| File | Actual speed | Ideal time |
|---|---|---|
| 10 GB | 50 Mbps | about 27 minutes |
| 50 GB | 100 Mbps | about 1 hour 7 minutes |
| 100 GB | 100 Mbps | about 2 hours 15 minutes |
| 100 GB | 50 Mbps | about 4 hours 30 minutes |
Use the speed the app shows while it's downloading, not the number on your internet bill. It's usually lower, and it moves. Many apps show MB/s, so multiply by 8 to get Mbps. Then pad the result by a third to a half.
Four ways to keep your computer awake during a long download
1. Windows: PowerToys Awake on a timer
PowerToys Awake is a free Microsoft utility that keeps a PC awake without touching the power plan. Choose Keep awake for a time interval and enter the duration you calculated.
It has a default that's ideal for downloads: it keeps the computer awake but still lets the display turn off, which is exactly what you want here. Microsoft's documentation notes that it won't block things you do yourself, like closing the lid or choosing Sleep.
2. Mac: the caffeinate command
Every Mac ships with caffeinate. In Terminal:
caffeinate -i -t 7200
The -i flag prevents idle sleep and -t sets the duration in seconds; 7200 is two hours. The display can still turn off. To hold the Mac awake only while a specific app is running, there's caffeinate -i -w followed by the app's process ID.
The equivalent setting lives in System Settings > Battery: "Prevent automatic sleeping on power adapter when the display is off." It's permanent, so remember to turn it back off.
3. Any system, nothing to install: a Black Screen tab
When you can't install a utility or change a setting, such as on a work or school machine, a page that holds a wake lock does the job from the browser. On NãoDorme:
- Start the download in whatever app you're using.
- Open naodorme.com/en in Chrome or Edge.
- Pick a duration: 15 minutes, 30 minutes, 1 hour, or 2 hours.
- Click Black Screen. The page goes full screen, turns dark, and asks the browser not to let the display turn off.
A wake lock is a screen lock, but in Chrome and Edge, Chromium's source notes that it also has the side effect of preventing the system from sleeping. The download carries on behind it, in another app or another window.
One rule has no exceptions: the NãoDorme tab has to stay visible. Switch tabs or minimize the window to peek at the progress bar, and the browser drops the lock. The page asks for it again when you come back to the tab.
4. Change the system sleep timer
For a download that will run all night, the system setting is the sturdiest option. On Windows 11, go to Settings > System > Power & battery > Screen, sleep, & hibernate timeouts and change Make my device sleep after. Leave the screen timer alone. Only sleep needs to change.
Write down the old value and restore it the next day. A laptop that never sleeps stays on every night from then on.
What I noticed using NãoDorme for this
- The duration starts on "No limit." Pick a time before you click the effect, or the computer stays awake until you come back.
- The longest timed option is 2 hours. For a bigger download, it's "No limit," and ending it is on you. Press Esc.
- When time runs out, Black Screen closes and the site's home page comes back. From then on the system's normal timers apply, and within minutes the computer sleeps. If the download isn't finished, it stops there. That's what the padding in the math is for.
- The site tells you when it can't hold the screen. The browser I tested in blocks the wake lock permission. The page showed a notice at the top, "Your browser didn't allow keeping the screen awake. The animation still runs, but change your screen timeout in the system settings," and the status on the home page changed to "Active (animation only)." If you see that, use one of the other three methods.
- Black Screen makes the screen dark, not off. That helps if you're sleeping in the same room. On an LCD it saves very little power.
Because my test browser blocks the permission, I couldn't confirm the computer staying awake there. Do a short dry run before you trust it with a multi-hour download: start it, leave the machine untouched for longer than its usual limit, and check that it's still on.
The download stopped anyway? What to check
The lid. A closed laptop sleeps on most setups. Leave it open.
The battery. Long downloads belong on wall power. On battery, the system shuts down when the charge gets very low, and power-saving modes let the browser refuse a wake lock.
The tab lost the foreground. Anything that hides the NãoDorme tab drops the lock.
The app paused itself. Game launchers and download managers have their own schedules, bandwidth limits, and pause rules. Check the app's settings before you blame the system.
The connection dropped. No keep-awake method fixes that. Many servers let a download resume where it left off, but don't assume it for big files. Check whether your app resumes.
What's actually holding the system awake. On Windows, an administrator Terminal shows it with powercfg /requests, which lists the programs asking to keep the display (DISPLAY) and the system (SYSTEM) on. If nothing is listed while your download runs, nothing is holding it, and the sleep timer is counting down.


