[Q] how do you remove a specific frequency from governor? - General Questions and Answers

Basically, im curious to find out how to remove a specific frequency from a governor, im using oc/vu beater on an htc mytouch 4g with affinity and i cannot seem to get 460800mhz stable no matter what voltage i try, so i want to just remove that frequency altogether.
thanks!!

Moved to General Q&A.

Does no one know how to do this? Is it even possible? I need to remove it from my governor.

demoncamber said:
Does no one know how to do this? Is it even possible? I need to remove it from my governor.
Click to expand...
Click to collapse
There is probably no way to do this unless you are able to strip the kernel apart yourself and reprogram it with that frequency missing - or you ask the Dev very nicely to do so just for you.

Ok, gotcha. Not quite sure why I cannot get that freq stable though

demoncamber said:
Ok, gotcha. Not quite sure why I cannot get that freq stable though
Click to expand...
Click to collapse
Probably just some glitch in your hardware. All phones are built within certain tolerance levels which means that while 99% of a model will work perfectly at a setting, there will likely be 1% which have problems. That's part of the reason why it is possible to over-clock and under0volt in the first place - because the manufacturers leave a tolerance gap to ensure all their devices work well.

It's funny though, because if I test the frequency locked at 460, as opposed to frequency scaling between 122 through 1.2, using stability test it passes fine, however when I do the frequency scaling, it will lock up, and report that it failed at 460,800. I've tried increasing the voltage for 460 as well as the frequencies one step above and below 460, still locking up and reporting 460 as the issue... It's quite puzzling.
And my phone will randomly crash and lock, but every freq is reporting an OK when separately tested.

Related

Mytouch 4g Setcpu Optimization

