[android] 엑스페리아 레이.. 자동 밝기 설정
루팅된 폰만 가능..
기본다이얼러에서.. *#*#7378423#*#* -> Service tests -> Ambient Light Sensor 에서 값이 바뀌는지 확인.
root explorer 등으로.. 다음 파일 수정
file: /system/etc/hw_config.sh
=========
# 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
=========
3번째 줄을 바꾼다..
=========
# LMU AS3676 Configuration
dev=/sys/devices/i2c-0/0-0040/leds/
echo 1,1,1,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
=========