News for hackers. Stuff that matters.
Re:Uber Eats Canada Ran Production in a MacBook Air by woleium on Wednesday July 12, 2023 @11:13PM (#36704606)
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

Re:Uber Eats Canada Ran Production in a MacBook Air by Acen on Wednesday July 12, 2023 @11:28PM (#36704691)
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/

Re:Uber Eats Canada Ran Production in a MacBook Air by raihansaputra on Wednesday July 12, 2023 @11:35PM (#36704730)
i switched from caffeine to amphetamine due to compat issues and amphetamine does have a mode to disable the lid switch
Re:Uber Eats Canada Ran Production in a MacBook Air by fingerlocks on Thursday July 13, 2023 @01:49AM (#36705449)
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.