I have recently switched to Mac from Windows hence I do not have much information.
- I want my Mac to go to safe sleep state on closing the lid.
- I also need an extra option available somewhere which can be used to move to hibernate mode (no battery used at all).
I read safe sleep is default on closing lid and minimal battery is used at that time, but my Mac drains full battery in less than 2 days, which does not seem like "safe sleep".
I researched about it but every answer/blog mentions having only 1 option at one time, either hibernate or sleep. Also, some mention using mode 25 for hibernate and some mention using mode 1 for hibernate. I tried Mode 25, but it does not seem to be working (does it take time to fully implement?), and mode 1 seems to have risk involved. I do not want to risk losing data.
How can I achieve the desired behavior and also test wether it is working or not?
Currently in use:
standbydelay 4200
standby 0
womp 1
halfdim 1
hibernatefile /var/vm/sleepimage
sms 1
networkoversleep 0
disksleep 10
sleep 0
autopoweroffdelay 14400
hibernatemode 3
autopoweroff 1
ttyskeepawake 1
displaysleep 0
acwake 0
lidwake 1
Software OS X 10.9.2 (13C64)
13-inch, Mid 2012
Best Answer
The default sleep mode used by Mac laptops is a hybrid between traditional sleep mode (suspend to RAM) and hibernation (suspend to disk): the contents of the RAM are saved to the disk, but the RAM is kept powered as well. Desktop Macs use traditional sleep mode (suspend to RAM) by default.
See
man pmset
:To make a laptop or a desktop Mac always hibernate (suspend to disk), run:
To make a laptop always hibernate on battery power, run:
Setting
hibernatemode
to25
decreases energy consumption during sleep but makes waking up take longer.Some new Macs automatically enter a standby mode after a specific amount of time of being in regular sleep mode under certain conditions. See http://support.apple.com/kb/HT4392 (Mac computers: About standby mode):
man pmset
:sudo pmset -c standbymode 1
would enable standby mode even when not on battery power.sudo pmset -a standbydelay 1800
would change the delay before entering standby mode to 30 minutes.Some Macs also hibernate after four hours of normal sleep under certain conditions. See http://support.apple.com/kb/HT1757:
man pmset
:I don't know if there is any difference between the hibernation mode that is used when
hibernatemode
is set to25
, standby mode, and the hibernation mode that is used whenautopoweroff
is enabled.Standby mode or hibernation does not save that much energy though. According to Apple's environmental report, the current 13-inch MacBook Air consumes 0.25W when it is turned off and 0.68W when it is in sleep mode on 230V voltage. The MacBook Air has a 54-watt-hour battery, so a full battery should last about three days when in sleep mode (if the Mac does not enter standby mode) and about nine days if the Mac is turned off. The energy consumption in hibernation or standby mode is probably close to the energy consumption when the Mac is turned off.