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.
Warning: include(/usr/local/etc/httpd/sites/macobserver.com/htdocs/forums/extension.inc) [function.include]: failed to open stream: No such file or directory in /var/www/bbm/macobserver.com/ee2/www/htdocs/comments/comments.php on line 108
Warning: include() [function.include]: Failed opening '/usr/local/etc/httpd/sites/macobserver.com/htdocs/forums/extension.inc' for inclusion (include_path='.:/usr/share/php5:/usr/share/php') in /var/www/bbm/macobserver.com/ee2/www/htdocs/comments/comments.php on line 108
Warning: include(/usr/local/etc/httpd/sites/macobserver.com/htdocs/forums/common.) [function.include]: failed to open stream: No such file or directory in /var/www/bbm/macobserver.com/ee2/www/htdocs/comments/comments.php on line 110
Warning: include() [function.include]: Failed opening '/usr/local/etc/httpd/sites/macobserver.com/htdocs/forums/common.' for inclusion (include_path='.:/usr/share/php5:/usr/share/php') in /var/www/bbm/macobserver.com/ee2/www/htdocs/comments/comments.php on line 110
Warning: include(/usr/local/etc/httpd/sites/macobserver.com/htdocs/forums/includes/bbcode.) [function.include]: failed to open stream: No such file or directory in /var/www/bbm/macobserver.com/ee2/www/htdocs/comments/comments.php on line 112
Warning: include() [function.include]: Failed opening '/usr/local/etc/httpd/sites/macobserver.com/htdocs/forums/includes/bbcode.' for inclusion (include_path='.:/usr/share/php5:/usr/share/php') in /var/www/bbm/macobserver.com/ee2/www/htdocs/comments/comments.php on line 112
Fatal error: Call to a member function sql_query() on a non-object in /var/www/bbm/macobserver.com/ee2/www/htdocs/comments/comments.php on line 532
Recent Headlines - Updated May 21st
- Tue, 12:47 PM
- News - Senator Paul: Stop Bullying Apple
- 10:01 AM
- News - AT&T Opening FaceTime Over Cellular to All
- 9:27 AM
- TMO Appearances - Jeff Gamet Talks Apple Taxes on The Mac Show
- 8:44 AM
- News - Google to Merchants: We’re Killing Google Checkout
- Mon, 10:50 PM
- Mac Geek Gab Podcast - MGG 450: Don’t Play Ding Dong Ditch on an Airplane
- 7:48 PM
- News - Apple Hits Another Record in Retail Dollars Per Visitor
- 6:50 PM
- Analysis - Bipartisan Senators Accuse Apple of Avoiding Billions in U.S. Taxes
- 5:58 PM
- TMO Appearances - Bryan Chaffin Talks About Apple Monday at SVMUG
- 5:13 PM
- Analysis - Apple Asks Congress to Eliminate Tax Loopholes, Lower Corporate Rates
- 2:55 PM
- Quick Look Review - Manage Your Movie Wish List on iPhone with ToDoMovies
- 2:32 PM
- Analysis - Samsung’s Answer to App Developer Interest: We’ll Pay You, Maybe
- 11:42 AM
- Manage Your App.net Account with Passport
The Mac Observer Reader Specials
Support TMO, Buy from Amazon, MacMall and The Apple Store
