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 December 22nd

Mon,12:39 PM
Freezing Rain Encases Slovenian Mountain in Ice [PHOTOS]
11:34 AM
Apple Pay goes to Disney World for Christmas
10:46 AM
SNL Takes on Serial with a Holiday Flair
10:07 AM
Apple Rolls Out OS X Yosemite 10.10.2 Public Beta
9:03 AM
Rumor Claims 12-inch MacBook Air Production Coming in Early 2015
Sun,8:14 PM
MGG 532: Blowin’ Up The Spammers!
7:45 PM
Get Free Bitcoins with 52 Website Faucets that Really Pay [Update]
Fri,5:31 PM
Google, Samsung can’t Top Apple’s Unreleased Apple Watch
5:10 PM
Report: Apple Pay is Disrupting and Transforming Mobile Payments
4:04 PM
Apple Raises Prices in Russian App Store Amidst Ruble Meltdown
3:55 PM
The Unexpected Ways Apple Watch Will Crush the Competition
2:29 PM
6-Ft MFi-Certified iOS Lightning and micro USB Convertible Charging Cable: $21
  • __________
  • Buy Stuff, Support TMO!
  • Podcast: Mac Geek Gab
  • Podcast: Apple Weekly Report
  • TMO on Twitter!