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 TMO Headlines - Updated August 31st

Tue, 9:56 PM
Idle Thoughts on Google Entering Ride-Sharing Business in San Francisco
Tue, 7:06 PM
iTrip Clip Makes Your Headphones Wireless Ahead of iPhone 7 Launch
Tue, 6:29 PM
Geekbench 4 Released for Mac, iOS, and Other OSes
Tue, 5:32 PM
Adonit Jot Touch with Pixelpoint Stylus: $39.99
Tue, 4:55 PM
Apple Updates HP Printer Drivers
Tue, 3:53 PM
Sonos's Future: Opening Up Control to Alexa and Third-Party Apps
Tue, 2:06 PM
9 Great New 'Little' iOS 10 Features
Tue, 2:06 PM
TMO Daily Observations 2016-08-30: Apple's EU Tax Bill, September 7 Media Event
Tue, 12:37 PM
EU Says Apple Owes €13B in Back Taxes, and the Fight is On
Mon, 9:03 PM
Apple Music's Carpool Karaoke Will Feature Broader Range of Celebrities
Mon, 7:54 PM
MOS Pack Backpack Charges Multiple Devices with One Plug
Mon, 5:45 PM
Blood in the Macintosh Water: Apple's Competitors Now Sense Weakness
  • __________
  • Buy Stuff, Support TMO!
  • Podcast: Mac Geek Gab
  • Podcast: Apple Weekly Report
  • TMO on Twitter!