Mac Sleep Problems: Fix & Troubleshoot
In this article
If your Mac won't sleep, wakes up randomly, or drains battery overnight, the fix usually comes down to a few settings, connected devices, or a misbehaving app. This guide walks you through the most common causes and solutions, from simple settings tweaks to resetting the System Management Controller (SMC). You don't need any special tools—just a few minutes and access to System Settings (or System Preferences on older macOS).
What You'll Need
- Your Mac (laptop or desktop)
- Administrator account access
- Optional: a USB mouse or keyboard if you have a MacBook with a stuck lid sensor (rare)
Step-by-Step
- Check your sleep settings. Go to System Settings > Lock Screen (or System Preferences > Energy Saver on older macOS). Look for the “Turn display off on battery when inactive” and “Turn display off on power adapter when inactive” sliders. Set them to a reasonable time (e.g., 5–15 minutes). Also, check System Settings > Battery > Options (or Energy Saver) and make sure “Prevent automatic sleeping on power adapter when the display is off” is unchecked unless you specifically need it.
- Check for “wake on network access” and Power Nap. In the same Battery or Energy Saver settings, look for “Wake for network access” and “Power Nap.” Disable both if you don't need them. Power Nap allows your Mac to periodically check email and updates while asleep, which can prevent it from entering deep sleep.
- Identify what’s waking your Mac. Open Terminal (found in Applications > Utilities) and type:
pmset -g assertions. Press Enter. Look for lines that say “PreventUserIdleSystemSleep” or “PreventSystemSleep.” The process name next to them (like “CoreMedia” or “backupd”) tells you which app or service is keeping your Mac awake. Note any suspicious ones. - Quit or force-quit the offending app. If you see a specific app like a media player or browser with many tabs, quit it normally (Cmd+Q). If it won't quit, go to Force Quit (Apple menu > Force Quit) and select it, then click “Force Quit.” Then test sleep again.
- Disconnect USB devices and external displays. Unplug all USB devices, external drives, and monitors. Then try putting your Mac to sleep (Apple menu > Sleep). If it stays asleep, reconnect devices one by one to find the culprit. Some devices (like certain mice or USB hubs) send wake signals.
- Check Bluetooth and Wi-Fi settings. If you use Bluetooth devices (keyboard, mouse, headphones), go to System Settings > Bluetooth and click “Advanced” (if available). Uncheck “Allow Bluetooth devices to wake this Mac” if you don't need that. For Wi-Fi, go to System Settings > Wi-Fi > Details and look for any “Wake on Wi-Fi” or “Auto-join” options—disable them if present.
- Reset the SMC (System Management Controller). This fixes many power-related issues. Steps vary by Mac model:
- Apple Silicon (M1/M2/M3): Shut down your Mac, then press and hold the power button for 10 seconds. Release, then wait a few seconds and turn it on normally. (SMC reset is not needed on Apple Silicon—this just clears some settings.)
- Intel MacBook (with T2 chip): Shut down, then press and hold Control + Option (Alt) + Shift on the left side of the keyboard, plus the power button for 10 seconds. Release all, then turn on.
- Intel MacBook (older, without T2): Shut down, then press and hold Shift + Control + Option on the left side, plus the power button for 10 seconds. Release and turn on.
- Intel iMac, Mac mini, Mac Pro: Unplug the power cord, wait 15 seconds, plug it back in, wait 5 seconds, then turn on.
- Reset the NVRAM (nonvolatile random-access memory) on Intel Macs. Shut down, then turn on and immediately press and hold Option + Command + P + R for about 20 seconds. Release and let it boot normally. (Apple Silicon Macs don't have NVRAM resets.)
- Check for background processes in Activity Monitor. Open Activity Monitor (in Applications > Utilities), click the “CPU” tab, and sort by “% CPU.” Look for anything using high CPU even when idle. If you see a process you don't recognize, search its name online before quitting it. Quit only processes you know are safe (like a stuck backup or a media player).
- Update macOS. Go to System Settings > General > Software Update and install any pending updates. Apple often fixes sleep-related bugs in updates.
Common Mistakes
- Assuming “display sleep” means “computer sleep.” Turning off the display is not the same as sleeping the whole Mac. Check the actual sleep settings, not just display timeout.
- Ignoring the “Prevent automatic sleeping” checkbox. Some apps or users enable this without realizing. It’s in Battery > Options or Energy Saver.
- Leaving a DVD or CD in the optical drive (older Macs). The drive may spin up periodically and wake the Mac.
- Not checking scheduled startup or wake. Go to System Settings > General > Startup & Shutdown and see if “Start up automatically after a power failure” or “Wake for network access” is enabled—these can cause wakes.
- Using a third-party “sleep prevention” app without realizing it. Apps like Caffeine or Amphetamine keep your Mac awake; quit them if you don't need them.
Tips
- Use pmset -g log in Terminal to see a detailed log of sleep/wake events. It can show exactly when and why your Mac woke up.
- If you have a MacBook, check the battery health in System Settings > Battery. An old battery can cause unexpected shutdowns or sleep issues.
- Keep your Mac cool. Overheating can cause it to stay awake or sleep erratically. Ensure vents are clear.
- If you use a smart home app or a remote management tool, those may intentionally keep the Mac awake—check their settings.
Troubleshooting
If your Mac still won't sleep after trying the steps above:
- Check for external monitors. Some displays send a signal that prevents sleep. Unplug them and test.
- Try safe mode. Restart your Mac and hold the Shift key until the login window appears. Safe mode loads only essential software. If sleep works in safe mode, a third-party app is likely the cause. Quit suspect apps or uninstall them.
- Check for a stuck lid sensor (MacBooks). If closing the lid doesn't sleep the Mac, the magnetic sensor might be faulty—try using a magnet to trigger it, or contact Apple Support.
- Reset the SMC again if you did it earlier and it didn't help. Sometimes it takes a second attempt.
- Create a new user account (System Settings > Users & Groups) and test sleep in that account. If it works there, the issue is tied to your main user's settings or login items.
- If nothing works, back up your data and reinstall macOS (via Recovery Mode). This is a last resort, but it often resolves stubborn software issues. Make sure to back up first—this erases your disk.
Frequently Asked Questions
Why does my Mac wake up at the same time every night?
This is often caused by a scheduled “Power Nap” or a backup task (like Time Machine) running at a set time. Check Energy Saver/Battery settings for Power Nap, and check Time Machine settings (System Settings > General > Time Machine) to see if backups are scheduled.
Can I make my Mac sleep immediately when I close the lid?
Yes, by default closing the lid on a MacBook should sleep it. If it doesn't, check Energy Saver or Battery settings for “Prevent automatic sleeping on power adapter” and disable it. Also, disconnect any external display that might be overriding the lid behavior.
Does resetting SMC erase any data?
No, resetting the SMC only resets power management settings like fan speed, sleep, and battery indicators. It doesn't affect your files or personal data.
Why does my Mac sleep but then wake up immediately?
This is usually caused by a USB device, Bluetooth device, or network activity. Unplug all USB devices and turn off Bluetooth to test. Also check “Wake for network access” and disable it.
Is there a command to see what's preventing sleep?
Yes, open Terminal and type pmset -g assertions. This shows a list of processes that are preventing sleep. You can also use pmset -g log for a full log.
My Mac is a desktop (iMac/Mac mini). Are the steps different?
Mostly the same, but desktops don't have a battery, so you'll use the “power adapter” settings. The SMC reset is different (unplug the power cord) as described in step 7.