button backlight disabler - Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A

Use at your own risk, i am not responsible for anything happening to your device
What it does
This flashable zip turns your button backlight off permanantly.
it just changes your hw_config.sh file to disable backlight.
Steps
for your own safety please make a backup, in case something happens.
reboot into cwm
flash the zip
Downloads for bbl disabler.
active
lww
mini
mini pro
ray
If u want to get the light back,
active
lww
mini
mini pro
ray
in case it didn't work, edit your hw_config file found in system/etc
find this line: echo 1 > $dev/button-backlight/max_current
and set it to
Active: echo 8000 > $dev/button-backlight/max_current
lww: echo 1500 > $dev/button-backlight/max_current
mini pro: echo 500 > $dev/button-backlight/max_current
ray: echo 50 > $dev/button-backlight/max_current
for mini find these two lines
echo 1 > $dev/button-backlight-rgb1/max_current
echo 1 > $dev/button-backlight-rgb2/max_current
change to
echo 8000 > $dev/button-backlight-rgb1/max_current
echo 8000 > $dev/button-backlight-rgb2/max_current

okay
I have an easier way
put it in init.d
Code:
echo 1 > /sys/class/leds/button-backlight-rgb1/max_current;
echo 1 > /sys/class/leds/button-backlight-rgb2/max_current;

Re: Testers for button backlight disabler
Gustavo RD78 said:
okay
I have an easier way
put it in init.d
Code:
echo 1 > /sys/class/leds/button-backlight-rgb1/max_current;
echo 1 > /sys/class/leds/button-backlight-rgb2/max_current;
Click to expand...
Click to collapse
Add it at the last or change something??
Edit: I get a feeling u use a mini(others dont have 2 button backlights rgb1 and rgb2)
Don't forget to hit thanks

Add the lines in a script that you already have or add this script :good:
Note: this is not a flash zip

Gustavo RD78 said:
Add the lines in a script that you already have or add this script :good:
Note: this is not a flash zip
Click to expand...
Click to collapse
thanks for the info and the file
but..i still think mine's easier, just a simple flash when you flash a new rom
could you please try it and confirm it works?
thanks

Related

Kernel Optimizations

