Live data from Hacker News

MacBook Pro Insomnia

manuel.bernhardt.io

101–110 of 238 posts

Re: MacBook Pro Insomnia

#101

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…

Meanwhile, Safari asks you if you want to close Netflix, while you're watching Netflix, because it uses too much power.

Re: MacBook Pro Insomnia

#102

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...?

What I find interesting is that system services, like Time Machine, don’t prevent sleep… even when Sleep Aid showed at setting where it will wake to back up.

About half the time when I wake my MBP there is a notification waiting for me about Time Machine failing to finish because the system went to sleep. My TM drive is a SSD connected with USB-C. First initial backup took maybe 3-5 minutes. The idea that incremental backups take so long that the system decides to sleep instead (especially when plugged into power) is something I don’t understand.

Now that I’m typing this, I wonder if I have a different issue going on. I moved the drive so it’s plugged into my display. The display powers my laptop and acts as a USB hub. I wonder if the monitor going to sleep is killing power to the drive… but I’d expect an improper ejection notice if that was the case.

Re: MacBook Pro Insomnia

#103

I'm using this instead: https://gist.github.com/mijorus/b9fabea963fabd435139654c6ebe... Turn off WiFi when going to sleep, turn it back on on wake. I don't need my laptop to be doing things when it's in my bag. It's not a phone, unlike what Apple seems to think...

Nice, I might consider forking yours to only do this if the lid is closed, as I leave my laptop open but locked doing things all the time at my desk.

> ioreg -r -k AppleClamshellState -d 4 | grep AppleClamshellState | head -1

Re: MacBook Pro Insomnia

#104

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…

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

Re: MacBook Pro Insomnia

#105

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…

> application can prevent sleep _when you close the lid_

Ordinarily it can't, it's not possible to set a IOPMAssertion that prevents sleep on lid close. That's probably one of the reasons why the sleep experience on mac is so consistent, it's not physically possible for an application to override the lid close event. (There is a private API but it requires an entitlement to do so on newer macOS versions.) That said there are always legacy APIs and bugs.

Re: MacBook Pro Insomnia

#106
post #55

Earlier quoted context omitted.

I haven't used a MacBook in years but when I did, their power management was actually the worst thing about them - this was before they moved to ARM, so I assume it has improved, but it was common for a MacBook pro to turn into a screaming hot chunk of aluminum which would burn your legs on contact and misrepresent the actual battery life available to it.

tbh it seems intentional to me, and I broadly prefer it. I would much rather have a hot device than a loud fan, at very nearly all times I use a computer. hot aluminum dissipates heat quite well, just passively cool as long as possible please. could they have used larger fans to reduce that noise? yes, definitely, and probably should have. but it's hard to beat using the whole device as a radiator.

Personally I would prefer a laptop which optimizes for heat and noise over one which optimizes for thinness as a measure of success

Re: MacBook Pro Insomnia

#107
I remember having a recurring issue with my original 1st gen unibody aluminum iMac where I'd close it at the end of a lecture, but it apparently wouldn't go to sleep, so hours later I'd go to fish it out of my backpack and it was dangerously scorching hot to the touch and the battery was all but fully drained. I tried debugging but ultimately resigned to just shutting it down every time, which sucked so much. At least I didn't wake up on fire.

Re: MacBook Pro Insomnia

#108
post #104

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…

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?

Re: MacBook Pro Insomnia

#109
post #76
post #6

Earlier quoted context omitted.

It's Find My. No great solution. I turn my iPad off now when not actively using it.

Wow you’re right. Find My has used 10% of my battery in the past day even though my iPad stays permanently at home. What’s worse is that my battery life has dropped from 100% health to 96% after a year even though I enabled the 80% charge limit. I wonder if Find My has added excessive wear on the battery.

A lot of the wear comes in when the charge falls below ~10%. Although 100% > 96% sounds pretty normal unless the device is brand new.

Re: MacBook Pro Insomnia

#110

https://support.apple.com/en-mn/guide/mac-help/mh40774/mac This seems to be available as a first party config option

On macOS 26 DB running on M4 MacBook Air, I don't see power nap in that place. I see "Wake for network access" which might be the new thing and it's set to "Only on Power Adapter" by default.

The “Wake for network access” setting is not new. It’s been there for many years on both Intel and Apple Silicon MacBooks.

“Power Nap” was an Intel-specific setting and isn’t shown on Apple Silicon Macs.

Post reply on HN