[Q] Change Default CPU Speed On Boot Permanently - CM7 - myTouch 4G Q&A, Help & Troubleshooting

Like the title says, I was just wondering if there was a way to change the default CPU speed on boot permanently? I know I can use SetCPU, but sometimes that hasn't held through a boot and I had to set the speed manually. So, I was hoping there was just some script somewhere I would have to change. But then I got to wondering, would that be possible from my phone? Would I have to build my own kernel? Or would I just be able to decompile the rom in dsixda's kitchen to change a kernel script? Any help is greatly appreciated!

I use ROM Toolbox. It has a ton of stuff including CPU Control and CPU Profiles (like to make it 691MHz max when the screen is off). And you get a lot of other stuff with ROM Toolbox. But you could say the CPU part is like Set CPU. Don't really know if this answered your question. Hope I helped though.

I'm pretty sure CM7 has a built in CPU setting feature in its Cyanogenmod Settings -> Performance menu. It gives you the option to set on boot as well. I've never played around with it so I'm not sure if it'll give you the same problems you're describing now, but it's worth a shot if you don't want the separate app.

Is your phone rooted?
Sent from my Black Ice'd Glacier using XDA App

c707h3j said:
I'm pretty sure CM7 has a built in CPU setting feature in its Cyanogenmod Settings -> Performance menu. It gives you the option to set on boot as well. I've never played around with it so I'm not sure if it'll give you the same problems you're describing now, but it's worth a shot if you don't want the separate app.
Click to expand...
Click to collapse
I think I remember this too.
--sent from my glacier.

Related

Overclocking Tattoo

Just recently I rooted and flashed a MoDaCo Custom ROM. Excited to take advantage of my new powers, I downloaded the OverclockWidget to see what I can squeeze out of my phone's Qualcomm MSM 7225 heart.
Fresh after installation. The "Min" and "Max" CPU speed bars in the widget only go up to 512MHz which is the actual speed it's ticking away at.
Going into "Advanced Settings" of the widget I defined "my own" frequencies, I checked the box to "Use your frequencies" and then tried to set the Min / Max values to something higher. I granted the super user access each time I was setting it, but the speed displayed on the widget never actually went above 512... what's even stranger - I could see the Min / Max values being set to something completely different (lower) than what I set it to in the first place.
Another thing I notices is that the "Detect frequencies" option doesn't seem to be doing anything. As in, I click it - and nothing happens.
Does anyone know if I'm doing something wrong, or missing something? I would really like to get this going, so any suggestion is greatly appreciated.
http://forum.xda-developers.com/showpost.php?p=6076506&postcount=3
sheik_yerbouti said:
http://forum.xda-developers.com/showpost.php?p=6076506&postcount=3
Click to expand...
Click to collapse
any chance will this be rolled into the 2.1 build?
So it looks like there are no ROMs currently available that have this perflock disabled?
According to my experience with HTC Magic using PERFCLOCK settings actually performs better than adjusting cpu clock with an app.
You CAN indeed change screen-on and scree-off frequencies but you need to do it at the kernel level.
will somebody make an OC kernel?
I'm working on it
Mod. edit: not dev related, moved to general
ralle.gade said:
I'm working on it
Click to expand...
Click to collapse
Some news?

SetCpu Settings?

