<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Hibernate with the MacBook Pro</title>
	<atom:link href="http://gabrito.com/post/hibernate-with-the-macbook-pro/feed" rel="self" type="application/rss+xml" />
	<link>http://gabrito.com/post/hibernate-with-the-macbook-pro</link>
	<description>Anecdotes on Technology Leadership, Ruby, Java, Scala, Cloud Computing, Open-Source, SEO, and Design</description>
	<lastBuildDate>Sat, 28 Aug 2010 06:23:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: DataGreed</title>
		<link>http://gabrito.com/post/hibernate-with-the-macbook-pro/comment-page-1#comment-230324</link>
		<dc:creator>DataGreed</dc:creator>
		<pubDate>Sat, 03 Apr 2010 22:11:59 +0000</pubDate>
		<guid isPermaLink="false">http://gabrito.com/post/hibernate-with-the-macbook-pro#comment-230324</guid>
		<description>This deep sleep widget doesn&#039;t work</description>
		<content:encoded><![CDATA[<p>This deep sleep widget doesn&#8217;t work</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Axonic Labs</title>
		<link>http://gabrito.com/post/hibernate-with-the-macbook-pro/comment-page-1#comment-228697</link>
		<dc:creator>Axonic Labs</dc:creator>
		<pubDate>Mon, 22 Mar 2010 03:31:16 +0000</pubDate>
		<guid isPermaLink="false">http://gabrito.com/post/hibernate-with-the-macbook-pro#comment-228697</guid>
		<description>There is a DeepSleep Widget that will hibernate your Mac or MacBook with one click and it maintains regular sleep when you shut the lid. Check it out http://www.axoniclabs.com/DeepSleep/</description>
		<content:encoded><![CDATA[<p>There is a DeepSleep Widget that will hibernate your Mac or MacBook with one click and it maintains regular sleep when you shut the lid. Check it out <a href="http://www.axoniclabs.com/DeepSleep/" rel="nofollow">http://www.axoniclabs.com/DeepSleep/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ulisses Braga-Neto</title>
		<link>http://gabrito.com/post/hibernate-with-the-macbook-pro/comment-page-1#comment-211400</link>
		<dc:creator>Ulisses Braga-Neto</dc:creator>
		<pubDate>Fri, 30 Oct 2009 14:30:46 +0000</pubDate>
		<guid isPermaLink="false">http://gabrito.com/post/hibernate-with-the-macbook-pro#comment-211400</guid>
		<description>This worked very well, many thanks. I was tired of my MBP waking up inside my bag. Your choice of names is great. I made a small modification to make them a tad shorter: &quot;sleep light&quot; and &quot;sleep tight&quot;.</description>
		<content:encoded><![CDATA[<p>This worked very well, many thanks. I was tired of my MBP waking up inside my bag. Your choice of names is great. I made a small modification to make them a tad shorter: &#8220;sleep light&#8221; and &#8220;sleep tight&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Philipp</title>
		<link>http://gabrito.com/post/hibernate-with-the-macbook-pro/comment-page-1#comment-181850</link>
		<dc:creator>Philipp</dc:creator>
		<pubDate>Sat, 07 Feb 2009 02:42:22 +0000</pubDate>
		<guid isPermaLink="false">http://gabrito.com/post/hibernate-with-the-macbook-pro#comment-181850</guid>
		<description>I wrote myself the following little script (just copy/paste into a text file)

#!/bin/bash

case &quot;$1&quot; in
	default)
		sudo pmset -a hibernatemode 3
	;;
	hibernate)
		sudo pmset -a hibernatemode 1
	;;
	sleep)
		sudo pmset -a hibernatemode 3
esac

mode=`pmset -g &#124; grep hibernatemode &#124; sed -e &#039;s/[^0123456789]*//g&#039;`
case &quot;$mode&quot; in
	1)
		echo &quot;hibernate&quot;
	;;
	3)
		echo &quot;sleep&quot;
	;;
	*)
		echo $mode
esac

I named it /usr/bin/lidmode
after saving i executed the following in Terminal

sudo chown root:admin /usr/bin/lidmode
sudo chmod 04755 /usr/bin/lidmode

