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 March 29th

Sat,10:30 AM
How to Create Light Trails Photographs with Your iPhone
Fri,7:50 PM
How to Update Any Icon on Your Mac
7:25 PM
Steve Wozniak: Apple Watch Edition Won’t Move the World Forward
3:45 PM
The REAL Reason Apple’s iPad is Faltering
2:50 PM
‘Bobine’ Flexible iPhone Charging Dock: $24.99
2:05 PM
UK Safari Users can Sue Google Over Unwanted Browser Cookies
12:56 PM
TMO Daily Observations 2015-03-27: Tim Cook is the Top Leader, Leshi TV says Apple is Hitler
10:56 AM
Leshi TV CEO Says Apple is Hitler
9:29 AM
Apple Watch Compatible Apps are Already Arriving
8:55 AM
Numbers: Using the Quick Calculations Bar
Thu,9:20 PM
7 Things We Learned when Fortune Named Tim Cook World’s Greatest Leader
8:22 PM
How To Sell, Trade In, or Recycle Old Macs or PCs
  • __________
  • Buy Stuff, Support TMO!
  • Podcast: Mac Geek Gab
  • Podcast: Apple Weekly Report
  • TMO on Twitter!