Mine is
Performance
Min/Max 1.2 ghz
Auto dectect
Whats yours?
Really auto detect? After every kernel dev says that auto detect isn't stable?
Really?
what should i put?
RacerXFD said:
Really auto detect? After every kernel dev says that auto detect isn't stable?
Really?
Click to expand...
Click to collapse
???
you have to use auto-detect for setcpu to detect your availble clock speeds
on-demand is BROKEN
performance will drain your battery abnormally
running at 100 min / whatever max on conservative is the most stable option for this device at the current time
Leave the advanced settings alone also?
jt1134 said:
you have to use auto-detect for setcpu to detect your availble clock speeds
Click to expand...
Click to collapse
not to contradict, but you dont have to use it, you can use the setCPU.txt file and i recommend it
here is the one i use currently with the D02 1250LV kernel, it is nothing more than a simple text file which tells the setCPU app what are valid steppings/scaling so it cannot auto-detect incorrectly as it often does
http://dl.dropbox.com/u/12311939/setcpu.txt
all you have to do is edit it to the steps that match the kernel you load and drop it in the root of the sd card, then go into setCPU, hit softmenu to go to device selection, scroll down and choose custom or manual...i forget what its called...then scroll down to the bottom and tell it to use the setcpu.txt file option and restart....done, no more problems at boot with setCPU
I only use performance when benchmarking. I use on-demand day to day. Set to 1250 max 100 min. I actually read the entire setCPU dev page, I suggest you do also, keeping in mind the limitations of the kernel you choose to load. I do not use on-demand scaling. I do not use profiles either. I do however, after testing my own device, use "set at boot". Two things on that. 1. setCPU now has a safe mode feature to get out of a problem and 2. I also use the setcpu.txt option instead of auto-detect which is hit or miss. Using the setcpu.txt file method (be sure to go to device selection and choose the bottom custom option) setCPU cannot accidentally set itself to the wrong frequency, it gets it's allowed steppings from the file you create.
if you read the setCPU dev page you (not directed at you jt ) will learn all of this and also about the advanced settings....but they work fine as they are for my device/kernel/usage
jamesnmandy said:
not to contradict, but you dont have to use it, you can use the setCPU.txt file and i recommend it
here is the one i use currently with the D02 1250LV kernel, it is nothing more than a simple text file which tells the setCPU app what are valid steppings/scaling so it cannot auto-detect incorrectly as it often does
http://dl.dropbox.com/u/12311939/setcpu.txt
all you have to do is edit it to the steps that match the kernel you load and drop it in the root of the sd card, then go into setCPU, hit softmenu to go to device selection, scroll down and choose custom or manual...i forget what its called...then scroll down to the bottom and tell it to use the setcpu.txt file option and restart....done, no more problems at boot with setCPU
I only use performance when benchmarking. I use on-demand day to day. Set to 1250 max 100 min. I actually read the entire setCPU dev page, I suggest you do also, keeping in mind the limitations of the kernel you choose to load. I do not use on-demand scaling. I do not use profiles either. I do however, after testing my own device, use "set at boot". Two things on that. 1. setCPU now has a safe mode feature to get out of a problem and 2. I also use the setcpu.txt option instead of auto-detect which is hit or miss. Using the setcpu.txt file method (be sure to go to device selection and choose the bottom custom option) setCPU cannot accidentally set itself to the wrong frequency, it gets it's allowed steppings from the file you create.
if you read the setCPU dev page you (not directed at you jt ) will learn all of this and also about the advanced settings....but they work fine as they are for my device/kernel/usage
Click to expand...
Click to collapse
Contradict much?
Nice find there james
Im wondering what would happen if you didnt match the increments in your txt file to the kernels native ones?
Lol, I only speak of what I know to be true you guys have far more knowledge but I tested this on my own device and also used it on the ally I had so I know its good
Sent from my SCH-I500 using XDA App
Id say probably either fc or nothing. Either it would try to hit something it cant and fc or it would discard the step, but then the large jump sau from 200 to 600 skipping 400 may cause an issue
Sent from my SCH-I500 using XDA App
Well, if I can keep mine running stable for a couple of days, with no "permasleeps" then I will give start on boot a try. So far I'm having excellent luck with 1100 max 100 min with conservative. Set to auto, it brought the right figures up immediately. So far the thing is really running great with the 1100 LV kernal and the settings I mentioned above. I'm sure my quadrant will be lower than 1200, but for some reason the 1200 kernal was only stable when I was placing load on the device, actually using it. When it was idle the screen would "permasleep". Very odd. Stress testing on the 1200 LV kernal threw no errors, but I still had idle issues.
SirKronan said:
Well, if I can keep mine running stable for a couple of days, with no "permasleeps" then I will give start on boot a try. So far I'm having excellent luck with 1100 max 100 min with conservative. Set to auto, it brought the right figures up immediately. So far the thing is really running great with the 1100 LV kernal and the settings I mentioned above. I'm sure my quadrant will be lower than 1200, but for some reason the 1200 kernal was only stable when I was placing load on the device, actually using it. When it was idle the screen would "permasleep". Very odd. Stress testing on the 1200 LV kernal threw no errors, but I still had idle issues.
Click to expand...
Click to collapse
Maybe check out the 1200SV as well and/or jt's 1200. Heck I tried them all myself at least briefly
saps said:
Maybe check out the 1200SV as well and/or jt's 1200. Heck I tried them all myself at least briefly
Click to expand...
Click to collapse
The SV is working good so far, but where do you get jt's?
SirKronan said:
The SV is working good so far, but where do you get jt's?
Click to expand...
Click to collapse
Right here: http://forum.xda-developers.com/showthread.php?t=804317
Sorry if it is a noob question but
I have the jt's voodoo kernel and just restored my setcpu from the titanium back up...
the max that it gives me is only 1000000....
I thought It should change to 1200000
how can I change it?
if not what should I do to OC this bad boy?
btw I Used the recommended speed...
Thanks
Zirabius said:
Sorry if it is a noob question but
I have the jt's voodoo kernel and just restored my setcpu from the titanium back up...
the max that it gives me is only 1000000....
I thought It should change to 1200000
how can I change it?
if not what should I do to OC this bad boy?
btw I Used the recommended speed...
Thanks
Click to expand...
Click to collapse
Download the 1200 w/ boot animation. This happened to me last night when updating my wife's fascinate. I first downloaded the one without boot animation, which was fine, but only would clock to 1000 and was getting the battery not connected error. So I flashed the 1200 w/boot animation and fixed everything.
mackeydesigns said:
Download the 1200 w/ boot animation. This happened to me last night when updating my wife's fascinate. I first downloaded the one without boot animation, which was fine, but only would clock to 1000 and was getting the battery not connected error. So I flashed the 1200 w/boot animation and fixed everything.
Click to expand...
Click to collapse
Thanks works great now
Sent from my SCH-I500 using XDA App
mackeydesigns said:
Download the 1200 w/ boot animation. This happened to me last night when updating my wife's fascinate. I first downloaded the one without boot animation, which was fine, but only would clock to 1000 and was getting the battery not connected error. So I flashed the 1200 w/boot animation and fixed everything.
Click to expand...
Click to collapse
I just flashed my Fascinate with the 1200 w/ boot animation and then SetCPU from the market but SetCPU only allows my Max slider to 528MHz??? what did i do wrong?
Sorry for another noob question.
rickys08 said:
I just flashed my Fascinate with the 1200 w/ boot animation and then SetCPU from the market but SetCPU only allows my Max slider to 528MHz??? what did i do wrong?
Sorry for another noob question.
Click to expand...
Click to collapse
Think about it for a second... Has it sunk in yet? Didn't think so.
You changed speeds so you need to redetect your speed. Either do that or uninstall the app and reinstall it.
Sent from my SCH-I500 using XDA App
rickys08 said:
I just flashed my Fascinate with the 1200 w/ boot animation and then SetCPU from the market but SetCPU only allows my Max slider to 528MHz??? what did i do wrong?
Sorry for another noob question.
Click to expand...
Click to collapse
that happend too me too man,
what I did was I went to the menu and did an auto speed detect...
and the problem solved! its been running smoothly ever since

