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 July 30th

Wed,9:18 PM
Apple Campus 2 Will Have Full Blown Visitor Center with Store, Cafe, Observation Deck
8:30 PM
ACM 317: T-Mobile’s Crazy iPhone Deal, Fitness Tracking Accuracy, Listener Comments
7:25 PM
iFixit Pro Tech Screwdriver Set and Jimmy Bundle: $59.95
3:10 PM
How to Pre-authorize Your iPhone to Use Apple Pay
12:58 PM
TMO Daily Observations 2015-07-29: Fitness Tracker Accuracy, Logitech’s new Mouse
10:15 AM
Photoshop CS6 Stragglers Out of Luck for Camera Raw Updates
8:55 AM
iOS: Deleting Siri’s Training Data
Tue,8:06 PM
Buy iPhone 6 from T-Mobile Now, Swap for iPhone 6s for Free, Apple Music Exempt from Data Limits
7:10 PM
CoMacadore Plus - Mac OS 6.0.1 Running on an Amiga 500
6:11 PM
Your Fitness Tracker May be Wrong, but that Doesn’t Make it Bad
5:55 PM
The Surreal Selfie Stick (Video)
5:30 PM
Logitech’s MX Anywhere 2 Mouse is a Joy to Use
  • __________
  • Buy Stuff, Support TMO!
  • Podcast: Mac Geek Gab
  • Podcast: Apple Weekly Report
  • TMO on Twitter!