Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
xperia ray
Old
(Last edited by xperia ray; 1st February 2012 at 03:11 PM.)
#1  
Senior Member - OP
Thanks Meter 85
Posts: 139
Join Date: Oct 2011
Location: Jaipur

 
DONATE TO ME
Talking CyanogenMod brightness Issue FIXED

I have installed Cyanogenmod , it is super fast and perfect rom

only one issue that is very major issue for me , is low brightness. I tried many things but no success

Today i got solution , it is very easy


  1. After installing cyanogenmod , install root explorer
  2. go to sysyem/etc directory
  3. Find hw_config.sh file
  4. Tap and hold on this hw_config.sh file , select edit in text viewer option from the menu
  5. Scroll down to the bottom , there you will see this code (i am using FXP054 cyanogenmod , for other versions it may vary)

# LMU AS3676 Configuration
dev=/sys/devices/i2c-0/0-0040/leds
echo 1,65,255,24,24,5,128 > $dev/lcd-backlight/als/curve # ALS curve for group1
echo 2,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 450 > $dev/button-backlight/max_current

Change above code to

# LMU AS3676 Configuration
dev=/sys/devices/i2c-0/0-0040/leds
echo 0,0,0,0,0,0,0 > $dev/lcd-backlight/als/curve # ALS curve for group1
echo 2,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 450 > $dev/button-backlight/max_current

Reboot your phone and voila you have fixed brightness problem :


Thanks to xutienan9520

You can also hit thanks button for me
http://forum.xda-developers.com/signaturepics/sigpic4321033_1.gif

Website = http://androidflip.com
About me = http://androidflip.com/about/
Email = kuldeep[at]androidflip[dot]com

Have question Disturb me
The Following 23 Users Say Thank You to xperia ray For This Useful Post: [ Click to Expand ]
 
guap
Old
#2  
guap's Avatar
Senior Member
Thanks Meter 23
Posts: 1,125
Join Date: Sep 2007
Location: Milano
my hero!
Device: Xperia Ray, Xperia Sola, Huawei Mediapad
The Following User Says Thank You to guap For This Useful Post: [ Click to Expand ]
 
ahmedamoor
Old
#3  
Junior Member
Thanks Meter 1
Posts: 1
Join Date: Nov 2011
10000000000000000000000000000 thanks .... life saver
The Following User Says Thank You to ahmedamoor For This Useful Post: [ Click to Expand ]
 
richratt
Old
(Last edited by richratt; 8th February 2012 at 11:19 PM.)
#4  
Member
Thanks Meter 0
Posts: 35
Join Date: Jul 2008
Many thanks,

I've just tried to do this on FXP106 CM7.2, but the original text in my sh_config.sh is different to yours by a couple of lines so I just want to check what I should be doing before I break something...

It's currently

# 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 0 > $dev/lcd-backlight/als/enable #Sensor on/off. 1 = on, reg 90h

Should I replace it with this?

# LMU AS3676 Configuration
dev=/sys/devices/i2c-0/0-0040/leds
echo 0,0,0,0,0,0,0 > $dev/lcd-backlight/als/curve # ALS curve for group1
echo 2,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 450 > $dev/button-backlight/max_current

Any help gratefullly received. I don't really know what this all means so I'm a bit apprehensive to just try it in case it breaks something.
 
xperia ray
Old
#5  
Senior Member - OP
Thanks Meter 85
Posts: 139
Join Date: Oct 2011
Location: Jaipur

 
DONATE TO ME
Quote:
Originally Posted by richratt View Post
Many thanks,

I've just tried to do this on FXP106 CM7.2, but the original text in my sh_config.sh is different to yours by a couple of lines so I just want to check what I should be doing before I break something...

It's currently

# 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 0 > $dev/lcd-backlight/als/enable #Sensor on/off. 1 = on, reg 90h

Should I replace it with this?

# LMU AS3676 Configuration
dev=/sys/devices/i2c-0/0-0040/leds
echo 0,0,0,0,0,0,0 > $dev/lcd-backlight/als/curve # ALS curve for group1
echo 2,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 450 > $dev/button-backlight/max_current

Any help gratefullly received. I don't really know what this all means so I'm a bit apprehensive to just try it in case it breaks something.

Yes i have done this and worked fine for me on FXP 106
http://forum.xda-developers.com/signaturepics/sigpic4321033_1.gif

Website = http://androidflip.com
About me = http://androidflip.com/about/
Email = kuldeep[at]androidflip[dot]com

Have question Disturb me
 
1ocate
Old
#6  
Junior Member
Thanks Meter 0
Posts: 2
Join Date: Nov 2010
hi! it is same me.

but it work very well!
 
scott0.0yu
Old
#7  
Junior Member
Thanks Meter 0
Posts: 3
Join Date: Jan 2012
Thank a lot!it is work well in fxp 108
 
akshay13071990
Old
#8  
akshay13071990's Avatar
Senior Member
Thanks Meter 124
Posts: 327
Join Date: Jun 2011
Location: navi mumbai
will this work on any xperia phone.i want to try it on my xperia mini..
 
xperia ray
Old
#9  
Senior Member - OP
Thanks Meter 85
Posts: 139
Join Date: Oct 2011
Location: Jaipur

 
DONATE TO ME
Quote:
Originally Posted by akshay13071990 View Post
will this work on any xperia phone.i want to try it on my xperia mini..
yes it will work on any xperia phone with cyanogenmod
http://forum.xda-developers.com/signaturepics/sigpic4321033_1.gif