So I've been searching the forums for a good thread on optimizing setcpu for specifically the Mytouch 4G. I couldn't find one so after i read up on it i created this profile. The tweaks that I've found make this run very fast and gets me easily 18 hours of battery life, and that is with moderate usage. These setting should work for most if not all devices. I don't get any real noticeable lag even when turning the screen on. I'm Using SetCPU 2.1.0 on a Grankin01 Kernel on a Stock ROM, and I'm also using "Autokiller Memory Optimizer" using moderate preset. Hopefully people will post there profiles anyway here it is.
Here is the thread for the Kernel I'm usinghttp://forum.xda-developers.com/showthread.php?t=876848
and here is a link for setcpu basics.
http://androidforums.com/evo-4g-all-things-root/210253-setcpu-guide.html
Alright here are my most recent setting I've been running.
I get around 20 hours of battery life on my phone with moderate use my set CPU settings are
Overclocked to 1.5 ghz minimum 245 ghz
Battery below 30% Max 1 ghz min 245 ghz
Screen off max 245 ghz min 245 ghz
Latest Cyanogen mod Alpha 7.0
I use max 1113 min 245 scaling on demand...screen off min 245 max 350
MT4G + CM7
Pretty sure this is in the wrong place. I guess you read up on everything except where would an appropriate place to post this be.
Sent from my MT4G running Gingerbread
I get 24hrs if I put my phone away! 6hrs on average lol. Cm7 stock kernel. Grankins breaks youtube everytime. Screen off 328 max 248 min. On demand.
Sent from my HTC Glacier using XDA App
With all the CM7 flashing, I get about 12-15hrs with 149760-245760
Sent from my Gridlocks' CM7 MT4G using XDA App
stlouie65 said:
With all the CM7 flashing, I get about 12-15hrs with 149760-245760
Sent from my Gridlocks' CM7 MT4G using XDA App
Click to expand...
Click to collapse
louie i dont know what to make of your preset here... Either you are running your phone incredibly slowly or you have forgotten a 0 on the end and are crazy OCing it...
Have mine set at 76800-1113600 on demand and I demand a lot and average about 8hrs. CM7, zinx kernel,with superpower.
I've been trying to get profiles and triggers down except I use CPU tuner inserted of setcpu. Is it possible to over clock yet still save battery? I doubt that somehow lol. If anyone can post full settings that save battery but still runs well I'd appreciate it. Ill copy one of you guys.
Questions though. What is all the governor stuff like performance, conservative, on demand, etc? What are the thresholds? What are the min max standards? Like if I have 300 and 1500, which does it user and why? Those are the only things I can't grasp
Sent from my HTC Glacier using XDA App
xFate said:
I've been trying to get profiles and triggers down except I use CPU tuner inserted of setcpu. Is it possible to over clock yet still save battery? I doubt that somehow lol. If anyone can post full settings that save battery but still runs well I'd appreciate it. Ill copy one of you guys.
Questions though. What is all the governor stuff like performance, conservative, on demand, etc? What are the thresholds? What are the min max standards? Like if I have 300 and 1500, which does it user and why? Those are the only things I can't grasp
Sent from my HTC Glacier using XDA App
Click to expand...
Click to collapse
Check out this link it has all you'll need to know http://androidforums.com/evo-4g-all-things-root/210253-setcpu-guide.html
What you want is your device to throttle based on the load being put on it. When you aren't doing much i.e. reading a text it should be clocked at 245760 for example because that's not a demanding task. and versely when you play a graphics intensive app or something, it should use just over the maximum amount of cpu power needed to run the app so the app runs smooth. but wont waste battery by overclocking to 1708800 when only a speed of 1017600 is needed. For this i use "conservative" on SetCPU because it will allow more customization.
My advanced settings for SetCPU are as follow. i haven't use CPU Tuner but hopefully it's similar.
Sample Rate you want kinda low 200000 is what i have and i don't get much if any lag.
Up Threshold is at what percentage of processor usage that the clock speed is increased. for me its set to 60. in other words at 60% load on the processor it will start to increase the clock speed.
Down Threshold is the load percentage where the clock speed will be reduced. i have mine set to 33.
Ignore Nice Load will just ignore nice processes. This includes system i believe. i have mine set to 0.
Grabbed this from a mac forum but it should apply.
"A process's priority is determined with a complex formula that includes what the process is doing and how much CPU time the process has already consumed. A special number, called the nice number or simply the nice, biases this calculation: the lower a process's nice number, the higher its priority, and the more likely that it will be run."
Frequency Step is how much of a jump the CPU will take to meet the load. mine is set low, (12) because most processes and apps wont need a whole lot of boost to run smoothly. For my device on average it will be under 768000 which is what you want and is where the battery saving really comes in. Because the CPU is under-clocked most the time its using a lot less battery but is still running everything smoothly.
A lot of people set there devices to ondemand because it's, "very responsive." although true its responsiveness comes from big steps in clock speed as opposed to the small ones that will most likely get the same job done. i.e. a clock speed of 902400 is more then enough to run the process quickly ondemand will jump to 1708800 to handle the same task.
copied from the above link at android forums.
" * ondemand - Available in most kernels, and the default governor in most kernels. When the CPU load reaches a certain point (see "up threshold" in Advanced Settings), ondemand will rapidly scale the CPU up to meet demand, then gradually scale the CPU down when it isn't needed.
* conservative - Available in some kernels. It is similar to the ondemand governor, but will scale the CPU up more gradually to better fit demand. Conservative provides a less responsive experience than ondemand, but can save battery.
* performance - Available in most kernels. It will keep the CPU running at the "max" set value at all times. This is a bit more efficient than simply setting "max" and "min" to the same value and using ondemand because the system will not waste resources scanning for the CPU load. This governor is recommended for stable benchmarking.
* powersave - Available in some kernels. It will keep the CPU running at the "min" set value at all times.
* userspace- A method for controlling the CPU speed that isn't currently used by SetCPU. For best results, do not use the userspace governor."
Please post in General section, not dev.
Well i changed my setting a little to be a bit more responsive and i haven't noticed a increase in battery usage. I set my max speed to 1516800 and min to 368640 and its running quite nicely.
Anyone else getting good result with the conservative setting?
Keldarr said:
So I've been searching the forums for a good thread on optimizing setcpu for specifically the Mytouch 4G. I couldn't find one so after i read up on it i created this profile. The tweaks that I've found make this run very fast and gets me easily 18 hours of battery life, and that is with moderate usage. I don't get any real noticeable lag even when turning the screen on. I'm Using a Grankin01 Kernel and I'm also using "Autokiller Memory Optimizer" using moderate preset. Hopefully people will post there profiles anyway here it is.
Here is the thread for the Kernel I'm usinghttp://forum.xda-developers.com/showthread.php?t=876848
and here is a link for setcpu basics.
http://androidforums.com/evo-4g-all-things-root/210253-setcpu-guide.html
Edit: I've been using my phone for the last 12 hours I unplugged it this morning and have only plugged it in to pull a screen shots with android commander then unplugged it and my battery is at 53% I've watch youtube, txt, made calls, taken pictures ect, ect normal crap, and its running strong. I've made small adjustments on some of my thresholds but they are mostly similar.
Click to expand...
Click to collapse
What version of SetCPU are you using? In mine I don't have the threshold for down, and my sampling rates are way different. Mine is set as from install at 50000. Running cm7alpha.
Using 2.1.0 and I have all the mentioned settings Bob
bobsbbq said:
What version of SetCPU are you using? In mine I don't have the threshold for down, and my sampling rates are way different. Mine is set as from install at 50000. Running cm7alpha.
Click to expand...
Click to collapse
Sent from my stickie key HTC Glacier using XDA App
Is there a way to change voltage? Frequency rules saves are minumum on cellphones.
I'm using Setcpu 2.1.0 and I'm using a stock OC Kernel from Grankin01 and u have to set the profile to conservative.
NovoRei said:
Is there a way to change voltage? Frequency rules saves are minimum on cellphones.
Click to expand...
Click to collapse
Frequency rules saves do save a lot of battery. Combine with undervolting and memory optimizations and you'll get big saves. But no setcpu is solely for cpu settings.
Whats the most stable speed to run this at?
So far i haven't had any stability issues on the Grankin01 Kernel. They ironed out most the stability issues in the Kernel its self. I do however keep my main profile around 1708800 - 1516800, generally 1516800, and min is set to 368640 and I've had no problem not even a signal freeze or crash. I've also run at 1708800 for most of the day plugged in and no issues other then heat. So i think is up to mostly prefrence.
I'm using a stock rom with bloatware removed and as i mentioned the Grankin01 1.7 OC Kernel.
Here is what I'm talking about. Sometimes the auto detect or something is wrong and I get this screen instead of the one you get. I don't understand why. I change ROMS a lot and I don't know if it is ROM specific or not. I'm currently on the cm7 preview from Zinx. Although I have seen it on other ROMS also as I posted before. Here is a pic.
Ignore the dropcap2 as I had just used it to take the picture.
bobsbbq said:
Here is what I'm talking about. Sometimes the auto detect or something is wrong and I get this screen instead of the one you get. I don't understand why. I change ROMS a lot and I don't know if it is ROM specific or not. I'm currently on the cm7 preview from Zinx. Although I have seen it on other ROMS also as I posted before.
Click to expand...
Click to collapse
Looks like from your screen shot that the profile SetCPU is using is on On demand, interactive or some default. What Kernel are you using? that may be the issue. If not a kernel issue. Then it may be a issue with CM7 and how SetCPU interacts with it. try disabling all your profiles and make sure that your main profile is for sure set to conservative.
Nothing else make a backup and try a different Kernel. Grankin01 has a few great ones and even a CM7 kernel with tunes and tweaks. As well as Gorilla. but id try the CM7 Kernel Grankin01 has first my buddy is running it and hasn't had problems. Just make you do a full backup to avoid a FUBAR situation.
http://forum.xda-developers.com/showthread.php?t=876848 Grankin01
http://forum.xda-developers.com/showthread.php?t=846451 Gorilla
Keldarr said:
Looks like from your screen shot that the profile SetCPU is using is on On demand, interactive or some default. What Kernel are you using? that may be the issue. If not a kernel issue. Then it may be a issue with CM7 and how SetCPU interacts with it. try disabling all your profiles and make sure that your main profile is for sure set to conservative.
Nothing else make a backup and try a different Kernel. Grankin01 has a few great ones and even a CM7 kernel with tunes and tweaks. As well as Gorilla. but id try the CM7 Kernel Grankin01 has first my buddy is running it and hasn't had problems. Just make you do a full backup to avoid a FUBAR situation.
http://forum.xda-developers.com/showthread.php?t=876848 Grankin01
http://forum.xda-developers.com/showthread.php?t=846451 Gorilla
Click to expand...
Click to collapse
You are right it was the main profile was set to on demand and when set to on demand these available options change.
As far as kerenls go I have not had good luck with Grankin CM Gingerbread kernels but he is working on a fix.

