3. Study/Realize

screen is too bright

Sherlocks 2013. 1. 9. 23:08

http://legacy.tonymacx86.com/viewtopic.php?f=259&t=57174


Well, it annoyed me that I had to put display manually to sleep after every boot in order to have proper brightness control so I figured out something very simple.
I found shell app called SleepDisplay which is able to put display to sleep and wake it up. So if you make automator/applescript 'app' running sth like this:

PATH/SleepDisplay
PATH/SleepDisplay --wake 

and you put it in your launch-on-login list, you'll have brightness control fixed automatically.
I attach SleepDisplay to this post. 

In order not to have to enter my password twice I enabled automatic login on my account and it works pretty well ;) 
But actually it would be nice to force running SleepDisplay somewhat earlier. I tried with /Library/StartupItems but I guess it's too early because it didn't work.


1. Put SleepDisplay in some place on the disk, it might be /Applications but I prefered /usr/local/bin
2. Run Automator, and choose document type "Programme" (well, I'm not sure how exactly it is called in english cause I'm using translated Lion) 
3. Add task 'Run shell script' and fill it with this:

PATH_TO_PLACE_WHERE_YOU_PUT_SLEEPDISPALY/SleepDisplay
PATH_TO_PLACE_WHERE_YOU_PUT_SLEEPDISPALY/SleepDisplay --wake 

4. Save it as an app. 

4. Go go System Preferences / Users and groups / Login tab and there add automator-created app to the launch-on-login list.


SleepDisplay.zip