[Q] Set cpu usage by app - Android General

When I use some apps my Nexus overheats a lot after a little time so I was wondering if it is possible to underclock the cpu only when I open those apps and set it back to normal when the app is closed.
Something like:
Code:
Event:App is launched{
SetMaxCpuFreq = something_not_too_high
}
Event:App is closed{
SetMaxCpuFreq = back_to_normal
}
Thanks!

gyosko said:
When I use some apps my Nexus overheats a lot after a little time so I was wondering if it is possible to underclock the cpu only when I open those apps and set it back to normal when the app is closed.
Something like:
Code:
Event:App is launched{
SetMaxCpuFreq = something_not_too_high
}
Event:App is closed{
SetMaxCpuFreq = back_to_normal
}
Thanks!
Click to expand...
Click to collapse
If you are familiar with Tasker, you can do this by creating a profile for all of those apps to set CPU to a desired frequency when using those apps.

orville87 said:
If you are familiar with Tasker, you can do this by creating a profile for all of those apps to set CPU to a desired frequency when using those apps.
Click to expand...
Click to collapse
I didn't know tasker could do that too,thanks!
I'll give it a try.

Related

[Q] Will deleting an overclock app reset clock speed?

Ok, so, on my LG Vortex (rooted) its getting to the point I can't even play angry birds, too laggy. I'm poor, try to save money whenever possible, so I got a free overclock app that looked promising, and wasn't a demo/trial.
Market Link
It works great, however, just setting the clock speed up one level, my phone's getting really warm, and its unnerving me. I'd rather not have to replace it. Thing is tho, I've changed a lot of options, trying to find a good balance, but its been a few days so I don't exactly remember what the defaults were. So, my question is, if I delete the app, will it reset my CPU MHz? And if not, how would i set it back to normal?
Thanks for any help you guys can provide.
Everything should get set back to defaults if you uninstall the app. Another way would be to go to settings->applications->manage applications->overclockwidget->clear cache and data->reboot.
If you want to try a different free app to adjust the cpu speed, there's CPUBoostLite which has a widget which shows the cpu speed and battery temp. Another would be No-Frills CPU Control but does not show the batt temp. An app like Battery Monitor Widget can though along with the battery's current(mA) draw.
MongooseHelix said:
Everything should get set back to defaults if you uninstall the app. Another way would be to go to settings->applications->manage applications->overclockwidget->clear cache and data->reboot.
If you want to try a different free app to adjust the cpu speed, there's CPUBoostLite which has a widget which shows the cpu speed and battery temp. Another would be No-Frills CPU Control but does not show the batt temp. An app like Battery Monitor Widget can though along with the battery's current(mA) draw.
Click to expand...
Click to collapse
If the app achieved the overclock by altering a system file, uninstalling the app will not change anything.
File changes made by an application will not get reverted on their uninstallation.
The app doesn't have a revert function?
Dark3n said:
If the app achieved the overclock by altering a system file, uninstalling the app will not change anything.
File changes made by an application will not get reverted on their uninstallation.
The app doesn't have a revert function?
Click to expand...
Click to collapse
If the cpu speed isn't getting "set on boot" then each reboot will restore to default values. If it is, then either uninstalling or clearing the app's data will prevent that from occurring. The kernel/ramdisk(boot.img) resets the cpu to whatever is set as the default which is why apps like setcpu or cm7 cpu controls use the "set on boot" option to retain settings through a reboot.
Off-topic but your SD Maid app is great Dark3n. Been using it for a while now with the unlocker.
I had set on reboot checked for a while, but not anymore. Would that change anything?
mtmerrick said:
I had set on reboot checked for a while, but not anymore. Would that change anything?
Click to expand...
Click to collapse
That option, if checked, just makes it so whatever values you set survive through a reboot. Basically used once a good set up is found so you won't have to redo it each time. However, with it set you run the risk of getting into a bootloop if you overclock too much as you wouldn't be able to lower it. So always make sure the phone is stable before having the changes set on boot.
MongooseHelix said:
If the cpu speed isn't getting "set on boot" then each reboot will restore to default values. If it is, then either uninstalling or clearing the app's data will prevent that from occurring. The kernel/ramdisk(boot.img) resets the cpu to whatever is set as the default which is why apps like setcpu or cm7 cpu controls use the "set on boot" option to retain settings through a reboot.
Off-topic but your SD Maid app is great Dark3n. Been using it for a while now with the unlocker.
Click to expand...
Click to collapse
Thanks ;-).
I thought about it like changing density in the build.prop, is this not possible with clock speed?
Dark3n said:
I thought about it like changing density in the build.prop, is this not possible with clock speed?
Click to expand...
Click to collapse
The settings to change are located in:
Code:
/sys/devices/system/cpu/cpu0/cpufreq/
The familiar ones are scaling_max_freq, scaling_min_freq, scaling_governor, or governor specific setting in a directory named after the governor(i.e. ondemand/up_threshold)
so, wipe app data, uninstall, and reboot, and i'll be good to go? or is there a step i'm missing?
mtmerrick said:
so, wipe app data, uninstall, and reboot, and i'll be good to go? or is there a step i'm missing?
Click to expand...
Click to collapse
You only really need to either uninstall it or wipe it's data to get back to defaults. Uninstalling is probably the simplest and most effective and you can always install it back on or another app to play with over/underclocking.
Thanks guys, you rock. For future reference, what would you guys say the best paid and best free overclock apps are?
mtmerrick said:
Thanks guys, you rock. For future reference, what would you guys say the best paid and best free overclock apps are?
Click to expand...
Click to collapse
Someone else will have to chime in since these days I just use cyanogenmod's built-in cpu settings. I suspect most would recommend setCPU(Paid)...it's certainly the most popular. As far as a free app, I'd personally try No-frills CPU Control. People seem to like it and it has a nice safety feature of auto-disabling set on boot if the phone doesn't shut down properly(ie crashes).
I'd have CM7 if my Vortex were supported. >_>
Thanks for the suggestions, I thanked the best posts.
And I'll let you know how everything worked out after i use it for a day or two.

