MacBook Clamshell Mode Randomly Sleeps: Power Adapter Sound
M1 MacBook Air sleeping in clamshell mode and playing the power adapter chime? Confirm the power drop with pmset, then test the charger, hub, cable and outlet.
GuideUpdated 7 min read
On this page
Your M1 MacBook Air runs fine in clamshell mode with an external display, then goes to sleep at random. You hear the "power adapter connected" sound, either as it happens or when you wake it. It looks like a sleep-settings problem, but it usually isn't.
Why clamshell mode randomly sleeps
A MacBook runs with the lid closed only while it has power and an external display connected. If power breaks, even briefly, the Mac is on battery with a closed lid, so it sleeps. When power returns, macOS detects the adapter again and plays the chime.
Causes, most common first:
- A charger that can't keep up. The adapter, display and accessories all draw power at once. Apple's advice is to use an adapter with equal or greater wattage than the one that came with your Mac.
- A hub or dock in the chain. One marginal device carries power, video and USB.
- A worn or charge-limited cable, or a dirty port. Apple notes that some USB-C cables only carry data and won't charge a Mac.
- The outlet or circuit. Apple says an adapter shuts off automatically when its voltage protection senses line noise from an outlet. Lights with ballasts and refrigerators on the same circuit are possible sources.
- A flickering display link. A bad video cable or adapter breaks the display half of the requirement.
- A hardware fault in the USB-C port or the Mac's power circuitry. This is the least common cause, so test it last.
People on vendor and community forums describe the same pattern: the power log shows the Mac flipping to battery at random intervals, then the display goes off and it sleeps. Reports of fixes include a stronger charger, a different outlet, unplugging USB devices and replacing the cable. Those reports are anecdotal. Treat the steps below as a way to isolate your fault, not a guaranteed cure.
Confirm that power is dropping
Do this before you replace anything. None of these commands changes a setting, so there is nothing to undo.
- Open Terminal (Applications > Utilities).
- List recent power-source changes from the power log:
pmset -g log | grep -Ei "using (ac|batt)" | tail -20- Look for lines that alternate between AC and battery, with timestamps near the times the Mac slept. Several switches in a short span, with nobody touching the cable, point to a power-delivery problem.
Log wording varies between macOS versions, so the lines may not match exactly. If nothing matches, watch the live source instead. This prints it every 5 seconds; stop it with Control-C:
while true; do date; pmset -g batt | head -1; sleep 5; doneA healthy connection keeps reporting AC Power. If it flips to Battery Power and back, you have found the fault.
To see why the Mac slept:
pmset -g log | grep "Entering Sleep state due to" | tail -10Expect the reason to mention the lid or clamshell if the lid-closed-without-power explanation fits. The exact wording isn't guaranteed.
Which test rules out what
| Test | What it rules out |
|---|---|
| Original or higher-wattage charger | Underpowered adapter |
| Charger and display plugged straight into the Mac | Hub or dock dropouts |
| Different cable and the other USB-C port | Worn cable or port |
| Different wall outlet or circuit | Outlet, strip, extension lead, line noise |
| Everything unplugged except charger and display | A misbehaving USB device |
Step-by-step fixes
1. Check the charger
- Hold Option and click the Apple menu, then choose System Information.
- Select Power in the sidebar.
- Under AC Charger Information, read the wattage.
Compare it with the adapter that came with your Mac. Apple's support article says you can use any USB-C power adapter with a Mac laptop, but it should have equal or greater wattage than the original. A phone charger, a low-wattage adapter, or a multi-port charger that splits its output may fall short once a display and accessories are attached. Apple also says that if you have trouble with a non-Apple adapter, you should try the Apple adapter and cable that came with the Mac. Apple's article If your USB-C power adapter isn't charging your Mac laptop covers this.
2. Take the hub out of the chain
- Plug the charger straight into one of the Mac's USB-C ports.
- Plug the display straight into the other port, if the display supports it.
- Leave everything else unplugged and close the lid for 30 minutes or more.
If the Mac stays awake, add devices back one at a time. If the display only works through a hub, try a dock with its own power supply.
3. Try a different cable and port
- Use the cable that came with the adapter, or one you know is good.
- Make sure any replacement cable supports charging, not just data.
- Move the charger to the Mac's other USB-C port.
- Check the ports for lint or debris. Apple suggests compressed air if needed.
Apple also says that if a Mac only charges when you wiggle the cable, you should stop using that cable and get it evaluated.
4. Try a different outlet
- Plug the adapter directly into a wall outlet, not a strip or extension lead.
- If you can, pick an outlet on a different circuit from refrigerators and ballast lighting.
- Check that the removable AC plug (the "duckhead") sits firmly. Apple suggests trying another Apple AC plug or the Apple Power Adapter Extension Cable if the plug seems to be the issue.
5. Unplug USB devices
Disconnect everything except the charger and display. Then reconnect devices one by one over a day or two. If the sleeps return after one specific device, replace its cable or try another port.
6. Update macOS
Apple says software or firmware updates can improve communication with your power adapter. Open System Settings, search for "Software Update", and install anything pending.
Check the display link and accessory approval
If the log shows no switch to battery, power is probably fine and the display half of the requirement is the suspect. Try a different video cable, or connect the display directly with no adapter or hub.
Apple silicon laptops can also ask you to approve new accessories. Apple's article Allow USB and other accessories to connect to your Mac says you should first allow an external display, mouse and keyboard to connect, and then you can use the Mac with the lid closed. A hub that stays blocked until you open the lid is a different problem from a power drop.
Checklist before you try again
- The
pmsetoutput shows whether power really switched to battery. - The adapter wattage is at least that of the original.
- Charger and display each go straight into the Mac, no hub.
- You tested a known-good, charge-capable cable and the other USB-C port.
- You tried a wall outlet on a different circuit.
- Only the charger and display are connected during the test.
- macOS is up to date.
If the Mac still sleeps
- The log shows no switch to battery. Check the display link and the accessory approval setting above.
- The log lines don't match the command. Use the live
pmset -g battloop and watch forAC Powerchanging toBattery Power. - It sleeps with the lid open too. Clamshell mode isn't the cause. Open System Settings and search for "Lock Screen" and "Battery" to review the sleep and display timers.
- Nothing helps with known-good parts. The USB-C port or the Mac's power circuitry may be faulty. Contact Apple Support, or take the Mac, adapter and every cable you use to an Apple Store or Apple Authorized Service Provider, as Apple's article suggests.
Include the AC/battery log lines, the adapter wattage and the list of parts you already tried:
My M1 MacBook Air sleeps at random in clamshell mode (lid closed, external display)
and plays the "power adapter connected" sound. pmset -g log shows the Mac
switching between AC and battery at these times: [paste timestamps].
Adapter wattage in System Information > Power: [W]. Already tried: original
charger, direct connection with no hub, a different cable and USB-C port,
a different wall outlet, all USB devices unplugged. macOS version: [version].Common questions
Is this a battery problem?
Probably not. The pattern points to the power source switching, not a worn battery. If pmset -g batt stays on AC Power while the Mac sleeps, look at the display connection and your sleep settings instead.
Can a keep-awake app fix it?
No. A keep-awake app blocks idle sleep, but here the Mac sleeps because the lid is closed and power or the display dropped. The cable, charger, hub or outlet is what needs fixing.
Why do I hear the chime if the cable never moved?
The chime plays when macOS detects a power source being connected. A brief electrical interruption from a marginal cable, port, hub or noisy outlet can look to the Mac like unplugging and replugging.
Does the M1 Air need a hub or dock for clamshell mode?
No. It needs power, an external display, and usually an external keyboard and mouse or trackpad. A hub is a convenience, and it is the first thing to remove when you diagnose dropouts.