Live data from Hacker News

MacBook Pro Insomnia

manuel.bernhardt.io

21–30 of 238 posts

Re: MacBook Pro Insomnia

#21

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…

A functional DHCP client will request renewal of it's IP address 50% of the way through the lease, so it was probably worse than you thought.

Re: MacBook Pro Insomnia

#24

> 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’m also just as confused

Re: MacBook Pro Insomnia

#25
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.

My new A16 iPad seems to use more power sitting closed much than I would have thought. I came here to say this, but found you got to it first. I hope someone here has some thoughts on the matter.

I am more Android guy, so I am not yet familiar with the options. Does the iPad have a power usage app describing what apps/services are using the power? Bluetooth for one to keep the Apple Pencil ready, I suppose.

Re: MacBook Pro Insomnia

#26

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 do some other stuff while it was awake?

Re: MacBook Pro Insomnia

#27

Apple's power management isn't as great as everyone claims. I've an older MacBook Air with a severe battery drain problem. The battery will last maybe a day or two when SHUT DOWN (not sleep) before being fully drained and refuses to power on. It's done this since day one. I tried resetting everything possible which could be reset and nothing helped. Allegedly the problem is related to a Bluetooth radio which does not…

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.

> their power management was actually the worst thing about them - this was before they moved to ARM

I'd wager all of the improvements are from the silicon itself and not anything Apple has done with macOS.

Re: MacBook Pro Insomnia

#28
post #18

Earlier quoted context omitted.

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.

> 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. It's actually not. As a user I'd expect the device to wake up and still have the same IP address via a continuation of the lease. Yes, the correct way would be a longer lived DHCP lease, but el-cheapo ISP routers often lock down such settings.

This is a good point (running processes might break if the IP address suddenly changed after wake-up). However, why should the renewal process take on the order of 15 minutes? And why would it require a complete wake up?

Re: MacBook Pro Insomnia

#29
post #23

I have been experiencing this issue, I think it's related to bluetooth, which does appear to be flaky

I have the same issue and it's driving me crazy. One bluetooth device is waking up a MBP M4 regularly during the night, lighting up an external screen. Even without any connected devices.

Re: MacBook Pro Insomnia

#30
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.

Exactly what the author meant to say.
Post reply on HN