08 / POWER · 5 min read
How to Stop Your Mac From Going to Sleep
macOS puts your screen and your Mac to sleep to save power. Here is how to keep it awake when you need to.
To stop your Mac from sleeping, open System Settings and set the screen to stay on longer or never turn off. On a MacBook, also open Battery, then Options. For a one-off job, you can also use a keep-awake app such as Amphetamine, or the built-in Terminal command caffeinate.
When a Mac goes to sleep at the wrong moment, downloads pause, video exports stop and video calls drop. The default settings favor battery life, but you can change them.
Method 1: Change the sleep settings
These steps work on macOS 13 Ventura, 14 Sonoma and 15 Sequoia:
- Open the Apple menu and choose System Settings.
- Click Lock Screen in the sidebar.
- Set Turn display off on battery when inactive to a longer time or Never. This option appears on MacBooks.
- Set Turn display off on power adapter when inactive to a longer time or Never.
- To keep the Mac itself running when the screen turns off: on a MacBook, open Battery, then Options. On a desktop Mac, open Displays, then Advanced (on macOS 13, Energy Saver). Switch on Prevent automatic sleeping on power adapter when the display is off.
Method 2: Use a keep-awake app or the caffeinate command
A keep-awake app such as Amphetamine puts a switch in your menu bar. You turn it on for a download or a meeting and off afterwards.
macOS also has a built-in command for this. Open Terminal and type caffeinate. It keeps your Mac awake for as long as that Terminal window stays open and the command is running. Press Control + C to stop it.
Method 3: Keep a MacBook awake with the lid closed
To use a MacBook with its lid closed, as a desktop:
- Plug the MacBook into its charger.
- Connect an external display.
- Connect an external keyboard and mouse or trackpad.
- Close the lid. The external display becomes your main screen.
Without both a charger and an external display connected, closing the lid puts the MacBook to sleep.
A warning about battery wear
A MacBook that stays awake and plugged in for weeks can spend a lot of time at a full charge and warm, which wears the battery faster. Turn on Optimized Battery Charging in System Settings, Battery, Battery Health. Your Mac then learns your routine and holds back from charging past 80% when it expects to stay plugged in.
Watching your battery while your Mac stays awake
Tegaro Power includes a keep-awake switch (since version 0.1.31): for 30 minutes, 1 or 2 hours, until a time you pick or until you turn it off, or automatically while chosen apps are open, an AI agent works, the Mac downloads or is busy, you are on a call (these four since 0.1.32), an external display is connected or the adapter is plugged in. Closing the lid still sleeps the Mac. It also shows battery and charging information in your menu bar. Power stays free after the 14-day trial.
Frequently Asked Questions
How do I stop my Mac from sleeping with a keyboard shortcut?
macOS has no built-in shortcut for this. A keep-awake app such as Amphetamine puts a switch in the menu bar. Tegaro Power also has a menu-bar switch.
Does closing the MacBook lid always put it to sleep?
Yes, unless the MacBook is plugged into its charger and an external display is connected. In that setup you can keep working on the external display with the lid closed.
Will keeping my Mac awake damage the screen?
A screen left on showing the same picture for days is not a good idea. If you only need the Mac itself to keep working, let the screen turn off and keep the Mac awake with a keep-awake app or caffeinate.
Ten Mac tools, one icon
Tegaro puts Power, Clipboard, Displays, Power and more in one menu-bar icon. Everything is free for 14 days, no card needed; after that the core tools stay free and Pro unlocks the rest.