Hi guys!
I don't like my auto brightness settings on my kernel so i would like to change it because it drains battery like hell
I am using ICS 4.0.4 and Siyah kernel 4.1.5. Where are the settings located and how do any changes effect the brightness? Please explain any step made and all the modification made for better battery saving!
This might be a good place to start (I found this via a Google search, BTW).
Edit - And because I'm such a good bloke, here's the post on XDA that post links to.
Ok. Nice. But can i add more items to the code? For example:
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>5</item>
<item>50</item>
<item>100</item>
<item>150</item>
<item>200</item>
<item>255</item>
</integer-array>
There are 6 items instead of 5.
Related
Just want to start off by saying appreciate the great work and time that the dev DaGr8 has put into KIng-Kang Rom.
The Rom is comprised of a mixture of different team's efforts building their original roms.
Credits to these Teams for their work:
Team AOKP
Paranoid Android Crew
Team Insomnia(SmartGuy044&Crew)/JamieD81 for his ongoing contributes to this device!
This thread will be a WIP (work in progress) so if anyone sees and changes that needs to be made for the FAQ to added just comment below/can PM also and I will add the info! If you like my FAQ_ Hit the Thanks Button below!!!
FAQ"s:
Q: Hey is the Rom a Daily Driver or is there some issues?
A: It is really up to you? Most feel it is since quite a few people is using the Rom. Like any Rom made by dev there will be some undetermined bugs still present.
Q: Getting some Reboots/Bootlooping with the Rom:
A: Refer to previous Q&A
Q: Need faster download for gapps: (credit Skypagers)
A: https://www.box.com/shared/5d8d6eae8a7daee16e69
A: Here is a mirror for the optimized gapps: (credit jordant2)
https://rapidshare.com/files/2876435...0511-fixed.zip
A: http://multiupload.biz/16813x2yufcn/...d.biz.zip.html
Here you go beautiful people. Hopefully this helps. (credit yaydaveeson)
Q: Gonna ask the question before everyone else, just wondering if it's gonna be another full wipe or will be able to update without full wipe? (credit roloracer & DaGr8)
A: always the same just system is wiped
Q: So do we have to wipe? (credit to Bradly169)
A: credit to way to many! (Want a good laugh for the day, follow this link!)
http://forum.xda-developers.com/showthread.php?t=1745698&page=61
***Always though, remember on the first page in this thread is to follow the guide DaGr8 puts out if there are issues!!!)***
Q: PAD list apps keeps crashing: (credit to lpsi2000)
A:
Workaround for this issue
prior to going into PA settings
Go to settings / Apps, let it build the applist, when it is done
Go directly to PA settings and try PAD list again and it will work this time.
How to DISABLE/ENABLE Hovering Pointer when using S-Pen: (credit to th3g1z)
http://forum.xda-developers.com/show...&postcount=178
Q: Turn off your capacitive lights as follows: (credit to morrichad & Rob Izzarry)
A:
Must also have Auto-Brightness set to on first.
Go to Display under Settings
Click Custom (put check-mark on this box)
Under Light Levels, Make sure Use Custom is selected which makes Edit Other Levels Available...
Select Edit Other Levels
You're now in the Light Sensor Levels screen.
Click each button labeled under Buttons and enter a value of '0'. (Mine had 255 set for the first two buttons).
Click 'Save and Apply'
In a few seconds the capacitive buttons will turn off. Also, note the Reload Current button just in case. And you will see them turn on briefly during boot but will turn off shortly thereafter.
Now if you want to disable the buttons all together go into this thread and get the mods made by JamieD81 did in DaGr8's other thread:
http://forum.xda-developers.com/show....php?t=1581065 (credit JamieD81)
Q: I can't find how to change camera settings in the default camera? (credit lordbond on the question / Rocket42 on the answer)
A: Set dpi for camera at 240 or 320 and phone mode..settings will show!
Q: Having hard time finding my internal & external sdcard?
A: Under a AOKP Rom usually these sdcard are listed as emmc & sdcard and can be accessed via File Manager app
Q&A:
NAVBAR HIDE IN TABLET MODE: (credit JamieD81)
SCREENSHOTS:
http://yfrog.com/z/es4a7pp
http://yfrog.com/z/j2qynfp
the black bar is only on the homescreen and its half the size of the navbar*atlaest at 160dpi*, when you open apps/games it goes fullscreen completely aswell as if you rotate to landscape. its a wallpaper thing.
ALSO LIVEWALLPAPERS WILL NOT GO FULLSCREEN
Rom Control-Power Menu Options
check off navigation bar options
go to homescreen
HOLD POWER bring up extended power menu
press the far left button in the navbar section
DONE.
power menu toggle -- http://yfrog.com/z/ocjk6gp
want it for phone mode? use apex or nova, both have settings for it.
Q.I'm getting "Unfortunately, the process com.android.phone has stopped". Any ideas on how to fix?(credit to everyone who asked & answered this question)
A:
Go to paranoid settings> slide over to the right for All Apps>scroll down & find the phone app>change them to phone UI and phone dpi make sure its set at 240(or any other custom DPI above 240)
Q: Data not working after flashing rom?
A:
Check your APN settings(refer to next Q&A) or check to make sure your have the proper AT&T/T-mobile/Telus/etc modem flashed (check out flappjaxx AOSP thread for proper Modems & give him his thanks!!!)
Q: Want faster speeds for At&t?(credit Wish777)
A: http://forum.xda-developers.com/showthread.php?t=1684711
Q: Concern about battery life? (credit to arch3lau5)
A: (credit to Wish777)
I use these build prop tweaks...put them in the bottom of your buildprop list.. under System/
These I believe are the MUST have for any android phone, these will help the phone enter deep sleep faster and makes your phone run alittle faster as well...hope it helps
ro.ril.disable.power.collapse=0
pm.sleep_mode=1
debug.performance.tuning=1
video.accelerate.hw=1
wifi.supplicant_scan_interval=180
ro.ril.hsxpa=3
ro.media.enc.jpeg.quality=100
ro.media.dec.jpeg.memcap=8000000
ro.media.enc.hprof.vid.bps=8000000
ro.home_app_adj=1
Q: A Guide for everthing related to the GNote? (credit to bigjoe2675)
A: http://forum.xda-developers.com/showpost.php?p=28040353&postcount=1
morrichad said:
ro.media.enc.jpeg.quality=100
ro.media.dec.jpeg.memcap=8000000
ro.media.enc.hprof.vid.bps=8000000
Click to expand...
Click to collapse
Setting these in your build.prop would actually be decreasing the quality - if they are even used, which I don't believe they are any more. The STOCK bit rate for the Note actually goes up to 20,000,000; far more than the 8,000,000 listed here. And these aren't defined in the build.prop, but the media_profiles.xml (if I remember correctly, it's in /system/etc/) which is used because there's multiple quality profiles; not just one bitrate or quality setting. Stock, the Note can do up 1920x1080p at 30 fps (variable), with stereo audio being recorded at 48KHz at a bitrate of 156,000 (constant). I've verified this by looking at the files I've recorded with MediaInfo on my PC.
As for the JPEG decoding memcap, that is also already set to 20,000,000, once again far greater than the 8,000,000 listed here. I have actually modified my XML file to allow for up to 130% quality which does seem to make a difference, using these settings:
Code:
<ImageEncoding quality="130" />
<ImageEncoding quality="100" />
<ImageEncoding quality="95" />
<ImageDecoding memCap="25000000" />
Earlier in the file I also adjusted this to account for the increased quality (I don't know if this is necessary or not, but it hasn't broken anything):
Code:
<!ATTLIST ImageEncoding quality (130|100|95|90|80|70) #REQUIRED>
Here I am presenting the five different brightness mod to adjust brightness of capacitive button's backlight. Requirements, Procedure and mods are given below.
Requirement-
1 Root explorer or any similar explorer
2 Sharp mind
Procedure-
1 Open the root explorer and go to system/etc. Here you will find a script named as" hw_config.sh ".
2 Open the script or file as the text in text editor with the help of root exploprer.
3 Now scroll down to the last line and after that line add one of the required brightness mod line which one you like into it as given below. (Don't add all lines of different mods. )
4 Now reboot and done.
Five Different brightness mods-
1 Very High Brightness mod-
echo 10000 > $dev/button-backlight/max_current
Click to expand...
Click to collapse
2 High Brightness mod-
echo 7000 > $dev/button-backlight/max_current
Click to expand...
Click to collapse
3 Medium Brightness mod-
echo 4000 > $dev/button-backlight/max_current
Click to expand...
Click to collapse
4 Low Brightness mod-
echo 1000 > $dev/button-backlight/max_current
Click to expand...
Click to collapse
5 Zero Brightness mod-
echo 1 > $dev/button-backlight/max_current
Click to expand...
Click to collapse
Important note:- If any line similar to these lines already exists in script or file then first delete that line or replace it with one of mods.
Recomended and tested successfully with stock kernel, can't say about custom kernels.
Press thanks if you thinks this post is useful to you.
Great
Is this applicable to ray
Sent from my ST18i using xda app-developers app
dheeraj.nijghal said:
Is this applicable to ray
Sent from my ST18i using xda app-developers app
Click to expand...
Click to collapse
Yes, for sure.
i'm using cm10 on my sk17. and in there is a line in the file "echo 500 > $dev/button-backlight/max_current" by default. and the brightness is very high. Tried various times and found that the minimum value that can be given is 150 on cm10. If you want more light, just increase in small steps...
shivamcheat said:
i'm using cm10 on my sk17. and in there is a line in the file "echo 500 > $dev/button-backlight/max_current" by default. and the brightness is very high. Tried various times and found that the minimum value that can be given is 150 on cm10. If you want more light, just increase in small steps...
Click to expand...
Click to collapse
ok thanks.
why this is not f**king working for me ...?!?
ok, had this problem and dont know wheres here the problem
1. i hate bbl (=buttonbacklight) so i disable it with Mini-Ultrabrightness mod and all was fine!
but after changing kernel to kappa kernel (1.6) the bbl was very bright AND NO way to disable it...?!?
---> edited hw_config file like here = no changes
---> flashed Mini-Ultrabrightness second time = no changes
---> make a script with value echo 1 > $dev/button-backlight/max_current / and also tested values for 1 button etc.. = no changes
before it was no problem changing the bbl, but after usig kappa kernel the bright backlight persist, even after flash diffrent kernels
..... MY QUESTION IS: anbody knows whats happenning there?? or haw to diable bbl with a diffrent (safe ) method??
it would be really nice.
thanks. and SFBE (=sorry for bad english)
bejunk said:
ok, had this problem and dont know wheres here the problem
1. i hate bbl (=buttonbacklight) so i disable it with Mini-Ultrabrightness mod and all was fine!
but after changing kernel to kappa kernel (1.6) the bbl was very bright AND NO way to disable it...?!?
---> edited hw_config file like here = no changes
---> flashed Mini-Ultrabrightness second time = no changes
---> make a script with value echo 1 > $dev/button-backlight/max_current / and also tested values for 1 button etc.. = no changes
before it was no problem changing the bbl, but after usig kappa kernel the bright backlight persist, even after flash diffrent kernels
..... MY QUESTION IS: anbody knows whats happenning there?? or haw to diable bbl with a diffrent (safe ) method??
it would be really nice.
thanks. and SFBE (=sorry for bad english)
Click to expand...
Click to collapse
u need to create or edit pre_hw_config.sh
Nice tutorial...
Will try when I get time...
Sent from my Sony Ericsson Xperia Mini Pro(SK17i) using Tapatalk 2
hey guys
wont this only apply to back button????
Not working in mine Xperia mini pro with kappa kernel 1.6
Please help me...
Sent from my Sony Ericsson Xperia Mini Pro(SK17i) using Tapatalk 2
rockstardeepaksharma said:
Not working in mine Xperia mini pro with kappa kernel 1.6
Please help me...
Sent from my Sony Ericsson Xperia Mini Pro(SK17i) using Tapatalk 2
Click to expand...
Click to collapse
Strange because kappa 1.6 is the only custom kernel with which I have tested all these mod and they all work fine with this kernel[kappa 1.6 for simultron].
Mankotialovely said:
Strange because kappa 1.6 is the only custom kernel with which I have tested all these mod and they all work fine with this kernel[kappa 1.6 for simultron].
Click to expand...
Click to collapse
i was using zero brightness trick but it doesnt helped me :'(
rockstardeepaksharma said:
i was using zero brightness trick but it doesnt helped me :'(
Click to expand...
Click to collapse
Under LMU AS3676 Configuration add these lines-
echo 1 > $dev/button-backlight/max_current
echo 0 > $dev/button-backlight/max_brightness
echo 1 > $dev/button-backlight-rgb1/max_current
echo 1 > $dev/button-backlight-rgb2/max_current
Now reboot 2-3 times and between every reboot provide some time also delete any previous lines which are similar to these or simply replace there value with these one.
Interesting thread...
Is there any way guys for the capacitive buttons to have backlight ONLY when we press them, not only every time the screen is on?
Alternative: can we change their backlight timeout?
thx
Mankotialovely said:
Here I am presenting the five different brightness mod to adjust brightness of capacitive button's backlight. Requirements, Procedure and mods are given below.
Requirement-
1 Root explorer or any similar explorer
2 Sharp mind
Procedure-
1 Open the root explorer and go to system/etc. Here you will find a script named as" hw_config.sh ".
2 Open the script or file as the text in text editor with the help of root exploprer.
3 Now scroll down to the last line and after that line add one of the required brightness mod line which one you like into it as given below. (Don't add all lines of different mods. )
4 Now reboot and done.
Five Different brightness mods-
1 Very High Brightness mod-
2 High Brightness mod-
3 Medium Brightness mod-
4 Low Brightness mod-
5 Zero Brightness mod-
Important note:- If any line similar to these lines already exists in script or file then first delete that line or replace it with one of mods.
Recomended and tested successfully with stock kernel, can't say about custom kernels.
Press thanks if you thinks this post is useful to you.
Click to expand...
Click to collapse
i have been facing a problem,i have installed "OpenSEMC-mr2-alpha2"
when i control my brightness the illumination bar light remain full
but in stock ROM when i reduce my brightness the intensity of that illumination bar light also decreases .
it is very annoying if you are doing something in night with low brightness and the illumination bar light is full.
please help
how tot enable ultrabrightest ?
Hello
I'am using SJB 5.5,battery more extravagant than Stock ROM
How to save battery life ?
Sorry my bad English
_ziant_ said:
Hello
I'am using SJB 5.5,battery more extravagant than Stock ROM
How to save battery life ?
Sorry my bad English
Click to expand...
Click to collapse
On setting :
Use 2G only
Disable airplane mode
Change brightness to little dark
Dont use task killer (battery willl drain fast with this )
Add this on build prop line (dnt forget make a backup) :
ro.ril.disable.power.collapse=1
pm.sleep_mode=1
proximity_incall=enable
usb_wakeup=enable
power_supply.wakeup=enable
ro.config.htc.nocheckin=1
with above step you will got ultra battery friendly
hurriX8 said:
On setting :
Use 2G only
Disable airplane mode
Change brightness to little dark
Dont use task killer (battery willl drain fast with this )
Add this on build prop line (dnt forget make a backup) :
ro.ril.disable.power.collapse=1
pm.sleep_mode=1
proximity_incall=enable
usb_wakeup=enable
power_supply.wakeup=enable
ro.config.htc.nocheckin=1
with above step you will got ultra battery friendly
Click to expand...
Click to collapse
Thanks Bro
Can i add this on CM 10 Nightly?
Xperia Ray(ST18i)
CM 10 Nightly
LuPus.urushi.jb9.1]
Im working on modding the auto brightness values in framework-res.apk because i find the stock values to be too dim in a medium lit room and too bright in a dark room.
i find alot of tutorials but they are older so im trying to check in to see if this is still valid.
i used this guide http://forum.xda-developers.com/showthread.php?t=1806602 to decompile and then edited res/values/arrays.xml and then recompiled.
then i used 7zip to copy the META-INF folder and AndroidManifest.xml from the original framework-res.apk to the new one.
so now i want to swap them out and avoid bootloops and stuff.
so i see this guide. http://www.androidtablets.net/threads/how-to-manually-replace-framework-res-apk-on-stock-roms.43716/
should this work?
im not sure how to create a flashable zip... again i see alot of tutorials but they are older so im not sure they are valid and wont bork my phone.
thx
Brian
Ok I manned up and tried it especially since I had a nandroid bavkuo. it looks like it worked ok. It started crashing out after I replaced the file but after a reboot its working so far.
We'll see how it works in varying light conditions.
Brian
i didnt nuke my phone but the lowest brightness is still at 50.... which is too high.
back to the drawing board.... ie dig through the guys flashable zip that did it already here... http://forum.xda-developers.com/lg-g3/development/mod-lower-autobrightness-values-t3054000
Brian
this is more my ramblings and thinking outloud than a question.... but i think i may have found it.
i only edited arrays.xml to this:
Code:
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>10</item>
<item>40</item>
<item>90</item>
<item>130</item>
<item>160</item>
<item>190</item>
<item>205</item>
<item>220</item>
<item>235</item>
<item>245</item>
<item>255</item>
</integer-array>
but i didnt change integers.xml
Code:
<integer name="config_screenBrightnessSettingMinimum">50</integer>
or this
Code:
integer name="config_screenBrightnessDim">50</integer>
so when logging a logcat and covering the sensor, i could see the brightness only get down to 50 after i paused it and scrolled through the log.
now i changed those values both to 10 and im going to test again.
Brian
ok i changed the values in arrays.xml as set above and in integers.xml set the above values to 10 and then followed the guides earlier in the thread and it worked.
while running catlog, i can see the display brightness be commanded down to 10 when i cover the sensors on the top of the phone.
i have the middle ambient light levels pumped up a bit and the low light alot less than stock and it seems to be just about where i can leave it on auto all the time and have good brightness.
if someone wants to move this thread to another section if it is applicable, go ahead.
Brian
Hello guys,
I was upset with screen brightness on my Amazfit watch and with a little research figured out how to set screen brightness with adb command. So here it is:
If You want to know what level of screen brightness is just type this:
adb shell settings get system screen_brightness
It will show You a number (default is 60).
To set screen brightness type:
adb shell settings put system screen_brightness XX (where XX is number between 0 and 255)
P.S. backlight settings on my watch is set to "Always on"
Hope it will help to someone.
You can also modify the framework-res.apk
<integer name="config_screenBrightnessSettingMinimum">0</integer>
<integer name="config_screenBrightnessSettingMaximum">255</integer>
<integer name="config_screenBrightnessSettingDefault">10</integer>
Click to expand...
Click to collapse
and
<integer-array name="config_autoBrightnessLevels">
<item>20</item>
<item>50</item>
<item>300</item>
<item>400</item>
</integer-array>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>10</item>
<item>60</item>
<item>30</item>
<item>0</item>
<item>0</item>
</integer-array>
Click to expand...
Click to collapse
Thanks for info, but i'm not a programmer, and I don't know how to modify that .apk file and where he is.
Could You please explain how to do that?
Thanks
S3V3N said:
You can also modify the framework-res.apk
and
Click to expand...
Click to collapse
Tomelis said:
Hello guys,
I was upset with screen brightness on my Amazfit ......
Click to expand...
Click to collapse
I suppose that this changes the backlight, as it looks to me. But is there any possibility to increase the display itself?
S3V3N said:
You can also modify the framework-res.apk
Click to expand...
Click to collapse
Can you please elaborate how this modification cab be done?!
I am on US firmware v1.3.3a
tibinet said:
I suppose that this changes the backlight, as it looks to me. But is there any possibility to increase the display itself?
Click to expand...
Click to collapse
You won't ever need that in outdoor conditions. It is a transflective display.
Under bright illumination (e.g. when exposed to daylight) the display acts mainly as a reflective display with the contrast being constant with illuminance.
Only in dim and dark ambient situations is an auxiliary transmissive backlight needed. Then your only option is to amp up the backlight, as discussed here
Read More
Update the ROM to 1.3.4f(latest as on date).
It has the option to adjust the brightness.
Your wish has been granted. @tibinet
What is framework???