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 25th

Sat,5:29 PM
Apple Not Allowing Fart Apps on Apple Watch
4:23 PM
How to Convert iPhone Photos to Black And White
3:48 PM
Quick Tip: How to Take an Apple Watch Screenshot
10:30 AM
Three Scenarios for Home Automation
Fri,9:44 PM
Sony and Samsung Both Offered to Pay James Bond to Use Their Phones
6:39 PM
XTC In-Ear Genuine Wood Headphones: $23.99
6:30 PM
Four Things To Get You Started With Apple Watch
3:55 PM
Apple’s iPhone 7 Will Make Current iPhones Obsolete
1:50 PM
Apple Offers Online Personal Setup Assistance for Apple Watch
1:22 PM
TMO Daily Observations 2015-04-24: Getting Inside Apple Watch
11:24 AM
iFixit Apple Watch Tear Down Kills Hopes of Upgrades
10:09 AM
Apple Watch App Store Open for Business with 3,000 Apps
  • __________
  • Buy Stuff, Support TMO!
  • Podcast: Mac Geek Gab
  • Podcast: Apple Weekly Report
  • TMO on Twitter!