MacFixer

On-Site Macintosh Consulting
Trouble-Shooting and Repair

Business - Education - Home

1 - 781 - 789 - 9015 / Email Us

Information & Pricing CD Ripping / iPod Loading MacFixer Store Articles

Articles

When's A Good Time to Start Backing Up Your Data? Yesterday. February 6th, 2010
Introducing Mac OS X 10.6, "Snow Leopard" September 15th, 2009
iPhoneOS 3.0: Your iPhone's Full Potential July 7th, 2009
MacFixer Featured in the Boston Herald June 8th, 2009
What To Do With .dmg Files April 24th, 2009
New iMacs, Mac Pros and FINALLY Mac minis! March 7th, 2009
Apple Needs More Matte LCD Options January 14th, 2009
New Mac Mini Predictions December 29th, 2008
Does Your MacBook Freeze When You Close It's Lid? December 2nd, 2008

Switch To The No Glass Dock In Leopard, The Best Dock Ever December 2nd, 2008
My New MacBook November 4th, 2008
iPhone Screen Shots! October 21st, 2008
The New Cheaper iPhone 3G That Costs More June 9th, 2008
I Love My New Keyboard March 30th, 2008
Wow What A Bargain! March 21st, 2008
Best Tape Dispenser Ever & Mac OS X 10.5.2 Update Finally!! February 11th, 2008
Verizon Voyager - Complete iPhone Rip Off January 3rd, 2008
Mac OS X 10.5 "Leopard" First Impressions November 8th, 2007
MacBook Case Chips September 27th, 2007
Mac OS X 10.5 Leopard Preview (9A559) September 25th, 2007
Safari Memory Leaks September 11th, 2007
Damn I'm Good / iPod Predictions September 5th, 2007
John's iPod / iPhone Predictions September 3rd, 2007
Touched an iPhone... August 30th, 2007
I ♥ My New iPod May 30th, 2007
TV Adapter May 12th, 2007
More On iPhone January 20th, 2007
iPhone January 9th, 2007
Serious Looking Power November 2nd, 2006

MacFixer Feed

Does Your MacBook Freeze When You Close It's Lid?
December 2nd, 2008

For the longest time, I was battling a problem with my MacBook where it would crash maybe 33% of the time, when you closed the LID. I had done every trick in the book, but the problem remained. I was convinced it was a hardware problem and just lived with it. Then I got a brand new Macbook and it was doing the same thing! I couldn't believe it, I was so pissed!!

Then finally, I stumbled upon the answer! Newer Mac Laptops use a feature called Safe Sleep, where the computer writes the contents of your RAM to the hard drive. That way, if your MacBook is sleeping and the battery completely dies, your computer can still resume from where you left off once you plug it in.

This greatly slows down the process of falling asleep for your Mac. My current MacBook has 4 GB of RAM. Even coming straight from RAM, writing 4 GB of data to the hard drive is going to take a little while.

This also means that the computer is going to use up 4 GB of extra disk space on the drive.

But heres where it gets bad.

I boot other computers off my MacBook's hard drive regularly so I can run repair utilities on them etc. I booted a Mac Pro off my MacBook's hard drive. The MacPro had 8 GB of RAM. So when I found safe sleep ram storage file, it was 8 GB in size!

And of course, this whole system tends to not work great, causing LOTS of crashes when you close the lid.

And a little more on those crashes. What happens is the sleep light lights up, but doesn't pulse, it just stays lit. If you don't notice this and throw the computer in your bag, you're in for a surprise when you get home and remove the computer. When the computer crashes, it apparently runs the processors at full speed. The computer very quickly gets EXTREMELY hot. Putting it in a bag in this state can seriously shorten the lifespan of your Mac.

So weighing all this against the only drawback of disabling safe sleep, which is that if your battery dies completely while it's asleep, you'll lose unsaved documents as if you had done a hard reboot.... to me it's a no brainer, bye bye safe sleep.

So, To Disable Safe Sleep:

Type these two commands in the Terminal, and hit return:

sudo pmset -a hibernatemode 0

sudo nvram "use-nvramrc?"=false

Presto, instant fast sleep, and no more crashing!!

Now if you want to reclaim some hard drive space, an amount of space equal to the amount of RAM your computer has, do the following:

In the Finder, choose Go To Folder... from the Go menu

Type "/var/vm" into the prompt and hit return

Don't touch the swapfiles, they are important. But if there is a file in that folder called 'sleepimage', just drag it to the trash and you're good to go.

1 - 781 - 789 - 9015 © 2010 MacFixer / MACFXR / iPhone Site

PO BOX 80309, Stoneham MA 02180

Email Us