
Closing a MacBook lid should normally put the Mac to sleep within a few seconds. If the screen stays on, the Mac continues running, or the battery drains while the lid is closed, an accessory, setting, background process, software problem, or hardware issue may be preventing sleep.
Start by disconnecting accessories and restarting your Mac. If that does not help, check sharing and power settings, install available macOS updates, identify apps that block sleep, and test whether the problem continues in Safe Mode.
Quick Answer
To fix a MacBook that does not sleep when you close the lid:
- Disconnect external displays, hubs, drives, docks, and other accessories. 2. Restart the Mac and close the lid again. 3. Check System Settings > Lock Screen and System Settings > Battery. 4. Turn off sharing features you do not need. 5.
Why a MacBook May Not Sleep When the Lid Closes
Several conditions can prevent or delay sleep:
- An external monitor, dock, USB device, or storage drive is connected.
- A running app has an unsaved document, active download, video, or background task.
- File sharing, screen sharing, remote access, or another sharing service is active.
- A system process is temporarily stuck.
- macOS needs an update or has a software issue.
- The MacBook detects an accessory or power condition that keeps it awake.
- The lid sensor, display assembly, battery, or logic board has a hardware problem.
A MacBook connected to power and an external display may remain awake in some setups, especially when the lid is closed while the Mac is connected to a monitor, keyboard, and mouse. Disconnecting everything is the fastest way to determine whether an accessory is involved.
1. Disconnect Accessories and Test the Lid
Begin with a simple isolation test.
- Save your work and quit apps that you are not using.
- Disconnect USB devices, hubs, docks, external drives, SD card readers, and Ethernet adapters.
- Disconnect any external display.
- Unplug the power adapter temporarily if it is safe and practical to do so.
- Wait a few seconds, then close the MacBook lid.
- Wait at least 30 seconds before opening it again.
If the Mac sleeps normally with accessories removed, reconnect them one at a time. Close the lid after reconnecting each device. When the problem returns, the last device or its software is the likely cause.
Check external displays and docks
A dock can combine several possible causes, including display output, USB devices, charging, networking, and vendor-specific software. If the MacBook fails to sleep only when connected to a dock or monitor, install any available updates for the dock and disconnect unnecessary peripherals.
Also check whether the Mac is being used with the lid closed as a desktop computer. In that arrangement, the external display and input devices may keep the Mac awake by design. Disconnect the display and dock when you want to test normal lid-closed sleep.
2. Restart the MacBook
A restart can clear a temporary process or hardware communication problem.
- Open the Apple menu.
- Choose Restart.
- If macOS asks whether to reopen windows, choose the option that fits your situation.
- After the Mac restarts, do not immediately open multiple apps.
- Close the lid and test sleep.
If the Mac is frozen and does not respond normally, press and hold the power button until it turns off. This is a forced shutdown and can cause unsaved work to be lost, so use it only when a normal restart is not possible. Wait several seconds, then press the power button to start the Mac again.
3. Check Lock Screen and Battery Settings
These settings usually do not stop lid-closed sleep by themselves, but they can make the behavior appear inconsistent or affect what happens after the Mac wakes.
Review Lock Screen settings
- Open the Apple menu and choose System Settings.
- Select Lock Screen in the sidebar.
- Review settings such as Turn display off on battery when inactive and Turn display off on power adapter when inactive.
- Make sure the Mac is not simply turning off the display while remaining awake.
Display sleep and system sleep are different. A black screen does not always mean the Mac has entered full sleep.
Review Battery settings
- In System Settings, select Battery.
- Review options for battery usage and power behavior.
- If you see an option that allows the Mac to stay awake for network access or similar activity, turn it off temporarily for testing.
- Close the lid and test again.
The exact options shown can vary by Mac model and macOS version. Change only one setting at a time so you can identify what affects the problem.
4. Turn Off Sharing and Remote Access Features
Sharing services can allow network activity or remote connections while the Mac is available. Temporarily disable services you do not need while testing.
- Open System Settings.
- Select General.
- Choose Sharing.
- Turn off services such as Screen Sharing, Remote Management, File Sharing, or Internet Sharing if they are enabled and you do not need them.
- Close the lid and test sleep.
If turning off one of these services fixes the issue, enable services again individually to find the one involved. Do not disable a service permanently if you rely on it for work or remote access.
5. Quit Apps That May Keep the Mac Awake
Some applications prevent sleep while they perform a task. Common examples include:
- Video or audio playback apps
- Backup and synchronization tools
- Download managers
- Virtual machines
- Remote desktop software
- Screen recording tools
- File compression or conversion apps
- Apps using an external drive or network location
Save your work before quitting an app. If an app has an unsaved document, quitting it may prompt you to save, discard, or cancel.
- Quit open apps from the app’s menu by choosing Quit [App Name].
- Check the Dock for apps with an indicator showing that they are still open.
- Look for progress windows, upload or download activity, and backup notifications.
- Close the lid and test again.
If the problem occurs only while a specific app is running, update that app or check its settings for options related to preventing sleep.
6. Use Activity Monitor to Find Heavy or Stuck Processes
Activity Monitor can show whether an app or process is using unusual amounts of CPU or energy.
- Open Activity Monitor. You can find it in Applications > Utilities.
- Select the CPU tab and look for an app using a large amount of CPU when the Mac is idle.
- Select the Energy tab and review apps with high energy impact.
- If you recognize a process associated with an app, quit that app normally.
- If an app is unresponsive, select it, click the Stop button in the toolbar, and choose Quit.
- Use Force Quit only when normal quitting does not work.
Force quitting can cause unsaved work to be lost. Do not terminate an unfamiliar system process unless you understand what it does. If a process repeatedly causes high CPU usage or prevents sleep, restart the Mac and update the related app.
A persistently overloaded system process can also affect power behavior and performance. If your Mac is unusually hot or slow in addition to having sleep problems, see our guide to fixing a Mac when the kernel_task process overloads it.
7. Install Available macOS Updates
A software update may resolve a bug affecting sleep, power management, drivers, or connected devices.
- Open the Apple menu.
- Choose System Settings.
- Select General.
- Click Software Update.
- Install an available update if one is offered.
- Restart the Mac when prompted.
- Test lid-closed sleep after the update finishes.
Keep the Mac connected to power during a major update, and do not close the lid until the installation is complete unless macOS specifically tells you otherwise.
Also update apps that interact with power or hardware, including dock utilities, display software, backup tools, virtualization software, and security software.
8. Test the Mac in Safe Mode
Safe Mode starts macOS with only essential components. It can help determine whether login items, extensions, or third-party software are causing the sleep problem.
The startup procedure depends on whether your Mac has Apple silicon or an Intel processor.
Apple silicon Mac
- Shut down the Mac completely.
- Press and hold the power button until Loading startup options appears.
- Select a startup volume.
- Press and hold the Shift key, then click Continue in Safe Mode.
- Sign in and test the Mac by closing the lid.
Intel-based Mac
- Shut down the Mac.
- Turn it on and immediately press and hold the Shift key.
- Release the key when the login window appears.
- Sign in and test lid-closed sleep.
If the Mac sleeps correctly in Safe Mode, a login item, system extension, security tool, or other third-party software is likely involved. Restart normally, then open System Settings > General > Login Items. Disable unnecessary background items one at a time and test after each change.
Safe Mode may take longer to start and can temporarily change how some features work. Restart normally when testing is complete.
9. Check for Wake Events in Terminal
Terminal can show whether macOS has recorded a reason for waking or staying active. This method is optional and intended for readers comfortable with command-line tools.
Before using Terminal, save your work. The commands below inspect information; they do not delete files or change settings.
- Open Terminal from Applications > Utilities.
- Enter:
pmset -g assertions
- Press Return.
Look for entries indicating that a process or service is preventing system sleep. The output may include terms such as PreventSystemSleep or PreventUserIdleSystemSleep, followed by a process name or identifier.
You can also review recent power events with:
pmset -g log | grep -i "wake\|sleep"
This displays matching sleep and wake entries from the power-management log. The results can be technical, and a listed wake event does not always identify the underlying cause.
These commands do not make changes, so no reversal is needed. Do not use unrelated pmset commands to change sleep timers unless you specifically intend to change power behavior and understand how to restore it.
Troubleshooting
The Mac sleeps only after I close the lid twice
Disconnect all accessories and restart the Mac. If the problem continues, test in Safe Mode. A delayed response can indicate a stuck app, background service, or lid-sensor issue.
The Mac sleeps, but the battery still drains quickly
Check for connected accessories, network activity, backups, and apps running in the background. Review System Settings > Battery and Activity Monitor. If the battery drains significantly while the Mac is asleep and disconnected from accessories, the battery or power-management system may need service.
The Mac wakes as soon as I close the lid
Remove external devices, especially USB hubs, keyboards, mice, docks, and displays. Turn off sharing services temporarily. If you use a Bluetooth keyboard or mouse, disconnect or switch it off for the test.
The Mac stays warm inside a bag
Do not place a MacBook in a bag while it is warm or while you are unsure whether it is asleep. Remove accessories, force a normal restart if necessary, and confirm that it sleeps with the lid closed before transporting it. Excess heat in a confined space can damage the computer or create a safety risk.
The problem started after installing an app
Review System Settings > General > Login Items and disable the app’s background activity temporarily. Also check the app for settings related to backups, synchronization, remote access, downloads, or preventing sleep.
Sleep problems continue after all software troubleshooting
If the Mac does not sleep with no accessories connected, after a restart, and in Safe Mode, the issue may involve the lid sensor, display assembly, battery, or another hardware component. Arrange service through Apple or an Apple Authorized Service Provider. If the Mac has physical damage, liquid exposure, swelling, or unusual heat, stop using it and seek service promptly.
For related behavior—such as a Mac that sleeps and wakes unexpectedly—see our guide to fixing unexpected sleep and wake problems on a Mac.
Frequently Asked Questions
Should I shut down my MacBook instead of closing the lid?
Not usually. Sleep is designed for short breaks and resumes faster than a full shutdown.
Can a USB device prevent a MacBook from sleeping?
Yes. A dock, external drive, keyboard, mouse, or other USB device can affect sleep or immediately wake the Mac.
Does closing the lid damage a MacBook that stays awake?
Keeping the lid closed does not normally damage the Mac, but a Mac that remains active can generate heat and drain its battery.
Should I reset power-management settings?
Avoid using older reset procedures unless they specifically apply to your Mac model and macOS version.
Final Thoughts
A MacBook that does not sleep when its lid closes is most often affected by a connected accessory, active app, sharing service, or background process.