Home / Guides

How to Keep the Screen On on a Mac or MacBook

Open Apple menu > System Settings > Lock Screen and extend "Turn display off on battery when inactive" and "Turn display off on power adapter when inactive". On a laptop, Battery > Options controls sleeping with the display off. Our browser tool also holds the screen on while its tab is visible.

A MacBook open on a tidy white desk beside an iMac
Photo: Norbert Levajsics (Unsplash), CC0

Apple moved the display timers to Lock Screen in recent macOS, which surprises people looking in Battery. Laptops and desktops expose slightly different sleep options.

Change the display timeout on a Mac

  1. Choose Apple menu > System Settings, then click Lock Screen in the sidebar (scroll down if needed).
  2. Use the pop-up menus "Turn display off on battery when inactive" and "Turn display off on power adapter when inactive" to pick longer times.
  3. On a MacBook, click Battery in the sidebar, then Options, and review "Prevent automatic sleeping on power adapter when the display is off".
  4. On a desktop Mac, click Energy instead and review "Prevent automatic sleeping when the display is off".

Apple warns that delaying or preventing sleep may increase power consumption, and some options are not available on every Mac.

Display off, screen saver and lock are three settings

On a Mac, the display turning off, the screen saver starting and the password prompt are controlled separately in Lock Screen settings. If the screen goes dark but the Mac asks for a password straight away, raise the display timers and also check "Require password after screen saver begins or display is turned off".

SettingWhereWhat it does
Turn display off when inactiveLock ScreenBlanks the display after the chosen time
Start Screen Saver when inactiveLock ScreenShows the screen saver first
Require password after…Lock ScreenLocks the Mac once the screen saver or display-off begins
Prevent automatic sleeping…Battery > Options (laptops) or Energy (desktops)Keeps the Mac running with the display off

Use caffeinate in Terminal

macOS includes a command called caffeinate that stops sleep for as long as it runs. Open Terminal and use one of these. Press Control + C to stop it. Type man caffeinate for every option.

caffeinate -d            # keep the display awake
caffeinate -i            # stop idle sleep, display may turn off
caffeinate -d -t 3600    # keep the display awake for one hour

Low Power Mode and battery

On a MacBook, Low Power Mode lowers energy use, and a busy Mac on battery drains faster with the display on. For long sessions, plug in the power adapter and use the "on power adapter" timer, which can be longer than the battery one.

Why it might still go to sleep

  • "Require password after screen saver begins or display is turned off" can lock the Mac even if it is still awake.
  • Some options exist only on certain Macs, so a menu you expect may be missing.
  • A managed work Mac may enforce its own timers.
  • Closing a MacBook lid sleeps it. We could not verify Apple's closed-lid details, so see the lid-closed guide.

Frequently asked questions

Where is the Mac screen timeout?

System Settings > Lock Screen. The display timers are there, not under Battery, in recent macOS versions.

Does a browser tab keep a Mac awake?

It keeps the screen on while the tab is visible and the browser supports the Wake Lock API. Safari 16.4 and later, Chrome and Edge 84 and later, and Firefox 126 and later do.

What about caffeinate?

It is a Terminal command that stops sleep. Our guide on lid-closed laptops covers when OS-level tools are the honest answer.

Sources

Written by Maurice Rana. Last verified against the sources above.