Hacker News new | ask | show | jobs
by woleium 1072 days ago
Not that I condone this sort of thing, but folks who do need to do it should know about caffeine [0] which allows a Mac to disable it's lid switch and keep running with the lid closed.

[0] https://www.macupdate.com/app/mac/24120/caffeine

2 comments

Side note, Caffeine[1][2] does not disable it's lid switch, but instead disables the automatic sleep behaviour while enabled.

[1] Author link (includes link to source): https://www.intelliscapesolutions.com/apps/caffeine

[2] Original author link (stopped updating before OSX Mojave): https://www.lightheadsw.com/caffeine/

i switched from caffeine to amphetamine due to compat issues and amphetamine does have a mode to disable the lid switch
Or you can use the built-in and more powerful commands: pmset and caffeinate.

E.g. you can prevent sleeping until another process exists, or initiate sleep or shutdown.