Live data from Hacker News

MacBook Pro Insomnia

manuel.bernhardt.io

131–140 of 238 posts

Re: MacBook Pro Insomnia

#131
I once set the "dont sleep on disable mode" and totally forgot about it. Took me a month to realize after my laptop would be drained over night. That tool definitely would've been helpful in this case!

Re: MacBook Pro Insomnia

#132
post #51

I'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…

Does hibernate play nice with FDE? I know in Linux there are varying caveats around committing memory to disk wrt disk encryption

Re: MacBook Pro Insomnia

#134

Another 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 didn't realize any rando app could prevent the entire system from sleeping. Shouldn't this power be gated behind a user-controllable permission? I assume the developer needs to at least use an entitlement to call whatever API does this...?

> Shouldn't this power be gated behind a user-controllable permission?

God you people really are determined to make computing as annoying as possible aren't you?

Re: MacBook Pro Insomnia

#135
post #104

Earlier quoted context omitted.

I see a lot of people plug their macs into an external monitor and keyboard and work with them shut. fwiw.

So, a dummy hdmi plug will do the job?

No need for dummy monitors, to disable the forced automatic sleeping behaviour when closing the lid just run

    sudo pmset -a disablesleep 1

Re: MacBook Pro Insomnia

#136

Earlier 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.…

> Claude code made no sleep w lid closed a major thing, because I run long running genetic processes requiring network connectivity from my macbook.

I have no idea what this means. Could you say more about it?

Re: MacBook Pro Insomnia

#137
post #8

> In my case, the “Wake for maintenance” option was disabled, and Sleep Aid helpfully showed in the settings interface that this could lead to frequent wake up events. Did author mean to write "option was enabled" instead?

I had the same thought, and while this is a complete guess, it passes my sniff test personally. It’s possible that when this setting is not enabled, those wake events are not coalesced into hourly wakeups, but instead happen arbitrarily throughout the night. That would immediately lead to the behavior described.

It took me a while and a couple of re-reads to parse out the same conclusion. Basically they're batched instead of happening continuously.

Re: MacBook Pro Insomnia

#138
post #116

I was on a trip and two nights in a ROW the battery went from 100% to 0% overnight while closed and on standby. It turned out I was just leaving it too close to the split A/C unit at the airbnb.

Wait, low temperatures drain your battery? I would’ve expected the opposite.

IIRC it is the efficiency of the chemical process in the battery that is affected by cold temperatures. Different chemistries are affected differently.

This is a part of the reason why EVs will actually spend energy to warm up their battery packs in the cold, spending the energy to warm it up early will lead to better efficiency for the rest of the drive. Another reason why it's better to condition the car plugged in before starting a trip in the cold; the battery is already in its optimal temperature range.

Re: MacBook Pro Insomnia

#139

Another 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'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…

[deleted]
Post reply on HN