[SK17i] + CM7 Bright LED (back + menu buttons), solution - Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A

Since I can't post in the Development-thread due to my post count being to low I'll write here. Cred goes to eidos on swedroid.se
By altering hw_config.sh you can make the strong LED-light on the back and menu button
[system root]/etc/hw_config.sh (check permissions before and after modifying making sure that they are the same)
Make a backup of this file before editing.
Replace the following rows in using Root Explorer (activate Read/Write-mode) and text editor (by longpressing "hw_config.sh" and choose "Open With" and then "Text Editor")
echo 2000 > $dev/button-backlight-rgb1/max_current
echo 2000 > $dev/button-backlight-rgb2/max_current
with this single row
echo 2000 > $dev/button-backlight/max_current
then press menu and "Save & Exit" and reboot your phone (after checking the permissions again).
If this doesn't change the brightness you probably didn't have the right permissions after saving the file.

Related

[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

Built in battery monitoring?

Messing about in the task manager (Long press of home > the pie graph icon > storage -> start monitoring) this is now creating a text file on the sdcard.
It reads:
Code:
12:57:56,0,true,84,3990
12:58:27,1,true,84,4079
12:58:58,2,true,84,4079
12:59:30,3,false,84,4071
13:0:1,4,false,84,4078
13:0:32,5,false,84,4075
13:1:3,6,false,84,4077
13:1:38,7,false,84,4076
13:2:9,8,false,84,4068
13:2:43,9,false,84,4069
13:3:13,10,false,84,4077
13:3:45,11,false,84,4078
13:4:18,12,false,84,4072
13:4:52,13,false,84,4066
13:5:22,14,false,84,4071
13:5:56,15,true,84,4063
13:6:30,16,false,83,4072
13:7:1,17,false,83,4075
13:7:34,18,false,83,4071
13:8:8,19,false,83,4078
13:8:38,20,false,83,4069
13:9:9,21,false,83,4066
13:9:43,22,false,83,4068
13:10:19,23,false,83,4064
13:10:53,24,false,83,4060
13:11:23,25,false,83,4078
13:11:55,26,false,83,4071
13:12:28,27,false,83,4068
13:13:2,28,false,83,4073
13:13:34,29,false,83,4063
13:14:5,30,true,83,4065
13:14:39,31,true,83,4065
13:15:10,32,true,83,4053
13:15:40,33,false,83,4053
13:16:12,34,false,83,4059
13:16:45,35,false,83,4064
13:17:19,36,true,83,4062
13:17:50,37,true,83,4049
13:18:23,38,true,83,4052
Anyone know what the values are? Obviously time/unknown/unknown/percent/mV?

Problem Button Backligh witch codename 9.3 no light

hi guys, sorry for my English.
I have installed the codename 9.3 and since I have not installed this light in the buttons (the two middle stripes)
probe to this thread
http://forum.xda-developers.com/showthread.php?t=1695362
and modifying thousand times hw_configh.sh and this tutorial
Below procedure actually work for me on my XPERIA Neo V (MT11i) with codename 9 ROM
XPERIA Neo V has two backlight behind home buttons one coded as rgb1 and other as rgb2 I'm going to disable both
1. This step will persist the values after reboot and completely disable the LED backlights
Go to folder /etc
Open file hw_config.sh
2. Go to line "echo 1 > $dev/button-backlight-rgb-1/als/enable"
Change echo to 0 like "echo 0 > $dev/button-backlight-rgb-1/als/enable"
3. Go to line "echo 1 > $dev/button-backlight-rgb-2/als/enable"
Change echo to 0 like "echo 0 > $dev/button-backlight-rgb-2/als/enable"
4. Now Go to line "echo 900 > $dev/button-backlight-rgb1/maxcurrent"
Change echo to 1 like "echo 1 > $dev/button-backlight-rgb-1/maxcurrent"
5. Now Go to line "echo 900 > $dev/button-backlight-rgb2/maxcurrent"
Change echo to 1 like "echo 1 > $dev/button-backlight-rgb-2/maxcurrent"
in folders button-backlight-rgb1 and 2
modify the brightness to 255 and reset back to 0 not to do
Just delete "20disable-button-backlight" in init.d folder & reboot. No need to edit hw_config.sh, quite easy.
Also, this thread please. No need to open new thread with the same topic.
works! but when lock screen no longer works. Back to work temporarily to adjust the screen brightness, I think it has something to do with the automatic brightness
works! but when lock screen no longer works. Back to work temporarily to adjust the screen brightness, I think it has something to do with the automatic brightness

Turn Off Backlight Button Android Oreo

how tu turn off backlight button hw on android oreo?
i already use this step
changing /sys/class/leds/button-backlight/brightness" file from 40 to 0 and
echo "0" > /sys/class/leds/button-backlight/brightness using terminal emutor
both step are success but its like temporary. just few minute then button light is lighting up.
thank you
set the permission to r-r-r- and then it would be ok

Automated TWRP Nightly Backup

Love flashing @Travisholt92 's Custom ROMs but want to make sure you have a backup on hand? Here's your solution.
1) Download Tasker
2) Open Tasker, under profiles tab click the + button in the bottom right corner
3) Click Time, set a time you'd like to perform a backup. (Both start and end times make the same [i.e. 4AM;4AM])
4) Click the back button once time is selected, then click the + on the new task button
5) Type "Nightly Backup" and click the ✓
6) In the "Task Edit" window click the +, scroll down to "code"
7) Enter
Code:
rm -rf [COLOR="Red"]/storage/2151-1D18/TWRP/BACKUPS/LGMP2602ef1e4ad/nightlybackup*[/COLOR];
chmod 664 /cache/recovery;
echo "set tw_storage_path /external_sd";
echo "backup SDBOM nightlybackup \ncmd reboot" > /cache/recovery/openrecoveryscript
Note: Go into a Root Browser add a folder in your backup location called "nightlybackup". Copy the location of the folder and paste it into the red area specified, add the * after
8) Check off "Use Root"
9) Go back to the previous (Task Edit Screen) and press the + button again, scroll down and click "System" and then "Reboot"
10) Select "Type" as Recovery
11) Finally, press the ► button in the bottom left of your screen. It should reboot, backup and then reboot automatically again (May prompt to press power button as usual)
Note: I set my backup at 4AM after my Titanium Backup at 3AM so my phone is completely backed up and rebooted for my alarms to go off in the morning!
This code will also remove the previous Nightly Backup in that folder to be replaced with the new one upon Reboot to Recovery so you don't max out your storage! Enjoy!
Credit to @MishaalRahman for the original Tasker source!
Credit to @Travisholt92 for making awesome Custom ROMs

Categories

Resources