Skip to content
86% off$349 $48.86code BF2026

Guides

Keep Your Mac Awake but Let the Screen Sleep or Saver Run

Keep your Mac awake while the display sleeps or the screen saver runs: use caffeinate -i or turn off Glowmoth's Keep the display on, with steps and checks.

GuideUpdated 6 min read

On this page

You want downloads, builds or a long job to keep running, but your tool keeps the screen lit and the screen saver never starts. Typical wording: "Keep Awake means not Screen Saver?" or "allow display sleep without locking."

Why the screen never turns off

macOS has two kinds of idle-sleep block:

  • PreventUserIdleSystemSleep keeps the system awake while the display can still sleep.
  • PreventUserIdleDisplaySleep keeps the display on, which also keeps the system awake.

While the display block is held, the display never counts as idle, so it never dims and the screen saver never starts.

Many keep-awake tools take the display kind by default. People report that Claude Desktop's Keep awake runs caffeinate -d and that users asked for -i instead (a request filed in March 2026 that was closed as not planned). Users of other keep-awake apps report the same complaint about the screen saver. These are user reports, so check the current behavior of any tool you rely on.

Method 1: caffeinate -i (built in)

caffeinate ships with macOS. The -i flag prevents idle system sleep only, so the display follows your normal macOS timers.

bash
caffeinate -i

The Mac stays awake until you press Control-C or close the Terminal window. Nothing is changed permanently, so there is nothing to undo.

Useful variations:

bash
caffeinate -i -t 3600

Stays awake for 3600 seconds (1 hour), then exits.

bash
caffeinate -i make

Stays awake while make runs, then exits. Replace make with your own command.

bash
caffeinate -i -w 12345

Stays awake until the process with ID 12345 exits.

Avoid -d: it is the flag that keeps the display on. For every flag, see caffeinate command on Mac.

caffeinate has no menu bar icon, no list of what is holding the Mac awake, and it stops when the Terminal session ends. That suits a one-off job and is awkward for daily use.

Method 2: Glowmoth with the display switch off

Glowmoth is a menu bar app that keeps the Mac awake and lets you choose whether the display is included. Your own session keeps the display on by default, so that is the switch to change.

Turn off Keep the display on

  1. Right-click the Glowmoth icon in the menu bar and choose Settings… (⌘,).
  2. Open the Sessions tab.
  3. Under Display, turn off Keep the display on. This sets the default for new sessions.
  4. Start a session: right-click the icon and pick a duration under Keep This Mac Awake, such as 1 Hour. Left-click opens the panel by default; its Keep Awake switch starts your default duration, which is Indefinitely unless you changed it.

With the switch off, Glowmoth blocks idle system sleep only. The display and screen saver follow your macOS timers.

To change a session that is already running, use Keep Display On in the right-click menu (a checkmark means on). In the panel it is the Keep Display On switch under Show More. With no session running, it sets the default for the next one.

Screen on while you work, screen saver when you leave

Keep Keep the display on enabled and add the idle option:

  1. In Settings, open the Sessions tab.
  2. Turn on Let the screen saver start when I'm away. It is off by default.
  3. Set After N min idle (1 to 120 minutes, default 10).

After that much keyboard and mouse idle time, Glowmoth drops from the display block to the system one. The Mac stays awake and only the display may sleep. When you return, it takes the display block again (it checks every 5 seconds while yielded).

Automatic reasons don't hold the display

When Glowmoth keeps your Mac awake because an app is running, a process is running, a folder is busy, a coding agent is working or a scheduled run is active, it holds the system only.

The exceptions are a rule whose own Keep the display on switch is on (off by default), a command-line lease or run started with --display, a URL with display=1, and a Shortcuts start with Keep Display On.

Command line, URL and Shortcuts

If you install the glowmoth tool (Settings > Advanced > Command Line > Install), you can state the display choice explicitly:

bash
glowmoth for 2h --no-display

