CPU Govenor question/idea - HD2 Android Q&A, Help & Troubleshooting and Genera

Hey guys, ive been testing out the different governors. This is kinda android wide.. but ive only got my trusty HD2 to test on. If an administrator thinks this thread belongs in the Android General, feel free to move it.
So my idea/thoughts:
Ive noticed EVERY govenor doesnt really "scale" the CPU. Once it hits 100% it seems to shoot straight up to the MAX CPU SETTING.. This is redunant, as when one is web browsing, text messaging, calling, file browsing etc etc.. one does not need max CPU settings. All its doing is wasting battery. I can have an extremely smooth phone at 614400 set as max. Except when i play any high res games. So i created a script which sets my max CPU back to 1.6Ghz. I've placed said script on the home screen and i just tap it to run it then launch my game. I tap another script after to set max back to 614400.
So i am wondering if anyone can make a governor that is more "scaling" then immediatly setting the CPU to MAX when the cpu hits 100%. Maybe add some sort of timer, like if the cpu is at max for x amount of time then jump up. Or some other option to allow the CPU to stay at a set lower level. Ive tried all governors and Ondemand with a decent power save bias works. But it biases at frequencies of 96mhz or whatever your min value is. So we should be able to have a power save bias to bias at a set frequency.
My other idea was writting an apk that would see what the foreground app is and then throttle CPU according to user settings. Like say if angry birds is open, it would throttle to 1.6Ghz or whatever MAX cpu setting you have. Then when the app is closed, it would throttle back down. Its pretty much my script but lazified. ;P
Any and all thoughts are welcome this is just a brainstorming thread

Is this a bad idea? Or not possible? Nobody commented
Sent from my HTC HD2 using Tapatalk

I think it's a good idea, wouldn't mind seeing that as an apk
Sent from my HTC Runnymede using XDA

chrisrj28 said:
I think it's a good idea, wouldn't mind seeing that as an apk
Sent from my HTC Runnymede using XDA
Click to expand...
Click to collapse
Seeing which? Making an apk that see's which program is open and throttles accordingly? I would rather have a governor that throttles better. Just dont know how to achieve that. Ive gotten my smartassV2 setting pretty tweaked. Its mostly been in the lower frequencies but lags at a couple of things when texting. Maybe i'll finally cave and learn full fledged java programming and make an apk...

Related

Under/Overclocking the Rooted Hero

