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 June 30th

Mon,8:00 PM
Apple to Announce Q3 Results July 21st
7:18 PM
MGG 559: Connecting Networks Together, Photos on NAS & Upgrade Snapshots
7:14 PM
Dr. Dre’s ‘The Chronic’ Will Stream Exclusively on Apple Music
6:15 PM
8 Years After Launch, It’s an iPhone World
5:30 PM
How the USB-C Port on the New MacBook Helps the Battery Life
4:43 PM
Last Chance for the Summer Mac Essentials Bundle
4:12 PM
Import Spotify and Rdio Playlists to Beats Music for Apple Music Launch
2:20 PM
TMO Daily Observations 2015-06-29: Getting Ready for Apple Music
11:25 AM
Apple Music Coming to Sonos Later this Year
10:46 AM
iOS 8.4 Coming Tuesday at 8AM Pacific Time Ahead of Apple Music Launch
9:45 AM
Apple Music: What You Need to Know
Fri,6:24 PM
Apple’s Tim Cook Praises SCOTUS Marriage Equality Ruling
  • __________
  • Buy Stuff, Support TMO!
  • Podcast: Mac Geek Gab
  • Podcast: Apple Weekly Report
  • TMO on Twitter!