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 February 27th

Thu,8:36 PM
Apple Takes iWork for iCloud out of Beta, Open to Everyone
7:53 PM
This Is Why You Should Set Up Philips Hue LED Smartbulbs
7:15 PM
Apple Rumored to Bring Touch ID to Macs
4:40 PM
Last Chance To Save 55% On The Code Black HD Camera Drone
3:54 PM
FCC Reclassifies Internet Providers in Net Neutrality Vote
1:51 PM
TMO Daily Observations 2015-02-26: Apple Spring Forward Media Event, Net Neutrality
12:27 PM
Apple Invites Media to March 9th ‘Spring Forward’ Event
11:14 AM
Brikk to Sell Diamond-coated Apple Watch for $75K
10:37 AM
Build Your Own LEGO Oscars Statue
9:07 AM
Apple Products Dropped from China Government Buy List
1:53 AM
Tim Cook Reportedly Showers with Apple Watch, Suggesting It’s Waterproof
Wed,9:30 PM
Apple CEO Tim Cook to Give Commencement Speech at George Washington University
  • __________
  • Buy Stuff, Support TMO!
  • Podcast: Mac Geek Gab
  • Podcast: Apple Weekly Report
  • TMO on Twitter!