Why is my Mac not sleeping? Troubleshooting tips for sleep issues

Abstract: Resolve Mac sleep issues by identifying active preventers via Terminal, disconnecting interfering peripherals, and verifying energy saver settings.

Created: 2026-08-09 by

Your Mac fails to sleep primarily because background processes, peripheral interference, or system settings prevent the operating system from entering low-power states. To resolve this, you must identify active preventers using terminal commands, disconnect external devices, and verify energy saver configurations in System Settings.

Identify Active Preventers

The most reliable way to determine why your Mac is refusing to sleep is to query the power management daemon directly. macOS provides a command-line tool called pmset that lists all current reasons preventing sleep. Open the Terminal application, which you can find in Applications > Utilities, and enter the following command:
pmset -g assertions
This command outputs a detailed list of "assertions." Each line represents a process or service that has requested the system to remain awake. Look for entries under the PreventUserIdleSystemSleep or PreventUserIdleDisplaySleep categories. Common culprits include backup services like Time Machine, network utilities, or media servers such as QuickTime Player. If you see a specific application name here, that app is likely keeping your Mac awake. You can quit that application to see if the issue resolves immediately. If the output shows no active assertions but the Mac still won't sleep, the problem may lie with hardware peripherals or deeper system configurations rather than software requests.

Check External Peripherals

External devices often send signals that keep the computer active. This is particularly common with Ethernet adapters, USB hubs, and older Thunderbolt displays. When a device is connected, it may request power or maintain a network connection that prevents idle sleep. Start by disconnecting all non-essential peripherals. Remove USB drives, external hard drives, docking stations, and dongles. If your Mac sleeps normally after unplugging everything, reconnect them one by one to identify the offending device. Once identified, check the manufacturer’s website for firmware updates or drivers compatible with your version of macOS. Additionally, ensure that your router and modem are not causing network activity to trigger wake events. Some routers broadcast packets that can be interpreted as user activity. If possible, test sleeping with Wi-Fi turned off temporarily to rule out network-related interference. For users experiencing persistent issues with specific hardware, reviewing how to manage system-level configurations might help isolate the root cause, similar to troubleshooting other macOS stability issues found in our guide on Mouse/Trackpad Click Registers Release Instead of Press on macOS Sonoma 14.5.

Verify Energy Saver Settings

macOS includes built-in features designed to manage power consumption, but these settings can sometimes conflict with modern usage patterns. Navigate to System Settings (or System Preferences on older versions) and select Battery or Energy Saver. Ensure that Automatic graphics switching is enabled if your Mac has dual GPUs. This allows the system to switch to the more power-efficient integrated graphics when high performance is not required, facilitating sleep. Also, check the setting for Put hard disks to sleep when possible. While this usually affects storage rather than system sleep state, disabling it can sometimes reduce latency in waking up, though it rarely prevents sleep entirely. On laptops, verify that Wake for network access is disabled if you do not need to use features like AirDrop or remote login while the machine is asleep. Enabling this feature keeps the Wi-Fi adapter active even when the screen is off, which can drain battery and prevent deep sleep states.

Reset NVRAM and SMC

If software checks and peripheral disconnections fail to resolve the issue, resetting the Non-Volatile Random-Access Memory (NVRAM) and the System Management Controller (SMC) can clear corrupted power management data. These components store information about display resolution, startup disk selection, and power behavior. For Intel-based Macs, shut down the computer completely. Turn it on and immediately press and hold Option + Command + P + R for about 20 seconds. Release the keys and allow the Mac to restart. This process resets various hardware settings to their defaults. For Apple Silicon Macs (M1, M2, M3), the procedure is simpler. Simply shut down the Mac, wait ten seconds, and then turn it back on. The power management controller resets automatically during the boot sequence on these newer chips. After performing these resets, observe whether your Mac enters sleep mode correctly.

Review Scheduled Tasks and Login Items

Scheduled tasks run by the operating system or third-party apps can interrupt sleep cycles. Check System Settings > General > Login Items to see which applications launch at startup. Disable any unnecessary items that might initiate background processes immediately upon boot, potentially triggering wake events later. Furthermore, some maintenance scripts run periodically via cron or launchd. While less common on modern macOS, certain developer tools or database services might have cron jobs set to run every hour. If you suspect a scheduled task, you can inspect the /var/log/system.log file for entries related to sleep/wake transitions around the time the failure occurs. For advanced users who have modified firewall rules, ensuring those rules do not block essential power management daemons is crucial. Incorrectly configured security policies can sometimes interfere with system communications, much like the issues discussed in Can't Delete Firewall Rules on macOS 15 (Sequoia) - Tech Support. Always verify that your security software allows system-level power events to pass through without restriction.

Frequently Asked Questions

How do I stop my Mac from waking up due to network activity?

You can disable this feature by going to System Settings > Battery > Options and turning off Wake for network access. This prevents the Mac from responding to network requests like AirDrop or remote login while it is in sleep mode. Disabling this ensures the Wi-Fi radio powers down completely during idle periods.

Why does my Mac wake up randomly at night?

Random wakes are often caused by scheduled backups, software updates, or peripheral activity. Check pmset -g to see if any timers are set for automatic wake-ups. Additionally, ensure no external devices are sending signal pulses that trick the Mac into thinking user input occurred.

Can a faulty charger prevent my Mac from sleeping?

Yes, a damaged power adapter or cable can cause voltage fluctuations that confuse the SMC. If your Mac refuses to sleep only when plugged in, try using a different charger or cable. A stable power source is required for the system to confidently transition into low-power states without fear of sudden shutdown.

What should I do if Terminal commands show no preventers but sleep still fails?

If no software assertions are blocking sleep, the issue is likely hardware-related. Reset the NVRAM and SMC as described in the main guide. If the problem persists, it may indicate a failing battery or logic board component requiring professional diagnostics. In such cases, contact Apple Support for further assistance.

Does closing the lid always force sleep on a MacBook?

Closing the lid typically triggers sleep, but exceptions exist if Power Nap is enabled or if an external display is connected. With an external monitor attached, the MacBook may stay awake to support the display. Ensure you are not using features that require the system to remain active while the clamshell is closed.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More