Earlier quoted context omitted.
> I'm more surprised that any application can prevent sleep _when you close the lid_. Absolutely. If my options are 1) halt the process when the lid closes or 2) let the battery die heating up the inside of my bag and then the process halts anyway when the laptop dies then please, please let me choose #1! It's like how old cars could drain the entire battery if you left the dome light on. Why would they allow that?
Maybe you really needed the dome light. Same as in this case.
MacBook Pro Insomnia
211–220 of 238 posts
Re: MacBook Pro Insomnia
#212Earlier quoted context omitted.
> I'm more surprised that any application can prevent sleep _when you close the lid_. Absolutely. If my options are 1) halt the process when the lid closes or 2) let the battery die heating up the inside of my bag and then the process halts anyway when the laptop dies then please, please let me choose #1! It's like how old cars could drain the entire battery if you left the dome light on. Why would they allow that?
Maybe you really needed the dome light. Same as in this case.
Similarly, I can't think of a use case for preferring that processes keep running all night on a closed, unplugged laptop until the battery dies at which point they all halt anyway. But if someone needs this behavior I suppose there could be an option for it.
Re: MacBook Pro Insomnia
#213Earlier quoted context omitted.
> I'm more surprised that any application can prevent sleep _when you close the lid_. Absolutely. If my options are 1) halt the process when the lid closes or 2) let the battery die heating up the inside of my bag and then the process halts anyway when the laptop dies then please, please let me choose #1! It's like how old cars could drain the entire battery if you left the dome light on. Why would they allow that?
Maybe you really needed the dome light. Same as in this case.
Re: MacBook Pro Insomnia
#214Earlier quoted context omitted.
> I'm surprised that Apple's power management doesn't have an alert for this. I'm more surprised that any application can prevent sleep _when you close the lid_. I can understand the utility behind something like stopping sleep via timeout so a media player can tell the system "hey, they're watching a movie don't turn off even if they don't touch you for a bit". I really can't think of many valid use cases for applic…
Actually, I use this all the time now. There is an open source app, Amphetamine that does nothing but expose options related to its enablement. Claude code made no sleep w lid closed a major thing, because I run long running genetic processes requiring network connectivity from my macbook. Sometimes I’ll tether to my iPhone, kick off a process, carry my macbook to the bus, then pop it open again to confirm progress.…
`caffeinate -d` will disable the shutting down of display.
`caffeinate -w ` will watch a process and will goto sleep once that process is finished.
Re: MacBook Pro Insomnia
#215Re: MacBook Pro Insomnia
#216Earlier quoted context omitted.
that's called "off".
Turning a machine off loses any existing application state, and requires both applications and the OS to be re-launched. When I put a machine into standby, I want it to go in a standby state, and then stay there until I explicitly wake it -- not keep doing whatever background tasks the OS developers, app developers, or whatever other third parties think they need to keep doing.
Re: MacBook Pro Insomnia
#217Another trick is to open Activity Monitor, switch to the Energy tab, and sort by the "Preventing sleep" column. Some apps prevent macOS from sleeping. In my case, I've discovered that Devonthink (document/notes management app) is responsible. I've been meaning to file a bug report about it. I'm surprised that Apple's power management doesn't have an alert for this. Surely an app that causes my Mac to become glowing h…
“ Meanwhile, I keep being asked if Chrome should be allowed to find devices on my network, which doesn't seem nearly as important.” … Not for you, but someone finds it important.
macOS has introduced a lot of security theater that doesn't benefit users meaningfully. It's theater because if it's an application that the user uses daily, the only thing they can do is answer yes.
Re: MacBook Pro Insomnia
#218Another trick is to open Activity Monitor, switch to the Energy tab, and sort by the "Preventing sleep" column. Some apps prevent macOS from sleeping. In my case, I've discovered that Devonthink (document/notes management app) is responsible. I've been meaning to file a bug report about it. I'm surprised that Apple's power management doesn't have an alert for this. Surely an app that causes my Mac to become glowing h…
I used to use DevonThink, but I quit long ago. I'd be interested in hearing how you use it, especially if you're not an academic.
Re: MacBook Pro Insomnia
#219Earlier quoted context omitted.
Amphetamine is an app that allows one to keep their device running, awake, unlocked, etc. I use Amphetamine all the time, especially with agentic coding, and it’s been an essential app for me for years for other reasons (live data processing, presentations, etc.).
‘caffeinate -i ‘ No apps required
Re: MacBook Pro Insomnia
#220I've worked around this problem on each mac laptop I've owned over the years by configuring "hibernate on lid close." When I open the lid of the mac it takes maybe 20-30 seconds to resume. I consider this a small price to pay in exchange for reliable sleep and less battery drain with the lid closed. If you want to try this, run in the terminal: sudo pmset -a hibernatemode 25 If you don't like it, you can restore defa…