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 April 16th

Wed, 9:16 AM
Judge Cote Denies Apple Request to Stop State Ebook Antitrust Cases
8:25 AM
Mavericks: Use Maps to See Traffic and Alerts
Tue, 6:28 PM
The Mimimalist Aluminum RADIUS iPhone 5/5s Case
5:25 PM
LaCie Warns Customers of Year-Long Credit Card Breach
4:54 PM
Time Machine Bug In Mavericks with Secondary Monitor - How to Fix It
3:20 PM
Rapoo E2700 Keyboard Includes Touchpad
2:30 PM
Microsoft Word for iPad Gets Touch Word Processing (Mostly) Right
2:20 PM
Amazon Smartphone Rumors Now Include Photos
11:54 AM
Pioneer Gets in on Aftermarket Apple CarPlay
10:13 AM
Report Says LG Making 9M Flexible iWatch Displays
9:07 AM
Antitrust Monitor Pleased with Apple’s Cooperation
Mon, 11:11 PM
Entry-Level Bitcoin Mining Gear for Mac, Windows, and Linux [Update]
  • __________
  • Buy Stuff, Support TMO!
  • Podcast: Mac Geek Gab
  • Podcast: Apple Weekly Report
  • TMO on Twitter!