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 TMO Headlines - Updated October 24th

Mon, 7:10 PM
We Fiddled with Ditto – Mac Geek Gab 680
Mon, 6:20 PM
Quicken for Mac 2018 Launches, Subscription Only
Mon, 4:53 PM
iOS 11: Using the New Live Photos Bounce Effect
Mon, 4:51 PM
Jeff Williams Hints at an Apple Disruption in Health Care with AI
Mon, 4:48 PM
TMO Background Mode Interview with Mystery Writer Elizabeth Craig
Mon, 4:11 PM
Verizon Unlimited Plan Customers Can Get iPhone X Trade-In Credit
Mon, 3:07 PM
Gifting Air Travel by the Hour, iPad Controlled VW Bus - TMO Daily Observations 2017-10-23
Mon, 2:53 PM
John Hancock Life Insurance Customers can get Apple Watch Series 3 for $25
Mon, 2:42 PM
SpiderOak ONE 1TB Cloud Storage 1-Year Subscription: $39.99
Mon, 2:28 PM
Apple Seeds macOS High Sierra 10.13.1 Developer Beta 4
Mon, 2:25 PM
The New Volkswagen Bus, an All-Electric Minivan With Style
Mon, 2:21 PM
Review: If Apple Made an iOS Reddit Client, it Would be Apollo
  • __________
  • Buy Stuff, Support TMO!
  • Podcast: Mac Geek Gab
  • Podcast: Apple Weekly Report
  • TMO on Twitter!