Home
Why Your Mac Refuses to Sleep and How to Fix It Right Now
A Mac that refuses to sleep is more than just a minor annoyance. Whether it is a MacBook Pro staying warm in your bag and draining its battery or an iMac screen glowing in your home office at 3 AM, "Mac insomnia" can lead to hardware wear and unexpected power loss. macOS is designed to handle power management efficiently, but various background processes, hardware peripherals, and system settings can easily disrupt this delicate balance.
If you find that your Mac stays awake even after you have closed the lid or manually selected the Sleep option, you do not need to assume there is a hardware failure immediately. Most sleep-related issues on Mac are software-driven and can be resolved with a systematic troubleshooting approach.
Quick Fix Checklist for Mac Sleep Issues
Before diving into deep system diagnostics, try these immediate steps which resolve approximately 60% of sleep problems:
- Restart your Mac: This clears temporary cached files and kills hung background processes that might be holding a "stay awake" command.
- Check for active print jobs: A stuck document in the print queue is one of the most common but overlooked reasons for sleep failure.
- Update macOS: Apple frequently releases patches for power management bugs.
- Close your browser tabs: Sites with active video players or constant auto-refreshing (like some news sites or social media dashboards) keep the system active.
If these basic steps do not work, follow the detailed diagnostic guide below to find the specific "sleep blocker" in your system.
Identifying Apps That Prevent Sleep Using Activity Monitor
The most frequent culprit behind a Mac that won't sleep is a running application. While some apps are obvious (like a video player), others run quiet background tasks that prevent the system from entering an idle state.
Using the Energy Tab
Activity Monitor is your first line of defense. To access it, press Command + Spacebar, type "Activity Monitor," and hit Enter. Once the window opens, click on the Energy tab at the top.
In this view, you will see a column labeled Preventing Sleep. If you do not see this column, right-click on the header bar and check the "Preventing Sleep" option. Sorting this column will bring any process marked with a "Yes" to the top.
Interpreting the Results
In my experience managing creative workstations, I often find that apps like Spotify, Zoom, or even third-party cloud sync tools are the primary offenders. If you see "Yes" next to an app you are not currently using, select the app and click the "X" button at the top of the Activity Monitor window to force quit it.
Be cautious with system processes. If a process named hidd or kernel_task is preventing sleep, it usually indicates a hardware input (like a stuck key or a mouse movement) rather than a software bug.
Deep Diagnostics with Terminal: Using pmset Assertions
When Activity Monitor does not give you a clear answer, it is time to look at what the macOS kernel is thinking. The operating system uses a system of "assertions" to manage power states. An assertion is essentially an app or service telling the Mac, "I am doing something important, do not go to sleep yet."
Running the Assertion Command
Open the Terminal app (found in Applications > Utilities) and type the following command:
pmset -g assertions
Press Enter, and you will see a detailed breakdown of your system’s power status.
What to Look For
Look for the section titled Listed by owning process. You are specifically searching for items that have a value of 1. Common assertions include:
- PreventUserIdleSystemSleep: This means a process is preventing the Mac from sleeping even if you are not touching the keyboard.
- PreventSystemSleep: This is a stronger command that prevents the entire system from entering a low-power state.
- NoDisplaySleepAssertion: This prevents just the screen from turning off.
Next to these assertions, you will see the Process ID (PID) and the name of the app responsible. For instance, if you see pid 452(AddressBookSourceSync): [0x0000...], it tells you exactly which background service is the "insomniac." You can then either quit that app or, if you are an advanced user, kill the process using the kill command followed by the PID.
Checking System Settings and Lock Screen Preferences
Sometimes the issue is not a bug but a configuration. With the transition from "System Preferences" to "System Settings" in newer versions of macOS (Ventura, Sonoma, and beyond), some users have found their previous sleep settings have shifted.
Lock Screen and Display Off Timers
Navigate to Apple Menu > System Settings > Lock Screen. Ensure that the timers for "Turn display off on battery when inactive" and "Turn display off on power adapter when inactive" are set to reasonable durations, such as 2 to 5 minutes. If these are set to "Never," your Mac will essentially stay awake indefinitely.
Battery and Power Adapter Options
Go to System Settings > Battery, then click on the Options button at the bottom right. Look for the setting: "Prevent automatic sleeping on power adapter when the display is off."
If this is toggled on, your Mac will stay awake as long as it is plugged into a charger, even if the screen is dark. While useful for servers or developers running long compilations, it is a common cause of unexpected battery drain or heat for the average user.
The Impact of Peripherals and External Hardware
In our troubleshooting tests, we have found that external hardware is the second most common cause of sleep failure after software apps. A malfunctioning USB hub or a specific external drive can send "wake" signals to the Mac constantly.
The "Unplug Everything" Test
To determine if hardware is the issue, disconnect every single peripheral from your Mac. This includes:
- USB-C hubs and dongles
- External hard drives and SSDs
- Printers and scanners
- External monitors (especially those with built-in USB hubs)
- Wired mice and keyboards
After disconnecting everything, try putting your Mac to sleep. If it works, reconnect your devices one by one to identify the faulty piece of hardware. I once discovered a high-end mechanical keyboard with a faulty "Media Play" key that was constantly sending ghost signals, preventing the Mac from ever reaching an idle state.
The Clamshell Mode Factor
If you use a MacBook in "Clamshell Mode" (closed lid with an external monitor), remember that the Mac is designed to stay awake in this state if it is connected to power and a mouse/keyboard. If you want the Mac to sleep while closed, you must manually select Sleep from the Apple menu or disconnect the external display.
Network Access and Bluetooth Wake Signals
Modern Macs are highly connected, and sometimes the "internet" or your accessories keep waking them up.
Wake for Network Access
This feature, formerly known as Power Nap in some contexts, allows your Mac to wake up for tasks like Time Machine backups or for other users to access shared files.
To disable this, go to System Settings > Energy Saver (on desktops) or Battery > Options (on MacBooks) and set "Wake for network access" to Never. This is particularly effective for iMac users who find their screens randomly turning on in the middle of the night due to network "pings" from a router.
Bluetooth Interference
Bluetooth devices are notorious for waking Macs. A slight vibration on the desk could move your Bluetooth mouse just enough to trigger a wake signal.
Go to System Settings > Bluetooth, find your connected devices, and check their advanced settings. While macOS has simplified these menus recently, you can still control this by ensuring that you aren't leaving game controllers or headsets connected that might be sending active signals. If you suspect Bluetooth is the issue, try turning Bluetooth off entirely before putting the Mac to sleep as a test.
Background Maintenance: Spotlight and Time Machine
MacOS performs several heavy-duty maintenance tasks in the background. If your Mac is new, or if you just updated the OS or moved a large amount of data (like a photo library), it may be busy indexing.
Spotlight Indexing
Spotlight creates a massive database of your files so you can search them instantly. This process is CPU-intensive and will prevent sleep until it is finished. Click the Spotlight icon (magnifying glass) in the menu bar. If you see a progress bar that says "Indexing," your Mac is intentionally staying awake to finish the task. Depending on the amount of data, this can take several hours. The best solution here is to simply leave the Mac plugged in and let it finish.
Time Machine Backups
If a Time Machine backup is currently in progress to an external drive or a network NAS, the Mac will stay awake to ensure data integrity. You can check the status in System Settings > General > Time Machine. If it is stuck at "Preparing backup" for hours, it might be worth canceling the backup and restarting the process.
Advanced Fixes: Resetting SMC and NVRAM
If none of the software or setting changes have worked, the issue may lie in the low-level hardware controllers. This is where resetting the System Management Controller (SMC) and Non-Volatile RAM (NVRAM) comes in.
For Apple Silicon Macs (M1, M2, M3)
If you have a modern Mac with Apple Silicon, there is no longer a manual "reset" key combination. These Macs perform a check of their internal controllers every time they restart from a full shutdown. To "reset" these components on an M-series Mac:
- Shut down the Mac completely.
- Wait for 30 seconds.
- Turn it back on.
For Intel-Based Macs
Older Intel Macs use the SMC to manage power, fans, and sleep behavior.
- To reset NVRAM/PRAM: Shut down, then turn it on and immediately hold Option + Command + P + R for about 20 seconds.
- To reset SMC: The process varies by model (whether it has a T2 chip or a removable battery), but generally involves holding a combination of Shift + Control + Option and the Power button while the Mac is off.
Resetting these should be considered a "last resort" before seeking professional repair, as it clears low-level settings that might have become corrupted.
Summary of Troubleshooting Steps
| Step | Action | Why it works |
|---|---|---|
| Step 1 | Restart your Mac | Clears hung processes and temporary glitches. |
| Step 2 | Check Activity Monitor | Identifies specific apps holding "sleep assertions." |
| Step 3 | Terminal pmset -g assertions |
Reveals hidden background tasks blocking sleep. |
| Step 4 | Adjust Lock Screen Settings | Fixes misconfigured timers. |
| Step 5 | Unplug Peripherals | Eliminates hardware interference from USB/Thunderbolt devices. |
| Step 6 | Disable "Wake for Network" | Prevents the router or other devices from waking the Mac. |
| Step 7 | Check Spotlight/Time Machine | Ensures the Mac isn't just finishing a vital maintenance task. |
| Step 8 | Reset SMC/NVRAM | Corrects low-level power management errors. |
FAQ: Common Mac Sleep Questions
Why does my MacBook drain battery even when the lid is closed?
This is often caused by "Find My Mac" or background "Wake for Network Access" tasks. If the lid is closed but the system stays active, it continues to use Wi-Fi and CPU cycles. Disabling "Wake for network access" in the Battery options usually stops this overnight drain.
Can a browser extension prevent my Mac from sleeping?
Yes. Extensions that keep a page active (like a refresh timer) or extensions that interact with the system's media player (like some ad-blockers or video downloaders) can keep the "NoDisplaySleepAssertion" active. If your browser is the culprit in Activity Monitor, try disabling extensions one by one.
Is it better to Shut Down or Sleep my Mac?
For daily use, Sleep is preferred as it allows macOS to perform background maintenance and ensures a fast wake-up. However, if you won't be using your Mac for more than 48 hours, a full Shut Down is better to preserve battery health and clear the system memory completely.
Why is my Mac fan still spinning when it should be asleep?
If the fans are spinning, the CPU is active and generating heat. This means the Mac is not actually in sleep mode. Use the pmset -g assertions command in Terminal immediately to see what is forcing the CPU to remain active.
By following this guide, you should be able to restore your Mac's sleep functionality and ensure that your hardware remains efficient and your battery life stays healthy. If the problem persists after a full macOS reinstallation, it may be time to contact professional support to check for internal sensor or logic board issues.
-
Topic: If your Mac won’t go to or stay in sleep - Apple Supporthttps://support.apple.com/guide/mac-help/if-your-mac-wont-go-to-or-stay-in-sleep-mchlp2995/10.13
-
Topic: Mac won't go to Sleep Mode? Fix it in less than 10 minuteshttps://macpaw.com/how-to/sleep-mode-not-working-mac
-
Topic: Guide to Fix Mac Won't Go to Sleep [Full Tutorial]https://www.easeus.com/computer-instruction/mac-wont-go-to-sleep.html