bigorno wrote:
The trick did the job : with 10.14.0 I had this issue too. 100% of my batterie drained in about 15 hours (in sleeping mode) ! But I put the hibernatemode to 25 instead of 3 and this night I've lost only 1% (44 to 43%) in about 8 hours.
Today I've done the update to 10.14.1. And tcpkeepalive is back to its original value (1). I'll see tomorrow is the bug is still existing or not.
hibernatemode 25
powernap 1
gpuswitch 2
hibernatefile /var/vm/sleepimage
highstandbythreshold 50
displaysleep 45
womp 1
networkoversleep 0
sleep 0 (sleep prevented by sharingd, backupd)
tcpkeepalive 1
halfdim 1
But can someone tell me the differences between hibernate mode 3 or 25 ? I've read the man page but it's not very clear to me.
Thank you very much.
The man page ("man pmset" in Terminal) says:
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 con-
tents 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.