setcpu

any good sensation guides for getting setcpu to work?
thanks
Setcpu should be self explanatory since we now have root. You set the frequency you want the device to operate at. That being said if you are looking to OC then you need a kernel capable of overclocking
but what option do i select when i first start it as the sensation is not listed
I too would like to know.
Sent from my HTC Sensation 4G using XDA Premium App
i think that there soon will be a update. so that we can select our sensation directly. but till than you have to select the tegra2 device.
thank you very much
decided to use this custom freq list that goes upto 1.19ghz so just under the sensations max threshold
put into root of sd and select the custom option
Kurisu87 said:
decided to use this custom freq list that goes upto 1.19ghz so just under the sensations max threshold
put into root of sd and select the custom option
Click to expand...
Click to collapse
Thanks but this is stock, overclocking is making it do more than it should.
Thanks for the file tho, i'll modify that and see what i can get out of it.
Cheers for the building block
Went on with increments of 38400 however, even though the slider will show 1.5 the actual speed is still restricted to 1.18ghz
Bit weird, i've got no experience of creating these set cpu scripts so i really don't know what's the matter with it, i think the next increment needs to be a different number, as before 38400 it was something like 19000 roughly.
dladz said:
Thanks but this is stock, overclocking is making it do more than it should.
Thanks for the file tho, i'll modify that and see what i can get out of it.
Cheers for the building block
Went on with increments of 38400 however, even though the slider will show 1.5 the actual speed is still restricted to 1.18ghz
Bit weird, i've got no experience of creating these set cpu scripts so i really don't know what's the matter with it, i think the next increment needs to be a different number, as before 38400 it was something like 19000 roughly.
Click to expand...
Click to collapse
the speed is restricted by the kernel so you would need a Kernel that supports over clocking.. these should be everywhere shortly now most have s-off, I just used the stock for now to manage power i,e when screen is off, use 1/4 of the cpu (saves battery)