Anyone tried it yet?
I'm browsing through the market apps under the search "root" and I'm seeing a couple overclocking apps. Particularly SetCPU and Overclock widget, the latter being a free app.
I'm kinda nervous about what clock speeds the Hero will tolerate. I don't want to risk bricking my phone!
The "free" app on market won't let me clock it past 528. I don't think there is an app per se that can jack it over that speed.
themyst said:
The "free" app on market won't let me clock it past 528. I don't think there is an app per se that can jack it over that speed.
Click to expand...
Click to collapse
Yup i used another app to set it to 575, but the highest it went was 528. actually it was only like 526.XX
The Overclock Widget didn't work at all.
The widgets on the market are bound by the min and max clock values compiled into the kernel I believe.
There's maybe a kernel interface in /sys/ somewhere where you can echo in a clockspeed, but I haven't found it yet.
As for the max it would support? The G1/2 were throttled ~350 if I remember, but it was on this processor, which supported 528mhz, allowing for crazy clock speeds at the expense of battery life.
No idea if this proc will really support anything much over that, you'd be getting into 'true' overclocking territory there, and the potential for damage to the phone would be significantly increased.
[edit]
The usual /sys/devices/system/cpu/cpu0/cpufreq/ directory exists, but it doesn't look like you can just set a speed there in the 'normal' linux fasion:
Code:
# echo 540000 > cpuinfo_max_freq
cannot create cpuinfo_max_freq: permission denied
just download the set cpu or overclock widget
on set cpu activate profiles and make it so its 528 max and 528 min when the screen is on..and 245 max 128 min when the phone is sleeping
here is the free version of set cpu
http://forum.xda-developers.com/showthread.php?t=505419
but buy it if you ahve the money to donate to author
just download the set cpu or overclock widget
on set cpu activate profiles and make it so its 528 max and 528 min when the screen is on..and 245 max 128 min when the phone is sleeping
here is the free version of set cpu
http://forum.xda-developers.com/showthread.php?t=505419
but buy it if you ahve the money to donate to author
Click to expand...
Click to collapse
has this been confirmed to work as advertised on the hero?
johnsongrantr said:
has this been confirmed to work as advertised on the hero?
Click to expand...
Click to collapse
Do you think you could try it and see? I would like to use this, providing it works. Im stuck at work though and cant really play with my phone too much to try it out.
im trying it now ill let you know
Negrito said:
Do you think you could try it and see? I would like to use this, providing it works. Im stuck at work though and cant really play with my phone too much to try it out.
Click to expand...
Click to collapse
I'm at work as well and kinda need my phone for stuff or else I'd be tinkering away.... but when I get home I'll see if it's working or not...
*NOTE* i r dumb in the ways of overclocking so I won't be able to fix code to get this to work
It seems to work when i put it on the slowest my phone goes alot slower and when i set it higher it goes faster but it will also decrease battery performance
thorracing1 said:
It seems to work when i put it on the slowest my phone goes alot slower and when i set it higher it goes faster but it will also decrease battery performance
Click to expand...
Click to collapse
Very cool! I wonder what a good balance between more power with not too much more battery drain would be.
Can't get it to work
Can't get it to work
When I start the app I can see the two bars:
Min is 528 and
Max is 528 as well
I adjust the Minbar to 128 and click
"Set to it!"
Display notification:
"Set new clock successfull"
When I start the app again: No change at all, still
Min is 528 and
Max is 528
Display icon always shows:
527
Any advise?
Thanks
Is their any way to get the overclock to 768 while running the stock hero?
I have mine rooted of course, but I'm limited to 528mhz with setcpu.
Is their anyway to flash something so that max can be lifted?
Thanks.
swears11 said:
Is their any way to get the overclock to 768 while running the stock hero?
I have mine rooted of course, but I'm limited to 528mhz with setcpu.
Is their anyway to flash something so that max can be lifted?
Thanks.
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=690238
Here princess.
Also..
Both include setcpu.txt for Setcpu OC app.. Select "custom" at the very bottom for device. Do not select hero. Or you can select "Auto Detect" at the top, this does not need the setcpu.txt.
*damage537.zip* 537mhz is the default.. scalable to 768 if you use an OC'ing app
*damage768.zip* 768mhz default clock speed -read below
*damage710.zip* 710mhz default clock speed -read below
Both can be scaled from 19.2 to 768mhz..
DAMAGE710--The damage710 will default 710mhz, you must use an OC app to scale it to 768. Use damage710 if your phone can not boot the 768mhz. And dont scale any higher then 710mhz or your phone might reboot.
DAMAGE768--If your phone can boot the 768mhz then either download will work. But if you dont want to use an OC'ing app then the damage768 will scale to 768mhz.
Click to expand...
Click to collapse
well just incase it wasnt gone over , in order to overclock you need a kernel that has been modified to do this. there are several on this forum for the 2.1.
On a side not there is the god kernel that can both be run with or with out the overclocking apps.
I actually beleive the best performance is from the 710 kernel with out an overclocking widget. the widgets seem to introduce lag till they set the clock this is a major annoyance when the phone is woke for an incomming call.
Do a nand backup and test for your self.
kernels located here
http://forum.xda-developers.com/showpost.php?p=6620102&postcount=1
Thanks for the info guys.
I flashed the 710 one ontop of my stock 2.1 rom.
Now I'm looking at the green HTC logo with white background. It hasen't changed for 10 minutes. I think its stuck. Should I be worried?
bobdude5 said:
just download the set cpu or overclock widget
on set cpu activate profiles and make it so its 528 max and 528 min when the screen is on..and 245 max 128 min when the phone is sleeping
here is the free version of set cpu
http://forum.xda-developers.com/showthread.php?t=505419
but buy it if you ahve the money to donate to author
Click to expand...
Click to collapse
set cpu wasn't free on this link
barry.bishop72 said:
set cpu wasn't free on this link
Click to expand...
Click to collapse
Yes it is. Its an attachment.
barry.bishop72 said:
set cpu wasn't free on this link
Click to expand...
Click to collapse
I pulled mine from this rom (http://forum.xda-developers.com/showthread.php?t=691756)
Download the rar and extract. Its under /data/apps

[Q] overlocking lg gt 540

hi, i have the last pc fighter rom, which is based on cm, so i can overlock the phone with that settings
but i wanted to know which are the risks of it
and how do i do it
i mean, the min frequency is at 245 and max at 600, if i put the next higher frequency, do i need to put a higher min frequency too?
is there a rule or something while doing this? i mean, if i high something, i high/low another thing, and stuff ?
would be nice if you could tell me
i want to play smooth on fpse, thingh that i could get with an overlock
thank you!
Facuu said:
hi, i have the last pc fighter rom, which is based on cm, so i can overlock the phone with that settings
but i wanted to know which are the risks of it
and how do i do it
i mean, the min frequency is at 245 and max at 600, if i put the next higher frequency, do i need to put a higher min frequency too?
is there a rule or something while doing this? i mean, if i high something, i high/low another thing, and stuff ?
would be nice if you could tell me
i want to play smooth on fpse, thingh that i could get with an overlock
thank you!
Click to expand...
Click to collapse
Just get setcpu and do what ever you like. Play around with the frequency until you find it unstable
or there are lots of free overclock apps out there but setcpu has the best interface
No need for external app, increse max in small steps to see what is your cpu max, when you found max stabile speed enable set on boot and that is it.
Sent using Tt.

TricksterMod replacement

Do you know any good alternatives for TricksterMod that support OC and undervolting? I'm running latest ParanoidAndroid with M-kernel. Help much appreciated!
Why do you want to use another app? If you read OP of M-Kernel, you will see that only trickster is supported to change parameters. Extract from the OP: "The only app supported for changing any kernel parameters and settings is TricksterMod".
Odp: TricksterMod replacement
I want to try another one, because when I downclock to 1,2 Ghz, there seems to be no direct voltage change option for that frequency, closest is 1170 and 1230 Mhz. So I have no idea which one should I change.
That's the way the nexus 7 gets frequencies. Instead of using specific voltages, it uses an incremental table.
Sent from my Nexus 7 using xda app-developers app
Yep, i've read that tegra uses the table as a reference... Even if there the kernel has clock speeds that directly relate to the one you are going to use, -50mv does not mean a direct -50mv sent to the core. Also, tegra does auto 'cold zone' undervolt when it's capable. Hence, the voltage set contrasted to the frequence set in any software is relative to tegra but not 100% definitive...
Odp: TricksterMod replacement
Thanks, seems like undervolting my Nexus won't be as easy as I thought.
Dont worry too much about it. It's just like your local speed limit, if 40mph/kph you wont stay exactly at 40 all the time, neither always below or always above. It will be a reference and realtime decisions are made based on road conditions. Somewhat simillar here.
Im lucky to have a good chip, able to run at 1.6G with voltages meant for 1.2 stock... Able to push it lower but it starts locking up once in a while. It might take a few days so have fun! Remember to backup anything important just in case =>

Interactive Governor Tuning

Hi all,
Following on from soniCron's good work on the HTC EVO 4G LTE and then the Nexus 5X
HTC EVO click here
Nexus 5x click here
I was wondering if someone cleverer that I would be able to work out what the best settings for the OnePlus 5 with the SnapDragon 835 would be based on the different profiles?
I've noticed by watching the CPU Frequencies in EXKM that they do periodically jump around even when the phone isn't doing anything and using advanced interactive settings like this on other phones, I've managed to get better battery life without taking a hit to performance on the Interactive Governor.
Any help would be appreciated.
For anyone curious, I have taken a little time to have a first crack at this.... Not promising anything amazing as its a first go but you can find my settings within the following google sheets: https://docs.google.com/spreadsheets/d/1xxiWgvDeYNGvGwly4IwJIBQnRCcsW4ZzVFtjVdF2dVI/edit?usp=sharing
If you have EXKM, save the file within the zip to the "ElementalX/gov_profiles" folder that should be present on your phone. You can then go to EXKM, CPU, Governor Options.... and load profile at top right.

Sluggish performance on GPU intensive games?

Just wondering if this is common or not, mainly PUBG runs sluggish even on the lowest graphics setting.
Isopropil said:
Just wondering if this is common or not, mainly PUBG runs sluggish even on the lowest graphics setting.
Click to expand...
Click to collapse
maybe because of the 2k?
I also tried pubg and yes, it's too damn laggy. lowering the resolution to 720p didn't help much. i guess i have to see how it runs on another device to be sure it's not a crappy app (Even though it looks like it)
I though the same thing, wish there was a easy way of lowering like on Samsung roms.
Isopropil said:
I though the same thing, wish there was a easy way of lowering like on Samsung roms.
Click to expand...
Click to collapse
if you're willing to use the navbar (or mipop if you're on stock), it's as simple as making a couple of shell scripts that change density and resolution, then adding widgets for them. Since probably nobody is looking at the capacitive buttons bug this will probably be the only way to do it
The main problem for gpu intensive games is that they start to lag more the longer u play. Its because (at least on stock roms) the kernel throttles the cpu and gpu way too aggressively at a certain temperature. Same happens to hearthstone.
At beginning i can play a few rounds with 40-60fps, but after some time the kernel throttles the cpu and gpu down by alot even though the device itself only just got a bit warm. Main issue is throttling happens way too soon by way too much. And well some games are not well optimized and dont clear graphic cache often enough. Hearthstone for example has this issue, even if device is cooled, the game drops fps (not as much as with throttling tho) if too many graphical stuff loaded into the graphical ram over time (at least thats how i think it is)
Sent from my ZTE A2017G running V1.2.0B08 using XDA Labs
GodOfPsychos said:
. And well some games are not well optimized and dont clear graphic cache often enough. Hearthstone for example has this issue, even if device is cooled, the game drops fps (not as much as with throttling tho) if too many graphical stuff loaded into the graphical ram over time (at least thats how i think it is)
Click to expand...
Click to collapse
I play PUBG on stock ROM after basically disabling CPU GPU thermal throttling and adjusting the governors to use the full frequency range accordingly. Having a fan of any sort, even a small usb powered one blowing air on the back up to a meter will keep the battery under around 50degC. The aluminum unibody cools effectively and efficiently with the help of a fan. I use a Tasker task to change the CPU limits and other optimizations before playing.
After eliminating the processor bottleneck the game can run on high settings smoothly. However the game uses 1GB of RAM on high settings that I've tested and the device lags under around 500Mb of free RAM on stock's OOM configuration. So free RAM needs to be able to reach at least 1.5Gb to not cause slow downs. Having already debloated and using greenify with and root commands to disable background user processes, I can play without RAM being an issue. I monitor free RAM and other hardware in real time to check these function without issue.
Having now removed both those bottlenecks I found there's still some lag that can develop after the phone has been playing for a few games or after standby overnight uptime. I've only just started testing changes to Virtual Memory thinking it might be a delay caused there. But the post quote above gave me the thought it could be GPU video memory related. Anyone know where to check in the kernel for how much RAM is reserved for GPU on the Axon 7?
I also gave the resolution lowering trick a little try and that didn't seem to improve performance at all. I'm still on B32.
Sent from my ZTE Axon 7 using XDA Labs
Mind explaining how to get rid of the CPU/GPU throttle? I just haven't bothered with those kind of things since my Galaxy Nexus days ;_;
Isopropil said:
Mind explaining how to get rid of the CPU/GPU throttle? I just haven't bothered with those kind of things since my Galaxy Nexus days ;_;
Click to expand...
Click to collapse
The background I posted ages ago is here https://forum.xda-developers.com/axon-7/how-to/stock-cpu-gpu-throttling-performance-t3716060
That way doesn't fully disable throttling and just enables a different higher one. I could update the thread if people are interested
Sent from my ZTE Axon 7 using XDA Labs
Infy_AsiX said:
The background I posted ages ago is here https://forum.xda-developers.com/axon-7/how-to/stock-cpu-gpu-throttling-performance-t3716060
That doesn't fully disable throttling and just enables a different higher one. I could update the thread if people are interested.
Click to expand...
Click to collapse
Tbh thats quite an interesting thread for ppl that have either heating issues and want to lower voltages and edit throttling levels or for ppl that would like to have a more consistent performance when gaming. As you mentioned in that thread, i too renamed the 2 thermal config files with .bak at the end. Will test later to see the results.
But i think you could maybe update the thread with a guide for like:
-ppl that want to preserve battery life
-ppl that want to get more consistent performance
-and ppl that want to have a good mix between performance and battery life.
Also in that thread you mentioned disabling vdd restriction (like through kernel adiutor i guess). Is this necessary to really see the full effect of renaming the thermal engine files to .bak? I ask because i saw that inside the thermal engine files, there are also entries for vdd monitoring. So in the end would disabling vdd restriction actually do something? (Since the values from thermal engine files won't be applied at boot anymore after renaming them)
Sent from my ZTE A2017G running V1.2.0B08 using XDA Labs
I get some lag even in Angry Birds 2, never had this on my Sony Xperia XZ Premium. The reason is due to throttling from over heating.
The phone does indeed get hot after some heavy gaming and this is when throttling starts and causing some lag.
GodOfPsychos said:
Tbh thats quite an interesting thread for ppl that have either heating issues and want to lower voltages and edit throttling levels or for ppl that would like to have a more consistent performance when gaming. As you mentioned in that thread, i too renamed the 2 thermal config files with .bak at the end. Will test later to see the results.
But i think you could maybe update the thread with a guide for like:
-ppl that want to preserve battery life
-ppl that want to get more consistent performance
-and ppl that want to have a good mix between performance and battery life.
Also in that thread you mentioned disabling vdd restriction (like through kernel adiutor i guess). Is this necessary to really see the full effect of renaming the thermal engine files to .bak? I ask because i saw that inside the thermal engine files, there are also entries for vdd monitoring. So in the end would disabling vdd restriction actually do something? (Since the values from thermal engine files won't be applied at boot anymore after renaming them)
Click to expand...
Click to collapse
That's some useful suggestions. For each point
- I've already shared that function. Just modify to a lower voltage you prefer. In terms of using it in combo with throttling disabled, that can be more advanced.
- Consistent like powerful? Need to tweak values in the file for full performance. Personally I've edited several profiles of various CPU GPU configs to range from light games to heavy executable from Tasker.
- Really a matter of preference. There isn't really a perfect middle ground. That's why vendors are offering power mode switches for normal use and gaming. Problem there is ZTE's is shipped broken and others still have decided limits. Which as my previous point, I use a basic profile for normal use and switch to suit based on the gaming demand. The method in that thread alone is inefficient as it's moderately powerful but isn't power saving for example.
Yeah I meant in a kernel configuration app like Adiutor. It's rather confusing but IIRC switching on VDD is it's own set of restriction different than unmodified. Removing the files by renaming .bak falls back to some hidden profile as described in that thread. Now I just edit the file for no limits instead and use Tasker to change parameters when needed.
I may post a guide. But I'm not sure how much interest or benefit there is. Hardcore tweakers aren't on stock, it's probably only a small group that prefer stock for particular reasons and are still advanced tweakers. One factor against AOSP though is I've heard repeatedly in the past the GPU driver gaming performance is lacking, don't know if that has changed. I'm all for helping out though, just unsure about useless effort. I welcome questions to get anything working and it's more direct than writing up a whole guide.
Sent from my ZTE Axon 7 using XDA Labs
Infy_AsiX said:
That's some useful suggestions. For each point
- I've already shared that function. Just modify to a lower voltage you prefer. In terms of using it in combo with throttling disabled, that can be more advanced.
- Consistent like powerful? Need to tweak values in the file for full performance. Personally I've edited several profiles of various CPU GPU configs to range from light games to heavy executable from Tasker.
- Really a matter of preference. There isn't really a perfect middle ground. That's why vendors are offering power mode switches for normal use and gaming. Problem there is ZTE's is shipped broken and others still have decided limits. Which as my previous point, I use a basic profile for normal use and switch to suit based on the gaming demand. The method in that thread alone is inefficient as it's moderately powerful but isn't power saving for example.
Yeah I meant in a kernel configuration app like Adiutor. It's rather confusing but IIRC switching on VDD is it's own set of restriction different than unmodified. Removing the files by renaming .bak falls back to some hidden profile as described in that thread. Now I just edit the file for no limits instead and use Tasker to change parameters when needed.
I may post a guide. But I'm not sure how much interest or benefit there is. Hardcore tweakers aren't on stock, it's probably only a small group that prefer stock for particular reasons and are still advanced tweakers. One factor against AOSP though is I've heard repeatedly in the past the GPU driver gaming performance is lacking, don't know if that has changed. I'm all for helping out though, just unsure about useless effort. I welcome questions to get anything working and it's more direct than writing up a whole guide.
Click to expand...
Click to collapse
Well a guide might be useful for many users. Maybe also what your setup in tasker is.
Personally im usually not that into graphic intensive mobile games (except for like shadowgun legends, cool game imo).
I mean i play games while watching youtube or any series sometimes. But its still annoying when games start to lag after like 10 minutes already.
I also play hearthstone alot on my axon 7 since i used to play it alot on my laptop (sadly the game lags way too much now on my laptop due to weak hardware, hence why i play it on mobile now).
About the consistent performance i mentioned earlier, yes i meant as in powerful which keeps the performance without dropping down.
Sadly the performance governor isnt a big help since the aggressive throttling is still active, which makes the governor quite useless if it cant keep up the cpu clock at max.
Anyway, from what i noticed after renaming the 2 thermal files, shadowgun legends for example runs better for a longer period of time than before (it takes longer before the game starts to drop frames significantly)
Sent from my ZTE A2017G running V1.2.0B08 using XDA Labs
With most GPU intensive apps and games like PUBG and Daydream View, I have to disable the Night Light. It provides a noticeable difference in performance.
@ Isopropil,
Hi,
Would you like to post your screenshot here? I experience the same problem and we probably help each other. My phone is A2017U, what about yours?
Thanks in advanceļ¼
Hope to hear you soon!

Categories

Resources