Make Your Mac Sleep Better With Deep Sleep

If you own any new Apple laptop, your machine is equipped with sudden motion sensor technology to detect locomotion. Hence, for instance, should you drop your laptop while it is busy writing or reading data , the sensor will instruct the built-in hard drive’s read & write heads to park themselves in a designated safe spot to alleviate data corruption, loss, or failure in mere milliseconds. This innovation occasionally comes with a price. If you carry your laptops around while it is dozing, there will be times when it wakes up on its own without your knowledge due to perhaps strong vibration or juggling. This constitutes a problem. One, it drains your battery and second, the accumulated heat generated while it’s cocooned inside your bag is not a good thing thermally.

This is where Matthieu Beaumel’s Deep Sleep widget comes to the rescue. This simple widget changes the default sleep mode temporarily on your laptop, from hardware suspend (suspend to ram), where your main memory is kept powered allowing the machine to wake up quickly to software suspend (suspend to disk), also referred to hibernation mode. Essentially on the latter, It dumps the state of your machine and the contents of primary memory into the hard drive and consequently turns your machine off. Hence, you do not have to worry about it waking up en route to your destination. When you wake your machine by pressing the power button, the saved data, called sleepimage, is reinstated to the main memory. It will take your machine approximately 10 seconds to perform a restoration, however, so it is not as fast but the benefit is there. One side note: if you are running Mac OS X 10.4.3 or later, Apple introduced another variation to its default sleep mode called safe sleep. In addition to powering your RAM to maintain its contents, and the state of your machine, this data is also saved into your hard drive at the first stage of sleep operation in case the battery on your machine runs out of e-juice.

Prior to discovering Deep Sleep widget, I have to go into the Terminal and use the pmset command to accomplish the same objective Deep Sleep does. However, it is lucidly a hassle. I have to amend the hibernate mode every time it wakes up. Of course, I could write my own simple script around pmset to curb the inconvenience but with Deep Sleep, one click is all it takes to get the job done. One current minor downside is that Deep Sleep does not return you to the desktop immediately after clicking on it prior to commencing its operation. Hence, when you wake your machine up, you need to press f12 one more time to get rid of the dashboard. Nevertheless, Deep Sleep is a free widget that I suspect many of you will find it useful. So the next time you are scurrying across campus with your laptop because you are late for class, you can rest assured it will still sleep safely and soundly.

Get a better sleep here. Make sure your machine is supported.

Comments

11 Responses to “Make Your Mac Sleep Better With Deep Sleep”

  1. Indraneel on February 27th, 2007 2:57 pm

    excellent for carrying a laptop around

  2. alej744 on February 27th, 2007 5:50 pm

    It seems kinda risky, but it would be useful if I had a laptop. (I like desktops better.)

  3. Yohannes Wijaya on February 27th, 2007 6:09 pm

    @alej744, That was my first thought b4 trying the widget out. But there is no risk as long as your machine is supported. I have used DS for 2 months now on a daily basis without any problem.

  4. Yohannes Wijaya on February 28th, 2007 6:52 am

    wow, the picture above got mixed up w/ another app. must be a bug somewhere.

  5. muaddib420 on February 28th, 2007 4:52 pm

    gonna try this out. my macbook has been having trouble staying asleep in the bag recently. i’ve been having to shut it down, which, as you can guess, is a real pain the rear every time i move it. hopefully this will help!

  6. muaddib420 on February 28th, 2007 6:04 pm

    ok, tried it out, works perfectly! mac didn’t wake up in my bag on my way home like it usually did. it took about 3 seconds to sleep and about 10 seconds to wake back up.

    great ap !

  7. Yohannes Wijaya on March 1st, 2007 12:34 am

    @muaddib420, glad you find it useful. also refer to my article on smcfancontrol if your mb is running hot. It’s another app that i used as much as DS widget.

  8. Lara on March 13th, 2008 9:28 am

    There’s an option on the widget (just press the little i that appears in the corner) which allows you to change the default sleep mode (i.e. what happens when you close the lid of the laptop) to ‘deep sleep’ or hibernate. v. useful and it avoids waking up to the dashboard xxx

  9. 41b882913d29 on May 9th, 2008 4:01 am

    41b882913d29…

    41b882913d2923a6e209…

  10. bakunin on October 27th, 2008 12:12 pm

    wtb macbooks that “just work,” or just pay a lot less.

  11. snio on November 1st, 2009 9:28 pm

    I think your blog is so nice.So I impressed your beautiful expression.I just bookmarked you…keep up the good work!!!!
    laptop keyboard
    computer keyboard
    Computer Accessories

Feel free to leave a comment...
and oh, if you want a pic to show with your comment, go get a gravatar!