How can light sensor be enabled for control brightness and keyboard back-light automatically?

Solution 1:

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/