This keeps the Mac awake for 2 hours without holding the display. glowmoth on --no-display and glowmoth until 18:00 --no-display work the same way. If glowmoth isn't found after installing, add ~/.local/bin to your shell's PATH.

For the URL scheme, add display=0:

bash
open --background 'glowmoth://start?minutes=30&display=0'

In Shortcuts, the Start Keeping Awake action has a Keep Display On parameter.

Which method to use

SituationUse
One long command or a quick jobcaffeinate -i <command>
A fixed time, such as 2 hourscaffeinate -i -t 7200, or Glowmoth 2 Hours with the display switch off
Daily use with menu bar controlGlowmoth
Stay awake while an app, download or coding agent runsGlowmoth automatic reasons (system-only)
Screen on while you work, saver when you leaveGlowmoth with Let the screen saver start when I'm away

Lungo, a $4 one-time app (as of November 2026; macOS 26 or later), also lists an Allow display to sleep option. Glowmoth runs on macOS 14 Sonoma or later.

Check what is holding the display

To list the sleep blocks on your Mac, run this read-only command:

bash
pmset -g assertions

PreventUserIdleDisplaySleep means something is holding the display on. PreventUserIdleSystemSleep means the system is held but the display is free. Glowmoth names its own block, for example "Glowmoth: Session for 1 hour".

You can also open the Glowmoth panel, choose Show More and read Also Keeping This Mac Awake. It lists other apps and what they are doing, including "keeping the display on". See what's keeping your Mac awake.

Why the screen still doesn't turn off

CauseSymptomFix
macOS display timer is NeverScreen stays lit even with a system-only blockSearch System Settings for "Lock Screen" and set a display-off time
Screen saver starts later than display-offScreen goes dark, saver never showsSearch for "Screen Saver"; make its start shorter than display-off
Another app holds a display blockpmset -g assertions shows PreventUserIdleDisplaySleepQuit that app; Glowmoth can't end another app's block
caffeinate -d runningSame assertion in pmsetStop it and use -i
Running session still has display onSettings switch is off but screen stays litCheck Keep Display On in the right-click menu
Glowmoth holds nothingMac sleepsSee the checklist below

Checklist: is Glowmoth holding the Mac at all?

  • The panel doesn't say "Paused" (low battery below the floor, default 20%, or heat).
  • The trial hasn't ended and the license verifies.
  • You are not in Manual mode if you rely on automatic reasons; Manual holds only your own session.
  • You didn't use Stop Everything, which suspends automatic reasons until your next session.

What Glowmoth doesn't do

There is no "prevent screen lock" switch, no dimming mode, and no setting for how soon macOS locks after the display sleeps. Locking follows your macOS settings (search "Lock Screen"). Glowmoth only has the opposite option, End the session when the screen locks, which is off by default.

If nothing works

For Glowmoth, use the support page. For caffeinate or macOS timers, contact Apple Support. Include the output of pmset -g assertions and what you tried.

text
My Mac stays awake but the display never turns off / the screen saver never starts.
macOS version: 
Tool: Glowmoth (version) / caffeinate -i
"Keep the display on" is off: yes/no
Output of `pmset -g assertions` attached.
Display-off timer in System Settings: 

Common questions

Does caffeinate -i stop the screen saver?

No. It blocks idle system sleep only, so the screen saver starts on your normal macOS timer. -d is the flag that blocks the display from idling.

Will downloads and builds keep going when the display sleeps?

Yes, because the Mac itself stays awake. A closed laptop lid is a separate case: neither caffeinate -i nor a normal Glowmoth session keeps a MacBook awake with the lid closed. Glowmoth has an optional closed-lid mode, covered in keeping a MacBook awake with the lid closed.

Does Glowmoth keep the Mac awake on battery?

Yes, but by default it pauses below 20% battery and when macOS reports the Mac is running hot. See how to stop your Mac from going to sleep for the wider picture.

Glowmoth is part of MacSuite; you can try it free for 7 days. The display and screen lock docs cover every option.

Every app.
One purchase.