Sep 27, 2012 Of course, am sure they use some kind of light meter instrument. Ur camera has a light meter. The better ones will give u a number, in STOPS (photography parlance) not as precise as an instrument that reads candela output. Download Shady for Mac. Shady is free, and can be downloaded below, or from the dev's website. Download Shady for Mac 1.0.3 (.zip) Once you've downloaded the file, double-click on it to unzip the app, then move the app into the Applications folder (or to wherever else you keep your third-party utility apps).
Adjust brightness from Terminal | 18 comments | Create New Account
Click here to return to the 'Adjust brightness from Terminal' hint |
The following comments are owned by whoever posted them. This site is not responsible for what they say.
For the uninitiated such as myself, PowerPC and 64Bit binaries, along with their installation location, would be useful. Thanks.
I'm the original author of the code listed in this hint. I originally wrote it for two reasons: first, to adjust brightness automatically by location on my iBook G4, which had no ambient light sensor, and second, so I could have my laptop turn on the backlight when a long operation finished, providing a quiet form of notification I could use while at a seminar. http://sabi.net/nriley/software/brightness.zip is 4-way universal, 10.5+. I compiled it under 10.6 with: (note that if you compile it with the 10.6 SDK you'll get a deprecation warning; it's harmless for now.)
Thanks for this!
Just copied it to /usr/local/bin on my iBook G4 and it works great.
Just copied it to /usr/local/bin on my iBook G4 and it works great.
Does this work on Mountain Lion? I've just downloaded it, unzipped and run it and get the following: Mountain Lion 10.8.2 on a MacBook Pro
You'll need to recompile it to work on Mountain Lion, but it's really easy. First, grab the source from http://dev.sabi.net/svn/dev/trunk/LocationDo/brightness.c and save it somewhere on your computer. Pop open terminal and run the following command from the same directory as brightness.c:
gcc -std=c99 -o brightness brightness.c -framework IOKit -framework ApplicationServices
You must have XCode installed to run this, and it worked like a charm for me. Move to /usr/local/bin and make sure it has the correct permissions. Hope this is helpful.
I guarantee that 64-bit won't gain you anything at all in this case over 32-bit running on Intel. This is such a small and simple application that there's no benefit whatsoever to going beyond 32-bit, even on a system running all 64-bit stuff otherwise. Well, maybe a tiny psychological advantage for those who absolutely can't stand to have their system 'polluted' by 32-bit stuff, but certainly no real-world advantage. ;)
That said, many thanks to the original author and to the hint submitter for calling attention to it! This program gives me a great idea to simulate an intermittent screen problem in my custom anti-theft script for my MacBook. Can't wait to try it out.
Absolutely brilliant! Thankyou!
There are instructions to compile this on the linked page.
The only problem I found is that it only dims the screen of the main display, not a second display hooked to a laptop.
The only problem I found is that it only dims the screen of the main display, not a second display hooked to a laptop.
The original brightness.c had a -d (display) option. I've been using this program for about 1/2 a year now and it works very nicely. The usage is something like:
This only works on my aluminum macbook, and iMac, it does not work on my mac pro with 30' ACD.
Yeah, unfortunately Apple doesn't have a documented way of controlling brightness over USB. The documented method only works with built-in and ADC displays.
Use the version I linked above (http://sabi.net/nriley/software/brightness.zip) instead; it uses the same method as the Displays preference pane does.
Use the version I linked above (http://sabi.net/nriley/software/brightness.zip) instead; it uses the same method as the Displays preference pane does.
-=*Brilliant*=-
THANK YOU!
THANK YOU!
Likewise, I've been searching high and low for a pure command line (the scripts for System Prefs is too slow). Thanks!
This is the only way I could find to program brightness up/down into my Microsoft Ergonomic 4000 keyboard. I was able to write an application to do brightness up (and a separate app for brightness down) Here's how to make the mac brightness-up app:
Save the brightness file to Macintosh HD/Library
Open AppleScript and enter this code
Open AppleScript and enter this code
do shell script '/Library/brightness -l'
set lev to result's last word
set lev to lev + 0.05
do shell script '/Library/brightness ' & lev
Go to File > Save As... (remember to select 'Application' from the File format selection)
Then I set a programmable key on my keyboard to run this application I just saved.
Repeat process with a '- 0.05' in the script to make a brightness down app.
Repeat process with a '- 0.05' in the script to make a brightness down app.
Hey to all!
Could you possibly help me with a script?
I have a problem in string 'set lev to lev + 0.05':
AppleScript interpretator can't convert lev to number.
Could you possibly help me with a script?
I have a problem in string 'set lev to lev + 0.05':
AppleScript interpretator can't convert lev to number.
You'll need to download the 'brightness' file (link given in this original hint) and have the file path in the first and last line point to it.
Come to think of it, I actually downloaded the brightness file to my user's Library folder (It's a bit easier to get to using Finder)
So here's my BrightnessDown.scpt for example:
do shell script '/Users/Myname/Library/brightness -l'
set lev to result's last word
set lev to lev - 0.05
do shell script '/Users/Myname/Library/brightness ' & lev
As a troubleshooting step, open terminal and enter in the commands as a test.
When I enter this in terminal:
/Users/Myname/Library/brightness -l
I get this: (which tells me I have the script downloaded and the command right)
display 0: main display, ID 0x42735c0
display 0: brightness 0.468750
Come to think of it, I actually downloaded the brightness file to my user's Library folder (It's a bit easier to get to using Finder)
So here's my BrightnessDown.scpt for example:
do shell script '/Users/Myname/Library/brightness -l'
set lev to result's last word
set lev to lev - 0.05
do shell script '/Users/Myname/Library/brightness ' & lev
As a troubleshooting step, open terminal and enter in the commands as a test.
When I enter this in terminal:
/Users/Myname/Library/brightness -l
I get this: (which tells me I have the script downloaded and the command right)
display 0: main display, ID 0x42735c0
display 0: brightness 0.468750
Great tip, I've been looking for something like this for a long time.
Now to get it to do it based on power source, i.e
Battery = 0.5
Ac = 1
Now to get it to do it based on power source, i.e
Battery = 0.5
Ac = 1
Hey, based on this great tool, this blog (http://www.mikerapin.com/blog/?p=73) and some forums I made an Applescript that stores the current brightness in a hidden file, set it to 0 and back if executed again. All without slow, nasty GUI scripting. So you can use it with Spark or something as shortcut! Here it is:
-- adjust path to User Directory, file will be hidden
set logfilepath to ('/Users/???/.brightness--.txt' as Unicode text)
-- does the log file already exist?
try
set logfilealias to logfilepath as alias
set logfileexists to true
on error
set logfileexists to false
end try
try
set AppleScript's text item delimiters to 'brightness '
do shell script '/bin/brightness -l'
-- get first number after word 'brightness' so its safe if multiple displays
set brightness to (words 1 thru 1 of (text item 2 of result)) as real
end try
if brightness as number is greater than 0 then
try
do shell script '/bin/brightness 0'
writeTo(logfilepath, brightness, text, false)
end try
else
try
set brightness to readFile(logfilepath)
do shell script '/bin/brightness ' & text of brightness
writeTo(logfilepath, '0', text, false)
end try
end if
on writeTo(targetFile, theData, dataType, apendData)
-- targetFile is the path to the file you want to write
-- theData is the data you want in the file.
-- dataType is the data type of theData and it can be text, list, record etc.
-- apendData is true to append theData to the end of the current contents of the file or false to overwrite it
try
set targetFile to targetFile as string
set openFile to open for access targetFile with write permission
if apendData is false then set eof of openFile to 0
write theData to openFile starting at eof as dataType
close access openFile
return true
on error
try
close access file targetFile
end try
return false
end try
end writeTo
on readFile(unixPath)
set foo to (open for access (POSIX file unixPath))
set txt to (read foo for (get eof foo))
close access foo
return txt
end readFile
When the surroundings are dark compared to the brightness of the computer monitor, it might cause sight problems and affects the work. A screen dimmer app can be used in these circumstances as there is much software available online. Screen dimmer software for windows can be downloaded as a file and run automatically without installing. If such software is required for the phones, then screen dimmer app for android are also available.
Related:
Dimmer
This is screen dimmer software that can be used to dim different types of screens and monitors like LCD, LED, and other backlit types. When the room ambiance is lower and the monitor is brighter, this software can be used to reduce the brightness more than what the hardware can do. This is compatible with all Windows platforms.
Pangobright
It can be used to control the brightness of the main screen as well as external monitors at the desired brightness levels. The icon will be in the system tray after installation so it can be clicked to choose which screen to control. The laptop brightness can be dimmed while leaving the VGA output at full brightness during presentations.
Dim Screen
This software can be used to dim the whole screen during the night times. The brightness can be changed by selecting a percentage at the tray menu and even hotkeys like ctrl key can be used to reduce and increase the brightness. It doesn’t work well when videos are on.
Brightness Slider for Mac
This software works on Mac platform to control the brightness of the screen and also has the option to set custom hotkeys. It controls the brightness either by reducing the intensity of the backlight in the monitor or for systems in which the above method doesn’t work this software will use a semi-opaque veil to reduce the brightness.
Screen Dimmer for Android
This Android app can be used to dim the lights on tablets and phones. It can help to save the phone’s battery by disabling the AMOLED screen and the button’s backlight. Other options like silent the mode when the app is started, scheduling, toggling the app according to outside brightness, variable opacity, etc. is also available on this app.
Color Veil for Windows
This software allows the user to choose the color and opacity of the filter that can be applied on the desktop, browser or any other application. It is easy to switch on and off and can reduce the brightness to a greater extent. A color can be applied to the video output while doing a presentation.
f.lux – Most Popular Software
This software is very popular because it makes the screen of the laptop adapt according to the time of the day; warm at night and bright during day times. It helps in removing the blue light on the screen that could damage our eyes. Once you start using it, you will like it working and its various benefits. You can also see Screen Brightness Control Software
App For Mac Brightness Lex Pc
What is Monitor Dimmer Software?
Monitor dimmer software are especially for IT people who spent most of their time working on the monitor which emits light harmful for one’s eyes. At such time a screen dimmer app can be used to dim the lights more than what the computer hardware could do. It will be easy to operate because once installed the icon will be available in the system tray so just by clicking the screen dimmer software for windows we can select the percentage of brightness that we want. You can also see Wallpaper Changer Software
Certain software will allow the users to choose the color of the filter that they want; say in order to reduce the blue light, the user can pick an orange filter. Some even have the option to schedule the application so it turns off.
Mobile phones are another device that needs a brightness controller. In such, instances a screen dimmer app for android can be used.
Mobile phones are another device that needs a brightness controller. In such, instances a screen dimmer app for android can be used.
Mac Brightness Control
Working at night on laptops can be very stressful to the eyes because the surroundings will be darker than the screen. It will cause damage to the eyes and the blue light that is emitted from the screen is said to cause sleep deprivation. This will become a problem for people who have to constantly work at night and cause heath issues.