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 TMO Headlines - Updated February 22nd

Tue, 9:49 PM
Apple Releases Logic Pro X 10.3.1 with Security Fix, Improved Regions and iOS GarageBand Support
Tue, 9:32 PM
Apple Takes Us on iPhone 7 'One Night' Tours of NYC, Johannesburg, Shanghai, Tokyo
Tue, 8:09 PM
Apple App Store Revenues Hit $40 Per User, While Average Downloads Decrease
Tue, 7:11 PM
Han Solo Star Wars Movie Starts Filming
Tue, 6:52 PM
Apple Watch 3 Shipping in Fall, Switching to Glass-film Touch Surface
Tue, 6:21 PM
Apple Remote Desktop Updated with Touch Bar Support
Tue, 4:07 PM
Here’s the TV Set-Top Box Apple Could Have Built: Caavo
Tue, 2:47 PM
New iPad Pro and iPhone SE Report - TMO Daily Observations 2017-02-21
Tue, 11:51 AM
Apple Using PrimeSense Tech for iPhone 8 3D Front Facing Camera
Tue, 9:00 AM
Stress Blocks: $14.99
Tue, 5:19 AM
Rumors about March Apple Event for iPhone SE and iPads Get Serious
Mon, 7:24 PM
Game of Thrones 'A Dance with Dragons' iBooks Enhanced Edition on Preorder
  • __________
  • Buy Stuff, Support TMO!
  • Podcast: Mac Geek Gab
  • Podcast: Apple Weekly Report
  • TMO on Twitter!