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 September 3rd

Wed,10:20 PM
ACM 322: Apple’s TV Shows, Ian Rogers’ New Job, iPhone Jailbreaking
5:30 PM
Frozen: How to Force Quit an OS X App Showing a Spinning Beachball of Death
4:40 PM
Making the Case for the iPod Touch
4:25 PM
Dr. Mac Presents: Smart Option Key Tricks
3:57 PM
A Lawn Chair, an Umbrella, and 54 Propellers
2:39 PM
AluPen Digital Fine-Point Stylus: $34.95
2:12 PM
TMO Daily Observations 2015-09-02: Listeners Respond to El Capitan Debate
11:30 AM
Adonit’s Jot Dash: The Workhorse Stylus You’ve Been Waiting For
10:16 AM
Apple Music’s Ian Rogers Left for the Fashion Industry
9:48 AM
How iTunes Movie DRM-Removal Software Keeps Me Honest
9:07 AM
OS X El Capitan Beta: Using Mail Gestures
Tue,7:47 PM
Handmade Leather Lightning iPhone Chargers
  • __________
  • Buy Stuff, Support TMO!
  • Podcast: Mac Geek Gab
  • Podcast: Apple Weekly Report
  • TMO on Twitter!