Skip to content

Comment on Decapitating a MacBook (2025)

Comments

Semi-related. I wonder why Mac OS does not provide any setting to keep the laptop running with the screen closed. You either need to use third party software or connect a dummy HDMI dongle. Both of which cost additional money for a function that is furnished as a matter of course by other operating systems.

There is a setting for it, it's just not exposed in the GUI.

sudo pmset -a disablesleep 1

As mentioned by the other commenter, `caffeinate -s` also works, but with the caveat that a) the command has to be running and b) the laptop has to be plugged in to power. Configuring disablesleep=1 completely prevents sleep and lasts until you manually configure it back to 0.

Thermal problem maybe ? The hot air escapes through the vent near screen.

You can use the caffeinate command (CLI) to do that, IIRC.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.