Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mpt-matthew

macrumors regular
Original poster
Aug 11, 2010
179
7
Just to check I am making a wise decision.
Using the widget Deep Sleep (or the terminal) i have decided to disable safe sleep.

What it is:

Safe sleep is where the RAM is written to the HD before sleeping so if power is lost the RAM can be recovered (like hibernation) - BUT the RAM is kept live during the sleep so the computer can wake fast.

Normal sleep (what i have switched to) is where the RAM is kept live but not written to HD.

Deep sleep is just hibernation, RAM written to HD and power cut to RAM.


My reasoning for turning it off:

I am running a new MBP so the chances of losing power are low as the battery cant just fall out (not that it does that on other MBPs).
I have 8GB of RAM so when i close the lid it can take a good 2 mins to actually sleep.
Often when i close the lid i am moving the computer (into a bag or whatever), so surely writing to the HD could cause it to break or become damaged (I regally hear the clicking of the HD as it stops due to the sudden motion sensor).
The fans are on while it is in my bag, annoying and makes me think it might just explode or something (unlikely :mad:)

What do you think?


EDIT:
My method of thinking is that a power outage is unlikely and recoverable; but a HD crash (due to moving writing HD while trying to sleep) could cause big problems - I understand it has a SMS but this is not failsafe.
 
Last edited:
Often when i close the lid i am moving the computer (into a bag or whatever), so surely writing to the HD could cause it to break or become damaged (I regally hear the clicking of the HD as it stops due to the sudden motion sensor).
When you close the lid, it needs a few seconds to write data to the HDD. Exercise a little patience and don't move it while it's doing this. That's why you hear the SMS.
The fans are on while it is in my bag, annoying and makes me think it might just explode or something
It's not going to explode. The fans are simply cooling it off.

Don't disable sleep. It's not necessary.
 
Exercise a little patience and don't move it while it's doing this. That's why you hear the SMS.

I cant just sit around at the end of a lecture for 2 mins! Its sometimes longer if i have more stuff open (yes close the stuff, but that defeats the point of standbye).
 
The clicking is good, that means the SMS is working properly and protecting you from a head crash. Let the technology do what it is supposed to.

I don't see a point in disabling it. But, if you want to best of both worlds, get an SSD.
 
I cant just sit around at the end of a lecture for 2 mins! Its sometimes longer if i have more stuff open (yes close the stuff, but that defeats the point of standbye).
If it's taking 2 minutes to enter sleep mode, there's something wrong. Usually it takes 15-30 seconds. You don't need to shut any apps down, just close the lid. I just did it and it took 19 seconds to sleep.
 
The clicking is good, that means the SMS is working properly and protecting you from a head crash. Let the technology do what it is supposed to.

I don't see a point in disabling it. But, if you want to best of both worlds, get an SSD.

My reason is because although the SMS does a good job of protecting the HD, im sure while i am moving around my laptop lots, it is still better for the HD to be off.
 
If it's taking 2 minutes to enter sleep mode, there's something wrong. Usually it takes 15-30 seconds. You don't need to shut any apps down, just close the lid. I just did it and it took 19 seconds to sleep.

Ok, 2 mins is when all my RAM is used (Photoshop is open etc etc).
 
I disabled mine as I want it to sleep instant. Saves me 8GB of HDD space also. And partly because of the fact im putting an SSD in there.

The only time Safe Sleep is beneficial is when the computer loses power because it has wrote the memory to the HDD so a power loss doesnt affect it. So as long as you finish everything up before the battery dies you will be fine and it also wakes faster when in hibernatemode 0.
 
Deep sleep is just hibernation, RAM written to HD and power cut to RAM.

I just wanted to point out that this part isn't true. Do you really think that when you wake your computer it reads 8GiB of RAM from the hard disk? That would take forever. Safe sleep writes the RAM to the disk as well as keeps it in the RAM. That way if power happens to be lost the previous session is not lost and at the same time the computer can still wake quickly from sleep mode.
 
I just wanted to point out that this part isn't true. Do you really think that when you wake your computer it reads 8GiB of RAM from the hard disk? That would take forever. Safe sleep writes the RAM to the disk as well as keeps it in the RAM. That way if power happens to be lost the previous session is not lost and at the same time the computer can still wake quickly from sleep mode.

Deep sleep is not safe sleep. Deep sleep as described above is the same as hibernation (RAM is stored on HD, then read back during wake up)- where else is your data stored if it isn't on the HD (when power is off)? This is why (as you described) waking up from a Deep Sleep takes longer than a Safe Sleep or Normal Sleep. Deep sleep has a Hibernation mode of 1, where as safe sleep has a hibernation mode of 3, and normal sleep has a value of 0.

You can initiate a normal sleep by holding down Ctrl+option+Eject for 2 secs.
 
