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 September 23rd

Mon,11:34 PM
Apple Posts iPhone 6 Commercials with Jimmy Fallon and Justin Timberlake
9:10 PM
Google’s Eric Schmidt Said ALEC Lying about Climate Change
8:24 PM
Chinese Site Reports Apple Planning October Release for iPad Air 2
5:40 PM
iOS 8: Hide and Unhide Images in Photos App
5:32 PM
Apple May Shut Down Beats Music Brand, but Stay in Streaming Music Market
4:19 PM
Last Chance to Register for MacBook Air Giveaway
2:44 PM
Strong iPhone 6 Sales Boost Canaccord’s AAPL Target to $115
1:35 PM
TMO Daily Observations: 2014-09-22
10:05 AM
Linex Technologies Ordered Apple’s Legal Fees in Patent Infringement Case
8:54 AM
iPhone 6, iPhone 6 Plus Launch Weekend Sales Hit 10 Million
Sun,11:42 AM
MGG 520: Wrapping Up Tech Week With iOS 8 & More
Sat,7:27 PM
Fun Rant about Those Who Claim Apple is the Copier
  • __________
  • Buy Stuff, Support TMO!
  • Podcast: Mac Geek Gab
  • Podcast: Apple Weekly Report
  • TMO on Twitter!