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:
- Choose Apple menu, then System Settings.
- Click Lock Screen in the sidebar. You may need to scroll down.
- Set "Turn display off on battery when inactive" to a longer time.
- 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.
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.
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.