Low End Mac Reader Specials
TypeStyler For Mac OS X is Now Shipping! Download The Free Fully Functional 60 Day Tryout at www.typestyler.com
OWC: Get the Right Memory / Ram for your Mac. Top Quality, Competitive Prices, Lifetime Warranty. Expert Support and Video Installation Guidies too! 4.0GB Matched Sets from $87.99, Options up to 32GB. Click here
Don't install Parallels to play poker online! Poker Mac will show you how
to download and install a native Mac poker application such as Full
Tilt Poker Mac.
Laptop Hardware Provided by TechRestore - Overnight Mac & iPod Repairs.
Compare products like desktop computers, apple laptops, apple macs, and LCD Monitors side by side! All the information and reviews to make the best purchasing decision for new mobile phones, sat nav systems, or MP3 players. The Ciao online shopping community makes searching products easy for you.
Miscellaneous Ramblings
Miscellaneous Ramblings Mailbag
The 'Safe Sleep' Mailbag
Charles Moore - 2009.06.15 - Tip Jar
Popularity: ![]()
![]()
![]()
In the previous Miscellaneous Ramblings Mailbag, I posted a query from a reader named Richard asking why his MacBook takes a longer time for the hard drive to settle down after he selects sleep mode than older PowerPC 'Books did.
I unfortunately wasn't able to answer that, but as we shall see below, a veritable cast of thousands rose to the occasion.
Ironically, just a few hours after I filed the Mailbag with my reply to Richard on this topic, I happened to run across an article on RecoveryForce discussing that very issue and cluing me in as to why the sleep lag.
Actually, I then recalled that had heard about "Safe Sleep" some time ago when it was announced, long before I bought my MacBook, but it had slipped my mind.
Thanks to everyone who who wrote with explanations and links.
Charles
Safe Sleep Writes to Disk
From Dan Knight:
Charles, please refer Rich to this article: How to Disable Safe Sleep in Mac OS 10
What's happening is that his MacBook is writing the contents of RAM to the hard drive before it truly goes to sleep. This makes restarts faster, but it does risk the drive if the 'Book is moved before backup of RAM is completed. The article explains how to disable this behavior.
Dan
MacBook Sleep - Why It Takes Longer
From Josh:
Charles,
It is my understanding that MacBooks take 20-30 seconds to go to sleep because the computer is storing all of the contents of the RAM onto the hard drive. That way, if the computer stays asleep so long that the battery runs out, when you plug the computer back in, it will simply restore itself to the same state it was in when you triggered sleep in the first place - all the same applications, windows, even webpages come back to the way they were. It's pretty cool, actually - similar to hibernate mode in Windows, but much slicker, as is generally the case with Apple products.
Incidentally, Apple recommends that MacBook owners refresh their batteries monthly by letting them run all the way down until sleep is triggered, hard powering down, then powering back up again. When you do this, however, let the computer go fully to sleep before powering down - otherwise, you're cutting off power while the hard drive is still spinning - never a good idea.
Best regards,
Josh
Re: Unexpected MacBook Sleep Behavior
From Patrick:
Hi Charles,
I noticed your recent exchange on Low End Mac with another reader about newer Mac portables and the amount of time they take to complete going into sleep mode. I encountered this issue back when I got my current work machine (then brand new) in early 2007. On investigation I learned that Intel Macs write the entire contents of RAM to their hard disks on entering sleep by default. The process is called Safe Sleep apparently, and PowerPC portables didn't use it by default. In the case of my machine, this meant rewriting a 3 gig file to disk every time I closed the lid, not a lightning fast operation and (to my mind) an excessive safeguard.
I discovered that it's possible to reconfigure newer Macs to use the older sleep mode (where RAM stays powered but isn't duplicated to disk). The terminal commands are simple, and as well as speeding up the sleep process and reducing disk wear, it allows the user to reclaim a substantial chunk of storage space. There's an excellent MacWorld article summarising the issue and outlining the various options for changing it: Set Newer Portable Macs' Sleep Mode.
I've now been using my MBP in old fashioned "unsafe" sleep mode for two years and haven't yet had cause to regret changing it. I hope this is helpful to you and your readers.
Cheers
- Patrick
Hi Patrick. It is. Thanks for the advice and link.
Charles
Unexpected MacBook Sleep Behavior
From Sam:
Charles
In your May 27th column, Rich asked about the apparently odd sleep function in his Intel Mac. It's actually a feature called Safe Sleep. When you shut the lid, your entire RAM state is saved to disk. This ensures that in a power failure, you can resume working where you left off. If you, right now, close the lid of your MacBook, wait for the sleep light to begin pulsating, and disconnect all power sources (battery/power adapter), the light will go dark. When you press the power button, you will see an odd grey screen with a progress bar at the bottom center. When it completes, you will be shown whatever you have the MacBook set to do upon waking from sleep.
This allows for quick swapping of batteries and replaced the reserve power found in PowerPC 'Books. It can be turned off with the following terminal commands:
- Turn Safe Sleep Off: sudo pmset -a hibernatemode 0 Delete Sleepimage
- Saves ~size of RAM on hard disk: sudo rm /var/vm/sleepimage
- Turn Safe Sleep back on: sudo pmset -a hibernatemode 3
Safe Sleep may be a hassle for you if you rarely run your MacBook unplugged or away from power. Otherwise, you should leave it on, being cautious not to move the 'Book until the noise has ceased.
- Sam
Thanks for the info, Sam.
Charles
MacBook Sleep
From Chris:
When putting a MacBook to sleep, the hard drive spins for about 20 seconds as it is saving memory onto disk. You can take the battery out and pull the power cord after that, and it will still wake up in the state that it was in before you put it to sleep, which is pretty clever if you ask me.
This situation is perfect for someone who put their MacBook to sleep a month ago running on battery power and still don't lose anything from the state that it was last in despite the fact that the battery ran out of juice 2 weeks beforehand
http://support.apple.com/kb/HT1756
Greetings from Chris
Safe Sleep
From Henry:
Hi Charles,
Your new MacBook saves the contents of RAM to the hard disk before going to sleep in case the battery gets low. PowerBooks didn't; they kept RAM refreshed, as do the new 'Books, on battery power. However, if the system sleeps long enough to run down the battery and shuts down, the PowerBooks will lose RAM contents and have to do a cold boot. The MacBook can reload RAM from disk and resume where it went to sleep.
You are right to wait for the sleep light before moving your MacBook, since the disk is in use.
Henry
Re: MacBook Sleep Behaviour
From Richard:
Hi Charles,
Regarding the mailbag entry about the MacBook taking a long time before the power LED starts pulsing - I believe this is due to the "Safe Sleep" feature on the Intel Macs. As well as keeping the RAM powered to preserve memory contents, Intel Macs and late-model PowerBooks also save the contents of the RAM to disk when they go into sleep mode. This means that in event of the battery being removed or going flat, the memory contents are preserved on disk, and will be copied back from disk to RAM when the system is powered on. The downside of this is, of course, that it takes longer to go into sleep mode as it copies the RAM contents to disk.
This behaviour can be controled with the Deep Sleep dashboard widget ( http://deepsleep.free.fr/ ) that allows Safe Sleep to be disabled, permitting a faster sleep by not copying the RAM to disk. It also allows you to force "Deep Sleep" mode, where the RAM is copied to disk and then the system is shut down, emulating the "Hibernate" function of Wintel machines. This mode uses no power at all while sleeping, but takes longer to wake up.
Hope this helps
Richard Halkyard
Hi Richard,
That Dashboard widget sounds like a low hassle way to control this behavior.
Thanks for the link.
Charles
Re: Unexpected MacBook Sleep Behavior
From Kev:
I was reading about your and Rich's experience in the last Miscellaneous Ramblings mailbag (05/27). I think the lag before sleep ensues is the "safe sleep" feature kicking in. Simply put, it copies the contents of the RAM to the hard drive, similar to a PC's hibernation, in the event that your MacBook looses power. This allows you to swap batteries while keeping your work going. You might try it out to see how it works.
Sincerely,
Kev Kitchens
Odd MacBook Sleep
From John:
Hi Charles,
Apple introduced Safe Sleep sometime in the PowerBook G4 era after I bought mine in early 2003. Older 'Books rely entirely on their battery powered memory contents, which will drain within a few days and force a reboot when the Mac is next turned on.
Newer models save the entire contents of their memory - often 1-4 gigabytes now - to their hard drive in the moments after you close the lid to send them to sleep. That way, all battery can be lost yet the session will be safe to restore from the hard drive. It's a combination of sleep and hibernation. Typically, you open your Mac back up again while the battery is still good, so you don't trigger the full image load from the hard drive. But for safety, the image is written every time the system enters sleep, which is likely what's been noticed.
It's possible to alter the behaviour via some Terminal magic. But the defaults are quite safe and best left be.
- John
Regarding 'Unexpected MacBook Sleep Behavior'
From Sylvain:
Hi Charles,
Here are just a few thoughts about Rich's question and your answer on how his new MacBook has a different sleep behavior than his iBook G4. Indeed, newer Apple laptops take a few seconds before entering sleep, while older laptops sleep almost immediatly. In my understanding, this is implied by what Apple calls "Safe Sleep": Before entering sleep, Mac OS X writes the whole content of the RAM to the disk. This can be found in the file /private/var/vm/sleepimage.
That way, whenever the computer loses all power while asleep (when the battery gets completely empty after a couple of days), you can find your current work, open documents and applications just as you left them when you plug it back in, without having to restart.
This is well explained in that old Mac 911 article at Macworld.
Should you want it, you always can disable Safe Sleep and get rid of the sleepimage file to stick with the old behavior through a few command lines, or with a GUI utility, like for example SmartSleep.
I hope I have well understood Rich's question and this is not old news for you, and I apologize for my bad English, since it's not my main language, and hopefully I haven't misunderstood the whole thing!
Best regards,
Sylvain
Hi Sylvain,
Your English is just fine!
Charles
Safe Sleep
From David:
Charles,
Hello.
It is called Safe Sleep. That sleep delay is the contents of RAM being written to disk as a file named "sleepimage". The size of the file is the same size as the total RAM.
From Apple: About Safe Sleep
To revert back to the old way requires a trip to the Terminal, as nicely detailed in this Macworld article.
I had set aside a smaller partition to boot in for general maintenance. With 4 GB of RAM, the sleepimage file was too big. The article in Macworld was quite helpful in recovering the free space. I felt that having the RAM backup file in this kind of partition was unnecessary.
I have seen the RAM recovery from disk in action. The display content becomes ghostly white with faint images and a progress bar. After loading is done, it all goes back to normal.
Regards,
David
Hi David,
Good point about the issue with small hard drive partitions.
Charles
MacBook Sleep vs. PPC Sleep
From John:
Intel-based MacBooks all do something different called Safe Dleep. It can take up to 15 seconds for the sleep light to begin pulsing. Prior to that, the hard drive is still spinning. It is basically paging out the contents of memory to the hard drive.
Wake from sleep is faster.
I was used to my old iBook's instant sleep by closing.
Highly recommend you do not begin moving Intel Macs around until the sleep light is pulsing. Hard drive could get hosed or you could (through jostling the sleep switch) cause a between sleep/wake crash/hang which cannot reach system logs and requires force power off and causes it to heat up a lot in your bag.
John
'Slow Sleep' Behavior
From Rich:
Charles (and Dan):
Thanks for the article about the 'slow sleep' behavior of my MacBook. The article referenced had a macro for altering the MB's sleep process, but I've since found a Preference Pane that will do the same thing:
Apple also offers this through their Downloads page.
Thanks guys!
Rich
Hi Rich,
Thank you for the info and links!
Charles
Charles Moore has been a freelance journalist since 1987 and began writing for Mac websites in May 1998. His The Road Warrior column is a regular feature on MacOpinion, and he is a news editor and columnist at Applelinks.com. If you find his articles helpful, please consider making a donation to his tip jar.
Recent Miscellaneous Ramblings
- WiFi Paranoia, iMac-O-Lantern, Magic Mouse Does Click, Free Clipboard Managers, and More, 11.05. Also strange time stamps, problem with ColorIt on Intel Mac, and the story behind OS X 10.5.4 install discs.
- Google Chrome Mac Preview Has Made a Convert, 11.02. Officially a developer preview, Google's Chrome has finally made it to Intel-based Macs. It's fast, elegant, and could be your next browser.
- Fixing a Narcoleptic PowerBook G4, the Future of Tiger Support, Spam Filtering, and More, 10.28. Also installing Leopard, disappearing features, portable Thunderbird, and web page design issues.
- 2 Wireless Alternatives to Apple's Magic Mouse, 10.27. Whether you prefer buttons to buttonless, are still using Mac OS X 10.4, or don't like Bluetooth, Targus has mice to consider.
- More in the Miscellaneous Ramblings index.
Links for the Day
- Mac of the Day: Power Mac 4400, Nov. 1996 - Apple does cheap to compete with clones - and nobody is impressed.
- Group of the Day: LisaList supports Lisa users.
- November 7 in LEM history: 00: PowerBook Lite dreams - Our first Macs - 01: OS 9, OS X, or Linux? - 02: Xserve for the classroom - 03: Panther on slot-loading iMacs - High capacity Lombard/Pismo battery - 05: Clean keyboard residue from laptop screen with ROR - SeaMonkey - 06: Dan Bricklin, inventor of the spreadsheet - Turn any Mac into a gameshow buzzer - 07: The transforming PowerBook 1400 - PowerBook 540 on Compact Flash
- Support Low End Mac
Recent Content on Low End Mac
- Quad-Core CPU Makes Sense in MacBook Pro, OS X 10.6 Causing Overheating, Overseas Power, and More, The 'Book Review, 11.06. Also Late 2009 MacBook reviewed, how to add RAM to new MacBook, 18.4in Acer notebook used Intel i7, and SanDisk SSD chosen for Sony VAIO X.
- Dumping Macs for Google Apps, SSD in iMac, Late 2009 iMac Performance Problems, and More, Mac News Review, 11.06. /newsrev/09mnr/1106.html
- IDE Is Dead; Long Live SATA!, Dan Knight, Mac Musings, 11.04. SATA has displaced parallel ATA. While IDE hard drives haven't disappeared, the best deals are in SATA hard drives.
- QuickTime X in Snow Leopard Imports, Trims, and Publishes Video Quickly and Easily, Alan Zisman, Zis Mac, 11.04. The long, slow process of importing video into iMovie to edit it, then render it to another format, is history as QuickTime X does that much more quickly.
- More links in our archive.
Recent Deals
- Best Mac Pro Deals, 11.03. Used 2.66 GHz 4-core, $1,300; 3.0 8-core. $2,299; refurb 2.66 4-core Nehalem, $2,149; 2.93, $2,549; 2.26 8-core, $2,799; 2.93, $4,999.
- Best iPhone Deals, 11.03. New 8 GB iPhone 3G, $$99; refurb 16 GB 3GS, $149; new, $199; 32 GB, $299.
- Best 12" PowerBook G4 Deals, 11.03. Used 867 MHz SperDrive, $348; 1 GHz, $499; 1.33 Combo, $298; SD, $559; 1.5 Combo, $448; SuperDrive, $589.
- Best Power Mac G3 and PCI Video Card Deals, 11.02. Used beige 300 MHz, $25; G4/366, $49; blue & white 350, $80; 400, $90; 450, $105; PCI video cards from $15; shipping additional.
- Best Power Mac G4 and AGP Video Card Deals, 11.02. Used 400 MHz, $50; 733 MHz, $69; 933 MHz, $209; 1.25 GHz dual, $299.
- Best 15" MacBook Pro Deals, 11.02. Used 2.0 GHz, $800; 2.2, $900; 2.4, $1,000; refurb 2.53, $1,449; 2.66, $1,699; 2.8, $1,949; 3.06, $2,169; new 2.53, $1,579; 2.66, $1,799; more.
- Best Mac mini Deals, 10.30. Used 1.33 GHz G4 mini, $379; 1.42, $389; 1.5, $419; 1.83 GHz Core Duo, $350; Core 2, $439; new 2.26 GHz nVidia, $580; 2.53 GHz, $770; Server, $990.
- Best G4 iBook Deals, 10.30. Used 12" 1.07 GHz Combo, $225; 1.33 GHz, $298; 14" 1 GHz, $349; 1.33 GHz, $398; 1.42 GHz SuperDrive, $498.
- Best Classic Mac OS Deals, 10.30. System 6.0.8 floppies, $10; 7.1, $12; 7.5, $20; 7.5 CD, $4; 7.6 $13; 8.1, $11; 8.5, $20; 8.6, $90; 9.0, $20; 9.2.2, $30.
- More deals in our archive.
About LEM | Support | Usage | Privacy | Contacts
Navigation
Used Mac Dealers
Apple History
Video Cards
Email Lists
Favorite Sites
MacSurfer
MacMinute
MacInTouch
MyAppleMenu
InfoMac
Macs Only!
The Mac Observer
Accelerate Your Mac
RetroMacCast
PB Central
MacWindows
The Vintage Mac
Museum
DealMac
DealsOnTheWeb
Mac2Sell
ramseeker
Mac Driver Museum
JAG's House
System
6 Heaven
System 7 Today
the pickle's Low-End
Mac FAQ
Abandonware
Petition
Mac vs. PC Info
Affiliates
The Apple
Store
Mac
Connection
B&H
MacMall
TechRestore
ExperCom
Crucial
Memory
batteries.com
Advertise
MacMinute
MacInTouch
MyAppleMenu
InfoMac
Macs Only!
The Mac Observer
Accelerate Your Mac
RetroMacCast
PB Central
MacWindows
The Vintage Mac
Museum
DealMac
DealsOnTheWeb
Mac2Sell
ramseeker
Mac Driver Museum
JAG's House
System 6 Heaven
System 7 Today
the pickle's Low-End
Mac FAQ
Abandonware
Petition
Mac vs. PC Info
Mac Connection
B&H
MacMall
TechRestore
ExperCom
Crucial Memory
batteries.com
