Related
I'd like to start this bounty thread with a $50 offering.
The requirement is to hack official HTC Sense roms to be able to set levels of brightness which autobrightness uses.
It could be done via an app, or a file edit, or the way cm6.1 does it. And it should be supported for the future OTA releases.
The only true requirement is that I never have to worry about setting brightness again, after I tweak the brightness values to my own eyes.
(technical: autobrightness adjusts the brightness of the lcd by reading the light level sensor. CM6 allows one to edit the table of brightness vs. light sensor. Sense might implement the autobrightness differently. Regardless of the implementation, the default values of brightness, that autobrightness uses, should be adjustable.)
In for $10
Sent from my PC36100 using XDA App
....have you tried using spare parts..... there is a setting for that in the application
oshizzle1991 said:
....have you tried using spare parts..... there is a setting for that in the application
Click to expand...
Click to collapse
Sorry. No, there isn't.
Bounty updated.
edit your /system/build.prop from
Code:
# default value of brightness
settings.display.brightness=143
to whatever you would like. higher is brighter, lower is darker. xD
if this works for you, heres my donate link.
es0tericcha0s said:
edit your /system/build.prop from
Code:
# default value of brightness
settings.display.brightness=143
to whatever you would like. higher is brighter, lower is darker. xD
if this works for you, heres my donate link.
Click to expand...
Click to collapse
Sorry, what is this?
nabbed said:
Sorry, what is this?
Click to expand...
Click to collapse
It's your build.prop, located in /system, just like he said.
es0tericcha0s said:
edit your /system/build.prop from
Code:
# default value of brightness
settings.display.brightness=143
to whatever you would like. higher is brighter, lower is darker. xD
if this works for you, heres my donate link.
Click to expand...
Click to collapse
Thanks might make that adjustment in my next ROM.
es0tericcha0s said:
edit your /system/build.prop from
Code:
# default value of brightness
settings.display.brightness=143
to whatever you would like. higher is brighter, lower is darker. xD
if this works for you, heres my donate link.
Click to expand...
Click to collapse
That really has nothing to do what I was asking about in the op.
nabbed said:
That really has nothing to do what I was asking about in the op.
Click to expand...
Click to collapse
Try the CM6 nightlies, they have exactly what you are asking for.
dkelle4 said:
Try the CM6 nightlies, they have exactly what you are asking for.
Click to expand...
Click to collapse
The point is to do it in sense roms.
How does it not? that edit in your build prop will set the auto brightness level. Are you looking for an app or something?
Sent from my ADR6300 using XDA App
nabbed said:
I'd like to start this bounty thread with a $50 offering.
The requirement is to hack official HTC Sense roms to be able to set levels of brightness which autobrightness uses.
It could be done via an app, or a file edit, or the way cm6.1 does it. And it should be supported for the future OTA releases.
The only true requirement is that I never have to worry about setting brightness again, after I tweak the brightness values to my own eyes.
(technical: autobrightness adjusts the brightness of the lcd by reading the light level sensor. CM6 allows one to edit the table of brightness vs. light sensor. Sense might implement the autobrightness differently. Regardless of the implementation, the default values of brightness, that autobrightness uses, should be adjustable.)
Click to expand...
Click to collapse
Seems to be exactly what you asked for?
Sent from my ADR6300 using XDA App
nabbed said:
It could be done via an app, or a file edit, or the way cm6.1 does it.
Click to expand...
Click to collapse
He provided what you asked for, edit the file and you got it!
Sent from my HTC Evo 4G using XDA App
I would like this issue to be fixed as well, but am curious to know how much a table would actually help. It seems that it may not be as bright outside as it is inside sometimes, but the sun reflects light a lot worse than a ton of florescent or artificial light does. When i am inside and all the lights are on, i can still read my phone with the brightness at 15%. But when its cloudy outside it needs to be at 100% or its hard to read from a direct angle. I would almost prefer to leave my brightness at 15% all the time, and then use a hardware switch like hitting both volume rockers together to toggle 100% and 15% to change the brightness.
It would be awesome if the evo used the front facing camera to detect the sky behind you or even use the better light senser in a camera, to detect and adjust the brightness. Probably not great for battery.
auradefect said:
He provided what you asked for, edit the file and you got it!
Sent from my HTC Evo 4G using XDA App
Click to expand...
Click to collapse
How does changing that setting qualify for manually adjusting autobrightness values?
Here's how cm6 does it. It creates a table:
Light Sensor level - Brightness
10 - 50
160 - 60
225 - 70
320 - 80
640 - 110
1280 - 140
2600 - 180
infinity - 255(max)
The autobrightness reads the light sensor level and then sets the brightness to the corresponding brightness value.
S4Rs said:
I would like this issue to be fixed as well, but am curious to know how much a table would actually help. It seems that it may not be as bright outside as it is inside sometimes, but the sun reflects light a lot worse than a ton of florescent or artificial light does. When i am inside and all the lights are on, i can still read my phone with the brightness at 15%. But when its cloudy outside it needs to be at 100% or its hard to read from a direct angle. I would almost prefer to leave my brightness at 15% all the time, and then use a hardware switch like hitting both volume rockers together to toggle 100% and 15% to change the brightness.
It would be awesome if the evo used the front facing camera to detect the sky behind you or even use the better light senser in a camera, to detect and adjust the brightness. Probably not great for battery.
Click to expand...
Click to collapse
It works very well in cm6. It's not perfect, but when I was using cm6, I never had to worry about tinkering with brightness.
Moved to General
egzthunder1 said:
Moved to General
Click to expand...
Click to collapse
I'm sorry, how are developers going to find this thread now?
nabbed said:
I'm sorry, how are developers going to find this thread now?
Click to expand...
Click to collapse
Dev is for people posting roms, kernels, software in development, not for posting "requests for development" and is probably why it was moved.
Sent on the go from my HTC EVO
Hi, does anyone know how to fix the camera fps on the original 2.1? Thanks!
khankuan said:
Hi, does anyone know how to fix the camera fps on the original 2.1? Thanks!
Click to expand...
Click to collapse
The best suggestion I can give you is...
Upgrade to 2.2
haha tried.. decided to go back to old rom and charge my phone every 3 days instead of 1.. but camera fix will be pretty nice though
try a different camera app, such as lgcamera. free on the market, and lets you choose fps and stuff.
Oic, will try that when i fix my sbf first :S
hmm okies lgcamera doesnt really help. couldnt even record. i saw dexter mention about the libraries. Is is possible to port the libraries over and will it work just by porting them?
Thanks
Personnally, I set autokiller with others values by changing install-recovery.sh, I overclock to [email protected] vsel and I modify readahead.kb file with 512 value by install-recovery.sh.
For autokiller, it's good to test with app autokiller first.
I have less freeze in records.
If someone is interest about that, I will post my settings in few days.
EDIT : not with 512 value, 2048 is better
Zachary57 said:
Personnally, I set autokiller with others values by changing install-recovery.sh, I overclock to [email protected] vsel and I modify readahead.kb file with 512 value by install-recovery.sh.
Click to expand...
Click to collapse
I don't know about install-recovery.sh. It sounds quite useful. Do you have a link?
How to use install-recovery.sh?
Thanks!!
I just modifiy install-recovery.sh files in /etc/ and I add lines :
#To improve sd card read/write
echo "2048" > /sys/devices/virtual/bdi/179:0/read_ahead_kb
#To modify autokiller settings
echo "3072,2048,9216,15360,15360,20480" > /sys/module/lowmemorykiller/parameters/minfree
I found tip for sd card in another forum and for memorykiller, app autokiller can do it.
I don't know if it's really improve something a lot but I find it's better so, you can try if you want.
wow yes it helped a lot. much smoother now like khal's rom. Thanks again! =)
For me, it's work but I have again small freeze in records. But I think motorola have to do something to fix record. They sell a phone with a 8MP camera but we can't record without freeze.
PS : If you have problems with games that are in sd card change 2048 by 256,512 or 1024 default value is 128 but if you removes lines its come to 128 by itself.
hmm but the 8MP don't have anything to do with video quality?
but that is right.. it's absolutely a cheek that video quality is that low
edit: or did I understand you the wrong way :??
Knoedelkopf said:
hmm but the 8MP don't have anything to do with video quality?
but that is right.. it's absolutely a cheek that video quality is that low
edit: or did I understand you the wrong way :??
Click to expand...
Click to collapse
You understood, I find it's not fair to have a so bad video quality they sell this phone and it's write that it's record at 720p.
Mioze7Ae said:
I don't know about install-recovery.sh. It sounds quite useful. Do you have a link?
Click to expand...
Click to collapse
If I good understood, install-recovery.sh is a startup script so, if you add command to this file, they are execute at startup but I don't know if it's work with superusers commands.
khankuan said:
Hi, does anyone know how to fix the camera fps on the original 2.1? Thanks!
Click to expand...
Click to collapse
I have a friend who also owns an xt720. he told me that once he downloaded an app called vignette(a camera app), the photo taking quality of the camera improved a lot!! but its not free however but he tld me that it was dfinately worth the buy! Hope this helps!!
2.1 allows battery to last 3 days?!
Sent from my XT720 using XDA App
eejin2 said:
2.1 allows battery to last 3 days?!
Sent from my XT720 using XDA App
Click to expand...
Click to collapse
It lasts 3 days?? Im also from singapore and im running rooted stock 2.1 xt720. usually mine lasts for a day. Would the battery calibration app help me?
Good day or night everyone!
I am trying to get below the minimum level of brightness, that can be reached in android 4.2.2 on Nexus 7. To read at night and save battery.
I've read many threads, but found no answer. SreenDim, Lux Auto Brightness and analogs on CM10.1 doesnot lower the level more. They just stop really lowering it beginning from 5 or 10%, depending on measurment they use.
Does this mean, that Nexus 7 brightness can't be lower than the one on original Android Jelly Bean?
Please, don't suggest any screen filters, that are not phisically lowering the LCD backlight lamp's brightness.
Antoron said:
Good day or night everyone!
I am trying to get below the minimum level of brightness, that can be reached in android 4.2.2 on Nexus 7. To read at night and save battery.
I've read many threads, but found no answer. SreenDim, Lux Auto Brightness and analogs on CM10.1 doesnot lower the level more. They just stop really lowering it beginning from 5 or 10%, depending on measurment they use.
Does this mean, that Nexus 7 brightness can't be lower than the one on original Android Jelly Bean?
Please, don't suggest any screen filters, that are not phisically lowering the LCD backlight lamp's brightness.
Click to expand...
Click to collapse
I suppose you could clone somebody's kernel from their git tree and build your own kernel with your mods added.
You might want to follow this post in the M-kernel thread. Not sure if other existing kernels drop the default - try searching in some of the kernel threads.
1. Install M-Kernel
2. Install rootdim
3. Ruin your eyes by staring at screens at night.
Thank you, bftb0 and Keion for fast and very needed answers..
How do you, people, really find this information? ) I was searching the web fo 2 weeks, and couldn't find useful answers...
Sorry for another question, but is it possible to lower brightness the same way on a stock ROM?
Much obliged in advance.
Antoron said:
Thank you, bftb0 and Keion for fast and very needed answers..
How do you, people, really find this information? ) I was searching the web fo 2 weeks, and couldn't find useful answers...
Click to expand...
Click to collapse
I stumbled across that thread the other day while looking for something else.
Antoron said:
Sorry for another question, but is it possible to lower brightness the same way on a stock ROM?
Much obliged in advance.
Click to expand...
Click to collapse
Dunno. Not an expert on this topic. FWIW, I read between the lines in that post that if you lower the minimum a lot, you will probably want to completely turn off auto brightness control, as the minimum brightness interval step size gets (relatively) large so any slewing of brightness will look like bad flickering.
(Sort of make me wonder if many of the "my screen has bad flicker" reports come from the same people that have their brightness turned all the way down...)
Just Download ScreenFilter From Google Play
NO ROOT OR ANYTHING NEEDED
framework-res\res\values\integers.xml
then edit
<integer name="config_screenBrightnessSettingMinimum">1</integer>
<integer name="config_screenBrightnessSettingMaximum">255</integer>
<integer name="config_screenBrightnessSettingDefault">10</integer>
<integer name="config_screenBrightnessDim">1</integer>
Manual steps to lower minimal value
baikews said:
framework-res\res\values\integers.xml
then edit [...]
Click to expand...
Click to collapse
Here's the HowTo for ROM builders: http://forum.xda-developers.com/showthread.php?t=2367412
Maybe there's a tool that does that work for me? :cyclops:
"You have to decompile framework-res.apk, change a value and recompile it."
I need to read the battery current value periodically. On Nexus devices, I do this (in unit uA) by reading
/sys/class/power_supply/battery/current_now
Click to expand...
Click to collapse
Lollipop (API 21) and higher has an API as well:
Code:
BatteryManager bm =(BatteryManager)getSystemService(Context.BATTERY_SERVICE);
bm.getIntProperty(BatteryManager.BATTERY_PROPERTY_CURRENT_NOW);
On most devices, this value changes by use. For example, if you change the brightness of the screen, the current drawn from battery changes proportionately. Unfortunately, on the S5, I only see a fixed score of 450 mA. The sign changes from + to - depending on whether the device is charging or not.
Apart from the 2 methods I listed above for reading this figure, I also checked the files
/sys/class/power_supply/battery/batt_current_ua_now
/sys/class/power_supply/sec-fuelgauge/current_now
Click to expand...
Click to collapse
and got the same results. Further, I verified this using the App Ampere from Play store.
Is the static 450 value by design?
If yes, is there any other way I can read the current value in the way I do on other devices? For example, is there a custom kernel out there that I can flash to fix this feature/bug? Also, are there any other S5 variants that do not have this problem?
Murmuria said:
I need to read the battery current value periodically. On Nexus devices, I do this (in unit uA) by reading
Lollipop (API 21) and higher has an API as well:
Code:
BatteryManager bm =(BatteryManager)getSystemService(Context.BATTERY_SERVICE);
bm.getIntProperty(BatteryManager.BATTERY_PROPERTY_CURRENT_NOW);
On most devices, this value changes by use. For example, if you change the brightness of the screen, the current drawn from battery changes proportionately. Unfortunately, on the S5, I only see a fixed score of 450 mA. The sign changes from + to - depending on whether the device is charging or not.
Apart from the 2 methods I listed above for reading this figure, I also checked the files
and got the same results. Further, I verified this using the App Ampere from Play store.
Is the static 450 value by design?
If yes, is there any other way I can read the current value in the way I do on other devices? For example, is there a custom kernel out there that I can flash to fix this feature/bug? Also, are there any other S5 variants that do not have this problem?
Click to expand...
Click to collapse
This also happens on the S4 i9505, however when you view /sys/class/power_supply/sec-fuelgauge/current_now all I get is a bunch of gibberish. I use a custom kernel, so that can be the issue, but I don't think so.
Enviado de meu GT-I9505 usando Tapatalk
Hi, under product/etc/hwpg there are files for powersaving modes.
If you edit it, you can test your mate9 world first 1ghz gpu for mobile pgones with your favorite games(emulators)
Modify normal cpu policy, or super cpu policy.xml (for powersaving settings) and reboot
Under is example of usage: app added to modified normal_cpu_policy.xml strings is -package name com.dolphinemu.dolphinemu
I found that the max gpu frequency is normally not recheable by phone due to this .xml strings. Which blocking it to 960000000hz
<scenemode name=".*?(hw.performance|dolphinemu*?).*" id="10000">
<cpu_minprofile>1805000</cpu_minprofile>
<cpu_a15_minprofile>2304000</cpu_a15_minprofile>
<gpu_minprofile>1037000000</gpu_minprofile>
<ddr_minprofile>960000000</ddr_minprofile>
<threshold_up>300</threshold_up>
<threshold_down>150</threshold_down>
</scenemode>
Warning, setting max gpu and loading heavy tasks might harm your device.
how long it takes to overheat ?
WieserZ1C said:
how long it takes to overheat ?
Click to expand...
Click to collapse
If my readings of gpu temp sensor ar true, it is about 60°c in 10 min of course cpu usage will also affect this value
Would love to try this but you know warranty and root don't go well together. Anyway how did you managed to run dolphin and what games, i can't seem to get playable fps.
arminbih said:
Would love to try this but you know warranty and root don't go well together. Anyway how did you managed to run dolphin and what games, i can't seem to get playable fps.
Click to expand...
Click to collapse
Zelda wind waker native resolution constant 30fps, even on large arenas
2x resolution sometime little lag on large areas
Fifa 06 2x res. playable after set override cpu to 34
Native res and cpu override to 34 near constant 35fps sometimes sound lagg
My settings: place my ini file to dolphin-emu/config
I just got it to work thx alot. Yaaaaaaay
id suspect over-voltage / temperature protection are in play so i dont see any negative side affects in doing this
virtyx said:
id suspect over-voltage / temperature protection are in play so i dont see any negative side affects in doing this
Click to expand...
Click to collapse
Thats true, if temp gets too high phone just shut down itself. My mate9 never go off after high cpu/gpu usage like mate7 with this mod and its bit colder than mt7
I suppose that this have effect on Android games also, right?
If the GPU throttles due to heat after a gaming session as is, I dread thinking how horrible it will be, when you overclock it.
So please tell me, could I use this to underclock the GPU of this phone? Cuz I play game and it's too hot for me but it's not a heavy game, just a casual game. If yes, please tell me how. Thanks and have a nice day!
lemonade747 said:
So please tell me, could I use this to underclock the GPU of this phone? Cuz I play game and it's too hot for me but it's not a heavy game, just a casual game. If yes, please tell me how. Thanks and have a nice day!
Click to expand...
Click to collapse
Try paste this txt to product/etc/hwpgnormal_cpu_policy or super_cpu_policy this add new profile to your applications
Sample com.yourappname.secondname for another game com.game.game2
<scenemode name=".*?(yourappname|game2*?).*" id="10020">
<cpu_maxprofile>1402000</cpu_maxprofile>
<cpu_a15_maxprofile>1805000</cpu_a15_maxprofile>
<gpu_maxprofile>533000000</gpu_maxprofile>
<threshold_up>300</threshold_up>
<threshold_down>150</threshold_down>
</scenemode>
This will underclock your gpu by half and cpu little bit
gahu777 said:
Try paste this txt to product/etc/hwpgnormal_cpu_policy or super_cpu_policy this add new profile to your applications
Sample com.yourappname.secondname for another game com.game.game2
<scenemode name=".*?(yourappname|game2*?).*" id="10020">
<cpu_maxprofile>1402000</cpu_maxprofile>
<cpu_a15_maxprofile>1805000</cpu_a15_maxprofile>
<gpu_maxprofile>533000000</gpu_maxprofile>
<threshold_up>300</threshold_up>
<threshold_down>150</threshold_down>
</scenemode>
This will underclock your gpu by half and cpu little bit
Click to expand...
Click to collapse
Thanks! I will try this weeken and report soon! :fingers-crossed:
P/S: excuse me but what does "id" number mean? I have to write exactly like that or I could find somewhere? And regarding the app name, I have only one game, the format like this com.myappname.secondname so I write this
<scenemode name=".*?(myappname*?).*" id="10020">
Is it correct? And btw could you please give me the name of the app you're using to show cpu, gpu on the screen? I downloaded a lot of app like that but nothing shows my gpu info, only cpu or I have to run sth heavy then gpu should work?
New id is required for new group off apps, but you can also edit existing id like 10015
Method with new id can be aplied to just one app
The app for monitoring is cool tool
gahu777 said:
New id is required for new group off apps, but you can also edit existing id like 10015
Method with new id can be aplied to just one app
The app for monitoring is cool tool
Click to expand...
Click to collapse
I tried many times but it's not working, gpu doesnt show in any app for me, and cpu doesnt change anything, use app Cool tool as you said but only show like this: CPU:xx%, xxxx mhz and M: xxx mb where x are numbers. It didnt show multi core cpu, didnt show gpu and after I added the new profile, I rebooted then cpu still goes up to 1800mhz. So I think it's not working right?
P/S: my game name is: en.co.atm.unison, just that, it doesnt have any "com" or second name like others.
Check out wind waker wideo with 2x res and gpu set to 800mhz-1ghz, playing it about hour, no slowdowns, this phone is a beast!
https://youtu.be/k2CFkDjGbco
gahu777 said:
Check out wind waker wideo with 2x res and gpu set to 800mhz-1ghz, playing it about hour, no slowdowns, this phone is a beast!
Click to expand...
Click to collapse
Very very cool
I can't found this on my Mate.
albertobom said:
I can't found this on my Mate.
Click to expand...
Click to collapse
The path to profile files is incorrect in my previous post. /product/etc/hwpg/normal_cpu_policy.xml or super_cpu_policy.xml
gahu777 said:
The path to profile files is incorrect in my previous post. /product/etc/hwpg/normal_cpu_policy.xml or super_cpu_policy.xml
Click to expand...
Click to collapse
Bro can you share what app you use to monitor gpu frequency?
Edit: found it but don't know how to use it.