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

Wed,11:26 AM
Apple May Have Accidentally Leaked New 27-inch iMac
10:00 AM
Apple Confirms Purchase of Swell Talk Radio App for iPhone
8:45 AM
iOS 7: Preventing Unauthorized Purchases
Tue,11:02 PM
Apple Possibly Leaked New Mac mini Models
8:57 PM
Ford Ditching BlackBerry for iPhone for Global Corporate Use
6:04 PM
‘Window Plug’ Portable Solar Charger Concept Design
4:19 PM
MotionArtist for Mac: $9
2:10 PM
OS X Yosemite: How to Trek into Dark Mode
1:45 PM
Apple Retail Out Almost $310K in Scam, Suspect Arrested in Florida
1:12 PM
TMO Daily Observations: 2014-07-29
11:14 AM
Apple TV Adds Fox Now, CNBC Channels
9:55 AM
Apple Drops Samsung Patent Appeal, Ends Injunction Push
  • __________
  • Buy Stuff, Support TMO!
  • Podcast: Mac Geek Gab
  • Podcast: Apple Weekly Report
  • TMO on Twitter!