Related
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.
Hi guys,
ok, I'm a noob in android development / modding / rooting. And yes, my English is not the best, sorry I'm from Germany. I can’t post at the “development” – forums, because I don’t have enough posts yet. Before I’m going to spam, I decided to post in the general forum
So what am I going to do?
I got my Xperia Active (ST17) last week. There are 2 issues that disturbing me.
First the light sensor.
Second the soft key backlight.
So I decided to root my phone and customize these two issues.
One thing I worry about is, how to get back to factory state, if something goes wrong?
I read about the tool “Flashtool”. But for this I need a stock Firmware Rom from Sony Ericsson.
So my question is, is there a stock ROM for my Xperia Active (german language)? And where can I find and download it?
When I'm secured to flash back to factory state, we can talk about how to solve the light sensor and soft key problems.
I would be happy about your support for a noob like me
Best regards
Edit:
My current Firmware Build is "4.0.2.A.0.42". Is there a download source to download this firmware for my xperia active?
For modifying lights you can use "superDim"
Cheers
Sent from my MT15i using Tapatalk
Superdim doesn't work the way it should...
I extracted my 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
This part should do the ambient light sensor and button backlight part.
So my question:
How to modify this config to disable light sensor (and set brightness to 100% fix) and button backlight completely?
Thanks a lot
# LMU AS3676 Configuration
dev=/sys/devices/i2c-0/0-0040/leds
#Sensor on/off. 1 = on, reg 90h
echo 0 > $dev/lcd-backlight/als/enable
# touch-button-backlight
echo 0001 > $dev/button-backlight/max_current
echo 6450 > $dev/red/max_current
echo 7950 > $dev/green/max_current
echo 4500 > $dev/blue/max_current
my setting that im using with my active.. disabled light sensor as well...
echo 0001 > $dev/button-backlight/max_current -set echo 1000 to 8000 for you to dim it... 0001 to turn it off...
duke85 said:
Hi guys,
ok, I'm a noob in android development / modding / rooting. And yes, my English is not the best, sorry I'm from Germany. I can’t post at the “development” – forums, because I don’t have enough posts yet. Before I’m going to spam, I decided to post in the general forum
So what am I going to do?
I got my Xperia Active (ST17) last week. There are 2 issues that disturbing me.
First the light sensor.
Second the soft key backlight.
So I decided to root my phone and customize these two issues.
One thing I worry about is, how to get back to factory state, if something goes wrong?
I read about the tool “Flashtool”. But for this I need a stock Firmware Rom from Sony Ericsson.
So my question is, is there a stock ROM for my Xperia Active (german language)? And where can I find and download it?
When I'm secured to flash back to factory state, we can talk about how to solve the light sensor and soft key problems.
I would be happy about your support for a noob like me
Best regards
Edit:
My current Firmware Build is "4.0.2.A.0.42". Is there a download source to download this firmware for my xperia active?
Click to expand...
Click to collapse
you can google about firmware and then flash it with flashtool
other method is using wotan server ,
watch this = http://youtu.be/ZQIw608rZfI
[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
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
As i keep ending calls unwillingly:
Is there a way to change the sensitivity for the proximity sensor?
Anybody have the same problem?
Using the test in "Xperia Diagnostics" the proximity sensor on my Xperia U on latest FXP is turning on/off at about 15mm, which is a bit too little. When i do the test holding the phone to my ear, there is no constant vibration but turning on and off, which happens during calls too, i guess...
Thanks for any input..
PS:
my ears are quite normal, if some are wondering
raha16 said:
As i keep ending calls unwillingly:
Is there a way to change the sensitivity for the proximity sensor?
Anybody have the same problem?
Using the test in "Xperia Diagnostics" the proximity sensor on my Xperia U on latest FXP is turning on/off at about 15mm, which is a bit too little. When i do the test holding the phone to my ear, there is no constant vibration but turning on and off, which happens during calls too, i guess...
Thanks for any input..
PS:
my ears are quite normal, if some are wondering
Click to expand...
Click to collapse
What build? Cause i got this with FXP 209, and not on any other build...
mirost1 said:
What build? Cause i got this with FXP 209, and not on any other build...
Click to expand...
Click to collapse
i had this problem with 209 and have it in 211 also...
raha16 said:
i had this problem with 209 and have it in 211 also...
Click to expand...
Click to collapse
May be its a common problem for new builds, cause now i am using 206a and have no probs with that.
mirost1 said:
May be its a common problem for new builds, cause now i am using 206a and have no probs with that.
Click to expand...
Click to collapse
I'm running 206a now too, but it is the same at least in "Xperia Diagnostics"... I will try real world usage tomorrow...
Anybody knows, where the settings for the sensor are stored? in the Phone-Application, in the Rom, in the Kernel, .... ?
Is there an app that lets you set the distance for the sensor for our device?
raha16 said:
I'm running 206a now too, but it is the same at least in "Xperia Diagnostics"... I will try real world usage tomorrow...
Anybody knows, where the settings for the sensor are stored? in the Phone-Application, in the Rom, in the Kernel, .... ?
Is there an app that lets you set the distance for the sensor for our device?
Click to expand...
Click to collapse
interesting question, did some googling and found this
http://stackoverflow.com/questions/9403351/how-to-change-android-proximity-sensor-sensitivity
This would solve it - but it's for the Desire:
http://forum.xda-developers.com/showthread.php?t=951858
Can somebody port this to our device?
No change in 206 btw...
Just for info, if someone s having the same issues:
I'm using eXperiance V2 - Rom on munjeni-Kernel now, but the problem remains.
i tried this, but no change:
http://forum.xda-developers.com/showpost.php?p=8888081&postcount=914
AndroSensor-App keeps showing 1cm as distance - can somebody verify this value on other kernels or other Roms?
1cm seems too little distance for my ear...
i get the feeling, i'm the only one, having this problem...?
:crying:
Found this:
https://github.com/rachit-rc96/Vengeance-Kernel-U8500/blob/master/drivers/input/misc/apds9702.c
According to my amateur-interpretion of this link, the settings for the sensor are stored in the kernel?
Can somebody confirm this?
Hello guys in my attemp to fix this really annoying bug (all the time calls were hanging or buttons were pressed) i decided to get my hands dirty and take a look!
So the calibration for the proximity sensor is done in the /system/etc/hw_config.sh
Requirements
ROOT
Root Explorer (or a filemanager of your choice with enables acces to system and edit files as text)
So changed the following lines of the originial hw_config.sh of firmware 6.1.1.B.0.54 ( i think that at every fw is the same configuration please provide feedback)
Code:
# Proximity sensor configuration
dev=/sys/bus/i2c/devices/2-0054/
val_cycle=2
val_nburst=0
val_freq=2
val_threshold=5
val_filter=0
echo $val_cycle > $dev/cycle # Duration Cycle. Valid range is 0 - 3.
echo $val_nburst > $dev/nburst # Numb er of pulses in burst. Valid range is 0 - 15.
echo $val_freq > $dev/freq # Burst frequency. Valid range is 0 - 3.
if `ls /data/etc/threshold > /dev/null`; then
cat /data/etc/threshold > $dev/threshold # Use value from calibration
rm /data/etc/threshold # Remove temp file
else # No value from calibration, use default value
echo $val_threshold > $dev/threshold # sensor threshold. Valid range is 0 - 15 (0.12V - 0.87V)
fi
if `ls /data/etc/filter > /dev/null`; then
cat /data/etc/filter > $dev/filter # Use value from calibration
rm /data/etc/filter # Remove temp file
else # No value from calibration, use default value
echo $val_filter > $dev/filter # RFilter. Valid range is 0 - 3.
fi
to :
Code:
# Proximity sensor configuration
dev=/sys/bus/i2c/devices/2-0054/
val_cycle=3
val_nburst=0
val_freq=2
val_threshold=2
val_filter=0
echo $val_cycle > $dev/cycle # Duration Cycle. Valid range is 0 - 3.
echo $val_nburst > $dev/nburst # Numb er 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.
As for now i think the overall experience of calling is definately better and no random hang up or button pressed so far... Please provide feedback!!!
Thank you for this useful information. I have a Sony Xperia V lt25i.
After display exchange, the proximity sensor always indicated "near" which resulted in black screen when using the telephone.
Anyhow here is what I did to resolve it:
- backup pics
- root phone using towelroot.apk
- install supersu
- install fx explorer
- install fx explorer root addon
THEN:
use fx explorer
... filesystems --> /system / --> root tools -> mount read-write
then go the file
/system/etc/hw_config.sh
and edit textfile
I changed the threshold from 5 to 9
val_threshold=5
then save file
... filesystems --> /system / --> root tools -> mount read-only
restart phone
try or use the app: Phone Tester
ENJOY
---