Immediate Display Sleep
Ok, here's the idea: I serve things up off of my computer, so I never really want to put it to sleep, but I do want to turn the LCD off at night since it's at my room. I've grown sick of waiting the alloted time to have the display sleep, and it's a PITA when I constantly need to be adjusting it.
So, does anyone have any ideas? Some thoughts of mine are a shell script that sets the defaults value to 0 and then back again, or an applescript that slides the slider, waits a minute, and moves it back again. But, I have no idea if these will work or how to implement them since I ain't no 1337 haxxor.
I would imagine that this would be helpful to others, too.
So, does anyone have any ideas? Some thoughts of mine are a shell script that sets the defaults value to 0 and then back again, or an applescript that slides the slider, waits a minute, and moves it back again. But, I have no idea if these will work or how to implement them since I ain't no 1337 haxxor.
I would imagine that this would be helpful to others, too.
Comments
Originally posted by ast3r3x
...the power button?
I'm guessing he has a cinema display, hit the power button, puts the computer to sleep. I would go with fiddler's suggestion and hit the other button on your display, which brings up display preferences, than turn the brightness all the way down. Set your display sleep time to be really short, 5, maybe 10 minutes. That should take care of things for you.
No power button. Turning down the brightness doesn't turn off the LCD backlight.
Ideally, I would bind a shell script or an applescript to a Konfabulator widget (or some GUI equivalent) and that would immediately put my display to sleep.
But, last night, I was grokking through some of the command line stuff, and it appears that the pmset utility is used to adjust energy saver prefs, and they have to be integer values. So, perhaps I could create a shell script to use pmset to drop the value for display sleep to 1 and then after one minute, pump it back up to the previous level. Oh, can you invoke the screen saver via command line?
The whole idea here is that I'm sick of needing to always be changing my energy saver settings. So, I'm looking for a one-click fix.
...then again I guess we'll probably get then when Apple lets your close your powerbook without your computer going to sleep
Originally posted by ast3r3x
...then again I guess we'll probably get then when Apple lets your close your powerbook without your computer going to sleep
Why would you want that?