Guide

Keep your MacBook awake with the lid closed

June 2026 ยท 7 min read

A MacBook with its lid shut, still running in the background

The export still has two hours to render, the backup is climbing into the cloud, and all you want is to shut the lid and drop the MacBook in your bag or stand it upright in a holder. ๐Ÿ’ป A second later: asleep. Transfer stopped. That exact moment, where the machine should just keep working without a monitor sitting next to it, is surprisingly stubborn, because macOS treats a closing lid differently from any ordinary idle.

Most people reach straight for caffeinate or a keep-awake app and are baffled that the Mac still drops off the moment the lid goes down. The reason is technical but quick to explain, and at the end there's a route that genuinely works on Apple Silicon.

๐Ÿ›‘ Why closing the lid is a special case

macOS has two completely separate reasons to go to sleep. One is plain idle: no input, no background job, eventually the machine closes its eyes. The usual tricks handle that. The other is the lid switch, the magnetic sensor that notices the lid is shut. That triggers sleep instantly, and it bypasses the normal keep-awake machinery.

That's why your Mac only keeps running closed in one case Apple actually supports: on power and with an external display attached. That's clamshell mode. Without the monitor, the machine sleeps the moment you close it, no matter how many keep-awake tools you've launched. If a monitor setup is what you're after, use your MacBook closed on a monitor is the one to read. This piece is about the case without a second screen.

โ˜• Why caffeinate isn't enough here

This is where most people get stuck. caffeinate, and every app built on it, sets what Apple calls power assertions. They tell the system: "Don't sleep from inactivity." A strong statement, but it only touches the idle path. The lid switch isn't affected. You can have the prettiest countdown running in the menu bar, and the second the lid clicks shut, it's over anyway.

๐Ÿ’ก Keep this straight: power assertions block idle sleep. Closing the lid is lid-switch sleep. Two different switches, and the second one doesn't listen to the first tool.

โšฐ๏ธ The old tools are dead

Anyone who's used a Mac for a while remembers InsomniaX or NoSleep. They could ignore a closing lid because they sat deep in the system as a kernel extension and intercepted the lid switch directly. On Apple Silicon that road is effectively closed. Kexts like these only run with reduced security and an annoying boot-time song and dance, and barely any of them are maintained anymore. On a current M-series Mac you can write these tools off for daily use.

๐Ÿ”‘ The modern way: SleepDisabled

There's a clean replacement that needs no kernel extension. The kernel has its own flag called SleepDisabled. Switch it on and the system ignores the closing lid entirely and stays awake, with no external monitor and on battery too. You set it with pmset -a disablesleep 1.

The catch: that command needs root. But you don't want to type a password every time you close the lid, and you certainly don't want to live in the Terminal. The tidy way out is a small privileged helper that gets installed once and then flips the flag on a single click. That's exactly how Helmlet does it: one click sets SleepDisabled, one click takes it back. No kext, no permanent change to your energy settings, and when you quit, everything is back the way it was.

โœ… Works on Apple SiliconM1 through M4, with no reduced security and no kernel extension.
๐Ÿ–ฅ๏ธ No external monitorThe lid can be shut, a second display isn't required.
๐Ÿ”‹ On battery tooNot just on power. Handy when you're out and about.
โ†ฉ๏ธ Cleanly reversibleFlag off, and the Mac sleeps on a closing lid exactly like normal again.

๐Ÿ”ฅ The catch nobody mentions: heat

Here's the part pure keep-awake apps love to leave out. A closed MacBook is a heat trap. Open, the whole chassis around the keyboard sheds warmth. Shut, that surface is gone, the lid sits right over the hot components, and under load the heat builds up far faster. A closed-lid export or an overnight upload isn't only a keep-awake question, it's a cooling question.

On top of that comes the familiar issue: Apple's fan curve is tuned for quiet and lets the fans spin up late. Closed, that means the temperature climbs for a while before anything pushes back. Nothing breaks, the thermal protection throttles in time. But running needlessly hot with the lid shut is something you'd rather avoid, especially for hours overnight.

๐ŸŽฉ This is exactly where Helmlet is different

Keeping the Mac awake on its own would be careless once the lid is down, so Helmlet ties the two together. While the Mac is held awake closed, Helmlet actively ramps the fans up so the heat never gets a chance to sit. And it watches: if it does get too hot, or the battery drops below 15 percent, Helmlet switches the keep-awake off by itself and lets the Mac sleep normally. What's left is the honest, safe way to do it, instead of letting the machine run blind.

๐Ÿ›ก๏ธ The fan value you set is always a floor, never a cap. Thermal protection in macOS runs on top of it the whole time and is free to push higher whenever it wants. You're not forcing less cooling, you're getting more, sooner.

๐Ÿ“Œ The short version

Closing the lid is its own sleep path that caffeinate never reaches. The old kext tools are finished on Apple Silicon. The clean route runs through the SleepDisabled flag via a privileged helper, which works without a monitor and on battery. And because a closed MacBook traps heat, active cooling has to come with it. Both together, with an automatic stop on heat and low battery, live in the menu bar.

Awake while closed, and still cool ๐ŸŽฉ

Helmlet keeps your MacBook awake with the lid shut, no external monitor needed and on battery too. While it does, it ramps the fans up and stops automatically the moment it gets too hot or the battery falls below 15 percent. More on helmlet.app. One-time โ‚ฌ3.99, no subscription.

Get Helmlet ยท โ‚ฌ3.99

Related: Use your MacBook closed on a monitor and Keep your Mac awake without Terminal.

โ† Back to the blog