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

Mon,12:40 PM
Three Ways to Protect your Apple Watch (and One Way Not To)
Mon,10:42 PM
Google Brings Higher Resolution Satellite Imagery to Google Earth and Maps
9:10 PM
Google Bloks Will Offer Kids Hands-On, Collaborative Programming Concepts
8:44 PM
PRE-SALE: The Complete iOS 10 Developer Course at $29
5:15 PM
Game Foul: Ford Dealership Steals Firewatch Art
5:04 PM
TMO Background Mode: Interview With Symply Co-founder and President Alex Grossman
3:20 PM
iPhone 7 Sans Headphone Jack: The Debate Continues
1:58 PM
TMO Daily Observations 2016-06-27: AAPL, Brexit, Google Blocks
11:58 AM
Google Ready to Try Apple’s Tactics with New Smartphone
9:33 AM
Apple gets its Rainbow on for SF Pride Parade
Sun,12:18 PM
MGG 611: Troubleshoot & Resolve Your Mac & Apple Issues
Fri,7:00 PM
Apple Kills the Thunderbolt Display - Will the Mac Pro Be Next?
  • __________
  • Buy Stuff, Support TMO!
  • Podcast: Mac Geek Gab
  • Podcast: Apple Weekly Report
  • TMO on Twitter!