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 October 31st

Fri,9:39 AM
Judge to Unseal GT Advanced Bankruptcy Filing Documents
8:45 AM
Yosemite: Maximizing Windows & the Green “Stoplight” Button
Thu,7:17 PM
Meijer, the CurrenctC/MCX Member Who Refuses to Block Apple Pay
6:36 PM
Get Free Bitcoins with 52 Website Faucets that Really Pay [Update]
5:17 PM
Last Chance for The Bluetooth Shower Speaker: $39
5:09 PM
CES Rebrands iLounge Pavilion as iProducts, Hopes to Attract Macworld Expo Exhibitors
2:13 PM
Apple Reverses PCalc Decision; App and Widget Can Stay
1:29 PM
TMO Daily Observations: 2014-10-30
11:36 AM
Microsoft Joins the Fitness Tracking Game with Fitness Band
9:52 AM
Tim Cook’s Gay Coming Out is a Big Deal for Equal Rights
Wed,9:37 PM
MCX Holds Press Conference, Does Itself No Favors
7:30 PM
ACM 278: Apple is the New Microsoft and Thinking Differently about iPhone
  • __________
  • Buy Stuff, Support TMO!
  • Podcast: Mac Geek Gab
  • Podcast: Apple Weekly Report
  • TMO on Twitter!