TIP: setting CPU to performance mode - Nexus One Q&A, Help & Troubleshooting

A cheap/dirty little hack to increase idle CPU frequency and increase performance in general (don't blame me when your battery runs dry in about 3 hours):
(must have root first!)
cat /proc/cpuinfo (use this to see cpu speed, you will see at idle its 162.54mhz)
adb shell
echo "performance" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
cat /proc/cpuinfo (now idling at 662.40mhz!)
If you want to switch back:
adb shell
echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

Id be affraid to tweak this things speed.
Is there a possibility that it could crash from being to fast?
Just curious

Yeah the only thing I miss about my g1 is the extended battery.

Freezey said:
Id be affraid to tweak this things speed.
Is there a possibility that it could crash from being to fast?
Just curious
Click to expand...
Click to collapse
no, but it can crash from overheating. and based on how fast this chip is compared to how thin this phone is, It may be possible for the chip to overheat on a hot day.

Protip: SetCPU (download link in my sig) can switch you between governors without the need for using the shell.
By the way, bogomips in /proc/cpuinfo is not 1:1 with MHz on the Scorpion.

It is literally too snappy to set the cpu. No need to bother. (Though I do appriciate the help)
However, the need to root still exists for tethering.

So setcpu will work for this already?

Sashin said:
So setcpu will work for this already?
Click to expand...
Click to collapse
Yes. 10char

hmm its interesting to note that by default idle CPU speed is ~160mhz. I think the battery would not last 4 hours on or sleep mode if the CPU was constantly at 1Ghz.

melterx12 said:
hmm its interesting to note that by default idle CPU speed is ~160mhz. I think the battery would not last 4 hours on or sleep mode if the CPU was constantly at 1Ghz.
Click to expand...
Click to collapse
It's actually 254mhz, I was mistaken in my original post!

I checked it myself - Lowest Idle setting is ~160mhz

melterx12 said:
I checked it myself - Lowest Idle setting is ~160mhz
Click to expand...
Click to collapse
Apparently not. Use SetCPU to confirm the below.
coolbho3000 said:
By the way, bogomips in /proc/cpuinfo is not 1:1 with MHz on the Scorpion.
Click to expand...
Click to collapse

I used quicksystem app. Check for yourself.

melterx12 said:
I used quicksystem app. Check for yourself.
Click to expand...
Click to collapse
Problem reading incorrectly as well. What coolbho said is accurate, you will notice that using quicksystem or reading /proc/cpuinfo never shows a speed above ~660mips/mhz regardless of how heavy the load is, whereas SetCPU will show it at 998mhz under the same load.

so no luck getting over 1ghz?

no6969el said:
so no luck getting over 1ghz?
Click to expand...
Click to collapse
Why the hell would you need to?

What are the other legal and respected options in
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
Other than
performance, ondemand
Would like to know, thanks for the tip!
Terracnosaur

Terracnosaur said:
What are the other legal and respected options in
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
Other than
performance, ondemand
Would like to know, thanks for the tip!
Terracnosaur
Click to expand...
Click to collapse
# cat scaling_available_governors
ondemand userspace performance

Related

[Q] Adding 122Mhz as the lowest cpu profile into cyanogen

well, i'm really loving the built-in cpu management into cyanogenmod settings, btw i wonder have the capability to set 122 Mhz as the lowest frequency instead of 245 as it is now.
maybe we can have this in the future?
It has to be supported in the kernal and at this point it isn't. Technically, it shouldn't be much of a problem to add support for 122MHz but someone needs to do it. I would like this as well to try but my experience with 122MHz on b.07 is that it's not all that useful in real life. Battery in CM7 is already very good so I don't see much reason to go below 245MHz at this point. Just my 2 cents.
furthermore, at least my experience, it takes a while to get the legend out of sleep mode when the phone is locked, if you go lower than 245.
ikdegek said:
furthermore, at least my experience, it takes a while to get the legend out of sleep mode when the phone is locked, if you go lower than 245.
Click to expand...
Click to collapse
That's one of the reasons why 122MHz is not very useful in real life. Your phone is never going to spend much time at such a low speed unless you force it too. Unless the governor is set up properly, you'll get a pretty laggy phone. Also not that a lot of cpu scaling also uses more energy so you're not likely to win much.
Little OT:
Which is the best governor?
In theory, I'd say interactive is great. In practice however, not so much. Streaming video doesn't work properly for example. I usually stick to ondemand, which makes sense because it's the default governor in pretty much every ROM. Some devices have a tweaked interactive but I forgot what it's called. It was designed to fix the practical issues of interactive.
just download the msm7227 source and change the frequency tables thats what i did to my liberty 120-200-245-320-400-600...etc up to only 806
EDIT post the config.gz by doing adb pull /proc/config.gz and send it to me in a pm and i will gladly compile it and make a flashable zip
drowningchild said:
just download the msm7227 source and change the frequency tables thats what i did to my liberty 120-200-245-320-400-600...etc up to only 806
EDIT post the config.gz by doing adb pull /proc/config.gz and send it to me in a pm and i will gladly compile it and make a flashable zip
Click to expand...
Click to collapse
Can you PM me concerning how to do that?
segphault said:
Can you PM me concerning how to do that?
Click to expand...
Click to collapse
A guide was given
adb pull /proc/config.gz
Then stick in dropbox (or similar) and PM drowningchild with the link

What are your overclock settings? curious.

Hi folks,
I was just wondering, what are everyone's speeds? I shall start first I have attached a screenshot of my voltages, speeds, and governor.
WARNING : I TAKE NO RESPONSIBILITY FOR ANY DAMAGE YOUR NOOK MIGHT INCUR AS A RESULT OF TRYING ANY OF OVERCLOCK CONFIGURATIONS MENTIONED HERE.​
Quick note - i would strongly suggest backing your CPU down to a max of 1200Mhz. For some reason, any speed above that will tank your GPU performance (by as much as half); the additional 100Mhz CPU loss isn't really felt (especially with the GPU gains).
Divine_Madcat said:
Quick note - i would strongly suggest backing your CPU down to a max of 1200Mhz. For some reason, any speed above that will tank your GPU performance (by as much as half); the additional 100Mhz CPU loss isn't really felt (especially with the GPU gains).
Click to expand...
Click to collapse
Is there anyway to confirm this? How can I measure GPU performance?
I set mine at 1200MHz and didn't bother playing with cpu voltage.
PoisonWolf said:
Is there anyway to confirm this? How can I measure GPU performance?
Click to expand...
Click to collapse
It has been well confirmed in severl threads (Cm7 dev and general), but you can easily test yourself with nenamark 1. Set your clocks to 1200, and run the bench; then set your clocks to 1300, run again (and watch your framerate plummet).
Divine_Madcat said:
It has been well confirmed in severl threads (Cm7 dev and general), but you can easily test yourself with nenamark 1. Set your clocks to 1200, and run the bench; then set your clocks to 1300, run again (and watch your framerate plummet).
Click to expand...
Click to collapse
I tried your little scenario of dropping down to 1125mhz and running nenamark. I was 14.8 running 1125mhz and at 15.6 at 1300mhz. I am running chainfire plug ins.
Sent with my Nook, paid the $Buck for XDA Premium—you should 2!
And what do those numbers mean?
14.8 is better or worse compared to 15.6?
Hindle1225 said:
I tried your little scenario of dropping down to 1125mhz and running nenamark. I was 14.8 running 1125mhz and at 15.6 at 1300mhz. I am running chainfire plug ins.
Sent with my Nook, paid the $Buck for XDA Premium—you should 2!
Click to expand...
Click to collapse
Odd.. i can get 21 Fps at @1200.. i would have expected the 1125 to be around the same; though the 1300 sounds right on.
I got 16.3 fps using my current setup. Lawl. What part of android uses 3d acceleration anyway?
PoisonWolf said:
I got 16.3 fps using my current setup. Lawl. What part of android uses 3d acceleration anyway?
Click to expand...
Click to collapse
UH.. android, not alot, but pretty much any game (or even some web browsers like Opera). Its easy to "lawl", but it actually DOES matter...
Divine_Madcat said:
UH.. android, not alot, but pretty much any game (or even some web browsers like Opera). Its easy to "lawl", but it actually DOES matter...
Click to expand...
Click to collapse
Good point however I don't play any games that uses 3d. I don't really play any games. Just browsing with dolphin and lots of email.
I will take it down per notch as per your suggestion once I update to a newer version though.
Also, some of the framerate difference may come from you running the 32bit framebuffer kernel, instead of the faster 16bit (but if you don't game alot, you may not really need it anyway).
Scratch that. I just tested it. I got 22.9fps. Lawl. I am now tweaking it again. What are your voltages?
Thanks for the suggestion again. 1200 MHz Max for me.
P.s. how do I check which framerate buffer am I running?
PoisonWolf said:
Good point however I don't play any games that uses 3d. I don't really play any games. Just browsing with dolphin and lots of email.
I will take it down per notch as per your suggestion once I update to a newer version though.
Click to expand...
Click to collapse
If u don't play any games, then why to bother for the 3D loss of 1300mhz?
I would prefer to use the extra speed.
RASTAVIPER said:
If u don't play any games, then why to bother for the 3D loss of 1300mhz?
I would prefer to use the extra speed.
Click to expand...
Click to collapse
Frankly, i am under the personal impression that overall the system is more responsive at 1200, and that is not just the GPU. Something about that speed is the sweet spot.
And really.. only rarely will a system that does web pages and email hit max speed anyway... why not opt for a better all around performance, rather than an immeasurable CPU gain?
I know this could be kind of off topic, but what battery temperatures do you guys get when overclocking? because the other day mine was at 36 Celsius overclocked at 1200, Does anyone knows of a safe temperature range?
Mine hovers around 34 to 36. My hd2 goes up to 43 and that is fine too. Honestly, I would think that as long as it is under 40 you should not worth.
I use 300 min and 1200 max and have the governor set to on demand. No issues with this setting.
300 - .8125
600 - 1.0
800 - 1.1875
1100 - 1.25
1200 - 1.2875
Haven't used it much recently, but about 5% drain for 24 hours in sleep. I need to put it through some heavy use to see how bad I can kill the battery.
biohazrd51 said:
1200 - .8125
1100 - 1.0
800 - 1.1875
600 - 1.25
300 - 1.2875
Haven't used it much recently, but about 5% drain for 24 hours in sleep. I need to put it through some heavy use to see how bad I can kill the battery.
Click to expand...
Click to collapse
You probably got the voltages reversed. Not possible to run 300 mhz on 1.2875. Lawl.
patruns said:
I use 300 min and 1200 max and have the governor set to on demand. No issues with this setting.
Click to expand...
Click to collapse
This was my initial setting as well (with the exception of running the max at 1300mhz). However, I realized that it wasn't the max speed that was the issue, I found out that increasing the lower-steppings was key in increasing the overall fluidity of the device as the interactive governor ramped through the steppings.

[Q] Power Saver CPU Option

Quick one here, I've only just stumbled onto the fact that power saver is configurable, and just wondering what the CPU option does? I turned it on and it didnt really seem that different.
Does it throttle CPU frequency? Change governers? disable cores? Just interested, as it could provide some battery savings without losing too much performance if just doing minor tasks. And more than that, I'd just like to know...
Thanks
jonathan_phang said:
Quick one here, I've only just stumbled onto the fact that power saver is configurable, and just wondering what the CPU option does? I turned it on and it didnt really seem that different.
Does it throttle CPU frequency? Change governers? disable cores? Just interested, as it could provide some battery savings without losing too much performance if just doing minor tasks. And more than that, I'd just like to know...
Thanks
Click to expand...
Click to collapse
It runs at 1.2ghz instead of the 1.7ghz thats all from my tests.
recklesslife85 said:
It runs at 1.2ghz instead of the 1.7ghz thats all from my tests.
Click to expand...
Click to collapse
Is there much of a difference in ui smoothness? My nexus 7 runs at 1.2 and it runs fine
Also is it possible that you post a screenshot of a antutu benchmark run with CPU power saver option checked please? Thanks, you early adopters always cop the questions
markj338 said:
Is there much of a difference in ui smoothness? My nexus 7 runs at 1.2 and it runs fine
Also is it possible that you post a screenshot of a antutu benchmark run with CPU power saver option checked please? Thanks, you early adopters always cop the questions
Click to expand...
Click to collapse
Na its the same, but oddly the battery drains the same too so not sure what the point in the option is ha
so workinh on 1.2GHz dont save any battery it must do
It does just not noticeable unless you push the device to it's limits. Try doing non stop video playback with and without the power saver(cpu).

[INFO] Android One Overclocking

Hi guys !
I've been trying to add overclocking to Android One, I'm able to add another frequency (both Overclock and Underclock) but I'm able to test it, the 1391 MHz was the stablest overclock frequency I could get. Decreasing frequency lower than 590 MHz makes booting slower (I don't know why).
Check the screenshot, I'll report more news once I get things finished.
I have attached the mt_cpufreq.c just in case anyone have a kernel source and want to try the overclock.
EDIT: It seems max frequency can't be changed since it's hardcoded to 1.3 GHz, it keeps jumping to 1.3 GHz when screen is turned off, but the frequency sticks when phone is rebooted, but not on screen off.
Click to expand...
Click to collapse
EDIT2: It seems that mt_ptp also controls DVFS, which is interesting. This means we have to edit two files and disable restoring frequency to its default table.
Click to expand...
Click to collapse
EDIT3: I found this in mt_cpufreq.c :
Code:
static unsigned int g_max_freq_by_ptp = DVFS_F0;
Which is defined in the same file, the DVFS_F0 is :
Code:
#define DVFS_F0 (1300000) // KHz
The DVFS_F0 is 1.3 GHz, this might explain why the max frequency keeps jumping to 1.3 GHz when screen off. But this is just an assumption.
I've added mt_ptp.c just in case anyone want to checkout and help the development.
Click to expand...
Click to collapse
Interesting
I had given up all hopes of low level modifications such as over clocking /underclocking/under volting and kernel level wake gestures like double tap to wake etc... This gives me something to look at. Thank you
It seems that max freq can't be set to other than 1300 MHz / 1.3 GHz.
Can anyone here using CM12.1 confirm this bug ? Since it might be because of the ROM but I'm unsure here, it can be either ROM or my custom built kernel.
BTW, 470 MHz isn't fully implemented, the kernel refuses to use it. It might be because I haven't defined it in the volt switch function.
EDIT: Another possibility, it seems on mt_ptp, the clock are either hardcoded or defined in other file. So I have to say that overclocking might be still far away to be achieved.
Why not Overcloack the GPU ??? (NOOB HERE)
Saurabh K said:
Why not Overcloack the GPU ??? (NOOB HERE)
Click to expand...
Click to collapse
GPU is another thing here, it's still too hard to OC CPU itself.
Does the Android One uses MT6582 or MT6582M?(Are there more differences between them other than GPU frequency? MT6582: [email protected]; MT6582M: [email protected])
hstinscdln said:
Does the Android One uses MT6582 or MT6582M?(Are there more differences between them other than GPU frequency? MT6582: [email protected]; MT6582M: [email protected])
Click to expand...
Click to collapse
MT6582 I believe. I never checked but on kernel the chip folder (/arch/arm/mach-) is mt-6582
Can it be used on a 5" screen and MT6582M?
Sent from my Lenovo A536 using XDA Free mobile app
hstinscdln said:
Can it be used on a 5" screen and MT6582M?
Sent from my Lenovo A536 using XDA Free mobile app
Click to expand...
Click to collapse
Depends, does your phone kernel source exist ? If yes, then you're free to try. If not, then don't.
BTW, please don't think this is just a 'install the .c file and get overclock'. It needs many work, and such, I advise you to have at least some advanced knowledge of Linux Kernel.
F4uzan said:
It seems that max freq can't be set to other than 1300 MHz / 1.3 GHz.
Can anyone here using CM12.1 confirm this bug ? Since it might be because of the ROM but I'm unsure here, it can be either ROM or my custom built kernel.
BTW, 470 MHz isn't fully implemented, the kernel refuses to use it. It might be because I haven't defined it in the volt switch function.
EDIT: Another possibility, it seems on mt_ptp, the clock are either hardcoded or defined in other file. So I have to say that overclocking might be still far away to be achieved.
Click to expand...
Click to collapse
i had overclocked sprout in almost every possible sorts i can do. you have not defined 470mhz freq table properly in the file , pm me if you want to know my experience. :good:
Wow, overclocks must drain battery though .........
Saurabh K said:
Wow, overclocks must drain battery though .........
Click to expand...
Click to collapse
Not really, but yeah, it kinda drain battery more than normal 1.3 GHz frequency.
F4uzan said:
Not really, but yeah, it kinda drain battery more than normal 1.3 GHz frequency.
Click to expand...
Click to collapse
How about the you underclock in order to save battery as 1.3 quad core is not that necessary for mild usage.
Saurabh K said:
How about the you underclock in order to save battery as 1.3 quad core is not that necessary for mild usage.
Click to expand...
Click to collapse
200mhz is the lowest underclock i get in my experiments ,i tried 156 mhz but it didn't boots up ?
roshan77ss said:
View attachment 3269028
200mhz is the lowest underclock i get in my experiments ,i tried 156 mhz but it didn't boots up
Click to expand...
Click to collapse
does the device run smoothly on such low clocks ???
Saurabh K said:
does the device run smoothly on such low clocks ???
Click to expand...
Click to collapse
low clock means less processing power so it lags if i set both minimum and max frequency to 200mhz else it is fine[emoji23]
roshan77ss said:
low clock means less processing power so it lags if i set both minimum and max frequency to 200mhz else it is fine[emoji23]
Click to expand...
Click to collapse
OK, so the device will run smoothly on ~550 MHz without loosing too much on performance and save battery also, ?
Saurabh K said:
OK, so the device will run smoothly on ~550 MHz without loosing too much on performance and save battery also, ?
Click to expand...
Click to collapse
yup 550mhz doesn't affect performance that much
roshan77ss said:
yup 550mhz doesn't affect performance that much
Click to expand...
Click to collapse
So, tell me a safe way in which I can underclock my Sparkle V (Stock 5.1)...
Using trickster mod??

HUGE RENDERING, FPS and SMOOTHNESS improvement on OOS.

I don't know if it works on OOS versions but it does, on the OB12. You need to be rooted to be doing this.
Lower the input boost to 1036 on the big and 556 on the small first. Now, change the governor of the big cluster to conservative and the small to ondemand or conservative , benefit!
To see the improvement in FPS, you need to go to developer options and switch on profile GPU rendering. For those who didn't understand this: lower the graph is, higher the fps. Hit thanks if helped
Where to change these settings?
Any kernel manager would do. I'd recommend kernel aduitor
chinmai560621 said:
Any kernel manager would do. I'd recommend kernel aduitor
Click to expand...
Click to collapse
Just change the option of GPU GOVERNER to simple_on demand one from the above mentioned app. It will work smooth.. works for me..:good:?
ashokspidy said:
Just change the option of GPU GOVERNER to simple_on demand one from the above mentioned app. It will work smooth.. works for me..:good:?
Click to expand...
Click to collapse
I'd recommend to leave it on msm-adreno.
What if I'm on RR 5.8.2 and ElementalX? I have ondemand governor option for little but don't have conservative for big cluster.
karliyo said:
What if I'm on RR 5.8.2 and ElementalX? I have ondemand governor option for little but don't have conservative for big cluster.
Click to expand...
Click to collapse
This is exclusive for OOS. In fact, the interactive is supposed to be better than the rest but it's not the case on OOS which is why I made this thread.
chinmai560621 said:
This is exclusive for OOS. In fact, the interactive is supposed to be better than the rest but it's not the case on OOS which is why I made this thread.
Click to expand...
Click to collapse
Oh alright. Little governor ondemand seems quite fine right now.
By the way, are both governors interactive by default?
karliyo said:
Oh alright. Little governor ondemand seems quite fine right now.
By the way, are both governors interactive by default?
Click to expand...
Click to collapse
Has to be. Unless you use blu_spark kernel. It uses blu_activ.
How do these changes affect the battery life?
chinmai560621 said:
Has to be. Unless you use blu_spark kernel. It uses blu_activ.
Click to expand...
Click to collapse
You mean interactive and not blu_active?
I do recommend you guys taking a look at AKT.. There are alot of peformance oriented and balanced profiles that are already better with smoothness then stock.. Also Franco has some magic with stock settings!
chinmai560621 said:
I don't know if it works on OOS versions but it does, on the OB12. You need to be rooted to be doing this.
Lower the input boost to 1036 on the big and 556 on the small first. Now, change the governor of the big cluster to conservative and the small to ondemand or conservative , benefit!
To see the improvement in FPS, you need to go to developer options and switch on profile GPU rendering. For those who didn't understand this: lower the graph is, higher the fps. Hit thanks if helped
Click to expand...
Click to collapse
Hi friend, shall I change both values of big and small? I mean maximum and minimum?
Same, cant find where to change the input values for those two.
rOck4n said:
Same, cant find where to change the input values for those two.
Click to expand...
Click to collapse
You'll see input boost in the bottom section of CPU in kernel adiutor. Core 1- 1036, core 3 -556 is what you've to do. It'll be 1324 default on both. I'm suggesting that for slightly better battery life
MarcTremonti said:
How do these changes affect the battery life?
Click to expand...
Click to collapse
Lower SOTs are obvious, but to what degree is what matters. As far as I see, it's not that much.
GUYS, I recommend not to use this anymore. Oneplus has a reason to not release the kernel with conservative on . This is because conservative is not optimized for battery while interactive is. If interactive weren't optimized for battery, it'd be better than conservative for sure. I get only 4 hr sot on conservative but 5.5 on interactive. Though this is not placebo, it has a negative impact on SOT .
When I change big cluster to conservative, those cores will always stay above 2 GHz, as shown in Kernel Adiutor.
chinmai560621 said:
GUYS, I recommend not to use this anymore. Oneplus has a reason to not release the kernel with conservative on . This is because conservative is not optimized for battery while interactive is. If interactive weren't optimized for battery, it'd be better than conservative for sure. I get only 4 hr sot on conservative but 5.5 on interactive. Though this is not placebo, it has a negative impact on SOT .
Click to expand...
Click to collapse
The thread is about more performance and you're discussing battery life....of course it will have a lower battery life, the question is are you happy when your quad-core phone stutters....
chinmai560621 said:
You'll see input boost in the bottom section of CPU in kernel adiutor. Core 1- 1036, core 3 -556 is what you've to do. It'll be 1324 default on both. I'm suggesting that for slightly better battery life
Click to expand...
Click to collapse
Got it, thank you. I did notice a slightly battery improvement after two cycles.
Little investigation..
chinmai560621 said:
GUYS, I recommend not to use this anymore. Oneplus has a reason to not release the kernel with conservative on . This is because conservative is not optimized for battery while interactive is. If interactive weren't optimized for battery, it'd be better than conservative for sure. I get only 4 hr sot on conservative but 5.5 on interactive. Though this is not placebo, it has a negative impact on SOT .
Click to expand...
Click to collapse
Good you realised that.. I did a little investigation on your tweak.. Apparently setting governor to conservative locks the frequency of big cluster to max possible, usually above 2 ghz and it will step down slowly ( by slow I mean really slow like 1-2 seconds). Thus causes you to have very less render times on gpu profile as shown in the xda portal post.. I opened up ex kernel manager and observed same freq in higher range.
After some time I just changed governor to interactive and changed minimum freq of big cluster to 2 ghz.. I observed the same render times as situation as time when conservative was set as governor...
So this tweak is nothing but type of placebo since ramping up freq can lead to faster processing
Edit.: Couple of people on xda portal have said the same.. I didn't check it..

Categories

Resources