How to turn off the screen without putting your Mac or PC to sleep

Keep a download or remote session running with the screen off: the Mac shortcut, the settings that stop sleep, caffeinate on battery and PowerToys Awake on Windows.

A big download, a render, a backup, a remote session: some jobs need the computer running and do not need the screen. Leaving the screen on wastes power and gets in the way; letting the machine sleep stops the job. What you want is the middle ground: turn the screen off without the computer going to sleep. Both Mac and Windows can do it with what they already include.

Turning the screen off is not sleep. With the display off, everything keeps running. In sleep, the machine stops: downloads, processes and connections are cut.

Summary

Screen off nowDo not sleep
Desktop Mac Control-Shift-Power, or pmset displaysleepnow Energy: “Prevent automatic sleeping when the display is off”
MacBook on power Same (the shortcut, only without Touch ID) Battery > Options: the same option, on power adapter
MacBook on battery Same caffeinate -i in Terminal, or an app
Windows 11 Short screen timeout in Settings Sleep set to Never, or PowerToys Awake

On a Mac

Step 1: turn the display off right now

Apple documents Control-Shift-Power button to put your displays to sleep. Note that it applies to built-in keyboards without Touch ID; on keyboards with Touch ID, that button locks the screen instead.

If your keyboard does not support the shortcut, Terminal does it on any Mac:

pmset displaysleepnow

The displays turn off at once, no administrator password needed. Touch the keyboard or mouse and they come back.

Step 2: keep the Mac from sleeping afterwards

Turning the display off is not enough if the Mac then falls asleep from inactivity. That lives in System Settings, in a different place depending on the model:

  • Desktop Mac: in Energy, turn on “Prevent automatic sleeping when the display is off”.
  • MacBook: in Battery > Options, turn on “Prevent automatic sleeping on power adapter when the display is off”. As the name says, it only applies while plugged in.

How long the display waits before turning off on its own is set in Lock Screen, with “Turn display off on battery when inactive” and its power adapter twin.

On battery: caffeinate

On a MacBook running on battery there is no checkbox to prevent sleep. That is where the caffeinate command, included with macOS, comes in:

caffeinate -i

The -i flag prevents idle sleep and still lets the display turn off, which is exactly what you want. It works while that Terminal window stays open; Control-C ends it. Combined with pmset displaysleepnow in another window, you get a black screen and a Mac that is awake. Every flag is in our caffeinate guide.

One limit no command changes: closing the lid puts a MacBook to sleep, unless it is plugged in with an external display (macOS’s closed-lid mode) or you use an app built for it, like Amphetamine. We compare those in Amphetamine alternatives.

On Windows 11

With system settings

Go to Settings > System > Power & battery > Screen, sleep, & hibernate timeouts. There are separate controls, each with a plugged in and an on battery value:

  • “Turn my screen off after”: set it short, for example 5 minutes.
  • “Make my device sleep after”: set it to Never while the job runs.

It works, with one catch: you changed your settings, and they stay that way until you remember to change them back.

With PowerToys Awake, without touching settings

Microsoft’s free PowerToys include Awake, which keeps the PC awake without modifying your power plan. And by default it does what you want: according to Microsoft’s documentation, with Awake active the displays still turn off even though the computer stays awake. Only if you turn on “Keep screen on” does it keep them lit. Close Awake and your normal behavior returns.

Before you walk away: lock it

A screen that is off is not a screen that is locked: anyone who moves the mouse gets your desktop. If you step away, lock it: Control-Command-Q on a Mac, Windows key + L on Windows. On Windows, PowerToys Awake keeps the PC awake while the session is locked.

The one-click way: Keep Awake

Disclosure: this one is ours. Keep Awake is built into Webstarted Toolbox, a free menu bar app for macOS 12 and later and Windows 10 and later, and it puts both steps in one place:

  • Keeps the machine awake for as long as you choose: 30 minutes to 8 hours, any other length or a clock time with “Other…”, or until you turn it off. When time is up, everything goes back to your normal settings.
  • Screens: “Turn off”: after 5, 10, 15 or 30 minutes without keyboard or mouse, it warns for 30 seconds and turns the screens off. The computer stays awake.
  • “Turn screens off now”, once it is on, if you do not want to wait.
  • Same on Mac and Windows, no Terminal and no power settings to restore. On the Mac it uses the same caffeinate and pmset displaysleepnow described above.

It can also lock for you: choose “Turn off and lock” under Screens and it locks right before the screens go dark, while the computer stays awake. The button then reads “Lock and turn screens off”. Leaving the machine working while you are away has its own guide: keep your computer awake while you are away. What it does not do: keep a MacBook awake with the lid closed on battery.

Sources

Get Webstarted Toolbox

Keep Awake comes built into Toolbox: free, no account, macOS 12 and later and Windows 10 and later.

Free beta · macOS · Windows (x64) · Signed & notarized · No account required