View Full Version : Screen brightness through terminal
caseyhayward
April 23rd, 2007, 02:01 PM
Hello,
I am a terminal novice, but the screen brightness buttons won't work on my ibook G4. Can I use a terminal command to acheive the same control and if so, what is/are that (those) command(s)?
fryke
April 23rd, 2007, 02:37 PM
What about using the Displays preference pane? And why don't the keys work? ;)
caseyhayward
April 23rd, 2007, 03:03 PM
thanks fryke,
I was hoping for something quicker/cooler than using the pref pane but you are probably right that is my best option. The keys don't work because my wife spilled water on the keyboard yikes!
fryke
April 23rd, 2007, 03:29 PM
You probably could whip up something with AppleScript. Maybe some scripts exist already... Wouldn't know, though. Google might. :)
macbri
April 23rd, 2007, 06:19 PM
It ain't pretty, and it ain't ideal (you'd need to play around with the delay settings etc. to work depending on the speed of your machine), but you could alias "brighter" to something like:
osascript -e 'tell application "System Events" to repeat 50 times' -e 'key code 113' -e 'delay 0.1' -e 'end repeat' and "darker" to:
osascript -e 'tell application "System Events" to repeat 50 times' -e 'key code 107' -e 'delay 0.1' -e 'end repeat'
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by
vBSEO 3.1.0