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 14th

Mon,12:40 PM
Three Ways to Protect your Apple Watch (and One Way Not To)
Fri,7:07 PM
Apple’s First Scripted Series will Star Dr. Dre
7:07 PM
Adobe Creative Cloud Bug Deletes Files Without Permission
6:00 PM
AT&T Says it’s 5G Network will be 100x Faster than LTE
5:01 PM
My Classic Hard Disks Are Spinning Right into the Graveyard
4:54 PM
Bumprz 2: Minimalist Protection for iPhone on Kickstarter
4:51 PM
MGG 592: Taming Wi-Fi Chaos
1:45 PM
OK Go’s Parabolic Flight Video for ‘Upside Down & Inside Out’
1:35 PM
TMO Daily Observations 2016-02-12: 5G Wireless Speed Tests, Apple’s Growing Patent Infringement Mess
1:31 PM
Xtra Drive Lightning Flash Drive with 16GB Micro SD Card: $71.99
12:55 PM
How to Fix the ‘You Are Not Signed into Apple Music’ Error
10:38 AM
Immersion Sues Apple, AT&T Over Haptic Feedback Patents
  • __________
  • Buy Stuff, Support TMO!
  • Podcast: Mac Geek Gab
  • Podcast: Apple Weekly Report
  • TMO on Twitter!