Alternative To “Sleep Trick” On Intel GMAX3100

A lot of us on laptops using Intel’s onboard GMAX3100 are having to do something called the “sleep trick” to get our screens to display Mac OS X after you boot or reboot. The most common way to perform this trick is to set a hot corner (Expose) to “Sleep Display” and blindly move your mouse over to the spot, hoping it wakes the screen up and displays your new Mac. For most of us, this trick works well. For the power user (or those without Sleep), we’re constantly booting up and shutting down to save battery life.

The biggest issue is since Expose uses your user settings, you have to leave Automatic Login on for your user account to get access to that hot spot. This leaves our Hackbooks at risk for theives to just boot right up, and if they figure out how the fuck to turn on the screen, they’ve got access to all your data. Not anymore! By following my instructions below, you can have a more natural experience by forcing the display to sleep automatically during boot, BEFORE you reach the Login screen!

Download the SleepDisplay Hack

Drag SleepDisplay.app to your home directory. In Finder, this is the “place” that is shown with your username.

Open Terminal and type sudo su - then open /etc/rc.common with your favorite text editor (as root), and at the top, add the following:

# Sleep display on boot

/Users/richard/SleepDisplay.app/Contents/MacOS/sleepdisplay

Replace “richard” with your username, or the full path to the location of SleepDisplay.app plus the trailing path you see above. Save the file and type head -n 5 /etc/rc.common to make sure it’s in there. Good? OK. Now go to System Preferences, Accounts, Login Options and disable automatic login. Keep Expose set to the hot corner as a fail over in case an update wipes your rc.common changes. Now reboot. Need I say more? If you’re ever stuck with a blank screen, just touch your mouse and boom — it’s up. No hot corner bullshit. If for any reason this doesn’t work, the hot corner is still there so just pretend you’re looking at the Login screen, type your password and hit Enter, then move your mouse to the Expose corner.

Easy, huh?

Dell Inspiron 1525 HackBook Pro Tutorial! - Espresso Report said,

July 24, 2008 @ 8:38 AM

[...] UPDATE! Want this sleep trick to happen automatically and be able to see the Login screen? Click here! [...]

Richard said,

July 26, 2008 @ 3:12 PM

“MacGirl” over at the InsanelyMac Forums let me in on something you guys might want to try. While I haven’t tested it myself, it appears that contrary to what the documentation says that Leopard has depreciated /etc/rc.local — it should still work! You guys might want to try placing my auto sleep trick in /etc/rc.local instead of /etc/rc.common because if it does indeed work, it *SHOULDN’T* be deleted or overwritten with upgrades. That’d be neato. Give it a try and let me know!

Danny said,

August 25, 2008 @ 3:51 PM

Hm, I can’t seem to get sleep working, I just get a black screen when i press Fn+F3, it works, but i cant get back in lol.

Jesper said,

August 31, 2008 @ 3:48 AM

What do you mean with this:

open /etc/rc.common with your favorite text editor (as root)

where can I find the folder etc??

Jesper said,

August 31, 2008 @ 5:16 AM

Got the answer. ;)

Benjamin said,

August 31, 2008 @ 8:35 AM

“Open Terminal and type sudo su - then open /etc/rc.common with your favorite text editor (as root), and at the top, add the following:”

I typed sudo su - now how do I open rc.common?

justin said,

September 5, 2008 @ 2:39 PM

What do you mean with this:

open /etc/rc.common with your favorite text editor (as root)

where can I find the folder etc??

Andrew said,

September 6, 2008 @ 10:06 AM

justinWhat do you mean with this:

open /etc/rc.common with your favorite text editor (as root)

where can I find the folder etc??

Once you’re in root, type pico /etc/rc.common.
This will open it up as a text file in the terminal, and you can edit it.

Richard said,

September 6, 2008 @ 10:10 AM

Once you edit the file, save it by holding Ctrl and pressing X, then press Y to save.and hit Enter when prompted for a file name.

Andrew said,

September 6, 2008 @ 10:14 AM

Just did this, putting it in rc.local, and it seems to work great.

This is a huge help, because I use this laptop a lot at school and it was really not secure with that auto-login junk. Thanks again, Richard.

Richard said,

September 6, 2008 @ 10:18 AM

Andrew
Just did this, putting it in rc.local, and it seems to work great.

This is a huge help, because I use this laptop a lot at school and it was really not secure with that auto-login junk. Thanks again, Richard.

No problem! This also fixes the strange abnormalities with using the sleep trick after you’re logged in since you sleep and wake before you log into a user account. Secure and less of a pain in the ass :)

Anthony said,

September 21, 2008 @ 11:29 AM

I can’t seems to find rc.local on my system… any ideas?

RSS feed for comments on this post · Trackback URL

Leave a Comment