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 July 6th
- Mon, 11:17 AM
- Ted Landau's User Friendly View - Apple’s LED Cinema Display: A Too Short Story
- 11:11 AM
- Product News - Photo Recovery for Mac Adds Photoshop Support
- 10:39 AM
- Hot Forum Topic - iPhones in Education
- 8:47 AM
- News - Apple Employee Injured in Store Shooting
- Fri, 10:29 AM
- News - Apple Warns of Learning Interchange Security Breach
- 7:30 AM
- News - Happy Fourth of July!
- Thu, 6:07 PM
- TMO Scoop - Psystar Moves to Drop Bankruptcy Ahead of Apple Legal Battle
- 5:37 PM
- News - Uncomfirmed Reports Say Apple & Nvidia On The Outs
- 4:57 PM
- News - Microsoft Sick Over Barf Ad
- 4:09 PM
- Product News - KRK Ships R6 Passive Studio Monitor for Recording
- 3:45 PM
- John Martellaro's Blog - Particle Debris (week ending 7/2) Juiced, Joost and Goosed
- 3:12 PM
- Product News - ExactScan 2 Pro Released
The Mac Observer Reader Specials
- Download Typestyler, still the Ultimate Styling Tool for Internet, Print and Video Graphics. Works great in Classic with a Native OS X Version on the way. Free Tryout: www.typestyler.com
OWC: Big Drives, High Performance - Not High Prices! SATA 3.5" up to 1.5TB. Notebook up to 500GB. FW up to 6.0TB. 1.0TB Drive Models from as low as $97.99 www.MacSales.com
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!
RamJet Memory: MacBook and MacBook Pro 4GB kits for $57.99! Mac Pro 4GB Kits $99.99! iMac and Mac mini 4GB Kits for $57.99! 1TB SATA Hard Drives for $109.99! Click hereFor 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.
Laptop Hardware Provided by TechRestore - Overnight Mac & iPod Repairs.

