(Need Root)Enable Automatic Light Sensor on Xperia Ray

I've found the way to enable ALS on Ray: Using root explorer Change this value in hw_config.sh(inside system/etc): # LMU AS3676 Configuration dev=/sys/devices/i2c-0/0-0040/leds/ echo 0,0,0,0 > $dev/lcd-backlight/als/params #[gain],[filter_up],[filter_down],[offset] echo 1 > $dev/lcd-backlight/als/enable #Sensor on/off. 1 = on, reg 90h echo 12900 > $dev/torch/max_current To # LMU AS3676 Configuration dev=/sys/devices/i2c-0/0-0040/leds/ echo 3,2,2,0 > $dev/lcd-backlight/als/params #[gain],[filter_up],[filter_down],[offset] echo 1 > $dev/lcd-backlight/als/enable #Sensor on/off. 1 = on, reg 90h echo 12900 > $dev/torch/max_current Optional:replace als_curve.ini with the one i provide(is from arc):for me is better. source