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

Guides

Keep a Closed MacBook Awake for Remote Desktop, No Monitor

Keep a MacBook awake with the lid closed for Screen Sharing, remote desktop or Vision Pro, with no monitor or dummy plug. Setup, limits and fixes.

GuideUpdated 8 min read

On this page

You want to close the lid, leave the MacBook on a shelf, and still reach it over Screen Sharing, a remote desktop app or Apple Vision Pro. No monitor, no dummy plug. The Mac sleeps the moment the lid shuts and the connection dies.

We make Glowmoth, so weigh our view accordingly; we've tried to be fair to the other options.

Why the Mac sleeps when you close the lid

Closing the lid is a separate trigger from idle sleep. Most keep-awake tools, including Glowmoth's normal sessions, hold only an idle-sleep or display-sleep assertion. Those stop the Mac from sleeping when you stop touching it, but they don't stop lid sleep. Glowmoth's own panel says so: "Closing the lid sleeps this Mac unless it has power and an external display."

Apple's supported way around this is clamshell mode. Apple's guidance for a closed-lid laptop with an external display is that the Mac must be connected to power and using an external keyboard and mouse. That setup assumes a real display, which is exactly what you don't have here.

Some remote-access guides suggest a display emulator ("dummy plug") so macOS believes a monitor is attached. That is a hardware fix, and we haven't tested any of them.

Your options

OptionWhat you needMain limit
Apple clamshell modePower, external display, keyboard and mouseNeeds a real display
Display emulator plugThe plug, plus powerExtra hardware; untested by us
Amphetamine (free)Its closed-display mode; the separate Enhancer helper as a fail-safeEnhancer looks unmaintained; may fail after power changes
Caffeine by iannuttall (free, MIT)Nothing extra in our notesClosed-lid mode is "best-effort" only
GlowmothApprove a helper once; MacSuite license after the 7-day trialLaptops only; works only during a session; hardware verification pending

Status as of November 2026.

  • Pick Apple's clamshell mode if a monitor sits on your desk anyway. Nothing to install.
  • Pick a dummy plug if you want a hardware fix, or if your remote screen comes up black or at the wrong size (see "If it doesn't work").
  • Pick Amphetamine if you already use it. People on a Vision Pro community forum report using it to keep a MacBook closed and connect the headset. Per our notes, Amphetamine's own README says closed-display mode may fail after you plug in or unplug power. The official fix is a manual install called Power Protect (a script plus a sudoers file). The Enhancer helper's only release we found is 1.0, and the repo looks inactive.
  • Pick Caffeine (iannuttall) if you want a free, MIT-licensed app and can accept uncertainty. Its closed-lid mode is best-effort, and the only release we found is version 0.1.0.
  • Pick Glowmoth if you want closed-lid behavior with no monitor, no plug and no manual script, and you're fine approving a helper. It is sold only as part of the MacSuite bundle ($349 one-time, as of November 2026; see pricing). If closed-lid is the only thing you need, try a free option first.

Set up closed-lid mode in Glowmoth

You need a Mac with a battery (the setting only appears on laptops) and macOS 14 Sonoma or later. Without a valid trial or license, Glowmoth keeps nothing awake.

  1. Right-click the moth icon in the menu bar and choose Settings… (⌘,).
  2. Open the Safety tab.
  3. Under Closed Lid, turn on Stay awake with the lid closed.
  4. Approve the helper. Glowmoth opens System Settings ▸ General ▸ Login Items and shows "Allow the Glowmoth helper in Login Items to finish." If the pane doesn't open, click Open Login Items.
  5. When approved, the caption reads "Works during a session. Your Mac sleeps as usual otherwise."
  6. Start a keep-awake session (next section), then close the lid.

If the lid closes during an active session, Glowmoth plays the "Glass" sound and posts "Lid closed, staying awake". The banner needs notifications allowed for Glowmoth.

Make sure something is holding the Mac awake

The reason can be your own session or an automatic one:

  • Manual: left-click the moth and use the Keep Awake switch, or right-click and choose Indefinitely or a duration. Pick a duration longer than your remote work, because when a timed session ends the Mac sleeps and your connection drops.
  • At login: in Settings ▸ General ▸ Startup, turn on Launch at login and Keep awake when Glowmoth opens. That starts your default duration, which is "Indefinitely" unless you changed it.
  • By rule: in Settings ▸ Automation, use Add Rule, then Add Condition (for example During Hours, or On a Wi-Fi Network, which needs Location access). The Mac stays awake whenever the rule is true. See Automatic rules.

If you connect only while you're away, use the login or rule route. Once the Mac is asleep, you can't start a session from another device.

What switches closed-lid mode off

