Success means your Mac sleeps when you want it to and stays awake when you need it. The whole process takes about two minutes and happens in System Settings (or System Preferences on older macOS versions). You will find the controls under System Settings > Lock Screen and System Settings > Battery > Options.
Where Are the Sleep Settings?
Open the Apple menu (top-left corner) and choose System Settings. If you see System Preferences instead, that is the same place on older versions. The exact labels can differ slightly by macOS version, but the paths below stay the same.
Two sections control sleep:
- Lock Screen – sets when the display turns off and when the Mac requires a password.
- Battery (or Energy Saver on older versions) – sets when the whole computer sleeps, both on battery and plugged in.
How to Change Sleep Mode Step by Step
- Click the Apple menu and select System Settings.
- In the sidebar, click Lock Screen.
- Find the option Turn display off on battery when inactive and choose a time from the dropdown (for example, 5 minutes, 10 minutes, 1 hour, or Never).
- Find Turn display off on power adapter when inactive and choose a time for when the Mac is plugged in.
- Click Battery in the sidebar, then click Options (or Energy Saver on older versions).
- Under Put hard disks to sleep when possible, leave it on unless you want to prevent that (it saves power).
- Under Wake for network access, choose Only on power adapter or Never if you do not want the Mac to wake for network tasks.
- Look for Slightly dim the display on battery – leave it on to save battery.
- Close the window. Your changes save automatically.
If you want the Mac itself to sleep (not just the display), the same Battery section has a slider or dropdown labeled Put the computer to sleep when inactive. Set it to your preferred time. On desktops like the iMac or Mac mini, you might only see the power adapter option.
How to Tell It Worked
After setting a time, wait for that many minutes without touching the keyboard or mouse. The screen should go black. On a laptop, the display turns off first; then the whole computer sleeps a few minutes later (if you set that). To wake it, press any key or click the mouse. If you set a password requirement, you will see the login screen.
To check the current sleep behavior without waiting, open System Settings > Battery and look at the graph or the list of apps using significant energy. A sleeping Mac shows no activity there.
Why Won’t My Mac Sleep? (And How to Fix It)
The most common failure is that the Mac stays awake even after the set time. This usually happens because an app is preventing sleep. Here is a quick decision list:
- If a video is playing (YouTube, Netflix, a video call), the Mac stays awake by design. Pause or close the video.
- If you have an external display, some monitors send a signal that keeps the Mac awake. Disconnect the display and test.
- If you have Bluetooth devices (keyboard, mouse, headphones), they can wake the Mac. Turn them off temporarily.
- If you have enabled Wake for network access, the Mac may wake for network activity. Set it to Never.
If none of those work, check for a process keeping the Mac awake. Open Activity Monitor (in Applications > Utilities), click the Energy tab, and look for apps with Preventing Sleep marked “Yes.” Quit that app and try again.
What’s the Difference Between Display Sleep and Computer Sleep?
Display sleep turns off the screen only. The Mac itself keeps running – apps stay open, downloads continue, and the CPU stays active. Computer sleep is deeper: the Mac stops most activity, saves the current state to memory, and uses very little power. On a laptop, computer sleep is what preserves battery over hours or overnight.
You can set them separately. For example, you might want the display to turn off after 5 minutes on battery, but the computer to sleep after 15 minutes. On a desktop, you might set the display to sleep after 10 minutes but the computer to sleep after 30 minutes.
What If I Want the Mac to Never Sleep?
If you need the Mac to stay awake for a long task (like a download or a presentation), set both display and computer sleep to Never. But be careful: on a laptop, never sleeping will drain the battery quickly. For a desktop, leaving it on all the time uses more electricity and generates more heat.
A better option is to use caffeinate in Terminal. Open Terminal (in Applications > Utilities) and type:
caffeinate -d -t 3600
This keeps the Mac awake for 3600 seconds (1 hour) and then lets it sleep normally. The -d flag prevents the display from sleeping too. To stop it early, press Control+C.
How to Set a Password Requirement After Sleep
If you want the Mac to ask for your password when it wakes, go to System Settings > Lock Screen. Look for Require password after screen saver begins or display is turned off. Choose a time like immediately, 5 seconds, or 1 minute. This is separate from the sleep timer, so you can have the display sleep after 10 minutes but require a password immediately after that.
Sleep Mode on MacBook vs. Desktop
On a MacBook, you have two sets of controls: one for battery and one for power adapter. Set them differently – for example, sleep after 5 minutes on battery, but after 30 minutes when plugged in. On a desktop (iMac, Mac mini, Mac Pro), there is only the power adapter option, since there is no battery.
Also, on a MacBook, closing the lid always puts it to sleep, regardless of your settings. If you want to keep it awake with the lid closed, you need an external display and a power source, and you must use clamshell mode – but that is a separate topic.
What If the Settings Are Grayed Out?
If the sleep options are grayed out, it usually means a profile or an administrator has locked them. Check if your Mac is managed by a school or employer – they can restrict these settings. You can also try restarting the Mac, as a temporary glitch can cause grayed-out controls.
Sleep Mode and Battery Life
Setting a shorter sleep time on battery saves power. A MacBook that sleeps after 5 minutes instead of 15 minutes will last noticeably longer. If you are away from a power outlet, choose the shortest times that still let you work without interruption. For example, set display sleep to 2 minutes and computer sleep to 5 minutes on battery. When plugged in, you can be more generous.
Still Having Trouble? Check These Three Things
If your Mac still does not sleep after following the steps, check these in order:
- Power Nap – In System Settings > Battery > Options, you may see Enable Power Nap. If it is on, the Mac wakes periodically to check email and updates. Turn it off if you want uninterrupted sleep.
- Sharing settings – If you have file sharing or screen sharing enabled, the Mac may stay awake to serve those. Turn them off temporarily in System Settings > General > Sharing.
- External devices – A USB device (like a mouse or a USB hub) can prevent sleep. Unplug everything except the power cable and test.
Quick Reference Table
| What You Want | Where to Set It | Typical Value |
|---|---|---|
| Display turns off on battery | Lock Screen | 5–15 minutes |
| Display turns off on power | Lock Screen | 10–30 minutes |
| Computer sleeps on battery | Battery > Options | 10–20 minutes |
| Computer sleeps on power | Battery > Options | 30 minutes or Never |
| Password after sleep | Lock Screen | Immediately or 5 seconds |
If you set a time and the Mac still does not sleep, review the “Why Won’t My Mac Sleep?” section above. Most often, an app or a video is the cause.
Related
- Stovetop Mac and Cheese With Milk: Easy Recipe
- Cauliflower Mac and Cheese in One Pot
- Baked Mac and Cheese vs Stovetop: Which to Pick
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).