To stop auto sleep on a Mac, change three settings in System Settings (or System Preferences on older macOS): display sleep, computer sleep, and the power adapter sleep timer. This takes about 2 minutes and works for both laptops and desktops. The steps below cover the fastest path and the one setting people miss.
What Exactly Is Auto Sleep on a Mac?
Auto sleep is the macOS feature that puts your display and then the whole computer into a low-power state after a set time of inactivity. On a laptop, it usually happens after 10–15 minutes on battery and 10–30 minutes on the power adapter. On a desktop, it follows the display sleep timer you set.
Sleep is different from the display turning off. The display can go dark while the Mac stays awake. To stop all auto sleep, you need to adjust both the display timer and the computer sleep timer.
How to Stop Auto Sleep on a Mac: The Main Steps
- Open System Settings. Click the Apple menu (top-left) and choose System Settings (on older macOS, it is System Preferences).
- Go to Lock Screen. In the sidebar, click Lock Screen. This controls the display sleep timer.
- Set “Turn display off on battery when inactive” to Never. For a MacBook, choose Never from the dropdown. For a desktop, you will only see one display option; set it to Never.
- Set “Turn display off on power adapter when inactive” to Never. This is the second dropdown on laptops. If you use your Mac plugged in most of the time, this is the one that matters.
- Go to Battery settings. In System Settings, click Battery (on desktops, this is Energy or Energy Saver).
- Set “Prevent automatic sleeping on power adapter when the display is off” to Always. This is the checkbox that actually stops the computer from sleeping when the display is off. On a desktop, look for a similar checkbox under Energy Saver.
- If you use a laptop, also set the battery option. Under Battery > Battery or Battery Health, look for “Prevent automatic sleeping on battery when the display is off.” Set it to Always if you want no sleep on battery, but be aware this drains battery faster.
Labels can differ slightly by macOS version. If you do not see a setting, search for “sleep” in System Settings – it will show the exact menu path for your version.
How to Tell It Worked
After making the changes, close the lid of your laptop (or wait on a desktop) and see if the display stays on. For a more reliable test, use the pmset command in Terminal:
- Open Terminal (in Applications > Utilities).
- Type
pmset -gand press Return. - Look for the lines
sleepanddisplaysleep. If they show0, auto sleep is disabled.
If you set everything to Never, the Mac will not sleep on its own. It will only sleep when you choose Apple menu > Sleep, close the lid (unless you also disable that), or shut down.
The One Failure People Hit: The Lid Close or the Power Adapter Setting
Most people change the display timer but forget the computer sleep checkbox. The Mac’s display goes dark, and then the whole computer sleeps a minute later – because the “Prevent automatic sleeping” checkbox is still off.
Symptom: Display turns off, and then the Mac sleeps anyway.
Cause: The computer sleep timer is separate from the display timer.
Fix: Go to System Settings > Battery (or Energy Saver) and enable “Prevent automatic sleeping on power adapter when the display is off.”
Another common issue is closing the lid. On a MacBook, closing the lid always triggers sleep – there is no setting to stop that. If you need the Mac to stay awake with the lid closed, you must keep it plugged in and use an external display, or use a third-party app (but that is beyond macOS settings).
If You Only Want to Stop Sleep for a Few Minutes
You do not need to change any settings permanently. Use the caffeinate command in Terminal:
- Open Terminal.
- Type
caffeinate -dand press Return. This prevents the display from sleeping until you press Control+C to stop it. - To prevent both display and computer sleep, type
caffeinate -d -s(on battery, usecaffeinate -d -i).
This is useful when you are watching a long video, giving a presentation, or waiting for a large download. The command only lasts until you close Terminal or press Control+C.
What About the App Nap or Power Nap Settings?
Two other settings can make a Mac appear to sleep when it is not:
- Power Nap: This lets the Mac wake periodically to check email and updates. It does not cause sleep, but it can wake the Mac from sleep. If you want the Mac to stay fully asleep, turn off Power Nap under System Settings > Battery > Options (or Energy Saver).
- App Nap: This slows down background apps when they are not visible. It does not sleep the Mac, but it can make downloads or uploads pause. To disable it for a specific app, right-click the app in Finder, choose Get Info, and check “Prevent App Nap.”
For most people, these are not needed. The three main settings above are enough to stop auto sleep.
What to Do If the Mac Still Sleeps
If you followed all steps and the Mac still sleeps, check these:
- Is the display sleep timer still set to a number? Go back to Lock Screen and confirm both dropdowns say Never.
- Is the computer sleep checkbox enabled? Under Battery > Options, the checkbox must be checked. On a desktop, it may be under Energy Saver > “Prevent computer from sleeping automatically when the display is off.”
- Is there a scheduled sleep? Go to System Settings > Battery > Options (or Energy Saver) and look for “Schedule.” If it is on, it can force sleep at a specific time. Turn it off.
- Is your Mac overheating? If the Mac gets very hot, it may force sleep to cool down. That is a safety feature – do not disable it. Let it cool and check for blocked vents.
If none of these work, restart your Mac. Settings sometimes do not apply until a reboot.
Does Stopping Auto Sleep Drain the Battery Faster?
Yes. On a MacBook, disabling sleep on battery means the display stays on and the processor keeps running, which uses more power. Expect battery life to drop noticeably – often by half or more. If you are on battery and do not need the Mac awake, it is better to leave sleep on. Use the settings above only when you are plugged in or for short periods via caffeinate.
On a desktop, there is no battery concern, but the Mac will use more electricity and generate more heat. That is fine for most people, but if you leave the Mac on overnight, consider setting sleep back on after your task is done.
How Do I Re-enable Auto Sleep Later?
Go back to the same settings and choose a time like 10 minutes or 1 hour instead of Never. For the “Prevent automatic sleeping” checkbox, turn it off. The Mac will then sleep as it did before.
Does This Work on All Mac Models?
Yes, the settings are the same on MacBook Air, MacBook Pro, iMac, Mac mini, and Mac Studio. The menu names are identical in recent macOS versions. On older macOS (before Ventura), the settings are under System Preferences > Energy Saver, but the options are the same.
What If I Want the Display to Turn Off but the Mac to Stay Awake?
That is the most common need. Set the display timers to a short time (like 5 minutes) but leave the “Prevent automatic sleeping” checkbox enabled. The display will go dark, but the Mac will keep running – perfect for downloads or streaming to a TV.
Related
- Mac and Cheese vs Baked Mac and Cheese: Which to Pick
- How to Make Cauliflower Mac and Cheese
- One Pot Mac and Cheese for Adults
General information for everyday wellbeing, not medical advice. If something affects your health, sleep or mood for more than a short while, talk to a qualified professional. Read more
Spotted an error? Tell us and we will correct it (corrections policy).