Set CPU Not Functioning

So, I guess I'll just C+P my post from the SetCPU thread since no one was able to answer the question there. I figure I might get some help from the EVO crowd since this might be specific to the device.
'So I have a wee bit of an issue with 2.0.4 I think... I just rooted my EVO 4G, installed SetCPU, AutoDetect, main Profile 768/460 set on boot. However, I rebooted and it says in the Notification bar that that's the profile it's running, however when I open up SetCPU the speeds jump between 245 and 998...Is SetCPU not throtleing the CPU correctly?'
Also, the only options for SetCPU I'm getting are userspace, ondemand and performance.
Is there something I did wrong when I rooted it?
What kernel are you using? The reason I ask is because I had the king #12 installed and setcpu didn't seem to be doing anything. Based on the the scaling options it sounds like a Toast kernel. Different kernels get different options. King kernels have about 5 different scaling options. I think for $29.95 he will add a 6th option.
Stock kernel. I haven't gotten around to messing with the kernel or ROM yet. Do I have to be running a modded kernel for SetCPU to function at all?
Shushunmire said:
Stock kernel. I haven't gotten around to messing with the kernel or ROM yet. Do I have to be running a modded kernel for SetCPU to function at all?
Click to expand...
Click to collapse
Well this is very simple then you can't OC the stock kernel. I also don't think that SetCPU can govern a stock kernel. You must flash either Toast or Kings..
SetCPU will govern a stock ROM, just hit menu on its main screen and select Disable Perflock. Disable the perflock and tell it to do so on boot. Then you can change the clock speeds around and profiles will work. Only downside is it still won't overclock, but if you are looking for power savings, this is the way to do it.
superlinkx said:
SetCPU will govern a stock ROM, just hit menu on its main screen and select Disable Perflock. Disable the perflock and tell it to do so on boot. Then you can change the clock speeds around and profiles will work. Only downside is it still won't overclock, but if you are looking for power savings, this is the way to do it.
Click to expand...
Click to collapse
Ya I didn't think you could use setcpu with a stock kernel so that's some good info right there.. thanks.
Thanks! That did it! I wasn't really liking the idea of flashing a custom ROM or kernel to my device just yet, so this is great. I had my fair share of issues with HD2 running custom ROMS and kernels and for now I want something that just works until I get more familiar with the process.

