Live data from Hacker News

MacBook Pro Insomnia

manuel.bernhardt.io

51–60 of 238 posts

Re: MacBook Pro Insomnia

#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 defaults with:

sudo pmset -a hibernatemode 3

Re: MacBook Pro Insomnia

#52

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

Edit 2: My bad, I assumed power nap == "wake for network access". This no longer seems to be an option in macOS 26. Mine's set to "Only on Power Adapter", which makes sense. Edit: On an M4 MacBook Air running macOS 26 DB

On Apple Silicon it's not available under the battery settings, but you can still set it.

> sudo pmset -a powernap 1

-a is an option to set it for battery and plugged-in. If you want only either you can do -b for battery, -c for charger

You can also check the settings with:

> pmset -g

Re: MacBook Pro Insomnia

#53

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

Re: MacBook Pro Insomnia

#55

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.

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.

Re: MacBook Pro Insomnia

#56
post #36

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…

Like, "Intel older"? Those had terrible thermal management for a laptop. An "older" laptop with a dead battery or one misreporting is not uncommon and has no bearing on how modern laptops, be they from Dell, HP, or Apple, perform. You could have 500+ cycles on any laptop and see the behavior you're claiming is terrible power management. https://support.apple.com/en-us/102888 Get a semi-new Apple laptop and then let u…

> Get a semi-new Apple laptop and then let us know how terrible the power management is

So your solution to Apple's terrible power management is to give them even more of my money?

As I said, it did this since it was brand new. Battery cycles have nothing to do with it. It's a macOS or hardware problem in the SMC.

Re: MacBook Pro Insomnia

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

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.

Re: MacBook Pro Insomnia

#58
I shut mine down every day. It stops battery drain and is a point of friction if I am thinking about "jumping on to work for a sec" at night. If the work is truly not important, I won't want to boot up and get situated.

Re: MacBook Pro Insomnia

#59
I have the opposite problem -- i wish i could lock my Macbook but show my screen, with everything running and viewable (e.g., logs, dashboards) (but locked so people cannot do anything). I'm so used to this with xtrlock on Linux.

Re: MacBook Pro Insomnia

#60

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

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".
Post reply on HN