There are probably 20 of these at this point. I use amphetamine [1] (free on the app store). It has configurable timeouts with optional warnings/notifications, to reduce the ability for your MacBook to melt in your backpack. Can also have it disable when an app closes/download completes/battery percentage, and all sorts of triggers (like bluetooth presence, useful for backpack proximity).
This is neat. I ended up having to buy one of those dummy HDMI dongles to keep my MacBook awake so that I could remote into it. If it thinks there's an external monitor attached, it won't sleep. Or at least you can set it up that way.
Windows has been surprisingly good about this (lid closed, laptop awake). I have a number of always-closed laptops deployed for customers (+ mother in law). Some are desktops that can be easily moved; others are on-prem devices that are left alone to handle certain tasks.
This isn't my first reading about the struggles MacBook users have here. It is bizarre to me that Apple doesn't natively and reliably support closed+awake devices; it feels like they've dug in their heels and I can't imagine why.
For the desk setup scenario, it's less of a problem since they'll stay awake in clamshell if they've got a power source and are hooked up to an external monitor. I've used my personal MacBook in a hybrid home/work setup like this for years without issue. It's only if you want clamshell on battery and/or with no external monitor that tools like this become necessary.
Windows is so good at this that it refuses to let my work laptop sleep when I close it and put it in my backpack no matter how many settings I try tweaking.
I wrote a small caffeine-like macOS command-line utility to keep your MacBook awake when you close the lid.
This can be handy when you have a long running task active but need to close your MacBook – for example to change trains, head home from a café or commute to the office.
> I wrote a small caffeine-like macOS command-line utility to keep your MacBook awake when you close the lid.
Small purposeful utilities like this are Glob's own gift to us. Your counterpart in my Windows world might be the guy who wrote AlwaysActiveHours - a util that prevents update-related reboots.
Why download a third-party script when this feature is built into MacOS? Just run:
to prevent macOS from sleeping. This works even when you close the lid and are on battery power. To re-enable normal sleep again, change the 1 to a 0.There are probably 20 of these at this point. I use amphetamine [1] (free on the app store). It has configurable timeouts with optional warnings/notifications, to reduce the ability for your MacBook to melt in your backpack. Can also have it disable when an app closes/download completes/battery percentage, and all sorts of triggers (like bluetooth presence, useful for backpack proximity).
[1] https://apps.apple.com/us/app/amphetamine/id937984704
[dead]
Are those 20 free and open source as well? Name them then.
My mistake. Well over 20.
https://www.google.com/search?q=site%3Agithub.com+keep+mac+o...
First one I used was around 9 years ago. Nearly melted my backpack with the hot Intel CPU!
If you don't want to install anything, you can disable sleep with the built in tools: sudo pmset -a disablesleep 1
I mean, yeah...
https://github.com/search?q=caffeinate+lid+close&type=reposi...
What are you talking about? It’s a one line terminal invocation. These apps are utterly useless. Of course there’s a million open source ones.
This is neat. I ended up having to buy one of those dummy HDMI dongles to keep my MacBook awake so that I could remote into it. If it thinks there's an external monitor attached, it won't sleep. Or at least you can set it up that way.
Windows has been surprisingly good about this (lid closed, laptop awake). I have a number of always-closed laptops deployed for customers (+ mother in law). Some are desktops that can be easily moved; others are on-prem devices that are left alone to handle certain tasks.
This isn't my first reading about the struggles MacBook users have here. It is bizarre to me that Apple doesn't natively and reliably support closed+awake devices; it feels like they've dug in their heels and I can't imagine why.
For the desk setup scenario, it's less of a problem since they'll stay awake in clamshell if they've got a power source and are hooked up to an external monitor. I've used my personal MacBook in a hybrid home/work setup like this for years without issue. It's only if you want clamshell on battery and/or with no external monitor that tools like this become necessary.
Windows is so good at this that it refuses to let my work laptop sleep when I close it and put it in my backpack no matter how many settings I try tweaking.
amphetamine has been around forever.
I wrote a small caffeine-like macOS command-line utility to keep your MacBook awake when you close the lid.
This can be handy when you have a long running task active but need to close your MacBook – for example to change trains, head home from a café or commute to the office.
> I wrote a small caffeine-like macOS command-line utility to keep your MacBook awake when you close the lid.
Small purposeful utilities like this are Glob's own gift to us. Your counterpart in my Windows world might be the guy who wrote AlwaysActiveHours - a util that prevents update-related reboots.
Haha, every operating system has its quirks. The auto reboot is certainly a very nasty one.
brew install vorssaint
Thank me later.