(Need Root)Enable Automatic Light Sensor on Xperia Ray

floyd372

Senior Member
Mar 14, 2012
243
89
0
No reaction :(

Sent from my WT19i using Tapatalk 2

---------- Post added at 02:24 AM ---------- Previous post was at 02:14 AM ----------

Okay, i will try to get the stock file....

Sent from my WT19i using Tapatalk 2
 

gaab

New member
Jul 18, 2008
3
0
0
Config to activate Xperia Ion Lt28at

Hi, thanks for the great and so usefull contribution, I based on it and activated the Xperia Ion Lt28at sensor and it works great, I hope I will be helpfull for you too as it was for me.

Using root explorer Change this value in the file hw_config.sh located in the folder system/etc

# LMU AS3676 Configuration

dev=/sys/class/leds
Echo 1,80,255,5,16,9,16 > $dev/lcd-backlight/als/curve # ALS curve for group1
echo 1,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 6000 > $dev/button-backlight/max_current

To

# LMU AS3676 Configuration
# GAAB 19/02/2013

dev=/sys/class/leds
Echo 1,80,255,5,16,9,16 > $dev/lcd-backlight/als/curve # ALS curve for group1
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 6000 > $dev/button-backlight/max_current

On the other hand after you activated the sensor I recommend you use the app Velis Auto Brightness
Velis Works
you will find easly in Google play.


Best Regards
 

LeClair

Senior Member
Jan 23, 2008
157
13
0
For ray good:

hw_config.sh
Code:
echo 1,1,1,0 > $dev/lcd-backlight/als/params  #[gain],[filter_up],[filter_down],[offset]
Good night mode
als_curve.conf
Code:
# Setup AS3676 ALS curve / group, y0, y3, k1, k2, x1, x2
1,3,6,0,0,10,38
 
Last edited:

superRiyaz

Member
Apr 3, 2013
28
4
0
Mumbai
How to Flash?

good job thanks!!!:)
Should i do update from sd card or
wipe dalvik cache,factory reset,wipe cache and then install from sd card???:confused::confused::confused:

---------- Post added at 10:56 AM ---------- Previous post was at 10:53 AM ----------

Should i do update from sd card or
wipe dalvik cache,factory reset,wipe cache and then install from sd card???
 

arcatarc

Senior Member
Jun 22, 2007
2,581
2,758
203
Anguillara Sabazia (ROMA)
Should i do update from sd card or
wipe dalvik cache,factory reset,wipe cache and then install from sd card???:confused::confused::confused:

---------- Post added at 10:56 AM ---------- Previous post was at 10:53 AM ----------

Should i do update from sd card or
wipe dalvik cache,factory reset,wipe cache and then install from sd card???
Only flash zip from cwm...
 
  • Like
Reactions: superRiyaz