It's a really nice machine (128GB ram, 4TB machine). The default for devs here is to get re-use units (ie laptops that people returned or were store demos). Part of me wonders if this laptop was returned for a reason.
MacBook Pro Insomnia
221–230 of 238 posts
Re: MacBook Pro Insomnia
#222I'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…
Can you explain what this does?
SAFE SLEEP ARGUMENTS
hibernatemode supports values of 0, 3, or 25. Whether or not a hibernation image gets
written is also dependent on the values of standby and autopoweroff
For example, on desktops that support standby a hibernation image will be written after the
specified standbydelay time. To disable hibernation images completely, ensure hibernatemode
standby and autopoweroff are all set to 0.
hibernatemode = 0 by default on desktops. The system will not back memory up to persistent
storage. The system must wake from the contents of memory; the system will lose context on
power loss. This is, historically, plain old sleep.
hibernatemode = 3 by default on portables. The system will store a copy of memory to
persistent storage (the disk), and will power memory during sleep. The system will wake from
memory, unless a power loss forces it to restore from hibernate image.
hibernatemode = 25 is only settable via pmset. The system will store a copy of memory to
persistent storage (the disk), and will remove power to memory. The system will restore from
disk image. If you want "hibernation" - slower sleeps, slower wakes, and better battery
life, you should use this setting.
Please note that hibernatefile may only point to a file located on the root volume.Re: MacBook Pro Insomnia
#223I also have a MacBook that does not sleep. You click on the sleep button in the menu and nothing happens. You shut the lid and nothing happens. If I have anything running when I finish for the day I'll wake up to a completely dead laptop. Like dead as in time lost, clock is 12:00. I was hoping this post might provide some helpful tips, but sadly not. Definitely going to use this tool in the future. It's a really nice…
Re: MacBook Pro Insomnia
#224Earlier quoted context omitted.
Why not crack the lid a little? No way I'm letting the display of my very expensive laptop contact the chassis while it's in operation.
It’s Apple and I trust that they have thought of this, and designed to support this.
Yes Apple build quality is high, but it's not perfect. It's an iron law of electronics that heat shortens lifespan, so taking a large surface that is used for heat dissipation and putting your screen directly on top... I wouldn't do that with mine but you do you.
Re: MacBook Pro Insomnia
#225Earlier quoted context omitted.
I wish ios had insights (and controls) like this. So many apps have telemetry and data collection and notifications that eat up your battery and bandwidth for business (no good) reasons.
Can't you effectively check that through the background activity time in the battery usage overview?
I ran this app call Adblock which creates an on-device VPN (checks dns request)
Found for example the kindle (or audible?) app still does telemetry even if cellular data is turned off (to a2z.com)
Re: MacBook Pro Insomnia
#226In my case the culprit is always all the security spyware/crapware that my employer has installed on the macbook.
Running ripgrep on / would use 1 core, with the remaining 11 at 100% from the probe service...
Re: MacBook Pro Insomnia
#227Earlier quoted context omitted.
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.…
`caffeinate -s ` should do the trick. You don't need anything else. `caffeinate -d` will disable the shutting down of display. `caffeinate -w ` will watch a process and will goto sleep once that process is finished.
Re: MacBook Pro Insomnia
#228Earlier quoted context omitted.
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.
Batching isn't mentioned anywhere. Do you have a positive reason to think this, or is it just the easiest hypothesis (besides a typo) explain what the author wrote?
Re: MacBook Pro Insomnia
#229Earlier quoted context omitted.
Hah. Your answer just has more questions. What on earth is requesting so many DHCP leases?
You've never accidentally spun something up that consumes all the leases? It's just been a couple of times, but I've definitely done it (e.g. bridged a couple of networks that shouldn't have been). But mostly, it's the other two things: it provides me with a list of hosts active now, and if the DHCP server is subtly broken I get a sentinel signal of something being wrong earlier (and it tends to be a partial instead…
Extremes of any sort generally aren't good. You fucked around and you found that out.
Re: MacBook Pro Insomnia
#230Earlier quoted context omitted.
You've never accidentally spun something up that consumes all the leases? It's just been a couple of times, but I've definitely done it (e.g. bridged a couple of networks that shouldn't have been). But mostly, it's the other two things: it provides me with a list of hosts active now, and if the DHCP server is subtly broken I get a sentinel signal of something being wrong earlier (and it tends to be a partial instead…
Yeah, there's a lot of room to play between 900 and 86400 seconds. Extremes of any sort generally aren't good. You fucked around and you found that out.
I haven't had any notable issues with values in the 600-1200 second range, actually. (My macs don't wakeup to keepalive network on battery, though).