now if I go into Terminal and execute
lidmode 
it tells me which mode is currently on
and by doing
lidmode sleep
or lidmode hibernate
I can set the mode I want for the lid.

I then wrote a second script I call /usr/bin/slumber

#!/bin/bash

HM=`pmset -g &#124; grep hibernatemode &#124; sed -e &#039;s/[^0123456789]*//g&#039;`

case &quot;$1&quot; in
	deeply)
		mode=1
	;;
	lightly)
		mode=3
	;;
	*)
		mode=$HM
esac

sudo pmset -a hibernatemode $mode
osascript -e &quot;tell application \&quot;finder\&quot;&quot; -e &quot;sleep&quot; -e &quot;end tell&quot;
sudo pmset -a hibernatemode $HM

I also executed
sudo chown root:admin /usr/bin/slumber
and
sudo chmod 04755 /usr/bin/slumber

Than enables me to just execute
slumber lightly
if I want the mb to go to sleep or
slumber deeply
if I want the mb to hibernate immediately

I hope these make things a bit more comfy.

For those that like Icons ;) you could just create those scripts and then use Automator to create Actions that can be called via clicking on an Icon. But that is for another story.

Greetings, Phil</description>
		<content:encoded><![CDATA[<p>I wrote myself the following little script (just copy/paste into a text file)</p>
<p>#!/bin/bash</p>
<p>case &#8220;$1&#8243; in<br />
	default)<br />
		sudo pmset -a hibernatemode 3<br />
	;;<br />
	hibernate)<br />
		sudo pmset -a hibernatemode 1<br />
	;;<br />
	sleep)<br />
		sudo pmset -a hibernatemode 3<br />
esac</p>
<p>mode=`pmset -g | grep hibernatemode | sed -e &#8216;s/[^0123456789]*//g&#8217;`<br />
case &#8220;$mode&#8221; in<br />
	1)<br />
		echo &#8220;hibernate&#8221;<br />
	;;<br />
	3)<br />
		echo &#8220;sleep&#8221;<br />
	;;<br />
	*)<br />
		echo $mode<br />
esac</p>
<p>I named it /usr/bin/lidmode<br />
after saving i executed the following in Terminal</p>
<p>sudo chown root:admin /usr/bin/lidmode<br />
sudo chmod 04755 /usr/bin/lidmode</p>
<p>now if I go into Terminal and execute<br />
lidmode<br />
it tells me which mode is currently on<br />
and by doing<br />
lidmode sleep<br />
or lidmode hibernate<br />
I can set the mode I want for the lid.</p>
<p>I then wrote a second script I call /usr/bin/slumber</p>
<p>#!/bin/bash</p>
<p>HM=`pmset -g | grep hibernatemode | sed -e &#8216;s/[^0123456789]*//g&#8217;`</p>
<p>case &#8220;$1&#8243; in<br />
	deeply)<br />
		mode=1<br />
	;;<br />
	lightly)<br />
		mode=3<br />
	;;<br />
	*)<br />
		mode=$HM<br />
esac</p>
<p>sudo pmset -a hibernatemode $mode<br />
osascript -e &#8220;tell application \&#8221;finder\&#8221;" -e &#8220;sleep&#8221; -e &#8220;end tell&#8221;<br />
sudo pmset -a hibernatemode $HM</p>
<p>I also executed<br />
sudo chown root:admin /usr/bin/slumber<br />
and<br />
sudo chmod 04755 /usr/bin/slumber</p>
<p>Than enables me to just execute<br />
slumber lightly<br />
if I want the mb to go to sleep or<br />
slumber deeply<br />
if I want the mb to hibernate immediately</p>
<p>I hope these make things a bit more comfy.</p>
<p>For those that like Icons <img src='http://gabrito.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  you could just create those scripts and then use Automator to create Actions that can be called via clicking on an Icon. But that is for another story.</p>
<p>Greetings, Phil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Wheadon</title>
		<link>http://gabrito.com/post/hibernate-with-the-macbook-pro/comment-page-1#comment-181217</link>
		<dc:creator>Mark Wheadon</dc:creator>
		<pubDate>Mon, 02 Feb 2009 09:14:13 +0000</pubDate>
		<guid isPermaLink="false">http://gabrito.com/post/hibernate-with-the-macbook-pro#comment-181217</guid>
		<description>Or for those who only sometimes want the machine to hibernate -- how about a more hands-on approach:

