How to Stop Your MacBook Screen from Going Dark

Open System Settings, click Lock Screen, and set "Turn display off on battery when inactive" and "Turn display off on power adapter when inactive" to a longer time. That keeps the screen on longer all the time. To keep it on only when it matters, like when plugged in, during work hours or while one app runs, Shake It On ($9.99 once) moves the cursor just then and lets the screen sleep the rest of the time.

Change the display timer in Lock Screen settings

Your screen goes dark because macOS turns the display off after a set time without mouse or keyboard input. On current macOS (checked on macOS Tahoe 26), that timer lives in Lock Screen settings:

  1. Choose Apple menu, then System Settings.
  2. Click Lock Screen in the sidebar. You may need to scroll down.
  3. Set "Turn display off on battery when inactive" to a longer time.
  4. Set "Turn display off on power adapter when inactive" too. A MacBook has both, and each applies only to its own power source.

Before the screen turns off, macOS dims it as a warning. Move the mouse during the dim and the countdown starts over.

Note
The same page has "Require password after screen saver begins or display is turned off." That decides when the Mac locks, not when the screen goes dark.

Display sleep vs. system sleep

macOS has two separate sleep stages. Most people don't realize they're different.

Display sleep turns off the screen. The Mac keeps running. Downloads continue, music plays, background tasks keep going.

System sleep pauses everything. Processes freeze and network activity stops until you wake it.

When someone says "my MacBook screen keeps going dark," they almost always mean display sleep. The fix above handles that one.

Keep the screen on only when you need it

A longer timer applies all day, including when you walk away. On a MacBook that means more battery drain and a lit screen on an empty desk.

Shake It On takes the other route. It moves your mouse slightly at regular intervals, and each movement resets the display timer, but only while your conditions hold:

  • Only when plugged into power
  • Only while a specific app is running
  • Only during your work hours, on the days you pick
  • Paused when the camera is in use, so video calls are unaffected

When none of your conditions apply, Shake It On does nothing and your normal display timer takes over. Screen on when you need it, off when you don't.

Keep your MacBook screen on only when it matters, with no settings to flip back. Shake It On is $9.99 once.

When you want the screen off but the system awake

Sometimes you want the opposite: Mac running, screen dark. An overnight download, a server process in a dark room.

The current version of Shake It On (1.0.7) keeps the Mac awake by moving the mouse, so the screen stays on too. An "Allow display to sleep" option is coming in the next update: it will prevent system sleep while the display turns off on its normal schedule.

Note
"Allow display to sleep" is coming in the next update and is not in the current version. When it ships, the app installs the update for you, free for everyone who bought Shake It On.

Frequently Asked Questions

Can I keep the system awake but let the screen turn off?
Not in the current version (1.0.7). An 'Allow display to sleep' option that prevents system sleep while the screen dims is coming in the next Shake It On update.
Why does my MacBook screen still go dark after I changed the setting?
A MacBook has two display timers in Lock Screen settings: one on battery and one on the power adapter. If you only changed one, the other still applies when you plug in or unplug. The battery timer is often the shorter one.
How do I keep my MacBook screen on without changing settings?
Use an app that keeps the Mac active only when you want it. Shake It On moves the cursor slightly, which resets the display timer, and only while your conditions hold: plugged in, inside your work hours, or while a chosen app runs. It's $9.99 once for macOS 14 or later.
Keep your Mac awake the easy way.
Shake It On lives in your menu bar and uses organic mouse movement to prevent sleep. Set it once and forget it.
One-time purchase. No subscription. Free updates forever.
Lifetime license · macOS 14+
Apple Pay, Google Pay or card. Your download starts right after payment, and you can re-download anytime with your purchase email.