The screen and the Mac sleep separately
Turning the display off only darkens the screen. Apps keep working, uploads keep sending and a render keeps rendering. System sleep is the one that stops all of it.
The trouble is that one tends to follow the other. Unless you tell it otherwise, the system can go to sleep soon after the display does, so a job that looked safe stops a few minutes after the screen went dark.
The setting that keeps a plugged-in Mac running
On a MacBook: open System Settings, click Battery, click Options, and turn on "Prevent automatic sleeping on power adapter when the display is off."
On an iMac, Mac mini or Mac Studio: open System Settings, click Energy, and turn on "Prevent automatic sleeping when the display is off."
Apple describes the MacBook version as preventing your Mac from sleeping when it's plugged in and its display is off. It does nothing for a MacBook on battery. It's also on all the time, for every day you leave the Mac idle, until you turn it off again. Apple warns that preventing sleep may increase power use.
Will it finish? Upload, render, download or backup
| With the screen off | Does the job keep running? |
|---|---|
| Plugged in, setting on | Yes |
| Plugged in, setting off | Until the system sleeps |
| MacBook on battery | Until the system sleeps |
| MacBook lid closed, no external display | No, closing the lid sleeps it |
pmset -g assertions in Terminal during the job. If your app isn't listed, don't count on it to keep the Mac up.If you're picking between a dark screen and a locked one, locking doesn't change any of this. A locked Mac keeps running and still follows its timers, as Mac sleep vs lock screen explains. All the switches involved are in Mac sleep settings explained.
Keep it awake only while the job runs
Shake It On covers the part the setting can't: it keeps the Mac awake only while something is going on, then lets it sleep. It moves the cursor slightly, and you choose the condition under Only Shake If:
- Renders and exports: "CPU is above threshold," with a threshold from 10% to 100%. When the job ends and the CPU settles, the shaking stops.
- Uploads: "App is open matching" with the name of the app doing the upload.
- Copying to a drive: "External disk connected."
Add "On battery" under Paused When so a MacBook away from power can still sleep. If you'll lock the Mac during the job, turn off "Display is off or locked" in the same section, since it's on by default.
One limit to plan around: moving the cursor keeps the screen on too. In the current version (1.0.7) you get a running Mac and a lit display. An "Allow display to sleep" option is coming in the next update.