Deep sleep is not safe sleep. Deep sleep as described above is the same as hibernation (RAM is stored on HD, then read back during wake up)- where else is your data stored if it isn't on the HD (when power is off)? This is why (as you described) waking up from a Deep Sleep takes longer than a Safe Sleep or Normal Sleep. Deep sleep has a Hibernation mode of 1, where as safe sleep has a hibernation mode of 3, and normal sleep has a value of 0.

You can initiate a normal sleep by holding down Ctrl+option+Eject for 2 secs.

I think you're still a little confused. There's no way in hell that your computer reads 8GB in the amount of time it takes to wake from safe sleep. The RAM still stores that 8GB of information.
 
I think you're still a little confused. There's no way in hell that your computer reads 8GB in the amount of time it takes to wake from safe sleep. The RAM still stores that 8GB of information.

Its called "Safe sleep" for a reason, it writes the ram to the hdd in case of power loss in which it can then read it from the HDD, otherwise it will load it from RAM.
 
I think you're still a little confused. There's no way in hell that your computer reads 8GB in the amount of time it takes to wake from safe sleep. The RAM still stores that 8GB of information.

Hibernation mode 1 AKA deep sleep AKA hibernation all power is off, you can change the battery, unplug etc. RAM cannot hold data when it has no power.

You are talking about Safe Sleep which is hibernation mode 3.

Try deep sleeping your mac, and it will take a while to turn back on.
PS deep sleep only occurs when you cut all power or put your mac into deep sleep (through terminal, or deep sleep widget).
 
Last edited:
Hibernation mode 1 AKA deep sleep AKA hibernation all power is off, you can change the battery, unplug etc. RAM cannot hold data when it has no power.

You are talking about Safe Sleep which is hibernation mode 0.

Try deep sleeping your mac, and it will take a while to turn back on.
PS deep sleep only occurs when you cut all power or put your mac into deep sleep (through terminal, or deep sleep widget).

You are wrong.

hibernationmode 0 is normal sleep, kept in ram nothing written to hdd

hibernationmode 3 is safe sleep, kept and loaded from ram, written to hdd in case of power loss

hibernationmode 25 is full hibernation, memory is written to hdd and then ram is powered off
 
You are wrong.

hibernationmode 0 is normal sleep, kept in ram nothing written to hdd

hibernationmode 3 is safe sleep, kept and loaded from ram, written to hdd in case of power loss

hibernationmode 25 is full hibernation, memory is written to hdd and then ram is powered off

Thanks.
I have changed what was wrong, i put that safe sleep was 0, it is 3.
But you put full hibernation is 25, it is actually 1.

see here:
http://www.macworld.com/article/53471/2006/10/sleepmode.html
 
I have to go with tjb1 on this. The MacWorld article and the widget documentation don't match the man page for pmset. At the terminal, do a man pmset and look under SAFE SLEEP ARGUMENTS. Examining the bit fields, I can see why a hibernatemode of 1 can be set and why it acts like full power-off hibernation, but the man page clearly says not to use it. If the Deep Sleep widget is using hibernatemode of 1 (and a quick look at its doc makes it look like it does), I would stop using the widget for that!

Here's the warning on the man page for pmset (OS X 10.6.5):

We do not recommend modifying hibernation settings. Any changes you make are not supported. If you choose to do so anyway, we recommend using one of these three settings. For your sake and mine, please don't use anything other 0, 3, or 25.

(Emphasis mine.)

(Although it looks like the only difference between 1 and 25 is whether the dynamic pager is "encourage[d] to page out inactive pages prior to hibernation, for a smaller memory footprint," I still wouldn't use mode 1.)

Interestingly, the default hibernatemode on my iMac is 0 -- I always thought it was 3. Hmmmm.
 
I have to go with...
You are wrong again...

Ok, im confused now.

Anyway...
When i enable deep sleep (using the widget) my terminal says i am using mode 5 (which apparently, according to all the websites i have seen is the same as 1 but for secure virtual memory). When the terminal says mode 5 (or 1) and i sleep my computer, it turns off completely - upon turn on it loads the RAM from the HD and is in the state it was when i slept it. To me this is what i would call hibernation.
But - if i use the terminal to change my sleep mode to 25, and then sleep the computer it appears to do the same procedure as above, but it did take slightly longer to load at startup.
Both seem to hibernate the computer.

As Brian33[ said (Although it looks like the only difference between 1 and 25 is whether the dynamic pager is "encourage[d] to page out inactive pages prior to hibernation, for a smaller memory footprint," I still wouldn't use mode 1.)

Perhaps this is a subtle difference between "Deep Sleep" and "Hibernation".
Deep sleep doesn't save inactive pages to HD to speed up the restart.
Also, why is mode 1 "not recommended" is there a reason?


Thanks for all the help.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.