[Q] cpufreq parameters without using 3rd party apps

Hello.
I've got a stock Android 3.2.1 (A501 4.066.29 COM GEN1) rooted with Stock/HV/Taboonay V3.7 for HC 3.2 16-10 - 1.64Ghz/UV control kernel.
The question is:
how to set cpufreq parameters (governor, max_freq,..) WITHOUT using 3rd party apps so that the parameters were restored after reboot.
Thank you for reading this.
Either the kernel needs to support init.d scripts or a service needs to execute on boot.
That kernel doesn't support init.d and Voltage Control has a startup service.
CuriousTech said:
Either the kernel needs to support init.d scripts or a service needs to execute on boot.
That kernel doesn't support init.d and Voltage Control has a startup service.
Click to expand...
Click to collapse
Forgive my ignorance but I can't put to use your answer.
I don't get where is Voltage Control and what I have to do.
Get Voltage Control from the market, make adjustments, save as boot. You'll be given the option to save as init.d script or startup service.
Well.. I tested it. Odd app.
First of all it can see only one core. It's funny. After reboot cpu0 works in conservative mode, max_freq 1.4 GHz and cpu1 in ondemand mode, 1.0 GHz.
I tried to edit init.d script and add the 2nd core but after reboot cpu worked with the default kernel values - script didn't work at all.
Moreover Voltage Control shows voltages turned upside down - the less cpu frequency the bigger voltage values. I fear to use this app
Download setcpu or antutu cpu master it recognizes dualcore , has the boot option
More education would be advised To you PLEASE DONT BREAK YOUR TABLET
Please do not take this the wrong way..
it does sound like you do not know what your doing.. I suggest you read more about over clocking./under voltage of a TEGRA 2 DEVICE.. That will get you more understanding about what you need to do. And maybe even help you decide if you really want to do this or not.. There is alot of resources online about this subject. I have tried custom kernel with set cpu.. I use it on my 650 mhz phone. clock it to 768. but it has a huge battry issue when running at that speed.Not to mention It would be dangerous to leave it on my purse with something running might be a fire bug.. GOOD LUCK .
Basically lower voltage at higher frequencies keeps the CPU stable. Leaving it linear would increase temperature exponentially.
Script Manager can run scripts on startup but I don't know how you could disable them if they keep it from starting up.
I didn't know about VC and dual core though. My bad.
ef1x said:
Download setcpu or antutu cpu master it recognizes dualcore , has the boot option
Click to expand...
Click to collapse
Thank you.
I tried all cpu related apps from the Market that I was able to try. Now I want to try to get along without them.
erica_renee said:
Please do not take this the wrong way..
it does sound like you do not know what your doing.. I suggest you read more about over clocking./under voltage of a TEGRA 2 DEVICE.. That will get you more understanding about what you need to do. And maybe even help you decide if you really want to do this or not.. There is alot of resources online about this subject. I have tried custom kernel with set cpu.. I use it on my 650 mhz phone. clock it to 768. but it has a huge battry issue when running at that speed.Not to mention It would be dangerous to leave it on my purse with something running might be a fire bug.. GOOD LUCK .
Click to expand...
Click to collapse
Thank you Erica
I don't understand? You want something that does the same thing but you don't want to know it's there?
I found one app called System Tuner that lets you adjust CPU frequencies individually. I don't know why though.
CuriousTech said:
Script Manager can run scripts on startup but I don't know how you could disable them if they keep it from starting up.
Click to expand...
Click to collapse
Thank you but it looks too bulky for such a small task. And I still don't want to use 3rd party apps
CuriousTech said:
I don't understand? You want something that does the same thing but you don't want to know it's there?
I found one app called System Tuner that lets you adjust CPU frequencies individually. I don't know why though.
Click to expand...
Click to collapse
Actually I don't like how these apps work. And I thought that setting up a few parameters would't be difficult. It seems I was wrong.
Yep. Code has to execute to do stuff, otherwise that stuff doesn't get done.
System Tuner Pro allows voltage adjustments on overclock settings. If you're interested. Also, has a lot of packages integrated into one (task manager, app freezer, etc). They have a free version in the Market if you're interested. It's nice to have several apps, in one nice package.
Moscow Desire
Thank you but I actually don't need it anymore
I have rolled back to the stock kernel because of constant "sleep of death" issue.
huck_d said:
Moscow Desire
Thank you but I actually don't need it anymore
I have rolled back to the stock kernel because of constant "sleep of death" issue.
Click to expand...
Click to collapse
It's because the 3.7 kernel you used, is really not compatible with the a501. The ultra-low voltage causes "screen freeze" and the "sleep of death" when under 3g only. It's a known issue with the 501 and 3.6 and 3.7 kernels also. I would reccommend RTrips 3.4+. Probably his best for for a501.
I ship it with my own Alexandra II and III rom. No issues with it, and none ever reported.
Had I noticed when I woke this morning, you had an a501, I could have given this advice. Sorry, didn't have enough coffee
---------- Post added at 02:21 PM ---------- Previous post was at 02:18 PM ----------
Moscow Desire said:
It's because the 3.7 kernel you used, is really not compatible with the a501. The ultra-low voltage causes "screen freeze" and the "sleep of death" when under 3g only. It's a known issue with the 501 and 3.6 and 3.7 kernels also. I would reccommend RTrips 3.4+. Probably his best for for a501.
I ship it with my own Alexandra II and III rom. No issues with it, and none ever reported.
Had I noticed when I woke this morning, you had an a501, I could have given this advice. Sorry, didn't have enough coffee
Click to expand...
Click to collapse
The problem, is that a lot of dev's, don't have a501's, only a500's. So they really can't test a lot on it. And sometimes, the issue doesn't happen for 2 or 3 days. Sometimes less. I'm going to experiment a little this weekend, with some of the newer kernels, and mess with the voltage's and see if I can get it stabilized where it doesn't freeze on 3g only.
Moscow Desire ,
Thanks for clearing it up and the advise. I'll try either 3.4 kernel or your ROM.
huck_d said:
Moscow Desire ,
Thanks for clearing it up and the advise. I'll try either 3.4 kernel or your ROM.
Click to expand...
Click to collapse
If you go to RichardTrips kernel thread, you will see a link to his older kernels.
You will find the 3.4 listed on his server. I think you just need to flash it, although I usually dump Dalvak cache.
Alex II is an easy install. Alex III (3.2.1) is a little more ... interesting to install, but not difficult. If you run into an issue, post it in my thread. Everybody else has got it installed, so I think you'll have no issues either.
It's the only "certified" 3.2.1 for the Acer a501 that I know if. Not that the other roms are bad, because they really are good, but, the 3.2.1 they advertise, are from system dumps after running an update, or adding missing files to a 500 rom. The TMPL is an Acer release.

