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 October 9th

Thu,9:10 PM
Apple on iPhone Battery Performance: You’re Measuring It Wrong
6:56 PM
The Big Mac Bundle: $17.99
6:00 PM
The Two Sides of Apple: Brilliance and Ennui
2:28 PM
AT&T Fires Up Wi-Fi Calling Support
1:42 PM
TMO Daily Observations 2015-10-08: Samsung vs. TSMC iPhone Chips, Lightroom for iPad
11:36 AM
NASA’s Apollo Mission Photos Free on Flickr
10:33 AM
Adobe Sets Lightroom for iPhone, iPad Free from Creative Cloud
9:14 AM
Harry Potter Comes to Apple’s iBook Store with Enhanced Editions
Wed,10:30 PM
ACM 327: Competing with Google Now, Apple’s Other New Campus, iPad Pro for Artists
5:41 PM
Pay What You Want for the WordPress Wizard Bundle
1:56 PM
TMO Daily Observations 2015-10-07: AT&T Wi-Fi Calling, Apple TV and Vidity
11:50 AM
Read This Before You Install El Capitan
  • __________
  • Buy Stuff, Support TMO!
  • Podcast: Mac Geek Gab
  • Podcast: Apple Weekly Report
  • TMO on Twitter!