Live data from Hacker News

MacBook Pro Insomnia

manuel.bernhardt.io

71–80 of 238 posts

Re: MacBook Pro Insomnia

#71
post #6
post #3

My iPad only lasts a few days even with zero use. I have not been able to figure out what settings to modify so that I can (for example) pick it up a month later and not find the battery dead.

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

Yep, same experience. It's crazy that the very much default case of "iPad and things with Air Tags" has this effect. Not exactly an edge case.

Re: MacBook Pro Insomnia

#72

This used to happen to my MacBook Pro, although it was a non Apple Silicon one. The issue was that I had changed the DHCP lease time on my router from the default to a really low value. I believe I had set it to 15 minutes. What I believe was happening was the MBP was waking up to renew its IP address every 15 minutes and by the time it went to sleep again, it was probably waking back up to repeat the process. Changi…

That is so weird. How much mAh can a single “wake and renew lease” possibly take? Like it has to be milliamp-milliseconds (mAmS?). I mean my phone is chattering with the cell network probably all the time even in a fairly deep sleep mode. The laptop is lighting up the WiFi stack to send and receive (and process) like a few packets? Like you said though, it’s pre Apple silicon so who really knows! Maybe it decided to…

Your cell phone modem is completely decoupled from the main processor and is a complete, independent system in itself, so it's optimized to do that.

Bluetooth and WiFi radios on Macs are also semi-independent. They can keep connections alive while the system is in deep sleep.

Waking a big processor, frequency scaling it and turning it off is surprisingly complicated. We disabled SpeedStep in our clusters since frequency scaling visibly affected performance of the systems due to overhead incurred by frequency change. Same is true for waking / sleeping big silicon.

It's complicated, it's wasteful.

Some of the Intel's biggest improvements as their micro-architecture evolved were reduction of the frequency scaling overhead and its performance impact, but this never made the news back in the day because its effect was invisible in consumer class systems even in its most primitive form.

> Maybe it decided to do some other stuff while it was awake?

That's called Power Nap and is enabled only if your computer is connected to power, by default.

Re: MacBook Pro Insomnia

#73
post #18

This used to happen to my MacBook Pro, although it was a non Apple Silicon one. The issue was that I had changed the DHCP lease time on my router from the default to a really low value. I believe I had set it to 15 minutes. What I believe was happening was the MBP was waking up to renew its IP address every 15 minutes and by the time it went to sleep again, it was probably waking back up to repeat the process. Changi…

This is a macOS bug; it doesn’t need an IP address while it’s asleep. Waking up to renew a DHCP lease is crazy. Closed source OSes are such a bane.

Macs doesn't need to wake completely to renew their DHCP leases. Bluetooth and Wi-Fi radios can act independently and on their own for this low level operations.

On the other hand, I don't consider my computer to wake up, take a backup, check system/app updates and my mails and handle those while I'm sleeping as a feature, not a bug.

Re: MacBook Pro Insomnia

#74

Earlier quoted context omitted.

Visibility isn't the problem. As OP mentioned, you can go into Activity Monitor to easily see what application is doing this. The user just doesn't seem to have any control over it or any way to stop a particular application from doing it.

It's buried too deep. Clicking on battery and seeing a line saying "There are apps preventing sleep >" and hovering on it to see a list is way better than digging activity monitor. Another option might be another section for apps preventing sleep, like power hungry applications.

Or, when apps try to intercept sleep the OS can pop an Allow/Don't allow dialog before the app can actually achieve this

Re: MacBook Pro Insomnia

#75
post #60

Earlier quoted context omitted.

Interesting, as a different user, I'd expect the opposite: If my computer is "asleep" I don't expect it to do anything, and it shouldn't be able to wake itself up.

that's called "off".

i suppose we have come to expect 4 states: - off: no power, no activity - hibernate: no power, no activity session state saved to non-volatile storage - sleep: Minimal power, RAM remains powered with the session state, can be resumed quickly - on

now we essentially have sleep++ and no option to set it back to vanilla sleep.

Re: MacBook Pro Insomnia

#76
post #6
post #3

My iPad only lasts a few days even with zero use. I have not been able to figure out what settings to modify so that I can (for example) pick it up a month later and not find the battery dead.

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.

Re: MacBook Pro Insomnia

#77

This used to happen to my MacBook Pro, although it was a non Apple Silicon one. The issue was that I had changed the DHCP lease time on my router from the default to a really low value. I believe I had set it to 15 minutes. What I believe was happening was the MBP was waking up to renew its IP address every 15 minutes and by the time it went to sleep again, it was probably waking back up to repeat the process. Changi…

Woah just found out my router (mikrotik) defaults to 10 minute lease durations.

Re: MacBook Pro Insomnia

#78

Earlier quoted context omitted.

It's buried too deep. Clicking on battery and seeing a line saying "There are apps preventing sleep >" and hovering on it to see a list is way better than digging activity monitor. Another option might be another section for apps preventing sleep, like power hungry applications.

Or, when apps try to intercept sleep the OS can pop an Allow/Don't allow dialog before the app can actually achieve this

That'd create a lot of interruptions for the user. Some apps use it temporarily in critical sections, web media players enable/disable when play/pause events happen, etc.

An indicator and selective overrides is the way, IMHO. Invisible if you don't look, but it's there when you need it.

Re: MacBook Pro Insomnia

#79
post #3

My iPad only lasts a few days even with zero use. I have not been able to figure out what settings to modify so that I can (for example) pick it up a month later and not find the battery dead.

Harsh suggestion: log out of iCloud on the device. If that works you can try to isolate it further.

how do you work without iCloud?

Yes, I realize alternatives exist, but this works so smoothly on Apple devices.

Re: MacBook Pro Insomnia

#80

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

Counter-intuitive statements deserve either expansion or, at the least, identification as such.

Editing after composing is tricky, to catch such issues.

Post reply on HN