If anyone is compiling a kernel, please unset CONFIG_UEVENT_HELPER_PATH.
It is currently set to /sbin/hotplug, which does not exist.
You might also set
echo 5 > /proc/sys/vm/laptop_mode
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
somewhere in the initramfs.
What does these settings do?
lynx2k50 said:
What does these settings do?
Click to expand...
Click to collapse
if CONFIG_UEVENT_HELPER_PATH is set, then the kernel tries to execute that helper tool every time a hotplug event occurs. Unsetting it would save a lot of forks at boot time.
Code:
echo 5 > /proc/sys/vm/laptop_mode
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
These settings delay the disk writeback, so the disk device has to wake up less often (given it goes into sleep mode ).
Ah okay so i can expect better battery life (more sleep time) and a faster booting.
Well done, thanks.
I hope some devs are going to integreate it.
OK good point to try.
Added now on my Cognition 1.07
Code:
bash-4.1# cat /etc/init.d/90laptop.sh
#!/system/bin/sh
echo 5 > /proc/sys/vm/laptop_mode
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
Code:
diff --git a/arch/arm/configs/c1_rev02_defconfig b/arch/arm/configs/c1_rev02_defconfig
index a7992c0..ccd06df 100644
--- a/arch/arm/configs/c1_rev02_defconfig
+++ b/arch/arm/configs/c1_rev02_defconfig
@@ -917,7 +917,7 @@ CONFIG_RFKILL_INPUT=y
#
# Generic Driver Options
#
-CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
+CONFIG_UEVENT_HELPER_PATH=""
# CONFIG_DEVTMPFS is not set
CONFIG_STANDALONE=y
CONFIG_PREVENT_FIRMWARE_BUILD=y
Can someone pls create a update.zip or else for the cognition rom?
Or a shirt instruction.
Sry for my englisch
from my SGS running MIUI 2.3.4
If you have the CF-Root kernel installed, you can just place this in /data/local/customboot.sh
Code:
echo 5 > /proc/sys/vm/laptop_mode
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
echo -e '\000\000\000' > /proc/sys/kernel/hotplug
saturn_de said:
If you have the CF-Root kernel installed, you can just place this in /data/local/customboot.sh
Code:
echo 5 > /proc/sys/vm/laptop_mode
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
echo -e '\000\000\000' > /proc/sys/kernel/hotplug
Click to expand...
Click to collapse
the first two might help. (does Solid State internal storage need "sleep" mode?)
but depending on when the custom script is run the last line may be useless here..
Does it only work with a CF-Kernel, i've tagraks kernel, and cant find any file in data/locel .
Greetz
saturn_de said:
These settings delay the disk writeback, so the disk device has to wake up less often (given it goes into sleep mode ).
Click to expand...
Click to collapse
It doesn't go into sleep mode since it's not a spinning disk.
(Or you could look at it as always being in sleep mode when not in use - there's no spindown/spinup phase.)
So you're not gonna see any battery benefits from that.
Added into my installation on my handset. No way to test it whether it will increase stabilty nor speed, but it does tidy thinngs up.

CyanogenMod , MIUI brightness Issue

I have xperia ray , and recently i used many cyanogenmod versions , fxp045 to fxp054
I have unlocked bootloaders with s1tool
but with cyanogenmod i have brightness issue , whenever i set brightness and lock my device ,after opening lock brightness reduces automatically
it is damn low & irritating , i dont know why other peoples are not complaining about this issue
EDIT : I got solution = http://forum.xda-developers.com/showthread.php?t=1445546
please help help help help, i really want to use Cyanogenmod
xperia ray said:
I have xperia ray , and recently i used many cyanogenmod versions , fxp045 to fxp054
I have unlocked bootloaders with s1tool
but with cyanogenmod i have brightness issue , whenever i set brightness and lock my device ,after opening lock brightness reduces automatically
it is damn low & irritating , i dont know why other peoples are not complaining about this issue
please help help help help, i really want to use Cyanogenmod
Click to expand...
Click to collapse
Adjust or set the brightness manually until the problem is resolved
first i am very thankful to you for reply , you are totally awesome , again thanks for joining xpiera ray forum (i have seen all your posts , so helpful)
I have tried , but still not working
Lemme explore it
Once i have CM7 installed , i go to settings and set brightness to full
then use my device it works good
After i lock it and open it again i find brightness it reduced to half
i go to settings and check it , it shows brightness is set to full but in reality it is not
is there any problem with my bootloader unlocking method ?
xperia ray said:
first i am very thankful to you for reply , you are totally awesome , again thanks for joining xpiera ray forum (i have seen all your posts , so helpful)
I have tried , but still not working
Lemme explore it
Once i have CM7 installed , i go to settings and set brightness to full
then use my device it works good
After i lock it and open it again i find brightness it reduced to half
i go to settings and check it , it shows brightness is set to full but in reality it is not
is there any problem with my bootloader unlocking method ?
Click to expand...
Click to collapse
It may be a problem with cm7, have you asked in the cm7 thread ?
The brightness works on my the miui roms
Not sure why it doesnt on cm7 so may be rom specific so report on that thread and see if you get any feedback. it may be a known bug
one more question chiefy009 , which miui is best for ray?
and is overclocking not harmful and much battery consuming
Planing to shift on miui
xperia ray said:
one more question chiefy009 , which miui is best for ray?
and is overclocking not harmful and much battery consuming
Planing to shift on miui
Click to expand...
Click to collapse
My miui has tweaks for smoothness and extended settings but try them all.
Overclocking does use battery so undervolt as well, undervolting is trial and error to see if your phone remains stable
Overclocking to high could damage the phone if used over a prolonged period of time I would imagine but a quick google search will get you more info
sent from my gorgeus Xperia Ray
i solved this problem
i used this thread http://forum.xda-developers.com/showthread.php?t=1377125
change the same part in hw_config.sh(inside system/etc)
to:
# 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
xutienan9520 said:
i solved this problem
i used this thread http://forum.xda-developers.com/showthread.php?t=1377125
change the same part in hw_config.sh(inside system/etc)
to:
# 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
Click to expand...
Click to collapse
Not working
f**k cyanogenmod
As far as I know you have to change "echo 0,0,0,0" to "echo 3,2,2,0"
xperia ray said:
Not working
Click to expand...
Click to collapse
aaaaaaaaaaa.........mine is working........
xperia ray said:
I have xperia ray , and recently i used many cyanogenmod versions , fxp045 to fxp054
I have unlocked bootloaders with s1tool
but with cyanogenmod i have brightness issue , whenever i set brightness and lock my device ,after opening lock brightness reduces automatically
it is damn low & irritating , i dont know why other peoples are not complaining about this issue
please help help help help, i really want to use Cyanogenmod
Click to expand...
Click to collapse
i had this problem to solved using this guide! if is not working with the file edit, use the als_curve.ini (backup first)
I have this in CM 7
# 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
Last time i changed the whole code , now i think i have to only change
echo 2,0,0,0 TO echo 0,0,0,0
right ?
i replaced lights.semc.so with stock lights.semc.so file , in system/lib/hw
brightness works but only problem is LED light always turn on , in pink color
xperia ray said:
i replaced lights.semc.so with stock lights.semc.so file , in system/lib/hw
brightness works but only problem is LED light always turn on , in pink color
Click to expand...
Click to collapse
That's right, only change the "echo x,x,x,x" phrase.
I tried "echo 3,2,2,0" and "echo 1.5,1,0.5,0 30h". I dont realy know what these parameters exaktly mean, but "echo 1.5,1,0.5,0 30h" works fine on my ray.
You also can change your als_curve.ini in system/etc.
brightness works but only problem is LED light always turn on , in pink color
Click to expand...
Click to collapse
Do you mean the flash LED on the back? And does it keep the brightness you set before you locked?
xperia ray said:
I have this in CM 7
# 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
Last time i changed the whole code , now i think i have to only change
echo 2,0,0,0 TO echo 0,0,0,0
right ?
Click to expand...
Click to collapse
1,65,255,24,24,5,128 to 0.0.0.0.0.0.0
i think i wrote it wrong, sorry
klpp said:
Do you mean the flash LED on the back? And does it keep the brightness you set before you locked?
Click to expand...
Click to collapse
no it is LED of home key , notification indicator in other words
1,65,255,24,24,5,128 to 0.0.0.0.0.0.0
i think i wrote it wrong, sorry
Click to expand...
Click to collapse
Hello xutienan9520,
could you please explain me the difference between
"echo x.x.x.x" and "echo x.x.x.x.x.x.x", i`m noob as f**k.
And what kind of effect does "echo 0.0.0.0.0.0.0" have to your brightness?
klpp said:
Hello xutienan9520,
could you please explain me the difference between
"echo x.x.x.x" and "echo x.x.x.x.x.x.x", i`m noob as f**k.
And what kind of effect does "echo 0.0.0.0.0.0.0" have to your brightness?
Click to expand...
Click to collapse
i also dont know about this , changing above echo to 0,0,0,0,0,0,0 fixed my issue
Change this
# 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
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
Uhh
If i come back from lockscreen it's still do dark...i use exactly your settings.
I just want the brightness i set in my displaysttings.

[DISCUSSION]PerfectPeso by trettet!

Ok,this is weird.Why his topic was closed?
http://forum.xda-developers.com/showthread.php?t=1382033
I noticed that his website was blocked by SOPA.Why?The download links were mediafire links,no MU.Also Android is open source,and in his ROM it wasn't any paid app by default(i mean in system/app).What's going on?Is mediafire gonna be taken down?I noticed that it barely works.But why topic closed?
The reason is, maybe link was associate with megaupload...
Sent from my Galaxy Nexus using Tapatalk
he used mediafire links...
Marius Cristian said:
Ok,this is weird.Why his topic was closed?
http://forum.xda-developers.com/showthread.php?t=1382033
I noticed that his website was blocked by SOPA.Why?The download links were mediafire links,no MU.Also Android is open source,and in his ROM it wasn't any paid app by default(i mean in system/app).What's going on?Is mediafire gonna be taken down?I noticed that it barely works.But why topic closed?
Click to expand...
Click to collapse
i tot SOPA was shelved for the moment?
Sorry if this is OT.
But I would like to share some bugs I found while using 1.1A as I didn't upgrade to 1.4 as the links were down. Can you verify whether these are faced by any of you !
1. It takes time to wake up from the lock screen. ie even after a hard key press the screen wakes up after say 3-4 secs.
2. Data connection works with flaws. 2G/3G data seems to be buggy.
3. The notification power widget and power widget doesnt work properly. ie, even if i disable/enable Data/Orientation Lock the effect is not applied. I cant even change it in settings. Only solution is a reboot.
4. Incoming call button issues. (Solved in later versions)
Other than these, the rom is pretty stable.
umm I didn't had any of those bugs in v1.1a.actually it was one of the best version because of kernel, except few graphical bugs.anyway,look on last page/page before that of the rom,pm rosuvladut and ask him to upload rom v1.4 to 4shared or another.if he doesn't have it anymore send me a pm and I will upload v1.3 for you when I get home.i personally am lazy to upgrade to v1.4 because the changes are too insignificant.you can upgrade rom manager by yourself, instead of root browser use root explorer.about super charger I don't use it so for me v1.3=v1.4
anyone knows more about why his topic was closed? we could add other download links and that's it.
Sent from my LG-P500 using Tapatalk
I checked back in dev thread to see if any of the down links where updated. Was surprised to see no post by trettet about site being down, then noticed thread was locked. Hope all is well.
tread closed? why!
Anyone know why the notifications won't stop making noise until I view them...the sound is very annoying when it doesn't stop? I only want the notification sound once. Awesome ROM btw.
Sent from my LG-P500 using Tapatalk
i was about to flash 1.4 in my phone and then... closed thread, site down... =/
i have the link for pp1.4 posted by soberspine at mediafire:
http://www.mediafire.com/?udbvyy0j1oan0gv
but i don't have the fix (phone.apk) and gapps... can someone upload it?
also, where is trettet? do you think the thread was closed by him? or a forum admin closed it?
betoqm said:
i was about to flash 1.4 in my phone and then... closed thread, site down... =/
i have the link for pp1.4 posted by soberspine at mediafire:
http://www.mediafire.com/?udbvyy0j1oan0gv
but i don't have the fix (phone.apk) and gapps... can someone upload it?
also, where is trettet? do you think the thread was closed by him? or a forum admin closed it?
Click to expand...
Click to collapse
I asked the mod to close it down...because I'm quite discouraged of modders who actually copied my tweaks without even asking permission
EDIt:
anyways I'm tired of bug reports and fixing it and everything anyway
trettet said:
I asked the mod to close it down...because I'm quite discouraged of modders who actually copied my tweaks without even asking permission
Click to expand...
Click to collapse
talking about him!
does it mean you will not work on perfectpeso anymore?
i know have your work copied can be frustrating! but common, if i was you, i wouldn't give a sh*t... if there are modders copying your work, it means you have done a awesome job and we all recognize it!
again, we are all waiting for the next releases of perfectpeso!
betoqm said:
talking about him!
does it mean you will not work on perfectpeso anymore?
i know have your work copied can be frustrating! but common, if i was you, i wouldn't give a sh*t... if there are modders copying your work, it means you have done a awesome job and we all recognize it!
again, we are all waiting for the next releases of perfectpeso!
Click to expand...
Click to collapse
I will work on perfectpeso but won't be release on public, until Official CM7 Stable is out xD
@trettet could u please atleast give the links for the latest gapps :/
PHONEFIX.ZIP (v1.3 [ not sure ] and v1.4 [works perfectly]
Latest Gapps [works with all versions]
Aspee's Fix (works with v1.3 and v1.4)
As for the people who steal his work...you can all go to hell.
Trettet if you want I'll remove the files.I thought is nice for the people to enjoy your work.
trettet said:
I asked the mod to close it down...because I'm quite discouraged of modders who actually copied my tweaks without even asking permission
EDIt:
anyways I'm tired of bug reports and fixing it and everything anyway
Click to expand...
Click to collapse
NightlyfourE?
Sent from my LG-P500 using Tapatalk
manuvarghese said:
Sorry if this is OT.
But I would like to share some bugs I found while using 1.1A as I didn't upgrade to 1.4 as the links were down. Can you verify whether these are faced by any of you !
1. It takes time to wake up from the lock screen. ie even after a hard key press the screen wakes up after say 3-4 secs.
2. Data connection works with flaws. 2G/3G data seems to be buggy.
3. The notification power widget and power widget doesnt work properly. ie, even if i disable/enable Data/Orientation Lock the effect is not applied. I cant even change it in settings. Only solution is a reboot.
4. Incoming call button issues. (Solved in later versions)
Other than these, the rom is pretty stable.
Click to expand...
Click to collapse
Did you flash over without full wipe? Or changed patches now and then? I had these problem long ago bcos of one of above said reasons....a clean wipe has none of the above mentioned bugs .. I'm pretty sure of what I'm saying!
Sent from my LG-P500 using Tapatalk
androidusero1p500 said:
NightlyfourE?
Sent from my LG-P500 using Tapatalk
Click to expand...
Click to collapse
Why NightlyFourE I only use two tweak gov ( maxiumtweak and he removed it )+ remount in init.d
This
#!/system/bin/sh
# Governor Tweaks for Ondemand, Conservative, SmartassV2
# Ondemand
if [ -e /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold;
#echo "30" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/down_differential;
#echo "1" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/io_is_busy;
#echo "1" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_down_factor;
#echo "20000" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate;
fi;
if [ -e /sys/devices/system/cpu/cpu1/cpufreq/ondemand/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpu1/cpufreq/ondemand/up_threshold;
#echo "30" > /sys/devices/system/cpu/cpu1/cpufreq/ondemand/down_differential;
#echo "1" > /sys/devices/system/cpu/cpu1/cpufreq/ondemand/io_is_busy;
#echo "1" > /sys/devices/system/cpu/cpu1/cpufreq/ondemand/sampling_down_factor;
#echo "20000" > /sys/devices/system/cpu/cpu1/cpufreq/ondemand/sampling_rate;
fi;
if [ -e /sys/devices/system/cpu/cpufreq/ondemand/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold;
#echo "30" > /sys/devices/system/cpu/cpufreq/ondemand/down_differential;
#echo "1" > /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy;
#echo "1" > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor;
#echo "20000" > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate;
fi;
# Conservative
if [ -e /sys/devices/system/cpu/cpu0/cpufreq/conservative/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpu0/cpufreq/conservative/up_threshold;
echo "80" > /sys/devices/system/cpu/cpu0/cpufreq/conservative/down_threshold; # 35 # 12 # 30 (higher will lead to noticable lags) # 35 # screen off: # 50 ## 35
echo "100" > /sys/devices/system/cpu/cpu0/cpufreq/conservative/freq_step; # more aggressive ramping up (50) # screen off: # 10
fi;
if [ -e /sys/devices/system/cpu/cpu1/cpufreq/conservative/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpu1/cpufreq/conservative/up_threshold;
echo "80" > /sys/devices/system/cpu/cpu1/cpufreq/conservative/down_threshold; # 35 # 12 # 30 (higher will lead to noticable lags) # 35 # screen off: # 50 ## 35
echo "100" > /sys/devices/system/cpu/cpu1/cpufreq/conservative/freq_step; # more aggressive ramping up (50) # screen off: # 10
fi;
if [ -e /sys/devices/system/cpu/cpufreq/conservative/up_threshold ]; then
echo "85" > /sys/devices/system/cpu/cpufreq/conservative/up_threshold;
echo "80" > /sys/devices/system/cpu/cpufreq/conservative/down_threshold; # 35 # 12 # 30 (higher will lead to noticable lags) # 35 # screen off: # 50 ## 35
echo "100" > /sys/devices/system/cpu/cpufreq/conservative/freq_step; # more aggressive ramping up (50) # screen off: # 10
fi;
# SmartassV2
if [ -e /sys/devices/system/cpu/cpufreq/smartass/awake_ideal_freq ]; then
echo "800000" > /sys/devices/system/cpu/cpufreq/smartass/awake_ideal_freq;
if [ "`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq`" -eq 200000 ]; then
echo "200000" > /sys/devices/system/cpu/cpufreq/smartass/sleep_ideal_freq;
else
echo "100000" > /sys/devices/system/cpu/cpufreq/smartass/sleep_ideal_freq;
fi;
echo "800000" > /sys/devices/system/cpu/cpufreq/smartass/sleep_wakeup_freq;
echo "85" > /sys/devices/system/cpu/cpufreq/smartass/max_cpu_load;
echo "80" > /sys/devices/system/cpu/cpufreq/smartass/min_cpu_load;
echo "200000" > /sys/devices/system/cpu/cpufreq/smartass/ramp_down_step;
echo "0" > /sys/devices/system/cpu/cpufreq/smartass/ramp_up_step;
fi;
Click to expand...
Click to collapse
And
#!/system/bin/sh
for k in $(busybox mount | grep relatime | cut -d " " -f3)
do
sync
busybox mount -o remount,noatime,nodiratime $k
done
for k in $(busybox mount | grep barrier | cut -d " " -f3)
do
sync
busybox mount -o remount,barrier=0 $k
done
Click to expand...
Click to collapse
And I have credit to trettet
If you think i coppy I will remove two this script
@eee I just asked cos there are no other roms except yours based on official cm.7. 2 with ics looks..
Sent from my LG-P500 using Tapatalk
androidusero1p500 said:
@eee I just asked cos there are no other roms except yours based on official cm.7. 2 with ics looks..
Sent from my LG-P500 using Tapatalk
Click to expand...
Click to collapse
I don't understand what you say

[Hack/Mod] Save Battery with Disabling Button Backlight on Xperia Neo & other Phones

[Hack/Mod] Save Battery with Disabling Button Backlight on Xperia Neo & other Phones
Supported Devices:
Xperia arc and arc S
- .587
- .431
-. 4.0.3
- GB
Xperia Ray
- .587
- .431
-. 4.0.3
- GB
Xperia Neo/V
- .587
- .431
-. 4.0.3
- GB
And Maybe More
What?
Disabling Button Backlight for Battery Saving and Light Life
How?
1. Mount /system as Read and Write
2. Go To /sys/class/leds/button-backlight and change brightness and max_current to "1".
3. Go To /system/etc/hw_config and scroll down a bit. Now Change max_current to "1", too.
4. Reboot. Buttons Light will not light up anymore.
About the Attached File - just extract Disable/enable.zip to sys and than change hw_config.
For Disabling Just change hw_config ---> max_current to 455. ---> Download
[highlight]Hit Thanks is appreciated. It took about 1h to explorer that "Hack". Dont tell me thanks good work - I know that - just use the Thanks button it counts more. Thanks![/highlight]
jader13254 said:
How?
1. Mount /system as Read and Write
2. Go To /sys/class/leds/button-backlight and change brightness and max_current to "1".
3. Go To /system/etc/hw_config and scroll down a bit. Now Change max_current to "1", too.
4. Reboot. Buttons Light will not light up anymore.
Click to expand...
Click to collapse
In step 2, my file structure is
/sys/class/leds then i have more folder called blue...button-backlight-rgb1....button-backlight-rgb 2...green...lcd-backlight and red.
There are no files, just those folders...
[Root explorer force closes when i try to open them]
Pureness build 13 rom, alliance kernel
Suranjan16049 said:
+1
Click to expand...
Click to collapse
Just Try to change in hw config
Sent from my LT18i using xda app-developers app
What to edit?
Code:
LMU AS3676 Configuration
dev=/sys/devices/i2c-0/0-0040/leds
echo 1,40,255,35,35,1,100 > $dev/lcd-backlight/als/curve # ALS curve display BL [grp],[Y0],[Y3],[K1],[K2],[X1],[X2]
echo 2,85,0,128,128,200,201 > $dev/button-backlight-rgb1/als/curve # ALS curve key LED 1 [grp],[Y0],[Y3],[K1],[K2],[X1],[X2]
echo 2,85,0,128,128,200,201 > $dev/button-backlight-rgb2/als/curve # ALS curve key LED 2 [grp],[Y0],[Y3],[K1],[K2],[X1],[X2]
echo 3,100,255,21,21,10,100 > $dev/red/als/curve # ALS curve RGB(red) [grp],[Y0],[Y3],[K1],[K2],[X1],[X2]
echo 3,100,255,21,21,10,100 > $dev/green/als/curve # ALS curve RGB(green) [grp],[Y0],[Y3],[K1],[K2],[X1],[X2]
echo 3,100,255,21,21,10,100 > $dev/blue/als/curve # ALS curve RGB(blue) [grp],[Y0],[Y3],[K1],[K2],[X1],[X2]
echo 1,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 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
echo 900 > $dev/button-backlight-rgb1/max_current #Max current in uA
echo 900 > $dev/button-backlight-rgb2/max_current #Max current in uA
# TI BQ275xx firmware loader
bq275xx_fwloader
It may be that 4.0.4 ICS is not compatable with this mod, but thanks for the share
Sent from my MT15i using xda premium
Is it really save a battery...
Because I think this backlight not use as much power of battery...
Sent from my MT11i using xda app-developers app
Neo V has two button backlight, so if you own a Neo V, or if you are using a rom like pureness (which developer has neo V)...you will find these settings rgb1 and rgb2.
I have a Neo, but I use pureness so I must edit both.
So, go to
Go To /sys/class/leds/button-backlight-rgb1 and change brightness to 0 and max_current to "1". Do the same in the folder "button-backlight-rgb2.
Then Go To /system/etc/hw_config.sh and scroll down all the text. In the last block you have (not directly in order):
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
change to
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
then under some lines get
echo 900 > $dev/button-backlight-rgb1/max_current #Max current in uA
echo 900 > $dev/button-backlight-rgb2/max_current #Max current in uA
change to
echo 1 > $dev/button-backlight-rgb1/max_current #Max current in uA
echo 1 > $dev/button-backlight-rgb2/max_current #Max current in uA
-------------------------------------------------------------------------
@jader13254: was this thread on another section? I remember I posted somewhere... anyway I tried to suggest your mod to ThilinaC more times, but he seemed not to hear me... are there any bad consequences from this mod?
And what about battery life?
Extended for 15 min?
mati865 said:
And what about battery life?
Extended for 15 min?
Click to expand...
Click to collapse
Yes Maybe 5% Now That is Something
Sent from my LT18i using xda app-developers app
I'm using init.d script instead of editing the hw_config. When u want to enable it later on, just delete the script. Works on my I-Scream 587. Also works on my friend's arc s, but need to edit it a bit.
But the concept is mostly the same.
Code:
#!/system/bin/sh
#added by emannxperia on 19 Sept 2012
if [ -e /sys/class/leds/button-backlight-rgb1/brightness ]; then
echo "1" > /sys/class/leds/button-backlight-rgb1/brightness
fi
if [ -e /sys/class/leds/button-backlight-rgb1/max_current ]; then
echo "1" > /sys/class/leds/button-backlight-rgb1/max_current
fi
if [ -e /sys/class/leds/button-backlight-rgb2/brightness ]; then
echo "1" > /sys/class/leds/button-backlight-rgb2/brightness
fi
if [ -e /sys/class/leds/button-backlight-rgb2/max_current ]; then
echo "1" > /sys/class/leds/button-backlight-rgb2/max_current
fi
it worked Thanks
neo v cm 9
I think the backlight is quite useful too to disable it.
However may I know if there is any way to disable Home key during sleep mode? To wake the phone, simply just press the Power key at the side.
I hate to see my phone always accidentally turned on when I put it in my pocket (somehow because of wearing tight jeans, Home key can be accidentally pressed).
Thanks
jeopardise said:
I think the backlight is quite useful too to disable it.
However may I know if there is any way to disable Home key during sleep mode? To wake the phone, simply just press the Power key at the side.
I hate to see my phone always accidentally turned on when I put it in my pocket (somehow because of wearing tight jeans, Home key can be accidentally pressed).
Thanks
Click to expand...
Click to collapse
+1 Thats why my battery drains in my jeans
Sent from my LT18i using xda app-developers app
jeopardise said:
I think the backlight is quite useful too to disable it.
Thanks
Click to expand...
Click to collapse
Why? It lights only when the screen is on...or not?
Is the backlight really signficative for the battery economy?
jader13254 said:
Supported Devices:
Xperia arc and arc S
- .587
- .431
-. 4.0.3
- GB
Xperia Ray
- .587
- .431
-. 4.0.3
- GB
Xperia Neo/V
- .587
- .431
-. 4.0.3
- GB
And Maybe More
What?
Disabling Button Backlight for Battery Saving and Light Life
How?
1. Mount /system as Read and Write
2. Go To /sys/class/leds/button-backlight and change brightness and max_current to "1".
3. Go To /system/etc/hw_config and scroll down a bit. Now Change max_current to "1", too.
4. Reboot. Buttons Light will not light up anymore.
About the Attached File - just extract Disable/enable.zip to sys and than change hw_config.
For Disabling Just change hw_config ---> max_current to 455. ---> Download
[highlight]Hit Thanks is appreciated. It took about 1h to explorer that "Hack". Dont tell me thanks good work - I know that - just use the Thanks button it counts more. Thanks![/highlight]
Click to expand...
Click to collapse
neo v paranoid_android cm10 based lupus kernel
mod/ works on my neo v. thanks. i hope it save a lot of my battery.
EDIT: apparently whenever i restart my phone sys/class/button-backlight files revert back to its original state. im using es file explorer.
I´m beginer and I don't understand:
1. Mount /system as Read and Write
I have to do this in the CWD Recovery or with some root app.
I have CM9 FXP202 ROM
Thank you
jader13254 said:
Supported Devices:
Xperia arc and arc S
- .587
- .431
-. 4.0.3
- GB
Xperia Ray
- .587
- .431
-. 4.0.3
- GB
Xperia Neo/V
- .587
- .431
-. 4.0.3
- GB
And Maybe More
What?
Disabling Button Backlight for Battery Saving and Light Life
How?
1. Mount /system as Read and Write
2. Go To /sys/class/leds/button-backlight and change brightness and max_current to "1".
3. Go To /system/etc/hw_config and scroll down a bit. Now Change max_current to "1", too.
4. Reboot. Buttons Light will not light up anymore.
About the Attached File - just extract Disable/enable.zip to sys and than change hw_config.
For Disabling Just change hw_config ---> max_current to 455. ---> Download
[highlight]Hit Thanks is appreciated. It took about 1h to explorer that "Hack". Dont tell me thanks good work - I know that - just use the Thanks button it counts more. Thanks![/highlight]
Click to expand...
Click to collapse
---------- Post added at 09:56 AM ---------- Previous post was at 09:40 AM ----------
Ok, I think that to do it, I have tobuy and use Root Explorer, isn't it?
Re: [Hack/Mod] Save Battery with Disabling Button Backlight on Xperia Neo & other Pho
You can try Root browser lite! Or else you can use Notepad ++ on pc for editing!
Sent from my MT11i using xda premium
Ok, I will use Root browser lite.
SquallDNA said:
EDIT: apparently whenever i restart my phone sys/class/button-backlight files revert back to its original state. im using es file explorer.
Click to expand...
Click to collapse
Did you figure out a work around? I'm having the same trouble.
---------- Post added at 09:14 AM ---------- Previous post was at 09:09 AM ----------
eljuanen said:
I´m beginer and I don't understand:
1. Mount /system as Read and Write
Click to expand...
Click to collapse
Just root app. You can use 'Es File Explorer' App. Change settings to enable superuser. (Device must be rooted)
Go to Settings>Root Settings>
Check 'Root Explorer' and 'Mount File System'
then follow jaders steps listed above
Re: [Hack/Mod] Save Battery with Disabling Button Backlight on Xperia Neo & other Pho
Hi Jader...Do we hav this mod attached in ultimateHd3..? Or I hav to do it my self..cause m using Uhd..
Sent from my MT11i

[Tutorial]How to Disable Button Backlight

While Browsing the Neo\Neo V forum
i noticed several posts
asking about how to disable button backlight
specially in JB 4.2.2 threads
so i decided to create a tutorial to help you people solve this problem
PREREQUISITE
1. A Phone :laugh:
2. Root Explorer
3. Brain(most essential) :silly:
PROCEDURE
1. Start your phone
2. Open Root Explorer
3. Goto Root\system\etc
4. Open hw_config.sh
5. Scroll Down to the Last line and add these lines after it.(in the line after last line)
6. # Button Backlight Configuration
7. echo 1 > $dev/button-backlight/max_current
8. Save the file
9. Restart your phone
10. Enjoy
Hit Thanks
Nice guide, you can do this without Root Explorer too, using the default CM File Manager with enabled root access
mikeioannina said:
Nice guide, you can do this without Root Explorer too, using the default CM File Manager with enabled root access
Click to expand...
Click to collapse
by root explorer i mean any file explorer with root access
not the root explorer app
avinashrocks1990 said:
by root explorer i mean any file explorer with root access
not the root explorer app
Click to expand...
Click to collapse
Ok then. I added a link to this guide in the first post in my cm10.1 thread.
avinashrocks1990 said:
While Browsing the Neo\Neo V forum
i noticed several posts
asking about how to disable button backlight
specially in JB 4.2.2 threads
so i decided to create a tutorial to help you people solve this problem
PREREQUISITE
1. A Phone :laugh:
2. Root Explorer
3. Brain(most essential) :silly:
PROCEDURE
1. Start your phone
2. Open Root Explorer
3. Goto Root\system\etc
4. Open hw_config.sh
5. Scroll Down to the Last line and add these lines after it.(in the line after last line)
6. # Button Backlight Configuration
7. echo 1 > $dev/button-backlight/max_current
8. Save the file
9. Restart your phone
10. Enjoy
Hit Thanks
Click to expand...
Click to collapse
now the hw.confiq.sh changed look and tell me how can you change the values that you said
see
default
at neo v
# LMU AS3676 Configuration
dev=/sys/devices/i2c-0/0-0040/leds
echo 900 > $dev/button-backlight-rgb1/max_current #Max current in uA
echo 900 > $dev/button-backlight-rgb2/max_current #Max current in uA
besttt said:
now the hw.confiq.sh changed look and tell me how can you change the values that you said
see
default
at neo v
# LMU AS3676 Configuration
dev=/sys/devices/i2c-0/0-0040/leds
echo 900 > $dev/button-backlight-rgb1/max_current #Max current in uA
echo 900 > $dev/button-backlight-rgb2/max_current #Max current in uA
Click to expand...
Click to collapse
no need to edit those lines
just add the lines i have said in the end
and it will work
@besttt
logcat google talk fc
avinashrocks1990 said:
While Browsing the Neo\Neo V forum
i noticed several posts
asking about how to disable button backlight
specially in JB 4.2.2 threads
so i decided to create a tutorial to help you people solve this problem
PREREQUISITE
1. A Phone :laugh:
2. Root Explorer
3. Brain(most essential) :silly:
PROCEDURE
1. Start your phone
2. Open Root Explorer
3. Goto Root\system\etc
4. Open hw_config.sh
5. Scroll Down to the Last line and add these lines after it.(in the line after last line)
6. # Button Backlight Configuration
7. echo 1 > $dev/button-backlight/max_current
8. Save the file
9. Restart your phone
10. Enjoy
Hit Thanks
Click to expand...
Click to collapse
Sent from my MT11i using xda premium
Nice but its already excist in Xperia Arc forum by @jader13254
:::[ Pandemic Quote.:: Im The Godfather Of St Octane TF Packs !!
Press Thanks If You Like My Work/Advice !!!
Pandemic said:
Nice but its already excist in Xperia Arc forum by @jader13254
:::[ Pandemic Quote.:: Im The Godfather Of St Octane TF Packs !!
Press Thanks If You Like My Work/Advice !!!
Click to expand...
Click to collapse
It's okay I didn't knew that
And it was necessary because the forum was flooded by post asking about how to disable the button backlight
Sent from my Xperia Neo V using Tapatalk 2
But it does not work on GB.
mlotek01 said:
But it does not work on GB.
Click to expand...
Click to collapse
post your hw_config.sh
# 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,770 > $dev/button_min_vals # default = 0,100,300,600,700
echo 99,199,470,769,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=1
val_freq=0
val_threshold=4
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.
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,40,255,35,35,1,100 > $dev/lcd-backlight/als/curve # ALS curve display BL [grp],[Y0],[Y3],[K1],[K2],[X1],[X2]
echo 2,85,0,128,128,200,201 > $dev/button-backlight-rgb1/als/curve # ALS curve key LED 1 [grp],[Y0],[Y3],[K1],[K2],[X1],[X2]
echo 2,85,0,128,128,200,201 > $dev/button-backlight-rgb2/als/curve # ALS curve key LED 2 [grp],[Y0],[Y3],[K1],[K2],[X1],[X2]
echo 3,100,255,21,21,10,100 > $dev/red/als/curve # ALS curve RGB(red) [grp],[Y0],[Y3],[K1],[K2],[X1],[X2]
echo 3,100,255,21,21,10,100 > $dev/green/als/curve # ALS curve RGB(green) [grp],[Y0],[Y3],[K1],[K2],[X1],[X2]
echo 3,100,255,21,21,10,100 > $dev/blue/als/curve # ALS curve RGB(blue) [grp],[Y0],[Y3],[K1],[K2],[X1],[X2]
echo 1,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 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
echo 900 > $dev/button-backlight-rgb1/max_current #Max current in uA
echo 900 > $dev/button-backlight-rgb2/max_current #Max current in uA
# TI BQ275xx firmware loader
bq275xx_fwloader
echo 1 > $dev/button-backlight/max_current
It's better to attach text page instead huge post..
The lamps do not light up when buttons are pressed and I have removed the line in the file. Thank you for helping me
Envoyé depuis mon Super Arc à flèche nommé Arc S.
on CM10 works perfect.
@avinash thanks for reply in my pm..is it possible that keylight could be kernel related? Because when I use the old pacman 4.2.2 kernel by shardul, the keylight is gone. When I used the pacman nAa-03 based kernel inside rom zip the keylight is present..I already PM you the download link for pacman 4.2.2 nightly build for 2011 Xperia..maybe you can test the rom for your device, its working good..
For me Linus Torvalds is the greatest man on earth
bitoyz13 said:
@avinash thanks for reply in my pm..is it possible that keylight could be kernel related? Because when I use the old pacman 4.2.2 kernel by shardul, the keylight is gone. When I used the pacman nAa-03 based kernel inside rom zip the keylight is present..I already PM you the download link for pacman 4.2.2 nightly build for 2011 Xperia..maybe you can test the rom for your device, its working good..
For me Linus Torvalds is the greatest man on earth
Click to expand...
Click to collapse
no bro
keylight has nothing to do with kernel
they are two separate builds that you are using although they are based on similar source code
the hw_config.sh isn't modified in the link that you pm me
just edit the hw_config.sh your problem will be solved
it's not a big deal
The operation failed
Gaks said:
The operation failed
Click to expand...
Click to collapse
Its your file explorer's problem
Sent from my Xperia Neo V using Tapatalk 4 Beta

Categories

Resources