Undervolting

Does anyone know the ideal settings for undervolting the sensation without causing any problems?
StuartTheFish said:
Does anyone know the ideal settings for undervolting the sensation without causing any problems?
Click to expand...
Click to collapse
Not really. As faux say not all chips are created equal. I've seen up to an amazing -150 but my phone can only handle -50 stable and -75 sometimes with a reboot or two.
Sent from my HTC Sensation 4g using xda premium
Mine handles -100 just fine, but yeah,others can only go -50. Just use system tuner and hit the -12.5 till your phone freezes, then when it restarts go one less and see if it's stable. That's what I did.
Sent from my HTC Sensation 4G using XDA App
I'd also suggest keeping the Max Clock at a consistent value while you play. E.g. UV -100mV might work well at one Mhz then fail at a higher value.
Mine seemed to work consistently at about -100mV, then again I tend to UC unless I'm running CF-Bench or something
Should I only need to concentrate on the lowest and highest clock speeds it's been set to use? Or will I have to undervolt all other frequencies between the two? Not sure if it increments on usage, or simply toggles between the min and max.
If it does increment, how can I test it's stability on the other frequencies if I can't tell what frequency it was using at the time?
Just tapped the -12.5 button a few times, and it reduced all of the sliders. It's -100 now with no apparent issues as of yet.
May I ask the reason for undervolting?
masonic1032 said:
May I ask the reason for undervolting?
Click to expand...
Click to collapse
Mainly to save battery. Altho I have found that it is quite negligible. It may also help with phone heat
masondoctorjt said:
Mine handles -100 just fine, but yeah,others can only go -50. Just use system tuner and hit the -12.5 till your phone freezes, then when it restarts go one less and see if it's stable. That's what I did.
Sent from my HTC Sensation 4G using XDA App
Click to expand...
Click to collapse
I run faux latest version 2.7 beta and I see his scripts to undervolt and the lowest I see it too go is -75 how are you able to go lower to -100.... ???
I think it varies from phone to phone, mine too seems happy enough -100.
StuartTheFish said:
I think it varies from phone to phone, mine too seems happy enough -100.
Click to expand...
Click to collapse
Soooooo how do I undervolt below -75 that's where I am. Now
rawdawgroy said:
Soooooo how do I undervolt below -75 that's where I am. Now
Click to expand...
Click to collapse
If the phone hangs/boots below that level then with the Phone/Kernel/... that's the limit.
I created a GScript script (well a sh script) to U/V after a reboot. I didn't want it to do it automatically as you'd end up in a boot loop. Just hassle to fix. The reason for the GScript was to remove it from the various CPU controllers I'd tried, I ended up just using the CM7 one to control the CPU.
Faux has the command to do it globally (across all frequencies) or individual frequencies. TBH I never bothered with individual ones.
The bottom line is, do what you and your phone are happy with.
EDIT: meant to add you can check the actual value manually. I know the Faux one (same post as the scripts above) but if you are using a different kernel it might be in a different place.

