Contribute
Register

What is different between hibernatemode=0 and hibernatemode=3

Status
Not open for further replies.
Joined
Oct 23, 2014
Messages
688
Motherboard
Gigabyte GA-Z97x-UD3H
CPU
i7 4790k
Graphics
RX 580
Mac
  1. iMac
  2. MacBook Pro
Mobile Phone
  1. iOS
This is the screenshot of a real iMac 15, 5K.
Native Darkwake from real iMac 15.png

This is the screenshot of my hack.
Screen Shot 2015-05-16 at 1.28.26 PM.png
 
This is the screenshot of a real iMac 15, 5K.
View attachment 137585

This is the screenshot of my hack.
View attachment 137584

Hibernate mode is a bitfield argument which is defining the SafeSleep behavior.

Value 0 - By default on supported 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.

Value 3 - By default on supported portables. The system will store a copy of mem-ory memory ory 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 disk image.


If your hack is a Desktop use value 0 and if it is a Laptop then use value 3
 
Also I found this, which is helpful.

21ST FEBRUARY 2010 BY GREG FERRO
Apple hibernation has three modes. By default, on laptops it suspends the system and make a copy of

RAM to disk for a completely safe hibernate. When you have 8 Gigabytes of RAM it takes twenty or thirty seconds to write that RAM image. I suspend/resume often during my day and don’t want to wait. This has worked really well for me.

You can change the Mac’s hibernate behavior using pmset; here’s the reference for it:

http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/pmset.1.html


“sudo pmset -a hibernatemode 0″ = suspend to RAM only (default on desktops)
“sudo pmset -a hibernatemode 1″ = suspend to disk only
“sudo pmset -a hibernatemode 3″ = suspend to disk + RAM (default on laptops)

To see your current hibernatemode: “pmset -g | grep hibernatemode”.
[h=2]Warning[/h]The risk is that if you hibernate and run out of battery, or the RAM glitches, you might lose anything that is not saved. Having the RAM backed up to Disk means that you will always be able to resume.
[h=2]Apple Documentation[/h]
SAFE SLEEP ARGUMENTS
hibernatemode takes a bitfield argument defining SafeSleep behavior. Passing 0 disables SafeSleep alto-gether, altogether,
gether, forcing the computer into a regular sleep.
0001 (bit 0) enables hibernation; causes OS X to write memory state to hibernation image at sleep time. On wake (without bit 1 set) OS X will resume from the hibernation image. Bit 0 set (without bit 1 set) causes OS X to write memory state and immediately hibernate at sleep time.
0010 (bit 1), in conjunction with bit 0, causes OS X to maintain system state in memory and leave system power on until battery level drops below a near empty threshold (This enables quicker wakeup from memory while battery power is available). Upon nearly emptying the battery, OS X shuts off all system power and hibernates; on wake the system will resume from hibernation image, not from memory.
hibernatemode is set to 3 (binary 0011) by default on supported portables.
hibernatemode is set to 0 (binary 0000) by default on supported desktops.
[h=1]UPDATE:Smartsleep PrefPane[/h]As commented below, the SmartSleep Prefpane is probably a better way to setup your hibernation and includes a smart sleep capability. You can download it for free from http://www.jinx.de/SmartSleep.html

Caption Text.(Click for a full size image)
 
Status
Not open for further replies.
Back
Top