Does a Mac Keep Running With the Screen Off?

Yes, as long as the Mac itself hasn't gone to sleep. Turning the display off doesn't stop apps, uploads or renders. But the system can sleep soon after the display, so a plugged-in Mac needs "Prevent automatic sleeping" turned on, in Battery > Options on a MacBook or in Energy on a desktop. On battery, a MacBook still sleeps after the display goes off, and the job waits until it wakes.

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 offDoes the job keep running?
Plugged in, setting onYes
Plugged in, setting offUntil the system sleeps
MacBook on batteryUntil the system sleeps
MacBook lid closed, no external displayNo, closing the lid sleeps it
Note
Some apps ask macOS to stay awake while they work, and some don't. To see which apps are holding the Mac awake right now, run 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.

Awake while the job runs, asleep after it ends. Shake It On is $9.99 once.

Frequently Asked Questions

Will a Mac finish an upload with the display off?
Yes, while the system stays awake. On a plugged-in Mac, turn on "Prevent automatic sleeping" so it doesn't sleep soon after the screen goes dark. On battery, a MacBook sleeps and the upload stops until it wakes.
Does a Mac keep rendering when the screen turns off?
It does until the system sleeps. Some apps ask macOS to stay awake during a render and some don't. Run pmset -g assertions in Terminal during the job to see whether yours is on the list.
Does "Prevent automatic sleeping" work on battery?
No. On a MacBook the setting is "Prevent automatic sleeping on power adapter when the display is off," so it only applies while the Mac is plugged in.
Can Shake It On keep the Mac running with the screen off?
Not in the current version (1.0.7). It keeps the Mac awake by moving the cursor, so the screen stays on too. An "Allow display to sleep" option is coming in the next update.
Keep your Mac awake the easy way.
Shake It On lives in your menu bar and uses organic mouse movement to prevent sleep. Set it once and forget it.
One-time purchase. No subscription. Free updates forever.
Lifetime license · macOS 14+
Apple Pay, Google Pay or card. Your download starts right after payment, and you can re-download anytime with your purchase email.