The Mac Observer

Skip navigational links

You're viewing an article in TMO's historic archive vault. Here, we've preserved the comments and how the site looked along with the article. Use this link to view the article on our current site:
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.

Recent Headlines - Updated July 22nd

Tue,12:36 AM
‘Stickers’ Apple Commercial Highlights User Love for MacBook Air
Mon,8:57 PM
Apple Fixes MacBook Air (Mid 2011) Sleep Issue with Firmware Update
8:44 PM
Apple Reportedly Orders 70-80 Million Large Screen iPhones for Q4
7:47 PM
Five Third Party Extensions Announced for iOS 8
5:21 PM
The Beginner Web Dev Hacker Bundle: $69
4:30 PM
OS X: The Best Ways to Share a Web Page (via Email) in Safari
2:00 PM
Jot Touch with Pixelpoint: Like Adobe’s Ink Stylus, but More Buttons
1:24 PM
TMO Daily Observations: 2014-07-21
12:35 PM
Voyager Q Conveniently Docks Your Extra SATA Drives
11:30 AM
Zachs Rates AAPL Neutral on Potential iPhone Competition
10:16 AM
Apple Faces Patent Infringement Lawsuit over iPhone 5 Speech Recognition
9:01 AM
Apple’s 2014 London iTunes Festival to Include Maroon 5, Pharrell Williams
  • __________
  • Buy Stuff, Support TMO!
  • Podcast: Mac Geek Gab
  • Podcast: Apple Weekly Report
  • TMO on Twitter!