[Q] Good kernel for CM11 which increases thermal throttling temps?

Hello
I am new to this forum and am a long time CM user which I am using on my phone at the moment. However, having discovered the aggressive thermal throttling on this phone (CPU-intensive tasks seem to throttle the max CPU speed down to 1190 MHz very very quickly, before the phone even gets warm), I'm trying to find a custom kernel that will work with CM. I don't care about any fancy features such as S2W or DT2W and if the kernel allows these to be disabled then that would be even better. Basically looking for a reliable, stable kernel that can be configured to be as close to stock as possible, but which would stop the aggressive thermal throttling.
Thanks
Hi, and Welcome!
I'm afraid that your post likely will be considered a "Best ROM or kernel" thread which is not allowed. It's usually suggested that you go over to the development forum and try out kernels for yourself because everybody's needs are different, and so on.
djsubtronic said:
Hello
I am new to this forum and am a long time CM user which I am using on my phone at the moment. However, having discovered the aggressive thermal throttling on this phone (CPU-intensive tasks seem to throttle the max CPU speed down to 1190 MHz very very quickly, before the phone even gets warm), I'm trying to find a custom kernel that will work with CM. I don't care about any fancy features such as S2W or DT2W and if the kernel allows these to be disabled then that would be even better. Basically looking for a reliable, stable kernel that can be configured to be as close to stock as possible, but which would stop the aggressive thermal throttling.
Thanks
Click to expand...
Click to collapse
Only Chaos kernel is compatiblewith CM atm afaik because its a CAF based kernel.
PhilipTD said:
Hi, and Welcome!
I'm afraid that your post likely will be considered a "Best ROM or kernel" thread which is not allowed. It's usually suggested that you go over to the development forum and try out kernels for yourself because everybody's needs are different, and so on.
Click to expand...
Click to collapse
I probably will do that, but I thought this might not fall in the realm of "best kernel" because I have listed some specific criteria...
gee2012 said:
Only Chaos kernel is compatiblewith CM atm afaik because its a CAF based kernel.
Click to expand...
Click to collapse
I'll give that a try. From browsing earlier I noticed that n30Hammer and ElementalX have separate links for CM11, I figured they would be compatible.
djsubtronic said:
I probably will do that, but I thought this might not fall in the realm of "best kernel" because I have listed some specific criteria...
Click to expand...
Click to collapse
Oh, believe me, I think your post is fine. I just wanted to give you a polite heads-up before the more zealous members started chiming in.
djsubtronic said:
I'll give that a try. From browsing earlier I noticed that n30Hammer and ElementalX have separate links for CM11, I figured they would be compatible.
Click to expand...
Click to collapse
Hi,
Yes they are compatible too, for ElementalX choose the right version. Both have thermal settings.
There is also: http://forum.xda-developers.com/showthread.php?t=2649458 and http://forum.xda-developers.com/showthread.php?t=2633955 (almost the same kernels apart the Toolchain), compatible with CM/CM based rom with thermal control too.
djsubtronic said:
I thought this might not fall in the realm of "best kernel" because I have listed some specific criteria...
Click to expand...
Click to collapse
All you do is make it "best kernel for specific criteria" then. Mods see it all as the same thing.
I'm giving ElementalX a try for now. The mods can feel free to close this thread if they see fit.
Thanks for all the replies.
before this gets locked you need a CAF kernel, Chaos kernel comes to mind, they do nice work. Comes with NXT tweaks which allows you to customize almost everything including temp.
I tried all possible CM11 kernels and Chaos kernel has in my opinion a very nice CPU load management.
Other kernels will stay for several seconds in max frequency after a power demand which result in higher CPU battery drain.
Bricked kernel was also excellent in that field and super responsive but the developer takes a break at the moment so the kernel is not usable for the CAF Version of CM after 25.01.14 without further modding and the AOSP mod for CM CAF is producing some weird behavior on my phone so I go for Chaos and CM at the moment.
I found Elemental would keep upping the minimum CPU to 1267 instead of 300, so at the moment I'm trying out NexXxt as @viking37 linked above, and using Trickster to configure the temps it seems to be working pretty good.
djsubtronic said:
I found Elemental would keep upping the minimum CPU to 1267 instead of 300
Click to expand...
Click to collapse
It's normal, it's how Mpdecision from Qualcomm works (for smoothness purpose). Each time you touch the screen the min CPU freq is increased to 1,26 Ghz. In fact the apps reads this at the min CPU freq because you touch the screen to open it. When you stop to touch the screen the min CPU freq will go back to 300 Mhz, the app needs to update the reading of the min CPU freq too but with Trickser Mod it seems it stuck at 1.26 Ghz all the time (for the reading only) but your min CPU freq is 300 Mhz when you don't touch the screen. You will see better this behavior with an app with "live reading CPU freq" like PerfMon or System Monitor.
You can use the "lock frequency" setting in Trickster Mod after set your min CPU freq to 300Mhz, if you want.
viking37 said:
You can use the "lock frequency" setting in Trickster Mod after set your min CPU freq to 300Mhz, if you want.
Click to expand...
Click to collapse
Not good option. Only locks core 0. Core 1 still affected.
Only full workaround is delete /system/lib/hw/power.msm8974.so
Sent from my Nexus 5 using Tapatalk
rootSU said:
Not good option. Only locks core 0. Core 1 still affected.
Only full workaround is delete /system/lib/hw/power.msm8974.so
Click to expand...
Click to collapse
Hi,
Yep, right
Old thinking that is income , sorry for the mistake. I edited my post
Just thought I'd report back, been using NexXxt with custom thermal config using Trickster, and have had no problems at all, great battery life and no more throttling.
viking37 said:
Hi,
Yep, right
Old thinking that is income , sorry for the mistake. I edited my post
Click to expand...
Click to collapse
Ah no problem

