How to Keep Your Mac Screen On: Settings, Terminal, and Browser
Keep your Mac display on with Lock Screen settings, timed caffeinate commands, or a browser tool. Learn how display sleep differs from system sleep.
Keeping a Mac screen on is useful when you are reading a recipe, presenting slides, or watching a status dashboard. Choose a method based on whether you need a lasting preference or a temporary session, and whether you need the display, the computer, or both to stay awake.
These are separate behaviors. Display sleep turns the screen off. Idle system sleep puts the computer into a lower-power state after inactivity. Locking requires authentication to return to your session. Preventing display sleep does not promise to prevent locking, closing the lid, or restrictions set by an administrator.
Method 1: Change the display-off timeout in System Settings
For a regular desk setup, start with the controls described in Apple’s sleep and wake settings guide. Names and available options vary with your Mac and macOS version.
- Open the Apple menu and choose System Settings.
- Select Lock Screen in the sidebar.
- On a MacBook, find Turn display off on battery when inactive and choose a longer interval, or Never if offered and appropriate for your session.
- Set Turn display off on power adapter when inactive separately. A longer plugged-in timeout does not automatically change the battery timeout.
- Leave the Mac idle long enough to check the selected interval, then restore your usual setting when the task is finished.
On desktop Macs, the display-off control can have different wording because there is no battery mode. Use the timeout available for that machine. If an option is unavailable on a managed Mac, your organization’s policy may control it.
Do not confuse this with Battery > Options > Prevent automatic sleeping on power adapter when the display is off, where supported. That option lets the computer remain awake with a dark display; it does not keep the display illuminated. Apple also documents sleep controls under Energy settings on supported desktop models.
Longer display-on time consumes more energy. For a short reading or presentation session, a temporary command can be easier than remembering to undo a persistent preference.
Method 2: Use a temporary caffeinate command
Open Terminal and run the built-in macOS command:
caffeinate -d
The -d flag prevents display sleep while the command runs. Keep that Terminal process running; press Control+C in its window to stop it and release the request. You do not need sudo, and the command does not permanently rewrite your display settings.
To request one hour instead, use a timeout in seconds:
caffeinate -d -t 3600
If the task needs both an illuminated display and protection against idle system sleep, combine the flags:
caffeinate -di -t 3600
Here, -i prevents idle system sleep, while -d handles display sleep. This distinction matters for a long-running task: keeping the computer awake alone is different from keeping its screen on. After the timeout, normal settings apply again; you can end the request earlier with Control+C.
These examples run directly in the foreground. If you adapt the command to launch another utility, its assertions last until that utility exits, and -t is ignored in that form. Check man caffeinate locally for details; Apple also publishes the caffeinate source code.
A wake request is not a guarantee against manual sleep, locking, a closed laptop lid, or device policies. Keep the lid open for these examples and check the actual behavior before relying on it during a presentation.
Method 3: Use a browser tool for a visible webpage
For a quick reading or dashboard session, open Keep Screen On, enable its keep-awake control, and confirm that the page reports an acquired wake lock. An enabled toggle by itself is not proof that the browser granted the request.
Keep the tool page visible. Switching tabs, minimizing the browser, locking the Mac, or closing its lid can interrupt the request. Do not rely on a browser page to keep the screen awake while another application is in front. Return to the page and check its status after an interruption.
Browser support and system conditions affect availability. If the request is unavailable or repeatedly releases, use the macOS settings or Terminal method above. Turn the tool off when finished.
When the screen still goes dark
- Check whether the Mac switched from its power adapter to battery, activating a different timeout.
- Confirm that the
caffeinateprocess is still running, or that the browser page still reports an active request. - Distinguish a locked session, an external monitor’s own power-saving behavior, and actual system sleep before changing more settings.
For more diagnosis, see why a screen keeps going black. The screen-timeout guide covers other devices, and the Windows guide explains the corresponding PC controls.
FAQ
Does caffeinate change my settings permanently?
No. The examples above create temporary requests that end when the process stops or the timer expires. Your existing settings then determine normal idle behavior.
Can I keep the Mac awake with its display off?
Yes, supported power settings can allow this, and caffeinate -i targets idle system sleep without requesting an illuminated display. Use -d when the screen itself needs to stay on.
Can a wake-lock tool prevent my Mac from locking?
Do not assume so. A display wake request and session locking are separate. Check your Mac’s behavior and any managed-device requirements before an unattended session.