How to Keep Your Mac Screen On and Stop It Turning Off
Keep your Mac screen on: the display sleep setting, caffeinate -d in Terminal, screen saver and lock fixes, and how to keep it on only when you need it.
GuideUpdated 10 min read
On this page
To keep your Mac screen on, open System Settings, go to Lock Screen and set Turn display off when inactive to Never. On a laptop, set Turn display off on power adapter when inactive instead, and change the battery version too if you want. For a temporary fix that changes no settings, run caffeinate -d in Terminal. The display stays on until you press ⌃C (Control-C).
If the screen still goes dark, shows an animation or asks for your password, the cause is usually the screen saver or the lock setting. Those are separate from display sleep, and each has its own section below.
Why does my Mac screen turn off?
Three different things can end with "my screen went off," and each has its own setting:
| What you see | What it is | What triggers it | Where it's set |
|---|---|---|---|
| Screen dims, then goes black. Moving the mouse brings it back as you left it | Display sleep | No keyboard or mouse input for a set time | System Settings ▸ Lock Screen |
| An animation, clock or photos fill the screen | Screen saver | No input for a set time | System Settings ▸ Lock Screen (start time), Screen Saver (which one) |
| You have to enter your password or use Touch ID | Screen lock | The screen saver starting or the display turning off, plus a delay you choose. Also ⌃⌘Q (Control-Command-Q), a hot corner or closing the lid | System Settings ▸ Lock Screen |
The idle lock depends on the other two. If the display never sleeps and the screen saver never starts, the idle lock never triggers. On a laptop, the whole Mac usually goes to sleep soon after the display does.
How do I change when the display turns off?
The built-in setting is the right fix if you want the screen on all the time, or for much longer than it is now.
- Open System Settings.
- Type
Lock Screenin the search field and open Lock Screen. - On a desktop Mac, set Turn display off when inactive to a longer time or Never.
- On a laptop, set Turn display off on power adapter when inactive. Change Turn display off on battery when inactive too if you also want it on battery.
Labels can differ slightly between macOS versions, so searching for "Lock Screen" is the quickest route on Sonoma, Sequoia and Tahoe.
What this can't do: it's all or nothing. "Never" stays in place until you change it back, so a laptop left open on battery keeps the screen lit and drains the battery. If you only want the screen on during a call, a render or a slideshow, use one of the temporary methods below.
How do I keep the screen on from Terminal?
caffeinate -d: temporary, changes nothing
caffeinate is built into macOS. The -d flag stops the display from sleeping for as long as the command runs. Because the display stays on, the Mac stays awake too.
caffeinate -dKeeps the screen on until you press ⌃C or close the Terminal window.
caffeinate -d -t 3600Keeps the screen on for 3,600 seconds (one hour), then stops on its own.
caffeinate -d -w 4321Keeps the screen on until the process with ID 4321 exits. You can find a process ID (PID) in Activity Monitor.
caffeinate -d ./render.shRuns your script and keeps the screen on until it finishes.
Nothing in your settings changes, so there's nothing to undo. When caffeinate ends, your normal display timer applies again. If you only need the Mac awake and don't care about the screen, use -i instead of -d. Our caffeinate command guide covers every flag.
pmset: change the display timer itself
pmset changes the same display timer as System Settings. First note your current value, in minutes:
pmset -g | grep displaysleepShows the current display sleep time (read-only).
sudo pmset -c displaysleep 0Never turns the display off while on the power adapter. Asks for your administrator password.
To undo it, put back the number you noted (for example sudo pmset -c displaysleep 10) or change the menu in Lock Screen settings. Use -b for battery or -a for all power sources. The change stays until you reverse it, just like the System Settings route, so for a one-off caffeinate is usually the better choice.
How do I stop the screen saver or lock from kicking in?
Screen saver
- Open System Settings and search for
Lock Screen. - Set Start Screen Saver when inactive to Never or a longer time.
If the screen saver still appears, or the display goes black "at random," check Hot Corners. Open System Settings ▸ Desktop & Dock, scroll down and click Hot Corners…. A corner set to Start Screen Saver, Put Display to Sleep or Lock Screen fires whenever your pointer lands there.
Screen lock
The idle lock comes from Require password after screen saver begins or display is turned off in Lock Screen settings. You have two options:
- Keep the lock, avoid the trigger. Keep the display on and the screen saver off with any method on this page. The lock never fires because the events it waits for never happen.
- Lengthen the delay. Pick a longer delay in the same menu, so a short display sleep doesn't lock you out.
Setting the delay to Never removes the password prompt after the screen saver or display sleep. We wouldn't do that on a laptop or in a shared office. On a work Mac, your IT department may manage these settings, and then you can't change them.
Some locks have nothing to do with the display timer: ⌃⌘Q, closing the lid, a Lock Screen hot corner, and automatic log-out. To check automatic log-out, open System Settings ▸ Privacy & Security, click Advanced… at the bottom and look for Log out automatically after inactivity.
How do I keep the screen on only during a presentation or video?
Check whether your app already does it
Video players, slideshows and presentation apps usually hold the display on themselves while they play. To see what is holding the display right now, run:
pmset -g assertionsLists every process currently preventing sleep (read-only). Look for PreventUserIdleDisplaySleep next to the app's name.
If your app is listed while it plays, you don't need anything else. A paused video usually stops holding the display, so the screen can go off while you're paused. If your app isn't listed, use caffeinate -d or one of the options below.
For a set time, with Glowmoth
We make Glowmoth, a menu bar app for keeping a Mac awake. Its sessions keep the display on by default, and they end on their own:
- Right-click (or Control-click) the moth icon in the menu bar.
- Check that Keep Display On has a checkmark.
- Under Keep This Mac Awake, choose a duration such as 1 Hour, or Indefinitely. You can also choose Until ▸ a time such as "18:00 Today", or Custom….
While Glowmoth holds the display on, the screen saver doesn't start, so the idle lock doesn't trigger. Choose Stop in the same menu to end the session early. For a talk or a long video, these help:
- 5-minute warning. For timed sessions, a notification ("5 minutes of awake time left") with +30 Min and +1 Hour buttons is on by default.
- Countdown. Turn on Show countdown next to the icon in Settings ▸ General to see the time left in the menu bar (timed sessions only).
- End action. In Settings ▸ Sessions ▸ When a Session Ends, set Then to Turn Off the Display or Lock the Screen. It runs only when the session runs out on its own, not when you stop it.
- From Terminal. With the glowmoth command-line tool installed (Settings ▸ Advanced), run
glowmoth for 2h --display.
To see what else is holding your Mac awake without Terminal, open Glowmoth's panel and expand Show More. The Also Keeping This Mac Awake list names each app with a plain purpose such as "playing video" or "keeping the display on". The what's keeping my Mac awake docs explain it.
Automatically for one app or for meetings
A Glowmoth rule can keep the screen on whenever a condition is true, with no session to start:
- Right-click the moth icon, choose Settings… and open the Automation tab.
- Under Rules, click Add Rule ▸ Custom Rule… and give it a name.
- Click Add Condition and choose App Running (pick your presentation app, then Running or In Front). For calls, choose More ▸ Camera or Microphone in Use. For meetings, choose More ▸ Calendar Event in Progress.
- Turn on Keep the display on.
- Click Add Rule to save it.
Step 4 matters: without that switch, a rule keeps only the Mac awake and the display sleeps as usual. The Keep Awake While menu and the saved Apps, Processes and Folders lists have no display option at all. They keep the Mac awake, but the screen can still turn off.
Rules work only while Glowmoth is set to Automatic, which is the default. The calendar condition needs Calendars access and counts only timed events marked Busy, not all-day events. More detail is in the display and screen lock docs and the automatic rules docs.
What Glowmoth can't do: it has no switch that blocks the screen lock directly, and choosing Sleep from the Apple menu still sleeps the Mac. Glowmoth is part of MacSuite, and you can try it free for 7 days. After the trial it needs a MacSuite license, and without one it keeps nothing awake.
Keeping the Mac awake but letting the display sleep
Sometimes you want the opposite: a download or backup keeps running while the screen goes dark to save power.
- Built-in. Search System Settings for
Prevent automatic sleeping. On a laptop the option reads Prevent automatic sleeping on power adapter when the display is off and works only while plugged in. On a desktop it reads Prevent automatic sleeping when the display is off. - Terminal. Run
caffeinate -iinstead of-d. It blocks idle system sleep and leaves the display alone. - Glowmoth. Uncheck Keep Display On in the right-click menu. During a session this changes that session; with none running it applies to the next one you start. To make it the default for every new session, turn off Keep the display on in Settings ▸ Sessions. Another option is Let the screen saver start when I'm away in Settings ▸ Sessions. After 1–120 minutes without keyboard or mouse input (10 by default), Glowmoth stops holding the display, so your normal screen saver and display settings apply while the Mac stays awake. When you come back, it holds the display on again.
None of these keeps a laptop awake with the lid closed. For that, see clamshell mode on Mac. For system sleep in more depth, see how to stop your Mac from going to sleep.
Which method to use
| Method | Lasts | Changes settings? | Can't do |
|---|---|---|---|
| Lock Screen display timer | Until you change it | Yes | Turn itself off after a task or time |
pmset displaysleep | Until you change it | Yes (needs admin) | Same as above |
caffeinate -d | While the command runs, or for -t seconds | No | Show status, warn before ending, react to apps or meetings |
| Glowmoth session or rule | A duration, until a clock time, indefinitely, or while a condition is true | No | Block the lock directly; needs a MacSuite license ($349 one-time as of November 2026) after the 7-day trial |
If the screen still turns off
caffeinatestopped. Pressing ⌃C or closing the Terminal window ends it, and so does the-ttime running out. If you used-i, the display was allowed to sleep. Run it again with-d.- A hot corner fired. Check Desktop & Dock ▸ Hot Corners… for screen saver, display sleep or lock actions.
- The screen dims but stays on. That's a brightness setting, not display sleep. Search System Settings for
dim; on laptops, look for Slightly dim the display on battery. - Glowmoth's session ended or never held the display. Check that Keep Display On was checked and the session hasn't timed out. If the panel lists an app, folder or agent as the reason, that reason keeps only the Mac awake; only your own session or a rule with Keep the display on holds the screen.
- A Glowmoth rule isn't firing. Check that the panel's Automatic | Manual control is on Automatic. Stop Everything also pauses rules until you next start a session (or relaunch Glowmoth).
- Glowmoth paused for safety. On battery below your floor (20% by default) or when the Mac runs hot, Glowmoth stops holding the Mac and the panel title says "Paused". Plug in, let it cool, or click Resume Anyway (30 min). See battery and heat limits.
- The whole Mac goes to sleep, not just the screen. That's a different problem. See Mac keeps going to sleep.
FAQ
Does keeping the display on also keep my Mac awake? Yes. A display-sleep block (caffeinate -d or Glowmoth's Keep Display On) also stops idle system sleep, so downloads and jobs keep running.
Does keeping the screen on use more battery? Yes, a lit display draws power the whole time. On battery, use a timed method so the screen can turn off once you're done.
Can I keep the screen on but still have it lock when I walk away? Not through idle time alone, since the idle lock waits for the display to sleep or the screen saver to start. Lock it yourself with ⌃⌘Q, or turn on Glowmoth's Let the screen saver start when I'm away so your normal screen saver, display-off and lock settings take over after the idle time you choose.
For every display and sleep option in one place, see Mac sleep settings explained.