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

Mon,12:40 PM
Three Ways to Protect your Apple Watch (and One Way Not To)
Thu,10:32 AM
Happy Thanksgiving from The Mac Observer!
Wed,7:53 PM
Awaken the Force with these Free Star Wars Apps
5:28 PM
How to Pair Bluetooth Headphones with Your Apple TV
4:40 PM
Pay What You Want for the Learn to Code Bundle
4:27 PM
ACM 334: Apple’s Mac Pro vs. The Devil’s Advocate
4:20 PM
Apple is Doing Something That Could Accidentally Torpedo the iPad Pro
2:08 PM
Sponsor: New MacX DVD Ripper Pro Giveaway
1:40 PM
TMO Daily Observations 2015-11-25: Apple’s Plans for Faceshift
1:32 PM
Apple Commercial: Someday At Christmas - Stevie Wonder + Andra Day (Video)
9:58 AM
Apple Buys Star Wars-related Facial Recognition Company Faceshift
9:01 AM
iOS 9: Using Mail Markup with Photos
  • __________
  • Buy Stuff, Support TMO!
  • Podcast: Mac Geek Gab
  • Podcast: Apple Weekly Report
  • TMO on Twitter!