Go Back   The macosxhints Forums > OS X Help Requests > System



Reply
 
Thread Tools Rate Thread Display Modes
Old 03-20-2005, 07:26 PM   #1
kakigori4me
Prospect
 
Join Date: Mar 2005
Posts: 2
Question Forcing iMac G5 display to sleep

Is there a way to force a display (only) to sleep on an iMac G5? I don't want to put the entire machine to sleep, and would like some convenient way to force the display to sleep on demand, rather that adjusting the powersave feature to put the display to sleep after a minute.

I was thinking of something along the lines of a shell script, or hot corner or konfabulator object, etc. I'd like to click somewhere, or better yet, creat a hot key sequence to turn off the display.

Thanks in advance for any advice.

Ke
kakigori4me is offline   Reply With Quote
Old 01-07-2006, 02:50 PM   #2
bretthoerner
Registered User
 
Join Date: Jan 2006
Posts: 1
Bump, I'd really like to be able to do this, also.
bretthoerner is offline   Reply With Quote
Old 01-07-2006, 08:21 PM   #3
mclbruce
Hall of Famer
 
Join Date: Mar 2002
Posts: 3,878
It would be worth looking into AppleScript to do this. I took a quick look in some dictionaries but couldn't find an appropriate command. I've switched screen resolutions with AppleScript before though.
mclbruce is offline   Reply With Quote
Old 01-09-2006, 01:46 AM   #4
Hal Itosis
Hall of Famer
 
Join Date: Apr 2002
Posts: 3,315
Quote:
Originally Posted by kakigori4me
Is there a way to force a display (only) to sleep on an iMac G5? I don't want to put the entire machine to sleep, and would like some convenient way to force the display to sleep on demand, rather that adjusting the powersave feature to put the display to sleep after a minute.

Code:
#!/bin/bash
/usr/bin/pmset -a force displaysleep 1
exit 0
Should work on Tiger machines. Panther doesn't have the force option,
I believe... which sets the action by writing to RAM (i.e., no .plist on
disk is written to, which would require sudo. So on reboot, the default
setting should be restored). The integer on the end is minutes till sleep,
so you'll need to wait a minute. [I've never tried a 0 (zero)!]

Works on my PowerBook G4 anyway,

-HI-

Last edited by Hal Itosis; 01-09-2006 at 01:51 AM.
Hal Itosis is offline   Reply With Quote
Reply


Posting 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

Forum Jump



All times are GMT -5. The time now is 07:24 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.