Website = http://androidflip.com
About me = http://androidflip.com/about/
Email = kuldeep[at]androidflip[dot]com

Have question Disturb me
 
hajj_3
Old
(Last edited by hajj_3; 22nd February 2012 at 11:39 AM.)
#10  
Member
Thanks Meter 5
Posts: 30
Join Date: Jul 2010
here is my hw_config.sh:

Code:
# Audio jack configuration
dev=/sys/devices/platform/simple_remote.0
echo 0,201,1600 > $dev/accessory_min_vals  # default = 0,200,1600
echo 200,1599  > $dev/accessory_max_vals  # default = 200,1600
echo 0,100,280,500,700 > $dev/button_min_vals  # default = 0,100,300,600,700
echo 99,199,399,699,5000  > $dev/button_max_vals  # default = 99,199,399,699,5000
echo 512   > $dev/btn_trig_period_freq  # Button Period Freq(Hz) default = 512
echo 16  > $dev/btn_trig_period_time  # Button Period Time(cycle) default = 16
echo 512   > $dev/btn_trig_hyst_freq    # Button Hysteresis Freq(Hz) default = 512
echo 16  > $dev/btn_trig_hyst_time   # Button Hysteresis Time(Cycle) default = 16
echo 500 > $dev/btn_trig_level  # default = 500

# Proximity sensor configuration
dev=/sys/bus/i2c/devices/0-0054/
val_cycle=0
val_nburst=26
val_freq=0
val_threshold=2
val_filter=0

nv_param_loader 60240 prox_cal
val_calibrated=$?
case $val_calibrated in
 1)
  nv_param_loader 60240 threshold
  val_threshold=$?
  nv_param_loader 60240 rfilter
  val_filter=$?
  ;;
esac

echo $val_cycle > $dev/cycle    # Duration Cycle. Valid range is 0 - 3.
echo $val_nburst > $dev/nburst  # Number of pulses in burst. Valid range is 0 - 15. 16 - 31 is a special range for smultron only (SP)
echo $val_freq > $dev/freq      # Burst frequency. Valid range is 0 - 3.
echo $val_threshold > $dev/threshold # sensor threshold. Valid range is 0 - 15 (0.12V - 0.87V)
echo $val_filter > $dev/filter  # RFilter. Valid range is 0 - 3.

# LMU AS3676 Configuration
dev=/sys/devices/i2c-0/0-0040/leds
echo 1 > $dev/lcd-backlight/als/enable  #Sensor on/off. 1 = on, reg 90h
echo 3,2,2,0 > $dev/lcd-backlight/als/params  #[gain],[filter_up],[filter_down],[offset]
echo 8000 > $dev/button-backlight-rgb1/max_current
echo 8000 > $dev/button-backlight-rgb2/max_current
echo 1,30,255,54,52,1,65 > $dev/lcd-backlight/als/curve  # ALS curve display BL [grp],[Y0],[Y3],[K1],[K2],[X1],[X2]
echo 2,48,0,128,128,4,10 > $dev/button-backlight-rgb1/als/curve  # ALS curve key LED 1 [grp],[Y0],[Y3],[K1],[K2],[X1],[X2]
echo 2,48,0,128,128,4,10 > $dev/button-backlight-rgb2/als/curve  # ALS curve key LED 2 [grp],[Y0],[Y3],[K1],[K2],[X1],[X2]
echo 3,71,255,64,32,5,37 > $dev/red/als/curve  # ALS curve RGB(red) [grp],[Y0],[Y3],[K1],[K2],[X1],[X2]
echo 3,71,255,64,32,5,37 > $dev/green/als/curve  # ALS curve RGB(green) [grp],[Y0],[Y3],[K1],[K2],[X1],[X2]
echo 3,71,255,64,32,5,37 > $dev/blue/als/curve  # ALS curve RGB(blue) [grp],[Y0],[Y3],[K1],[K2],[X1],[X2]

# Touch panel
dev=/sys/devices/platform/spi_qsd.0/spi0.0
app_id=`cat  $dev/appid`
case "$app_id" in
	"0x0505")
		fw=touch_smultron_innolux.hex
        ;;
	"0x0105")
		fw=touch_smultron_sony.hex
        ;;
	"0x0015")
		fw=touch_smultron_sony.hex
        ;;
	*)
		fw=touch_smultron_sony.hex
        ;;
esac
cyttsp_fwloader -dev $dev -fw /system/etc/firmware/$fw

# TI BQ275xx firmware loader
bq275xx_fwloader
I'm using cyanogenmod 7.1.0.1, i would like to upgrade to 7.1.0.2 but cyanogenmod just hangs on the animation booting so i've had to stick to this, i don't know which version of FXP i have but i'd like to upgrade to the latest if someone could help with that too.

What should i change to allow me to increase the brightness as it is rather dull?

I'm using Xperia mini btw, not xperia mini pro.

EDIT: just tried changing:

echo 1,30,255,54,52,1,65 > $dev/lcd-backlight/als/curve # ALS curve display BL [grp],[Y0],[Y3],[K1],[K2],[X1],[X2]
to:
echo 0,0,0,0,0,0,0 > $dev/lcd-backlight/als/curve # ALS curve display BL [grp],[Y0],[Y3],[K1],[K2],[X1],[X2]

but that didn't work, not sure which version of FXP i'm using i'm using cyanogenmod 7.1.0.1.

 
Post Reply+
Tags
brightness issue, cm7 brightness fix, cyanogenmod, ray
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...