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 November 24th

Mon,8:30 PM
Three of Time’s Top Ten Gadgets are Apple’s, One Hasn’t Even Shipped
7:07 PM
Black Friday 2014: 4 Best iPad Deals
6:20 PM
Square Wants to Bring Apple Pay to Small Businesses
5:53 PM
The 10ft MFi-Certified iOS Lightning Cable: $18.99
3:15 PM
BBEdit on Your Mac: Trick Text Files into HTML Syntax Coloring
2:33 PM
TMO Daily Observations: 2014-11-24
11:24 AM
FCC Chairman on Net Neutrality Rules: We’re Going to get Sued
9:30 AM
Sponsor: MacX DVD Ripper Pro Giveaway
9:12 AM
Apple Launches Apps for (RED) Campaign for World AIDS Day
Sat,10:30 AM
iPhoneography 101: Essential iPhone Camera Apps
Fri,6:57 PM
Apple Makes ‘Things for iPad’ Free for a Week
6:47 PM
Judge Approves Apple iBooks $450 Million Antitrust Settlement
  • __________
  • Buy Stuff, Support TMO!
  • Podcast: Mac Geek Gab
  • Podcast: Apple Weekly Report
  • TMO on Twitter!