Cpu scalling widget!

Hello everyone!
I've been seaching for a widget that just by tounching it i can change the Cpu scalling. For example: from interactive to Powered saving...
To do this I have to in setcpu and then change it. I'm looking for something simple but I can't find it.
If any of you guys can help I say thanks
Hmmm...I don't have it installed right now...but I for some reason remember setcpu having Widgets.
Setcpu has a widget. Set it up correctly and it willbshow updates in 5sec intervals I think
Sent from my Transformer TF101 using xda premium
Yep just did it...updates every 5 sec
Sent from my Transformer TF101 using xda premium
Clicking the widget will open up the set cpu app.
d
Try Antutu CPU master.
I tried both widgets from setcpu and Antutu cpu master but the thing is that i was looking for something to change the scaling without entering the programs. "an easy to change" kind of thing.
Well I've search but I was unsuccessful...
Thank you guys anyway for your help. cheers
SWEagle said:
I tried both widgets from setcpu and Antutu cpu master but the thing is that i was looking for something to change the scaling without entering the programs. "an easy to change" kind of thing.
Well I've search but I was unsuccessful...
Thank you guys anyway for your help. cheers
Click to expand...
Click to collapse
I guess you can try Tasker. Takes a little work...but you can definitely make your own widget...to do what you want it to do.
Don't ask me tho...I've no clue on how to use it.
Me too. I don't have a clue how to do that. I'm using now CPU Master and i'm liking it because of the profiles...
I'm pretty sure you could use tasker to change the profile setting. If so you could also create a tasker widget which will allow you to do what you want from the homescreen.....
Haven't looked at tasker in a while, but I remember making profiles which changed the governer based on phone state (screen on/off etc), so it should be possible. I also think you can make widgets to perform any task on push, so a bit of playing around should get it to work.
Heres an old link which may help
http://forum.xda-developers.com/showthread.php?t=1018245

cpu operating higher than set frequency