Kernels not sticking to settings

Hi I had this problem with one kernel and put it down to that. The same thing however has happened with others.
Has anyone else had this problem? I've used Trickster mod donate to try setting the frequency. Even with the frequency lock on they jump. They seem to jump to random frequencies, but 1.7 is the most common.
Can someone recommend one that does not do this and is good on battery?
Sent by mobile telephone.
howard bamber said:
Hi I had this problem with one kernel and put it down to that. The same thing however has happened with others.
Has anyone else had this problem? I've used Trickster mod donate to try setting the frequency. Even with the frequency lock on they jump. They seem to jump to random frequencies, but 1.7 is the most common.
Can someone recommend one that does not do this and is good on battery?
Sent by mobile telephone.
Click to expand...
Click to collapse
What do you mean exactly? Do you mean the minimum frequency jumps up? If so, yes this is called mpdecision and is present in stock based kernels, unless they explicitly give you a way around it.
It's not that. The kernel I'm using has a scaling range of 300- 2265. I'll set these as it's limits but both ends will move, sometimes to the same freq. 1728 is what they jumped to when I set them just now.
I'm not talking about where the scheduler moves to but the upper and lower limits it has to move about in are what won't stay.
Sent by mobile telephone.
Trinity doesn't seem to do this on my phone so I'll go back to that, but Ive never had this problem
Sent by mobile telephone.
Downloaded cpu tweaks and it shows what I set, but Trickster mod does not so I'm dumping trixtermod as it's showing stuff that is not set, or appears to as cpu tweaks is showing in real time data I expect to see
Sent by mobile telephone.

Categories

Resources