Why no governor is stayed after a reboot?

As the title says. No governor, be it on-demand or performance, doesn't stay after a reboot. I've tried Adam, Perseus, issue persists on both of them! Is this because of this new 4.3? If I remember correctly this wasn't a problem on 4.2! I've tried with SetCPU, No Frills, nothing...I always used performance, now I can't set it and it bothers me very much....
Anyone?
Sent from my GT-I9500 using Tapatalk
Have you got more than one app actively trying to set the governor ? You've said you're using SetCPU, but make sure the rom (Performance Control for example) or kernel doesn't have an app that's also trying to set the governor on boot for example. If they are, disable those & then try with SetCPU.
MistahBungle said:
Have you got more than one app actively trying to set the governor ? You've said you're using SetCPU, but make sure the rom (Performance Control for example) or kernel doesn't have an app that's also trying to set the governor on boot for example. If they are, disable those & then try with SetCPU.
Click to expand...
Click to collapse
Well I have tried with either Adam or Perseus, and in that case S-Tweaks and Synapse are automatically installed respectively. And I don't see there's any setting under those apps to change Governor! So I am forced to use SetCPU, are you saying I should uninstall S-Tweaks or Synapse in order to get SetCPU working properly? Because there's no visible settings under S-Tweaks or Synapse to change governor but there could/must be a hidden setting there which changes Governor at each reboot! and probably conflicts with SetCPU?
Actually, first up, try clearing cache/data on SetCPU, reboot, apply settings you want, reboot & see if they stick.
Then try uninstalling those other apps which might be conflicting. Also, check in rom settings to see if you have anything like Performance Control which might be setting something at boot. Also check to see if you have an init.d folder/if there's any scripts lurking in there which might be causing problems.
MistahBungle said:
Actually, first up, try clearing cache/data on SetCPU, reboot, apply settings you want, reboot & see if they stick.
Then try uninstalling those other apps which might be conflicting. Also, check in rom settings to see if you have anything like Performance Control which might be setting something at boot. Also check to see if you have an init.d folder/if there's any scripts lurking in there which might be causing problems.
Click to expand...
Click to collapse
Nah, tried everything, no profile sticks, even master wiped the device with full stock ROM and kernel, nothing. It's not actually a reboot needed for the default governor/settings to take place, if I just turn the screen off and turn it back on after a minute or so the set governor by me doesn't stick.
I am quite sure this is how it is suppose to be, but whatever, I don't like it. The fluidity I have seen with performance, well nothing could beat it. Maybe the CPU architecture of i9500 is the thing to blame here. Damn...
That's really weird. Maybe try another app other than SetCPU (or a bunch of them) ? Some kernels have variables that can't be set by the user or you can set them but they immediately go back to whatever setting the dev who made the kernel wants them to be at (some individual governor settings like sampling rates/etc), but setting the actual governor shouldn't be one of those. If the governor is available in the kernel, you should be able to both set it 'on the fly' and set it on boot.
MistahBungle said:
That's really weird. Maybe try another app other than SetCPU (or a bunch of them) ? Some kernels have variables that can't be set by the user or you can set them but they immediately go back to whatever setting the dev who made the kernel wants them to be at (some individual governor settings like sampling rates/etc), but setting the actual governor shouldn't be one of those. If the governor is available in the kernel, you should be able to both set it 'on the fly' and set it on boot.
Click to expand...
Click to collapse
Nah, not really weird as I understand it now. CPU hits throttle temp at 1.6 GHz and automatically defaults out at a lower clock rate, in this case 800 MHz. That's just too bad for me anyway, I have never used anything besides performance, now I am forced to use something else! I wonder how come no one has mentioned this yet!

Categories

Resources