i was using the Photaf app and while the images were stitching i thought i'd check on the cpu usage, using system tuner.
I noticed that cpu0 was running at 1.18 (set value using CM7 option). cpu1 was running at 1.536.
I am running Hyper sensation (CM7) with the Bricked 2.6.35.14 Kernal
i set my cpu to max out at 1.18.
my phone is the regular Sensation. is this normal?
swift2fly said:
i set my cpu to max out at 1.18
Click to expand...
Click to collapse
In what way? System tuner, other app?
gen129 said:
In what way? System tuner, other app?
Click to expand...
Click to collapse
(set value using CM7 option)
Click to expand...
Click to collapse
I advise you to use some other apps, like latest SetCPU or System Tuner to set the speed.
ok i will try set cpu. what about Daemon Controller? It came with the Rom but i never use it.

An app for per app cpu frequency?

Hello,
Does anyone know an app that can set cpu frequency per app
I mean the active app one, in the front.
Setcpu can set frequency by time and cpu temperature etc..
But not apps.
Thanks
Kigsuha said:
Hello,
Does anyone know an app that can set cpu frequency per app
I mean the active app one, in the front.
Setcpu can set frequency by time and cpu temperature etc..
But not apps.
Thanks
Click to expand...
Click to collapse
But not apps?!!
I think i was able to set freq in setcpu as per individual or group of apps use with the help of profiles.
Hit thanks rather than typing it now Free
parkourkarthik said:
But not apps?!!
I think i was able to set freq in setcpu as per individual or group of apps use with the help of profiles.
Hit thanks rather than typing it now Free
Click to expand...
Click to collapse
I use profile for apps, but it it didn't work.
frequency don't change
but for battery level etc it works

[Q] How to set cpu frequency in CM12 for Oneplus One

Hello , I have a question, I Recently Flashed CM12 Oficial Rom for OnePlus one And i Unlocked Developer Options but when i go to Performance i cannot set cpu frequency like in CM11 , All i have in Performance Tab is Enable per-app profiles. What can i do? Do this rom have Option to set cpu frequency or i have to use a app for that? if i have to use an app What app do you guys recommand to set cpu frequency? No-Frills Cpu seems a little bit outdated , It hasn't been updated since 2013 and it dont works pretty well on Opo , i used it on Oxygen OS. Thanks.
RaZzy3r said:
Hello , I have a question, I Recently Flashed CM12 Oficial Rom for OnePlus one And i Unlocked Developer Options but when i go to Performance i cannot set cpu frequency like in CM11 , All i have in Performance Tab is Enable per-app profiles. What can i do? Do this rom have Option to set cpu frequency or i have to use a app for that? if i have to use an app What app do you guys recommand to set cpu frequency? No-Frills Cpu seems a little bit outdated , It hasn't been updated since 2013 and it dont works pretty well on Opo , i used it on Oxygen OS. Thanks.
Click to expand...
Click to collapse
Came here to search for an answer to more or less the exact question.
How do I change performance modes in Lollipop? What if I want to keep my phone on battery saver all the time?
(Don't play much games that require a lot of CPU, only shoot pictures and surf the web)
I'm looking for the same thing. So far this update sucks.
rollex said:
I'm looking for the same thing. So far this update sucks.
Click to expand...
Click to collapse
It's under settings -battery
I have only 3 profiles there. No way to set up frequencies like before.
rollex said:
I have only 3 profiles there. No way to set up frequencies like before.
Click to expand...
Click to collapse
Just root and use a kernel tuning app like Trickster Mod.
Transmitted via Bacon
timmaaa said:
Just root and use a kernel tuning app like Trickster Mod.
Transmitted via Bacon
Click to expand...
Click to collapse
I would prefer using the system profiles and that was the original question. However I am using SetCPU and my phone is properly rooted but something is overriding the frequencies set by in SetCPU... Clueless.
rollex said:
I would prefer using the system profiles and that was the original question. However I am using SetCPU and my phone is properly rooted but something is overriding the frequencies set by in SetCPU... Clueless.
Click to expand...
Click to collapse
Is there an option in that app to disable external interference with your setup?
Transmitted via Bacon
waterdaan said:
It's under settings -battery
Click to expand...
Click to collapse
Unfortunately, it also lowers screen brightness. I use a custom kernel (Franco's kernel) and FKUpdater to avoid this issue.
Sent from my A0001 using xda Forum

Categories

Resources