Whomsoever want to disable automatic brightness of xperia neo/neo v and dont wanna buy "disable auto brightness (play)" app could follow this Tutorial to disable automatic brightness.
You Need-
Root.
Root Explorer.
Now....With root explorer go to /system/etc/hw_config.sh (backup this file).......edit it with text editor in root ex...........see these last strings-
echo 1 > $dev/lcd-backlight/als/enable #Sensor on/off. 1 = on, reg 90h
echo 1 > $dev/button-backlight-rgb1/als/enable #Sensor on/off. 1 = on, reg 90h
echo 1 > $dev/button-backlight-rgb2/als/enable #Sensor on/off. 1 = on, reg 90h
echo 1 > $dev/red/als/enable #Sensor on/off. 1 = on, reg 90h
echo 1 > $dev/green/als/enable #Sensor on/off. 1 = on, reg 90h
echo 1 > $dev/blue/als/enable #Sensor on/off. 1 = on, reg 90h
you have to edit all "echo 1" To "echo 0" like this-
echo 0 > $dev/lcd-backlight/als/enable #Sensor on/off. 1 = on, reg 90h
echo 0 > $dev/button-backlight-rgb1/als/enable #Sensor on/off. 1 = on, reg 90h
echo 0 > $dev/button-backlight-rgb2/als/enable #Sensor on/off. 1 = on, reg 90h
echo 0 > $dev/red/als/enable #Sensor on/off. 1 = on, reg 90h
echo 0 > $dev/green/als/enable #Sensor on/off. 1 = on, reg 90h
echo 0 > $dev/blue/als/enable #Sensor on/off. 1 = on, reg 90h
Save the File and reboot.Thats It!
This Will Only disable the ambiant light sensor. after this you cant increase brightness more then neo's 100% (which it can with sensor enabled under the sun)
P.S. I Saw this tweak in a post of a thread in xda (dont know by whom) so just sharing it. It worked for Me. But If You Find It Useful Hit The Thanks Button!!
hmm. will try it. thanks man
thanks any way , but it didn't work on my rooted Neo V
this is what I was looking for. thanks
btw:
If someone want to disable backlight od hardware buttons change further
two lines in this file like this:
echo 1 > $dev/button-backlight-rgb1/max_current #Max current in uA
echo 1 > $dev/button-backlight-rgb2/max_current #Max current in uA
pawo99 said:
this is what I was looking for. thanks
btw:
If someone want to disable backlight od hardware buttons change further
two lines in this file like this:
echo 1 > $dev/button-backlight-rgb1/max_current #Max current in uA
echo 1 > $dev/button-backlight-rgb2/max_current #Max current in uA
Click to expand...
Click to collapse
Thanks for the mod.
Sent From My Neo
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 750 > $dev/btn_trig_period_freq # Button Period Freq(Hz) default = 512
echo 32 > $dev/btn_trig_period_time # Button Period Time(cycle) default = 16
echo 750 > $dev/btn_trig_hyst_freq # Button Hysteresis Freq(Hz) default = 512
echo 32 > $dev/btn_trig_hyst_time # Button Hysteresis Time(Cycle) default = 16
echo 750 > $dev/btn_trig_level # default = 500
# Proximity sensor configuration
dev=/sys/bus/i2c/devices/0-0054
hwid=`cat /sys/class/hwid/hwid`
case $hwid in
0x0a)
val_cycle=2
val_nburst=7
val_freq=3
val_threshold=15
val_filter=0
;;
*)
val_cycle=2
val_nburst=8
val_freq=2
val_threshold=15
val_filter=0
;;
esac
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 0 > $dev/cycle # Duration Cycle. Valid range is 0 - 3.
echo 1 > $dev/nburst # Number of pulses in burst. Valid range is 0 - 15.
echo 0 > $dev/freq # Burst frequency. Valid range is 0 - 3.
echo 2 > $dev/threshold # sensor threshold. Valid range is 0 - 15 (0.12V - 0.87V)
echo 1 > $dev/filter # RFilter. Valid range is 0 - 3.
# 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
# TI BQ275xx firmware loader
bq275xx_fwloader
What tweaks do i make in the file to disable the sensor and Backlight ?
Th0anks
And will i be able to use Root Dim to make 100% brightness then ?
oooh great... its works for me ..... yee haa
it disabled it but the max brightness is really low now
---------- Post added at 09:03 PM ---------- Previous post was at 08:19 PM ----------
the only way to get maximum brigtness when disabeling the light sensor is by this app
worked for me..
soji89 said:
worked for me..
Click to expand...
Click to collapse
It cannot work, you won't be able to use the full brightness
and almost everybodey reports that after a few reboots it will go back to normal....
Original thread
well i have reverted back to auto... coz in sunlight it legibility is NIL :s
Has anyone experienced better battery life with this mod ?
Ive been using "Disable Auto Brightness" app and with that there is no rly better battery life.
Still good to know that there would be a different way to diasble the auto Brightness ^^
Great job
Related
how to disable ambient light sensor in xperia mini ,is there any method to do that,can anybody help on that issue ?
i use this on my x8, i don't know is this working on Xperia mini, my ray don't have it so i can't try.
1.ROOTED
2.open system/etc/hw_config.sh
3.edit
Code:
echo i2c_pwm_als > $dev/mode # BL control modes [i2c, pwm, i2c_pwm, als, pwm_als, i2c_pwm_als, i2_als]
delete "_als" in "echo i2c_pwm_als"
4.save and out, reboot
this should work....you can use root explorer to do this.
sorry for my English, still learning and have bad marks at GRAMMAR and VOCABULARY.
ok thanks will try it
Moved to proper forum.
nitinex said:
ok thanks will try it
Click to expand...
Click to collapse
is it working?
[HOWTO] disable ambient light sensor for LCD in xperia mini
I think I've suceeded in turning off auto-brightness in my SK17i (Xperia mini pro), Android 2.3.3, build 4.0.A.2.368.
It doesn't dim backlight after couple of second inactivity.
It still dim backlight about 3 seconds before timeout set in Settings/Display/Screen timeout.
You will need root. Files you have to modify has mode "-rw-r--r--" (writable only for root).
You can try it without permanent changes (settings will be lost after reboot):
Connect phone to PC over USB cable, enable Settings/Applications/Development/USB debugging.
Run command:
Code:
adb shell
You should get root shell (line begins with #).
In that shell run:
Code:
echo 0 > /sys/devices/i2c-0/0-0040/leds/lcd-backlight/als/enable
Disconnect USB cable.
If it works for you, you can make it permanent. Basically you will edit file which sets this on device boot:
Open Root explorer
Go to /etc diretory
Find hw_config.sh, long touch and in popup select Open in Text Editor
Find line
Code:
echo 1 > $dev/lcd-backlight/als/enable #Sensor on/off. 1 = on, reg 90h
and edit it to
Code:
echo 0 > $dev/lcd-backlight/als/enable #Sensor on/off. 1 = on, reg 90h
Press Back button and save file.
scroolik said:
I think I've suceeded in turning off auto-brightness in my SK17i (Xperia mini pro), Android 2.3.3, build 4.0.A.2.368.
It doesn't dim backlight after couple of second inactivity.
It still dim backlight about 3 seconds before timeout set in Settings/Display/Screen timeout.
You will need root. Files you have to modify has mode "-rw-r--r--" (writable only for root).
You can try it without permanent changes (settings will be lost after reboot):
Connect phone to PC over USB cable, enable Settings/Applications/Development/USB debugging.
Run command:
Code:
adb shell
You should get root shell (line begins with #).
In that shell run:
Code:
echo 0 > /sys/devices/i2c-0/0-0040/leds/lcd-backlight/als/enable
Disconnect USB cable.
If it works for you, you can make it permanent. Basically you will edit file which sets this on device boot:
Open Root explorer
Go to /etc diretory
Find hw_config.sh, long touch and in popup select Open in Text Editor
Find line
Code:
echo 1 > $dev/lcd-backlight/als/enable #Sensor on/off. 1 = on, reg 90h
and edit it to
Code:
echo 0 > $dev/lcd-backlight/als/enable #Sensor on/off. 1 = on, reg 90h
Press Back button and save file.
Click to expand...
Click to collapse
It works, but... After the phone starts, the maximum brightness is set up and ambient senzor doesn't work. But if you turn off display and then you wake it up, brightness is lower than before it's like you have been in dark room, but aren't.
Is it also working with xperia active?
Is there a possibility to disable the soft key backlight at this way?
duke85 said:
Is it also working with xperia active?
Is there a possibility to disable the soft key backlight at this way?
Click to expand...
Click to collapse
Use "superDim"
Sent from my MT15i using Tapatalk
superDim can also disable soft key backlights?
I can't find that kind of option
Yes. Try other lights option.
To disable softkeys light I use Screen Filter with 100% settings to not dim the screen and it has an option to disable softkeys light. I enable and disable with app shortcut. The widget will not work with full 100% screen, but use regular icon.
I rooted my xperia active.
Superdim don't disable the ambient light sensor.
The Button Backlight once is disabled, once it isn't... doesn't work steady When I'm closing superdim, backlights are back on.
Is there another possibility?
Will this work for you?
market.android.com/details?id=com.hatcyl.android.Disable_Auto_Brightness
http://forum.xda-developers.com/showthread.php?t=1259445
Meanwhile I edited my /etc/hw_config.sh:
# LMU AS3676 Configuration
dev=/sys/devices/i2c-0/0-0040/leds
#Sensor on/off. 1 = on, reg 90h
echo 1 > $dev/lcd-backlight/als/enable
#[gain],[filter_up],[filter_down],[offset]
echo 3,2,2,0 > $dev/lcd-backlight/als/params
# touch-button-backlight
echo 8000 > $dev/button-backlight/max_current
echo 6450 > $dev/red/max_current
echo 7950 > $dev/green/max_current
echo 4500 > $dev/blue/max_current
# ALS curve display BL [grp],[Y0],[Y3],[K1],[K2],[X1],[X2]
echo 1,30,255,54,52,1,65 > $dev/lcd-backlight/als/curve
# ALS curve key LED 2 [grp],[Y0],[Y3],[K1],[K2],[X1],[X2]
echo 2,48,0,128,128,4,10 > $dev/button-backlight/als/curve
# ALS curve RGB(red) [grp],[Y0],[Y3],[K1],[K2],[X1],[X2]
echo 3,71,255,64,32,5,37 > $dev/red/als/curve
# ALS curve RGB(green) [grp],[Y0],[Y3],[K1],[K2],[X1],[X2]
echo 3,71,255,64,32,5,37 > $dev/green/als/curve
# ALS curve RGB(blue) [grp],[Y0],[Y3],[K1],[K2],[X1],[X2]
echo 3,71,255,64,32,5,37 > $dev/blue/als/curve
In line echo 1 > $dev/lcd-backlight/als/enable I replace the "1" with a "0".
The other bold lines I simple deleted, except echo 8000 > $dev/button-backlight/max_current
Until now the ALS is disabled in any Situation.
For button backlight I replaced "8000" with "0001" in line echo 8000 > $dev/button-backlight/max_current
Until now the button backlight is disabled in any Situation...
scroolik said:
I think I've suceeded in turning off auto-brightness in my SK17i (Xperia mini pro), Android 2.3.3, build 4.0.A.2.368.
It doesn't dim backlight after couple of second inactivity.
It still dim backlight about 3 seconds before timeout set in Settings/Display/Screen timeout.
You will need root. Files you have to modify has mode "-rw-r--r--" (writable only for root).
You can try it without permanent changes (settings will be lost after reboot):
Connect phone to PC over USB cable, enable Settings/Applications/Development/USB debugging.
Run command:
Code:
adb shell
You should get root shell (line begins with #).
In that shell run:
Code:
echo 0 > /sys/devices/i2c-0/0-0040/leds/lcd-backlight/als/enable
Disconnect USB cable.
If it works for you, you can make it permanent. Basically you will edit file which sets this on device boot:
Open Root explorer
Go to /etc diretory
Find hw_config.sh, long touch and in popup select Open in Text Editor
Find line
Code:
echo 1 > $dev/lcd-backlight/als/enable #Sensor on/off. 1 = on, reg 90h
and edit it to
Code:
echo 0 > $dev/lcd-backlight/als/enable #Sensor on/off. 1 = on, reg 90h
Press Back button and save file.
Click to expand...
Click to collapse
It also works on my st15i. Thanks!
You think or you did ?
This works even on ICS
https://play.google.com/store/apps/...uYW5kcm9pZC5EaXNhYmxlX0F1dG9fQnJpZ2h0bmVzcyJd
duke85 said:
superDim can also disable soft key backlights?
I can't find that kind of option
Click to expand...
Click to collapse
you can do it yourself.
type in terminal emulator:
su
echo 1 > /sys/class/leds/button-backlight/max_current
after reboot backllights will be on again.
you can create a script using scripter app from play store or you can create a permanent init.d script yourself (or i can provide a flashable zip)
Dear All,
I want to disable auto brightness on my phone. I am using NEO V. i installed "disable auto brightness" app from android market and its not working on my phone. Can you someone tell me to how to disable auto brightness ?
Thanks,
karthic
karthicvkn said:
Dear All,
I want to disable auto brightness on my phone. I am using NEO V. i installed "disable auto brightness" app from android market and its not working on my phone. Can you someone tell me to how to disable auto brightness ?
Thanks,
karthic
Click to expand...
Click to collapse
Use "tasker"
Sent from my MT15i
I installed "tasker" on my mobile. but how do i disable auto brightness on this app ?... Need a quick help pls !!!
I need to add a widget on home screen, and by pressing that disable or enable auto brightness, I found a code which may work on Tasker app.. But i didnt know how to implement this to tasker ?
Can you pls help me on this ?
Code :
--------------------------------------------------------------------
IF %AUTO is set
Disable auto-brightness
Set brightness to 5
clear %AUTO
goto stop (i.e. put the number of the stop action here)
END IF
Enable auto-brightness
set %AUTO = 1
stop (just to have another action to jump to)
--------------------------------------------------------------------
Thanks,
karthic
Sorry for my english
1)root your device
2)take rootexplorer
3)connect your phone with pc by cabel and go inside folder ETC
4) copy file "hw_config"
5)paste it on your screen on pc
6)open it by notepad
7)edit last part of this file by changing this:
echo 1,2,2,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
echo 0 > $dev/button-backlight-rgb1/als/enable #Sensor on/off. 1 = on, reg 90h
echo 0 > $dev/button-backlight-rgb2/als/enable #Sensor on/off. 1 = on, reg 90h
echo 0 > $dev/red/als/enable #Sensor on/off. 1 = on, reg 90h
echo 0 > $dev/green/als/enable #Sensor on/off. 1 = on, reg 90h
echo 0 > $dev/blue/als/enable #Sensor on/off. 1 = on, reg 90h
echo 900 > $dev/button-backlight-rgb1/max_current #Max current in uA
echo 900 > $dev/button-backlight-rgb2/max_current #Max current in uA
you need to find this in original file and replace it.
If you can`t replace it change mount r/w.
problem
lokaf said:
Sorry for my english
1)root your device
2)take rootexplorer
3)connect your phone with pc by cabel and go inside folder ETC
4) copy file "hw_config"
5)paste it on your screen on pc
6)open it by notepad
7)edit last part of this file by changing this:
echo 1,2,2,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
echo 0 > $dev/button-backlight-rgb1/als/enable #Sensor on/off. 1 = on, reg 90h
echo 0 > $dev/button-backlight-rgb2/als/enable #Sensor on/off. 1 = on, reg 90h
echo 0 > $dev/red/als/enable #Sensor on/off. 1 = on, reg 90h
echo 0 > $dev/green/als/enable #Sensor on/off. 1 = on, reg 90h
echo 0 > $dev/blue/als/enable #Sensor on/off. 1 = on, reg 90h
echo 900 > $dev/button-backlight-rgb1/max_current #Max current in uA
echo 900 > $dev/button-backlight-rgb2/max_current #Max current in uA
you need to find this in original file and replace it.
If you can`t replace it change mount r/w.
Click to expand...
Click to collapse
Hey... I connect my Xperia Neo V with my cable USB and i dont found this folder ETC , Help me pls ! thx
If you're using root explorer,use it and go to system folder...
There you can find the folder - Etc
Sent from my MT11i using Tapatalk 2
brightness
Ghostfreak NB said:
If you're using root explorer,use it and go to system folder...
There you can find the folder - Etc
Sent from my MT11i using Tapatalk 2
Click to expand...
Click to collapse
How to make Root explorer? Im beginer ..Sorry ..i want done it ! Thx
Lol.... I didn't get you!
You can't make root explorer!
Buy it from play store!
Sent from my MT11i using Tapatalk 2
Thx
Ghostfreak NB said:
Lol.... I didn't get you!
You can't make root explorer!
Buy it from play store!
Sent from my MT11i using Tapatalk 2
Click to expand...
Click to collapse
Ok Thank you so much !
lokaf said:
Sorry for my english
1)root your device
2)take rootexplorer
3)connect your phone with pc by cabel and go inside folder ETC
4) copy file "hw_config"
5)paste it on your screen on pc
6)open it by notepad
7)edit last part of this file by changing this:
echo 1,2,2,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
echo 0 > $dev/button-backlight-rgb1/als/enable #Sensor on/off. 1 = on, reg 90h
echo 0 > $dev/button-backlight-rgb2/als/enable #Sensor on/off. 1 = on, reg 90h
echo 0 > $dev/red/als/enable #Sensor on/off. 1 = on, reg 90h
echo 0 > $dev/green/als/enable #Sensor on/off. 1 = on, reg 90h
echo 0 > $dev/blue/als/enable #Sensor on/off. 1 = on, reg 90h
echo 900 > $dev/button-backlight-rgb1/max_current #Max current in uA
echo 900 > $dev/button-backlight-rgb2/max_current #Max current in uA
you need to find this in original file and replace it.
If you can`t replace it change mount r/w.
Click to expand...
Click to collapse
I instaled on my xperia Neo v All app with root explorer , file manager for i enter in this folder..I'have found hw_config. But i can,t edit from phone ...i editing from my PC , copy in SD card ..And enter in phone on app root exp. , copy edit file and paste it in Etc folder , Remember from phone ! and FAILED , How to make ! What to be made ?
I think you are in read only mode!
That is why you are not being able to edit in phone!
Sent from my MT11i using Tapatalk 2
ok
Ghostfreak NB said:
I think you are in read only mode!
That is why you are not being able to edit in phone!
Sent from my MT11i using Tapatalk 2
Click to expand...
Click to collapse
So ,i cant solve my phone with sensor brightness? i tried all variants and nothing ..i know is make it for battery save , but is darkness !
And sorry for my bad english
lokaf said:
Sorry for my english
1)root your device
2)take rootexplorer
3)connect your phone with pc by cabel and go inside folder ETC
4) copy file "hw_config"
5)paste it on your screen on pc
6)open it by notepad
7)edit last part of this file by changing this:
echo 1,2,2,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
echo 0 > $dev/button-backlight-rgb1/als/enable #Sensor on/off. 1 = on, reg 90h
echo 0 > $dev/button-backlight-rgb2/als/enable #Sensor on/off. 1 = on, reg 90h
echo 0 > $dev/red/als/enable #Sensor on/off. 1 = on, reg 90h
echo 0 > $dev/green/als/enable #Sensor on/off. 1 = on, reg 90h
echo 0 > $dev/blue/als/enable #Sensor on/off. 1 = on, reg 90h
echo 900 > $dev/button-backlight-rgb1/max_current #Max current in uA
echo 900 > $dev/button-backlight-rgb2/max_current #Max current in uA
you need to find this in original file and replace it.
If you can`t replace it change mount r/w.
Click to expand...
Click to collapse
Worked like a charm.
doesnt work
Guyz it doesnt work! Do I edit it wrong? !! Please I need to find a way to disable auto brightness!!The app by hatcyl it looks cheap! I just want to disable it for ever thanks!
So we are all anoyed by the auto brightness in xperia devices.Well i thought a solution in xperia mini!
in you hw_config located in etc folder delete the lines which start with # LMU...until...[X2 dont touch the next line which is the
touch panel !!! so there paste this
# LMU AS3676 Configuration
dev=/sys/devices/i2c-0/0-0040/leds
echo 0 > $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 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
remember this all process must be done with brightness at full and in a light rom so the brightness will be at maximum
if you are bored to do that just replace the hw_config with this that i will upload!!
WARNING: DO IT AT YOUR OWN RISK IF YOU BRICK YOUR DEVICE AND POINT ME I WILL LAUGH AT YOU
TESTED WITH MY DEVICE ST15i
Its work on LWW ?
Sent from my WT19i using xda premium
Waiting to see some feedback.
after replacing hw_config file "auto brightness" on my XM stock is off
cant understand what you are talking about?
Will it work on cm7.2?
3 questions.
1. Is it possible to remove dual touch?
2. It will help the phone to be faster?
3. If the first two answers is yes then how can i do it?
manthes said:
3 questions.
1. Is it possible to remove dual touch?
2. It will help the phone to be faster?
3. If the first two answers is yes then how can i do it?
Click to expand...
Click to collapse
1-yes
2-yes sure but not that much, maybe fewer than 1%
3- what's your rom+kernel+ touch screen type?
Sent From My BEAST , I mean X8
I don't use it so and 1% for me is fine
MiniCM7-2.2.1
nAa-14
What do you mean with touch screen type?
manthes said:
I don't use it so and 1% for me is fine
MiniCM7-2.2.1
nAa-14
What do you mean with touch screen type?
Click to expand...
Click to collapse
X10m & x8 come with two different touch screens
Syanptics(known as fake dual touch,one of touch points should not move otherwise touch will stop working )
Cypress(real dual touch which acts like dual touch screens but you must press your fingers a little harder)
Sent From My BEAST , I mean X8
---------- Post added at 04:58 PM ---------- Previous post was at 04:44 PM ----------
Your phone, your risk, I'm not responsible for bricks:
http://forum.xda-developers.com/showthread.php?t=1350484
Read the first post, it's written about removing dual touch
It's for x8 but x8 & x10 are much like the same.
nandroid backup is recommended
Repeating again: Your phone, your risk, I'm not responsible for bricks
Sent From My BEAST , I mean X8
Thanks for the answer.
I make a copy-paste insmod /system/lib/modules/synaptics_i2c_rmi4_no_dt.ko at the end of the file but nothing happens
manthes said:
Thanks for the answer.
I make a copy-paste insmod /system/lib/modules/synaptics_i2c_rmi4_no_dt.ko at the end of the file but nothing happens
Click to expand...
Click to collapse
Add that following code to
System/ etc/ hw_config.Sh
(Using text editor)
& you'll be fine
Sent From My BEAST , I mean X8
i have done it but it didn't work.
That's my file. Have i done something wrong?
# Vibrator configuration
dev=/sys/devices/platform/msm_pmic_vibrator
echo 2400 > $dev/voltage_mv
# lm3530 LMU configuration
dev=/sys/devices/platform/i2c-adapter/i2c-0/0-0036
echo linear > $dev/br::mapping # linear exp
echo 32768 > $dev/br::rate::up # 8, 1024, 2048, 4096, 8192, 16384, 32768, 65538
echo 32768 > $dev/br::rate::down # 8, 1024, 2048, 4096, 8192, 16384, 32768, 65538
echo 254 > $dev/br::limit # 0 - 255
echo 22.5 > $dev/br::fsc # 5.0, 8.5, 12.0, 15.5, 19.0, 22.5, 26.0, 29.5
echo 4,16,64,250 > $dev/curve::borders
echo 50,50,50,50,50 > $dev/curve::targets
echo high-z > $dev/als::r1 # high-z, 9360, 5560 .. 677.6 (see chip mnual)
echo high-z > $dev/als::r2 # high-z, 9360, 5560 .. 677.6 (see chip mnual)
echo 128 > $dev/als::avg-t # 32, 63, 128, 256, 512, 1024, 2048, 4096
echo i2c_pwm_als > $dev/mode # i2c, pwm, i2c_pwm, als, pwm_als, i2c_pwm_als, i2_als
# Proximity sensor configuration
dev=/sys/devices/platform/proximity-sensor/semc/proximity-sensor
echo 15 > $dev/led_on_ms # sensor LED on time in ms
echo 35 > $dev/led_off_ms # sensor LED off time in ms
echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 90 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold
echo 30 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/down_differential
echo 500000 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate
echo 122880 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo 600000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
# Flash LED configuration
dev=/sys/devices/platform/msm_pmic_flash_led
echo 80 > $dev/spotlight::current_ma # spotlight current
echo 4700 > $dev/spotlight::boost_mv # spotlight boost voltage
echo 480 > $dev/cmaflash::current_ma # camera flash current
echo 5000 > $dev/cmaflash::boost_mv # camera flash voltage
dev=/sys/devices/platform/msm_pmic_misc_led.0
echo 255 > $dev/max::brightness
echo 3 > $dev/als::cut-off
zone "0"
echo user_als > $dev/control::mode
echo 40 > $dev/max::current_ma
mount -o rw,remount -t yaffs2 /dev/block/mtdblock0 /system
chmod u+s /system/bin/charger
mount -o ro,remount -t yaffs2 /dev/block/mtdblock0 /system
rm -rf /data/local/download/*
insmod /system/lib/modules/synaptics_i2c_rmi4_no_dt.ko
manthes said:
i have done it but it didn't work.
That's my file. Have i done something wrong?
# Vibrator configuration
dev=/sys/devices/platform/msm_pmic_vibrator
echo 2400 > $dev/voltage_mv
# lm3530 LMU configuration
dev=/sys/devices/platform/i2c-adapter/i2c-0/0-0036
echo linear > $dev/br::mapping # linear exp
echo 32768 > $dev/br::rate::up # 8, 1024, 2048, 4096, 8192, 16384, 32768, 65538
echo 32768 > $dev/br::rate::down # 8, 1024, 2048, 4096, 8192, 16384, 32768, 65538
echo 254 > $dev/br::limit # 0 - 255
echo 22.5 > $dev/br::fsc # 5.0, 8.5, 12.0, 15.5, 19.0, 22.5, 26.0, 29.5
echo 4,16,64,250 > $dev/curve::borders
echo 50,50,50,50,50 > $dev/curve::targets
echo high-z > $dev/als::r1 # high-z, 9360, 5560 .. 677.6 (see chip mnual)
echo high-z > $dev/als::r2 # high-z, 9360, 5560 .. 677.6 (see chip mnual)
echo 128 > $dev/als::avg-t # 32, 63, 128, 256, 512, 1024, 2048, 4096
echo i2c_pwm_als > $dev/mode # i2c, pwm, i2c_pwm, als, pwm_als, i2c_pwm_als, i2_als
# Proximity sensor configuration
dev=/sys/devices/platform/proximity-sensor/semc/proximity-sensor
echo 15 > $dev/led_on_ms # sensor LED on time in ms
echo 35 > $dev/led_off_ms # sensor LED off time in ms
echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 90 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold
echo 30 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/down_differential
echo 500000 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate
echo 122880 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo 600000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
# Flash LED configuration
dev=/sys/devices/platform/msm_pmic_flash_led
echo 80 > $dev/spotlight::current_ma # spotlight current
echo 4700 > $dev/spotlight::boost_mv # spotlight boost voltage
echo 480 > $dev/cmaflash::current_ma # camera flash current
echo 5000 > $dev/cmaflash::boost_mv # camera flash voltage
dev=/sys/devices/platform/msm_pmic_misc_led.0
echo 255 > $dev/max::brightness
echo 3 > $dev/als::cut-off
zone "0"
echo user_als > $dev/control::mode
echo 40 > $dev/max::current_ma
mount -o rw,remount -t yaffs2 /dev/block/mtdblock0 /system
chmod u+s /system/bin/charger
mount -o ro,remount -t yaffs2 /dev/block/mtdblock0 /system
rm -rf /data/local/download/*
insmod /system/lib/modules/synaptics_i2c_rmi4_no_dt.ko
Click to expand...
Click to collapse
Maybe your phone have cypress
try this:
Code:
insmod /system/lib/modules/cypress_i2c_rmi4_no_dt.ko
Edit: sorry this module is not included so wait a moment, I'll find another solution
Sent From My BEAST , I mean X8
---------- Post added at 12:38 AM ---------- Previous post was at 12:29 AM ----------
Grab & Upload hw_config.sh from system/etc/
I'll change preference & send it to you
Sent From My BEAST , I mean X8
i see that in my folder modules i dont have any of these files.
the only files are :
modules.deb.bb
sdio.ko
tiap_drv.ko
tiwlan_drv.ko
x10miniprouv.ko
manthes said:
i see that in my folder modules i dont have any of these files.
the only files are :
modules.deb.bb
sdio.ko
tiap_drv.ko
tiwlan_drv.ko
x10miniprouv.ko
Click to expand...
Click to collapse
Sorry again, I need hw_config.sh ,upload that here(system/etc/)
I'll fix it & send it to you
Sent From My BEAST , I mean X8
here it is
Is there any way to change the color of LED notification, I only want to change the Battery charging LED color, From yellow to deep Orange just as it was on stock condition. I know there are various apps out in the market but none of them allows changing battery charging LED color, so I was hoping there would be some script or something like that to do that.
How about changing the hw_config.sh file in syystem/etc.take a backup first, then find the line for charging light and adjust rgb to your need I guess
Regards
N
Use the method above or just use an app like Light Flow
Sent from my SK17i running Android 4.1.2
Sure that light flow allows charging light edit too?
He said he tried many apps, that why I didn't suggest it.
Regards
N
Thanks for the help guys. Yes light flow don't completely change the LED color
I tried the method you mentioned, I managed to reach system/etc/hw_config.sh and lost it
How can I find the line for charging light, there so many codes.
# 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=15
val_freq=0
val_threshold=1
val_filter=1
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.
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.
# TI BQ275xx firmware loader
bq275xx_fwloader
Its either this file or pre hw congi in the same path or on folder above
Regards
N
Thanks again but I don't think it works on CM, I can't find no lines regarding charging LED color, I tried every file you mentioned. Guess will have to wait for CM guys to do something about it