My solution to ambient light sensor problems with keyboard and display

*Problems covered:*
-> ambient light sensor not working at all
-> light sensor only works for keyboard illumination but not for display brightness
-> light sensor only works for display brightness but not for keyboard illumination
-> keyboard illumination works the wrong way round (ie. gets dimmed when room darkens)

Occurences:
-> after migrating an existing user account from another Mac
-> may occur on freshly installed MacBook Air with no account migration
-> after wake from sleep

Solution:
-> create a new user account named "test" with password "test"
-> make sure this user is allowed to administer the computer
-> log out and then log in as user "test"
-> open the Terminal and type this one line command:

*sudo cp ~/Library/Preferences/com.apple.BezelServices.plist /Users/YOUR USERNAME/Library/Preferences/*

-> replace "YOUR USERNAME" with the short account name of the problem account
-> enter the admin password ("test") which will not be shown
-> log out and log in again using your own account
-> you may now delete the user account "test" if you want to

The ambient light sensor will now work properly on both the display and keyboard.

*How to test if your ambient light sensor is operating properly:*
-> make sure you are in a well lit (full daylight) room
-> make sure you enable "Automatically adjust brightness" in the Displays system preferences
-> make sure you enable "Illuminate keyboard in low light conditions" in the Keyboard system preferences
-> set display brightness to max using the F2 key
-> set keyboard brightness to max using the F6 key
-> hold your hand over the tiny holes to the left of the iSight camera
-> the screen will now slowly dim and the keyboard will now slowly light up

*Bug remaining:*
When putting the MacBook Air to sleep in a well lit room, and then waking in a dark room, the keyboard illumination will work the wrong way round. This should be solved by Apple in a future software update.

You can work around this by always waking and sleeping your MacBook Air in a well lit room.

Message was edited by: Colpolyp

MacBook Air

Posted on Mar 1, 2008 3:32 AM

Reply
20 replies

May 7, 2008 8:11 PM in response to Colpolyp

I tried this fix too. Any test account worked but as soon as I logged on to my account it quit working. My solution was to delete my home directory and then restore it using a time machine backup. However, I did not use the Time Machine software or migration assistant. Since the user name and password for the account were to remain the same, I simply copied over all of my Documents, Pictures, etc folders into the new account with the same old name and password. I did NOT copy over the library folder but instead copied over the parts that were essential. I know this is a fix requiring a lot of work but... it worked and my Air now recognizes the room lighting properly. Obviously there is a file or setting in our home that is disrupting the function of the backlight. I do not know what it is but this fixed it for me. It was less hassle and time consuming than you might think.

Jul 18, 2008 12:39 AM in response to Ibanhes

I encountered the problem of the keyboard backlight working in reverse, i.e. getting darker in dim light. A much more mundane solution worked for me.

- Put your finger over the ambient light sensor, to simulate dark conditions.
- Using the F6 button, put the keyboard light level up to maximum.

This successfully recalibrated the ambient light detector so it works correctly now.

Aug 14, 2008 1:20 PM in response to Colpolyp

I just thought I would reply by saying that I had the problem of the sensor working in reverse (lights the keyboard up when in full daylight and dims when at night) - just made a test account, logged in, made sure the sensor worked ok - copied the plist (as mentioned in the first post) to the root of the HD. Logged out, and replaced the corrupt plist with the one jsut copied over. Works 100% now.

Hope this helps someone.

PS: Apple please fix this bug!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

My solution to ambient light sensor problems with keyboard and display

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.