http://www.markwheadon.com/blog/2009/01/hibernate-macbook/

Marjk</description>
		<content:encoded><![CDATA[<p>Or for those who only sometimes want the machine to hibernate &#8212; how about a more hands-on approach:</p>
<p><a href="http://www.markwheadon.com/blog/2009/01/hibernate-macbook/" rel="nofollow">http://www.markwheadon.com/blog/2009/01/hibernate-macbook/</a></p>
<p>Marjk</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jinesh Udani</title>
		<link>http://gabrito.com/post/hibernate-with-the-macbook-pro/comment-page-1#comment-4954</link>
		<dc:creator>Jinesh Udani</dc:creator>
		<pubDate>Wed, 16 Aug 2006 19:34:22 +0000</pubDate>
		<guid isPermaLink="false">http://gabrito.com/post/hibernate-with-the-macbook-pro#comment-4954</guid>
		<description>This is a brilliant tip. I have been using Windows all these years and always used to Hibernate my laptop since it helps me to start my laptop quickly. Ever since I moved to a MBP, I was missing this feature, Thanks a lot.</description>
		<content:encoded><![CDATA[<p>This is a brilliant tip. I have been using Windows all these years and always used to Hibernate my laptop since it helps me to start my laptop quickly. Ever since I moved to a MBP, I was missing this feature, Thanks a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dalesan</title>
		<link>http://gabrito.com/post/hibernate-with-the-macbook-pro/comment-page-1#comment-725</link>
		<dc:creator>dalesan</dc:creator>
		<pubDate>Mon, 08 May 2006 16:12:57 +0000</pubDate>
		<guid isPermaLink="false">http://gabrito.com/post/hibernate-with-the-macbook-pro#comment-725</guid>
		<description>Thanks for the great tip.  My MBP has a bad tendency to wake up while in my backpack.  This morning I could&#039;ve fried an egg on it.  This hibernation tip should do nicely..  Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks for the great tip.  My MBP has a bad tendency to wake up while in my backpack.  This morning I could&#8217;ve fried an egg on it.  This hibernation tip should do nicely..  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chuck Cheeze</title>
		<link>http://gabrito.com/post/hibernate-with-the-macbook-pro/comment-page-1#comment-628</link>
		<dc:creator>Chuck Cheeze</dc:creator>
		<pubDate>Sun, 23 Apr 2006 02:09:15 +0000</pubDate>
		<guid isPermaLink="false">http://gabrito.com/post/hibernate-with-the-macbook-pro#comment-628</guid>
		<description>Hi Todd, not so new to MBP anymore but still learning bash stuff.  Would you consider doing a step by step?  For instance, what does &quot;added two aliases&quot; mean?  How do I do that and where?  Same with &quot;sourced my bashrc&quot; and &quot;ran hibernateon&quot;.  Just a little help for a noob.</description>
		<content:encoded><![CDATA[<p>Hi Todd, not so new to MBP anymore but still learning bash stuff.  Would you consider doing a step by step?  For instance, what does &#8220;added two aliases&#8221; mean?  How do I do that and where?  Same with &#8220;sourced my bashrc&#8221; and &#8220;ran hibernateon&#8221;.  Just a little help for a noob.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dion Almaer</title>
		<link>http://gabrito.com/post/hibernate-with-the-macbook-pro/comment-page-1#comment-606</link>
		<dc:creator>Dion Almaer</dc:creator>
		<pubDate>Fri, 21 Apr 2006 17:01:43 +0000</pubDate>
		<guid isPermaLink="false">http://gabrito.com/post/hibernate-with-the-macbook-pro#comment-606</guid>
		<description>Hi Todd,

Glad it was useful. Enjoying the MBP?

Dion</description>
		<content:encoded><![CDATA[<p>Hi Todd,</p>
<p>Glad it was useful. Enjoying the MBP?</p>
<p>Dion</p>
]]></content:encoded>
	</item>
</channel>
</rss>
