Skip to content
86% off$349 $48.86code BF2026

Guides

Amphetamine closed-display mode stops working after unplug

Amphetamine's closed-display mode stopped after you plugged or unplugged power or a monitor? Reported fixes in order, and what Glowmoth's closed-lid mode does.

TroubleshootingUpdated 6 min read

On this page

You started a closed-display session in Amphetamine and it worked. Then you unplugged the charger, or plugged or unplugged a monitor, and closing the lid now puts the Mac to sleep. The setting still reads Allow system sleep when display is closed, unticked, so nothing on screen explains it.

Why it happens

Amphetamine's developer hasn't published a cause that we could confirm, so treat the explanations below as likely rather than certain. The pattern in user reports is consistent: closed-display mode works until a power or display event, then stops. The setting doesn't change to show it.

  • Session state disturbed by a port event. Users report that ending the session and starting a new one brings closed-display mode back. That points to state set up when the session starts, which a plug or unplug disturbs. This is an inference from the reports, not a documented cause.
  • The Mac was never on power. In one reported case, the "bug" was a magnetic power cable dangling near the port. The battery icon would have shown it.
  • macOS lid-closed rules. Apple describes lid-closed use of a MacBook as depending on an external display and power being connected. Without them, macOS goes back to its normal sleep behavior.
  • A new display macOS hasn't approved. On some Macs, macOS asks you to allow a newly connected display or accessory. Until you allow it, the display can stay dark and look like a sleep problem.

One older report (an M1 Max MacBook on Monterey, November 2021) went further. Unplugging the charger mid-session put the Mac to sleep, and it wouldn't wake until power was reconnected.

Fixes, most likely first

1. Check the connection

This takes ten seconds.

  1. Unplug the charger and plug it back in firmly.
  2. Check the battery icon in the menu bar. It should show the Mac is on power before you close the lid.
  3. If you use an external monitor, reseat its cable too.

2. End the session and start a new one

This is the fix users report most often.

  1. End the current Amphetamine session.
  2. Start a new session. Use an indefinite one while testing.
  3. Confirm the session is running, then close the lid.

Until you have a longer-term fix, repeat this after every plug or unplug of power or a display.

3. Tick and untick the setting

If a new session doesn't help, toggle the setting itself.

  1. Open Amphetamine's settings and find Allow system sleep when display is closed.
  2. Tick it, then untick it.
  3. Start a new session, then close the lid.

4. Install the Enhancer's Closed-Display Mode Fail-safe

Amphetamine Enhancer is a separate, free helper app for Amphetamine. Its README says it needs Amphetamine 5.0 or later, with Amphetamine in /Applications. Users report this order:

  1. Install the Enhancer and its Closed-Display Mode Fail-safe module.
  2. Untick Allow system sleep when display is closed.
  3. Start an indefinite session.
  4. Close the lid only after the session is running.

Know the trade-offs first:

  • It does nothing without Amphetamine.
  • It looks unmaintained. The only release we found is 1.0, and the code dates from 2019 to 2020.
  • Its README describes the fail-safe as a safety net for when Amphetamine isn't running. Users report it helping with this problem, but the description doesn't promise that.
  • Download it only from its official GitHub repository, and read the README first.

5. Let macOS approve the display

If an external monitor stays dark after you reconnect it, look at the accessory approval prompt. Apple's article on allowing USB and other accessories to connect covers the Mac side. For Apple's rules on using a MacBook Pro with an external display, see connecting an external display to MacBook Pro.

Symptom, cause and fix

SymptomLikely causeFix
Sleeps right after unplugging the chargerPort event disturbed the sessionFix 2, then Fix 4
Sleeps and the battery icon shows no powerCable not seated, or loose magnetic connectorFix 1
Stops after reconnecting a monitorDisplay event, same session stateFix 2
Monitor stays dark after reconnectingmacOS waiting for you to allow itFix 5
Works, then fails after the next plug or unplugUnderlying issue still presentFix 4

If the Mac is asleep and won't wake

Reconnect the charger, then press a key or open the lid. Once it's awake, use Fix 2 before closing the lid again.

Check what is holding sleep off

This command only reads state and changes nothing:

bash
pmset -g assertions

It lists apps and processes holding sleep-blocking assertions, with a reason for each. Run it before you close the lid, and paste the output into any bug report.

Checklist before you try again

  • The charger is firmly seated and the menu bar shows power.
  • Any external monitor is connected and awake.
  • The session is running before the lid closes.
  • Allow system sleep when display is closed is unticked.
  • You've ended and restarted the session since the last plug or unplug.

What Glowmoth covers, and what it doesn't

We make Glowmoth, so weigh this accordingly. It is an alternative for this job, not a fix for Amphetamine, and none of the fixes above need it.

Its closed-lid mode is at Settings ▸ Safety ▸ Closed Lid. It's for laptops, off by default, and needs a small helper that you approve in System Settings ▸ General ▸ Login Items. While Glowmoth is keeping the Mac awake, the helper runs pmset -a disablesleep 1, and it runs pmset -a disablesleep 0 as soon as that ends. In our code this doesn't depend on a charger or monitor being connected. Three things can end it: the battery floor (20% by default), thermal pressure macOS reports as serious, and the optional Stop the session when switching to battery setting (off by default).

Full steps are in Keep a MacBook awake with the lid closed. The limits are in battery and heat safety limits. For a wider look, see Amphetamine vs Glowmoth.

If nothing works

Contact Amphetamine's developer through its App Store listing. Include:

  • Your Mac model, macOS version and Amphetamine version.
  • Whether Allow system sleep when display is closed was ticked or unticked.
  • The exact sequence of events and whether the Mac woke normally.
  • The output of pmset -g assertions.

For Glowmoth, contact us with the status line under the closed-lid switch. A message you can copy:

text
Mac: MacBook Pro, macOS version: X. Amphetamine version: X.
Setting "Allow system sleep when display is closed" is unticked.
Steps: started an indefinite session, closed the lid (worked),
unplugged the charger, closed the lid again: the Mac slept.
It woke only after power was reconnected.
Already tried: ended and restarted the session, ticked/unticked the setting.
Output of "pmset -g assertions" attached.

Common questions

Why does the setting still show unticked when it fails?

It stores your preference, not the live state. Users report the preference stays unchanged while closed-display behavior has stopped, which is why restarting the session helps.

Do I need Amphetamine at all for lid-closed use?

Not always. macOS can run a MacBook with the lid closed when power and an external display are connected. See Clamshell mode on Mac for that setup.

Is the Enhancer safe to install?

It's open source, but it's old and apparently unmaintained. Treat it as a workaround, download it only from its official repository and read the README first.

Does a Mac that sleeps mid-session lose my work?

Sleep suspends apps rather than quitting them, so open documents normally survive. Downloads and network jobs stop, which is the usual reason people want the Mac awake.

Every app.
One purchase.