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 May 1st

Mon,12:40 PM
Three Ways to Protect your Apple Watch (and One Way Not To)
Sun,12:15 PM
MGG 603: Pronunciation, Rants and The Joy of a Smaller Phone
Fri,6:10 PM
An Open Letter to Phil Schiller about iPhones, iPads, and Macs
5:30 PM
New Products Apple Might Give Us While We Wait for the Car
4:42 PM
Nomad Pod Portable Apple Watch Battery Pack: $33.95
4:40 PM
FBI Director in the Dark on iPhone Hack Details
2:36 PM
How to Select Single Pics from Burst Photos on Your iPhone
1:30 PM
SolarTab Portable Solar Panel is a Bright Spot in Outdoor Charging Solutions
12:00 PM
TMO Daily Observations 2016-04-29: Kicking Off a New Apple Conference
9:15 AM
Changing Your Wi-Fi Channel for Improved Speed
Thu,7:59 PM
Carl Icahn Isn’t Wrong about Apple in China
5:54 PM
House Passes Email Search Warrant Bill
  • __________
  • Buy Stuff, Support TMO!
  • Podcast: Mac Geek Gab
  • Podcast: Apple Weekly Report
  • TMO on Twitter!