While closed-lid mode is on, the battery floor and heat limit are forced on and their switches are disabled.

  • Heat: off immediately when macOS reports serious thermal pressure or worse. The status reads "Off while your Mac is running hot." Keep the Mac somewhere with airflow.
  • Battery: on battery, off below the battery floor (20% by default). The status reads "Off below 20% battery. Plug in to resume."

You don't need a power adapter, but a long remote session is safer plugged in. See Battery and heat safety limits.

Turn it off

Turn off Stay awake with the lid closed. If the helper stays installed, a Remove Helper button appears. Normal sleep also returns when Glowmoth stops holding the Mac awake, when it quits or crashes, and when the Mac shuts down. If Glowmoth stops responding, sleep returns within 30 seconds.

Make the remote connection itself work

A Mac that stays awake still has to accept the connection. Glowmoth doesn't do this part.

  1. On the Mac, choose Apple menu > System Settings, click General, then Sharing, and turn on Screen Sharing. Apple's page on turning Screen Sharing on or off covers the options for who may connect.
  2. Keep the Mac on a network you can reach from the other device, or reachable through your own VPN. Glowmoth doesn't keep Wi-Fi or VPN connections alive and doesn't fix captive portals.
  3. Test with the lid open first, then close the lid and reconnect from the other device.

For Apple Vision Pro the same split applies: Glowmoth only keeps the Mac awake. We haven't verified how Mac Virtual Display behaves with the lid closed.

Check what the Mac is holding

While Glowmoth holds the Mac awake, it keeps one power assertion named like "Glowmoth: Session until you stop it". This read-only Terminal command lists current assertions and changes nothing:

bash
pmset -g assertions

If no "Glowmoth: …" entry appears, Glowmoth isn't holding the Mac awake and closing the lid will put it to sleep.

If it doesn't work

SymptomLikely causeFix
Mac sleeps on lid closePanel title is "Sleep Allowed": no session runningStart a session or rule first
Panel says "Paused"Battery or heat limitPlug in or cool down; Resume Anyway (30 min) with the lid open
"Allow the Glowmoth helper in Login Items to finish."Helper not approvedClick Open Login Items and allow it
"macOS couldn't install the helper…"App not in ApplicationsMove Glowmoth to Applications, reopen, toggle again
"Can't reach the helper…"Helper connection lostTurn closed-lid mode off and on again
"Sleep is already turned off with pmset, outside Glowmoth."Something else disabled sleepGlowmoth leaves it alone; undo that setting yourself
Rule setup doesn't holdManual mode or Stop EverythingSwitch the panel to Automatic, or start a new session
"Your trial has ended"No valid licenseEnter License… and activate your key
Session ended on lockEnd the session when the screen locks is onTurn it off (default is off)
Black, tiny or wrong-size remote screenDisplay problem, not sleepUse a real display or an emulator plug

A licensed app works offline for up to 7 days between license checks.

Checklist before you try again

  • Glowmoth is licensed or in its 7-day trial.
  • Stay awake with the lid closed is on and the helper is approved.
  • A session or rule is active (panel title shows "Awake" or "Automatic" icon state).
  • The Mac has enough battery, or is plugged in, and isn't hot.
  • Screen Sharing (or your remote tool) works with the lid open.

If nothing works

Contact MacSuite through support. Include your macOS version, Mac model, the exact status caption under the closed-lid switch, what the panel title says before you close the lid, and the output of pmset -g assertions.

text
Subject: Glowmoth closed-lid mode does not keep my MacBook awake

Mac model and macOS version: 
Glowmoth version: 
Closed-lid status caption (Settings > Safety): 
Panel title before closing the lid (Awake / Sleep Allowed / Paused): 
Session or rule used: 
Remote tool (Screen Sharing / Vision Pro / other): 
Output of `pmset -g assertions` with the lid open: 
Steps already tried: 

Common questions

Do I need a power adapter?

No. Glowmoth's closed-lid mode needs neither an adapter nor an external display, but it switches off below the battery floor (20% by default), so plugging in is safer for long sessions.

Will Glowmoth wake a sleeping MacBook so I can connect?

No. In normal installs it can't wake a sleeping Mac at a set time, and the closed-lid helper doesn't schedule wakes. Keep a session or rule active so the Mac never sleeps.

Does it work on a desktop Mac?

Closed-lid mode is laptop-only. Desktop Macs have no lid, so a normal session or rule is all you need.

Can I use Glowmoth's normal session instead, with the lid closed?

Not on its own. Normal sessions block idle sleep only, so closing the lid still sleeps a MacBook unless closed-lid mode is on (or power and an external display are attached).

For the feature reference, see the closed-lid docs. For the general topic, read Clamshell Mode on Mac, and for a side-by-side, Amphetamine vs Glowmoth.

Every app.
One purchase.