Programmer Reveals MacBook Pro Light Sensor Secrets
Programmer Reveals MacBook Pro Light Sensor Secrets
by , 3:20 PM EDT, June 20th, 2006
Mac programmer Amit Singh, who in February figured out how to access and manipulate the motion sensor in Apple's laptops, has published an explanation of the ambient light sensor also found in the company's latest portables. The ambient light sensor detects the amount of light in a room and brightens the laptop's keyboard as needed.
Apple has not published any APIs for programmers to use when accessing the motion or ambient light sensors. Working with his MacBook Pro, Mr. Singh has figured out how to retrieve readings from the ambient light sensor, retrieve and set the backlit keyboard's brightness value, configure a fade to a target brightness, and retrieve and set the display's brightness.
Mr. Singh provides code on his blog so that other programmers can replicate his work. He only tested his programs on his laptop, however, so he is unsure if they will work with Apple's other portables.
Thanks to MacNN for the link.
Observer Comments
Comments are currently closed. Please email the author instead.
Recent Headlines - Updated March 16th
- Tue, 5:00 PM
- Games - New App Store Games: Frogger Inferno, More
- 4:28 PM
- News - Flurry Finds Google Nexus One Sales Lagging Through 74 Days [UPDATED]
- 3:02 PM
- iPad - A Diamond-Encrusted iPad Can Be Yours For $20K
- 2:41 PM
- iPad - Could E-Textbooks be the iPad’s ‘Killer App’?
- 2:22 PM
- iPhone - New Google Hire Tim Bray Fires a Volley in the Android vs. iPhone War
- 1:49 PM
- Quick Look Review - Hippus HandShoeMouse
- 1:48 PM
- Games - Blizzard: Starcraft II Beta For Mac in April
- 1:31 PM
- iPhone - Research Firm Flurry Sees 185 Percent Jump in iPhone App Development
- 10:36 AM
- Product News - PayPal App Adds Bump to Pay Support
- 9:51 AM
- News - Apple Hires Wearable Tech Guru
- 9:27 AM
- Product News - PasswordWallet 4.5 Adds MobileMe Sync Support
- 9:15 AM
- Hot Forum Topic - Finding the iPad’s Target Market
The Mac Observer Reader Specials
- TypeStyler For Mac OS X is Now Shipping! Download The Free Fully Functional 60 Day Tryout at www.typestyler.com
Mac Memory and Hard Drives: MacBook Pro Memory 8GB kits $349.99! iMac Memory 4GB DDR Kits for $109.99! Mac Pro Memory 4GB Kits for $135.99! Mac Hard Drives 1.5TB Seagate SATA II for $147.99! Click Here!
- CarMD Handheld Device & Mac/PC Software System saves you time and money on car maintenance and repair. Buy at www.CarMD.com! Save $10 with code TMO2.
If you're using a Mac, then you've gotta check out Full Tilt Poker for Mac. This Full Tilt Poker bonus code does the unthinkable, it actually rewards!For the latest Apple products use Ciao, a price comparison website, to find laptops like MacBook Air. Then find the best prices on MP3 players and use our comparison tool to evaluate mobile phones like the Apple iPhone.

