Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Applications > Make iMac automatically going into sleep mode at startup ?

Make iMac automatically going into sleep mode at startup ?
Thread Tools
Senior User
Join Date: Aug 2007
Location: U.K.
Status: Offline
Reply With Quote
Jun 12, 2011, 11:59 PM
 
I am looking for a small program that will put my iMac into sleep mode immediately after starting up.
Probably have it as a login item.
I like to switch on my iMac, then go and do something, like make a cup of tea, have a shower etc, and would like for it to auto go into sleep mode immediately without my input, to save screen, HDD etc

I've googled to no avail, please help.
Perhaps even a simple terminal command that the iMac can auto run.
Or something that emulates the keyboard shortcut for sleep, which I use a lot.
I don't want to set Energy saver to zero.
(Last edited by MacNNUK; Jun 13, 2011 at 12:40 AM. )

iMac Intel Core i5, 2.5GHz, 4GB RAM, 500GB 21.5" Monitor 10.7.4.
iMac 17" 2.0ghz Intel Core 2 Duo w 3gb memory (White one) 10.6.8.
Internal 500gb / 160gb plus External 500gb x 2 (2x Time Machine)
     
Moderator
Join Date: Oct 2001
Location: San Jose, CA
Status: Offline
Reply With Quote
Jun 13, 2011, 10:38 AM
 
The few minutes you're talking about will not have any noticeable affect on your screen or hard drive, etc. I wouldn't be concerned about this at all. If you must, set Energy Saver to a low value and turn off auto login if you want.

Or an even better idea: don't turn it off. Just sleep it. There's really no need to shut down or restart a Mac unless you have to install something or you're putting your machine in storage.

Steve
Celebrating 10 years and 4000 posts on MacNN!
     
Forum Regular
Join Date: Aug 2005
Status: Offline
Reply With Quote
Jun 13, 2011, 08:57 PM
 
Why not just use the manual key combination that puts the system to sleep immediately? You said you use it a lot. Or set Energy Saver to do it after ~ 5 minutes. I don't think your screen or HD will suffer much from being on for 5 minutes.
iMac Intel Core 2 Duo 2.66 GHz, 4 Gig RAM, 10.6.8
Macbook Pro Intel Core 2 Duo 3.06 GHz, 4 GB RAM, 10.6.8
iMac G5 2GHz, 1.5 GB RAM, 10.5.8
Macbook Air Core 2 Duo 4 Gig RAM, 10.6.8
     
Fresh-Faced Recruit
Join Date: Sep 2007
Status: Offline
Reply With Quote
Jun 15, 2011, 09:33 AM
 
All you have to do is create a simple script in AppleScript Editor, with the following lines

Code:
tell application "Finder" sleep end tell
Now save it as an application and set it to run at startup.

or

Just use this. https://rapidshare.com/files/3817809840/Sleep.app.zip
I just made it using the steps above.
     
Clinically Insane
Join Date: Oct 2000
Location: Los Angeles
Status: Offline
Reply With Quote
Jun 15, 2011, 09:44 AM
 
UK, there's no reason to shut down your Mac all the time (as stated in previous posts), and there's no reason to immediately put your Mac in sleep mode after it logs in. If you're concerned about your hard drive, you're putting more stress on it with superfluous wake and sleep cycles than you would be by just keeping it on for slightly longer periods. I say if you're going to be a way for awhile (and for myself that means hours, but for you it may be 30 minutes), use sleep. Otherwise just let it run. Restarting is only need occasionally for maintenance reasons, and full shutdowns should only be used for really extended periods of non-use. IMHO.

"The natural progress of things is for liberty to yield and government to gain ground." TJ
     
MacNNUK  (op)
Senior User
Join Date: Aug 2007
Location: U.K.
Status: Offline
Reply With Quote
Jun 15, 2011, 12:43 PM
 
Originally Posted by nitant View Post
All you have to do is create a simple script in AppleScript Editor, with the following lines

Code:
tell application "Finder" sleep end tell
Now save it as an application and set it to run at startup.
That works a treat, thank you.
It's exactly what I was looking for.


(That's my first AppleScript Editor time !)
(Last edited by MacNNUK; Jun 15, 2011 at 06:53 PM. )

iMac Intel Core i5, 2.5GHz, 4GB RAM, 500GB 21.5" Monitor 10.7.4.
iMac 17" 2.0ghz Intel Core 2 Duo w 3gb memory (White one) 10.6.8.
Internal 500gb / 160gb plus External 500gb x 2 (2x Time Machine)
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 04:31 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2