Ubuntu – How to light sensor be enabled for control brightness and keyboard back-light automatically

12.04backlightbrightnesssonyvaio

I have A Sony VAIO laptop F-series () Nvidia and it has light sensor. When I was using Windows, this light sensor controlled the brightness and the keyboard backlight automatically due to the surroundings state.

But when using Ubuntu 12.04, it only controls the backlight without automatically adjusting the brightness.

How can I enable light sensor to automatically adjustment the LCD brightness without losing the keyboard backlight adjustment due to surrounding state?

Best Answer

There is currently no automatic method that I am aware of built into Ubuntu. However, take a look at lightum

It works fine on my mac but I have my lgiht senser in /sys/devices/platform/applesmc.768/light

You can check out the code and make the modifications or use it to write your own app.

The principal is sound, and I have seen other scripts do the same thing. If you don't want to tackle lightum try this or take a look at this mac info.

I know you have a sony but the process should be the same, read the sensor, set some values to a file in /sys/