Shake It On Closed-Lid Mode

Coming in the next update, not in the current version (1.0.7). Closed-lid mode in Shake It On holds an IOKit kIOPMAssertionTypePreventSystemSleep assertion so the Mac stays awake even with the lid closed. macOS only honors this when an external display is connected and the Mac is on power, that's a system constraint, not the app's.

Coming next
This guide covers a feature that is coming in the next Shake It On update. It is not in the current version (1.0.7) yet. When the update ships, the app installs it for you, free for everyone who has bought Shake It On.

Closed-lid mode in Shake It On

macOS sleeps your MacBook when you close the lid. That's almost always what you want. Almost.

If you're using your MacBook as a "desktop replacement", docked with an external display and power adapter, lid closed because it's in a stand, you want the opposite. Close the lid, keep working. Closed-lid mode, coming in the next Shake It On update, will do exactly that.

The IOKit assertion

Closed-lid mode holds a stronger IOKit power assertion than Allow-display-to-sleep: kIOPMAssertionTypePreventSystemSleep. It tells macOS to keep the system awake even when lid-closure events are signaled.

macOS only honors this assertion when:

  • An external display is connected
  • The Mac is on power (the adapter, not the battery)

Without those, the toggle is a no-op: your Mac will still sleep on lid close, which is the safe behavior. Apple won't let any app bypass the thermal-protection logic.

Closed-lid mode is coming in the next update. Buy Shake It On once and you get it free when the update ships.

Enable Closed-lid mode

  1. Plug in a power adapter and connect an external display.
  2. Open Settings (menu bar → Settings…).
  3. Scroll to the General section.
  4. Turn on Keep awake when lid is closed.

Close the lid. The Mac stays awake. Open it back up: also fine, nothing changes.

vs. Allow display to sleep

These are two different IOKit assertions for two different cases:

  • Allow display to sleep: keeps the system awake; the display can dim and sleep. Lid stays open. Use this for overnight renders on a stationary Mac.
  • Closed-lid mode: keeps the system awake even when the lid is closed. Use this for docked-MacBook setups.

You can turn both on. Closed-lid takes priority because it's the stronger assertion.

A note on thermals

Running a MacBook with the lid closed restricts airflow. For light workloads (writing, video calls, web) it's fine. For sustained heavy CPU (rendering, encoding, training a model) you may want the lid open even with closed-lid mode toggled on.

Important
On an iMac, Mac Studio, or Mac mini, the toggle is harmless: there's no lid to close. Leave it on or off; it doesn't matter.

vs. Amphetamine's closed-display mode

Amphetamine has the same feature; they call it "Closed-Display Mode." On Apple Silicon, Amphetamine recommends a "Power Protect" workaround for some cases. Shake It On uses the same IOKit assertion type natively without any workaround, on both Apple Silicon and Intel.

Keep your Mac awake the easy way.
Shake It On lives in your menu bar and uses organic mouse movement to prevent sleep. Set it once and forget it.
One-time purchase. No subscription. Free updates forever.
Lifetime license · macOS 14+
Apple Pay, Google Pay or card. Your download starts right after payment, and you can re-download anytime with your purchase email.