No. macOS has no "When I close the lid" setting, and closing a MacBook lid puts the Mac to sleep. To get Windows' "Do nothing" behavior on a MacBook without attaching a monitor or running sudo commands, Clamshell for Mac keeps a closed Apple Silicon MacBook running on battery or power with no admin password and nothing to undo, for $9.99 once after a 7-day free trial.
Written by Matyas Rathonyi, the maker of Clamshell for Mac.
Why macOS has no "do nothing" lid setting
Apple's Mac User Guide states macOS's built-in lid behavior in one line: to sleep a Mac laptop, "On a Mac laptop, close the display." To wake it, "On a Mac laptop, open the display." Apple's Battery, Lock Screen, and Displays guides for macOS 27, and its Battery guide for macOS 14, include no switch for what happens when you close the lid.
People moving from Windows expect Microsoft's lid menu. Microsoft documents separate When I close the lid menus for On battery and Plugged in under Control Panel > System and Security > Power Options > Choose what the power buttons do on Windows 11 (or Settings > System > Power & sleep > Additional power settings > Choose what closing the lid does on Windows 10), with Sleep, Hibernate, and Do nothing as choices. macOS has no matching menu.
Every lid-related setting macOS does have
System Settings and Terminal include several power and lock controls near lid behavior, checked against Apple's documentation and the macOS 27.2.1 pmset(1) manual:
| Where to look | Setting | Covers closing the lid? |
|---|---|---|
| Battery > Options | Prevent automatic sleeping on power adapter | Power only, display off only |
| Battery > Options | Wake for network access | Wakes after sleep only |
| Lock Screen | Require password after display turns off | Lock delay after sleep only |
| Lock Screen | Turn display off when inactive | Idle screen timers only |
| Displays | Arrange, resolution, brightness, refresh rate | Display layout and picture only |
Terminal (nvram) | BootPreference (%00, %01, %02) | Startup from shut down only |
Terminal (pmset) | sudo pmset -a disablesleep 1 | Stops all sleep, needs sudo |
To inspect your current power settings without changing anything, run either read-only command in Terminal:
pmset -g
pmset -g custom
Where the free macOS workarounds stop
If you want your MacBook to keep working after you shut the lid, macOS leaves you with two free built-in routes, and each asks for something in return:
- Apple's closed-lid desk setup: Free if your MacBook stays plugged into power with an external monitor, external keyboard, and external mouse attached, and approved once with the lid open on Apple Silicon (Apple Support 102501 and 102282). Unplug the charger or move away from the monitor, and Apple documents no closed-lid option.
- Terminal (
sudo pmset -a disablesleep 1): Keeps a closed MacBook awake on battery too, without a monitor, but it asks for an administrator password, is absent fromman pmset, gives you no menu bar indicator or battery cut-off, and turns off all sleep for the entire Mac until you manually undo it withsudo pmset -a disablesleep 0.
Why pay $9.99 once instead of using sudo pmset? You skip admin passwords, manual undo commands, and the risk of forgetting it is on, while getting a menu bar switch, an always-on heat cut-off, and a 20% battery floor.
Keep a closed MacBook running with Clamshell
If you want a real "do nothing" switch when you close the lid, Clamshell for Mac is a menu bar app built for that job:
- No admin password or
sudo, nothing to undo. Arm Clamshell from the menu bar, close the lid on battery or power with no monitor attached, and normal lid sleep returns when you disarm or quit. - Always-on heat protection and a 20% battery floor. Serious or critical thermal pressure disarms Clamshell toward normal lid sleep automatically. Low-battery stop at 20% on battery power is on by default.
- Rules that match plugged-in or always-on desk habits. Optional built-in modules such as Always On While Plugged In and Home Server keep your MacBook armed automatically when you want a permanent closed-lid rule.
- Notarized and ready to install. Runs on Apple Silicon MacBooks with macOS 14 or later via direct download, Homebrew (
brew install --cask clamshell), or Setapp.
Test it on your Mac before paying anything: Download free trial (free for 7 days, no card required; $9.99 once for 1 Mac or $19.99 for up to 3 Macs, with a 14-day money-back guarantee).
Two lid settings macOS does give you for free
If you are looking for locking or startup behavior rather than keeping a closed Mac awake, macOS handles both built in:
- Lock the Mac when you close the lid: Open Apple menu > System Settings > Lock Screen, then click the pop-up menu next to Require password after screen saver begins or display is turned off to set how soon macOS asks for your password after sleep begins.
- Stop a shut-down MacBook turning on when you open the lid: On Apple Silicon laptops running macOS Sequoia 15 or later, Apple Support 120622 documents running
sudo nvram BootPreference=%01in Terminal to stop startup on lid open (%00stops both lid open and power connect;%02stops power connect only). Undo any of them withsudo nvram -d BootPreference. This applies only when the Mac is shut down, not asleep.
When you do not need Clamshell
- Your MacBook stays at a desk with power, an external monitor, keyboard, and mouse. Apple's built-in closed-lid setup already covers that desk workflow for free (see how to use a MacBook in clamshell mode).
- You use an Intel Mac or macOS 13 or earlier. Clamshell requires Apple Silicon and macOS 14 or later.
Frequently asked questions
Is there a "do nothing when I close the lid" option on Mac?
No. Unlike Windows Power Options, macOS has no System Settings choice that stops closing the lid from sleeping the Mac. To keep a closed MacBook running without an external monitor or sudo commands, start Clamshell's 7-day free trial.
Does "Prevent automatic sleeping on power adapter when the display is off" stop lid sleep?
Apple documents that switch under Battery > Options for preventing automatic sleep when the Mac is plugged in and the display is off, not for closing the lid. It applies on power only; to keep a closed MacBook awake on power or battery, use Clamshell.
How do I make my Mac lock when I close the lid?
Open Apple menu > System Settings > Lock Screen and choose your delay next to Require password after screen saver begins or display is turned off. Because closing the lid sleeps the Mac by default, macOS asks for your password on wake according to that setting.
Can I stop my MacBook from turning on when I open the lid?
Yes, when it is shut down on an Apple Silicon MacBook running macOS Sequoia 15 or later. Apple Support 120622 documents sudo nvram BootPreference=%01 in Terminal to disable startup on lid open, and sudo nvram -d BootPreference to restore the default.
Why pay $9.99 for Clamshell when sudo pmset disablesleep 1 is free?
sudo pmset disablesleep 1 is free?Running sudo pmset -a disablesleep 1 asks for an admin password, turns off all sleep on the Mac until you manually reverse it, and has no menu bar indicator, battery floor, or heat cut-off. Clamshell costs $9.99 once with no subscription so you can arm closed-lid awake mode with no admin rights, an always-on heat cut-off, a 20% battery stop, and normal lid sleep back when you disarm or quit.
Related guides
- How to use a MacBook in clamshell mode with an external monitor
- What sudo pmset disablesleep 1 does and how to undo it
- How to keep a Mac running with the lid closed
Try Clamshell free for 7 days
Give your MacBook the close-lid control macOS leaves out, with no admin password, an always-on heat cut-off, and a 20% battery floor. Normal lid sleep returns when you disarm or quit.
$9.99 for 1 Mac, $19.99 for up to 3 Macs. 7-day free trial with no card required and a 14-day money-back guarantee. Apple Silicon, macOS 14 or later, notarized by Apple. Also available via Homebrew (brew install --cask clamshell) or Setapp.
Sources checked November 23, 2026: Apple Support articles 102501 (April 6, 2026), 102282 (April 30, 2026), and 120622 (February 4, 2026); Apple Mac User Guide pages for Battery, Lock Screen, Displays, Sleep, and Require a password (macOS 14 and macOS 27); Microsoft's Windows power options and HDR settings documentation; and the macOS 27.2.1 pmset(1) manual. Clamshell details come from version 2.0.5. Product names belong to their respective owners.