logoalt Hacker News

teejmya07/31/20255 repliesview on HN

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


Replies

brian-armstrong07/31/2025

Does hibernate play nice with FDE? I know in Linux there are varying caveats around committing memory to disk wrt disk encryption

show 1 reply
janandonly08/01/2025

I just got my MacBook Air of the shelf to run this command. But I had to hook it up to a power outlet, because the battery was drained

jdranczewski08/01/2025

I've had to do this to my Windows laptop recently after it started completely draining the battery when going to normal sleep. Wakes up reasonably quickly still, and no power management problems!

unit_circle07/31/2025

This is the simplest solution that enables the behavior that I think most people who care enough to comment here want

show 1 reply
causal08/01/2025

Can you explain what this does?

show 1 reply