Tool to set frequency for each core? - G4 Q&A, Help & Troubleshooting

Hi all,
I have a rooted European h815 and I wonder if you know any tool which lets me set the frequency for each core (or at least lets me set the frequencies for the two faster cores and the frequencies for the four lower clocked ones).
So far I tried the 3c system monitor and trickster kernel settings, neither of them was able to distinguish.
Do you know a tool that helps?

penĀ² said:
Hi all,
I have a rooted European h815 and I wonder if you know any tool which lets me set the frequency for each core (or at least lets me set the frequencies for the two faster cores and the frequencies for the four lower clocked ones).
So far I tried the 3c system monitor and trickster kernel settings, neither of them was able to distinguish.
Do you know a tool that helps?
Click to expand...
Click to collapse
I'm guessing you'll be needing a different kernel to do that. Don't think you can tweak the stock one . but I might be wrong

Ok that might well be - didn't think of it, thanks for your reply

Related

[Kernel] Lightspeed 0.1.1 - Faster than fast enough.

FOR 1.5 ROMS ONLY.
Thanks to teknologist, maxisma, toastcfh, and all those who contributed to cracking the CPU open for overclocking.
Looking at the CDMA forums, it seems they were a step ahead of us with their kernel speedups. With help from their work, and particularly, from toastcfh, I've been able to patch and compile a kernel based on teknologist 1.9 with added features and speed.
Added features and changes so far:
- BFS, brainfuck scheduler. Basically, helps the CPU respond faster.
- Overclock. Up to 768MHz is enabled, but defaults to a safer 595MHz. It should be compatible with SetCPU. Be sure to use the custom setting.
- Deadline I/O scheduler. It should make file read and write operations a tad faster. We'll see if it really does.
Git repo: http://github.com/Soaa-/-lightspeed/tree/master/kernel-hero/
It runs at 595MHz! How do I make it faster?
Download and install SetCPU. It's available for free on xda-developers, but you can support the author by buying a copy on the market. Launch SetCPU and pick the custom option.
My phone doesn't wake sometimes! Or, it wakes and the crashes!
Use SetCPU and set the CPU governor to 'performance'. Try lowering the clock speed if the problem persists.
Can I flash this on recovery?
The first overclocked kernel was available only as sources, and binaries had to be flashed manually. Lightspeed comes as a standard update.zip package to be flashed through recovery though.
Does Wi-fi work?
Yes.
Does compcache/ramzswap work?
No idea. I don't use it.
Is it noticeably faster?
Yes. This isn't a 5% increase in speed, where the difference is only seen through benchmarks. Most phones can handle 691MHz, which is a 30% increase in speed. The lucky ones who can clock up to 768MHz get a 45% increase. The net result is a more responsive phone.
Does the CPU frequency scale to usage?
It can, if you keep the ondemand CPU governor. However, there have been reports of instability using the ondemand governor, so the performance governor is recommended instead.
Do you accept donations?
Not yet, as my work so far has just been putting other people's work together. My priority now is to make our phones better, not to make money.
0.1.1
Integrated setcpu.txt into update.zip.
0.1
Initial release
Hi,
Looks great! Does it work in 2.1 roms?
Greetz
I want to know also
Does it work on 2.1 oms ??
Sorry, the kernel is made for 1.5 ROMs only. The only decent kernel for 2.1 is still the same leaked one from a while back, I think.
ok, gonna try it now on a 1.5 rom, with setcpu.
let you know if speed is there
i use a stock rom, and have the recovery menu so can i put the zip on the sd card and then flash it ?
I am also interested in a guide on how to install/flash this properly.
Just like knudsen81 said. Everything working perfect with CPU running on 595Mhz.
From what I see, it should be flashed like all other kernels so just like ROM or radio.
Does this kernel scales overclocking depending on CPU load? For ex. lowers when idle or screen turned off.
ZeppeMan said:
Just like knudsen81 said. Everything working perfect with CPU running on 595Mhz.
Click to expand...
Click to collapse
when setcpu launches, it doesnt have the "auto detect" option
when i click on custom, it shows 528 max and no more..
what am i doing wrong here?
flashed the update.zip like a normal rom/radio btw.
Good job! looking forward for testing. What's actually missing from making overclocking work with 2.1?
mixxy said:
when setcpu launches, it doesnt have the "auto detect" option
when i click on custom, it shows 528 max and no more..
what am i doing wrong here?
flashed the update.zip like a normal rom/radio btw.
Click to expand...
Click to collapse
I used Overclock widget to see the speed of the CPU. I only wanted to confirm if the 595Mhz was true
Also Linpack score went from 2.3 to 2.6.
mixxy said:
when setcpu launches, it doesnt have the "auto detect" option
when i click on custom, it shows 528 max and no more..
what am i doing wrong here?
flashed the update.zip like a normal rom/radio btw.
Click to expand...
Click to collapse
Create a file named setcpu.txt at the SD card (so it will be /sdcard/setcpu.txt)
and enter the following into that file:
Code:
96000,115200,134400,153600,172800,192000,211200,230400,249600,268800,288000,307200,326400,345600,364800,384000,403200,422400,441600,460800,480000,499200,518400,537600,556800,576000,595200,614400,633600,652800,672000,691200,710400,729600,748800,768000
This will allow setting frequencies from 96 to 768 MHz via SetCPU
Thanx 4 the great work.
2 questions.
first, what does "Git repository" means and when will u release it?
second, can i flash it over Modaco 3.2 through recovery mode?
sorry 4 my bad english.
k0rner said:
Create a file named setcpu.txt at the SD card (so it will be /sdcard/setcpu.txt)
and enter the following into that file:
Code:
96000,115200,134400,153600,172800,192000,211200,230400,249600,268800,288000,307200,326400,345600,364800,384000,403200,422400,441600,460800,480000,499200,518400,537600,556800,576000,595200,614400,633600,652800,672000,691200,710400,729600,748800,768000
This will allow setting frequencies from 96 to 768 MHz via SetCPU
Click to expand...
Click to collapse
thanks for the help, lets try this out and see what happens =P
worked like a charm, thanks a lot =)
Does the camera work?
Camera, WiFi should work because it's an (old) 1.5 Kernel.
Other overclocked kernel works faster than this one (and with this one i've freezed ..) ..
With the other linpack gives me 3.2 3.3
with this 2.6 at max ..
:/
Flemmard said:
Other overclocked kernel works faster than this one (and with this one i've freezed ..) ..
With the other linpack gives me 3.2 3.3
with this 2.6 at max ..
:/
Click to expand...
Click to collapse
Have you set the cpu to 768? because the other kernal runs at 710 by default where as this runs at 595 but can be clocked all the way up to 768.
Please read the forums before complaining it doesn't do something.

[DEV][KERNEL] Tegra3 power management notes and tricks

This thread contains findings on how to view and set kernel parameters related to power management. Although there is no kernel source for One X, some information can be obtained from Transformer Prime kernel sources (also a Tegra 3 device), and from the device itself via sysfs interface.
sysfs files related to CPU power management:
/sys/kernel/debug/tegra_hotplug/max_cpus - maximum CPUs to use. User-configurable, default 4. This is not touched by the Android OS, and will remain in whatever state we set until reboot.
Set this to "1" to make the phone a lot less power-hungry and overheating.
At the cost of performance, of course.
*NOTE: second core will activate sometimes if this is set to "1", but 3rd and 4th cores are disabled for sure.
/sys/kernel/debug/tegra_hotplug/min_cpus - minimum number of CPUs to use.
This _is_ touched by the OS, and can not be set reliably.
/sys/kernel/debug/tegra_hotplug/stats - time each core spent active. Including 5-th "low-power" core.
e.g.:
Code:
cpu: G0 G1 G2 G3 LP
transitions: 26 12 0 0 25
time plugged: 3110 1222 0 0 95122
time-stamp: 4296183486
/sys/kernel/debug/cpuidle/lp2 - another stats interface.
/sys/module/cpu_tegra/parameters/cpu_user_cap - Max frequency cap for all cores. Default 1500000 (1.5GHz), can be set to any lower value to underclock.
But it is often set by the OS different values (most frequently, back to it's maximum). Maybe, changing this string in libhtc-opt2.so via hex editor can prevent system from changing it?
/sys/kernel/cluster/active - currently active CPU cluster. "LP" for low-power core, "G" for generic (normal) cores.
Can be changed manually, but is also modified by the system at will.
All above values can be changed from root shell via "echo 'value' > /sys/path/to/file"
Maybe, this will come handy to some ROM or CPU-monitoring app developers.
References:
Asus Transformer kernel source
[DEV] Enable 2D GPU rendering in HTC One X & about build.prop tweaks
some findings by phirenz
is there any way to request more use of the companion core?
In case anyone's wondering, I just found out that /sys/kernel/cluster/active must be opened as root even for reading; opening the file as any other user will not succeed.
The other files seem to allow reading as a standard user, however.
It woulod be great is someone created an app for setting number of CPUs. It is useful sometimes to set it to 1 when you are traveling and want to get max possible battery.
It would be even better if it was possible to disable all 4 cores and force system to use LP core only. It would be brilliant max power saving mode.
I've modified OS Monitor to support Tegra 3's stuff (temperature, number of cores and determining whether it is low power/general CPU in use) and my experience is that there's no or very little battery gains to be had because the other 3 cores are off most of the time anyway (when idle)
I'm using stock 1.28. The low power core doesn't seem to like being activated for more than a few seconds at a time, too.
I've modified OS Monitor to support Tegra 3's stuff
Click to expand...
Click to collapse
Can u share the apk here...xD???
thanks to the OP.....I don't have a One X but this info helped me to force all 4 cores of my Asus TF300T go online and offline as i wish.
schriss said:
It woulod be great is someone created an app for setting number of CPUs. It is useful sometimes to set it to 1 when you are traveling and want to get max possible battery.
It would be even better if it was possible to disable all 4 cores and force system to use LP core only. It would be brilliant max power saving mode.
Click to expand...
Click to collapse
use core control or francos kernel updater works for every custom kernel also stock kernel and you can choose how many cores...but battery life is not better with deactivated cores and soemetimes even worser -.-
I used to be able to do this, but now I'm using n3o kernel and I can't find the tegra_hotplug folder inside sys/kernel/debug. Help?
joeystar said:
I used to be able to do this, but now I'm using n3o kernel and I can't find the tegra_hotplug folder inside sys/kernel/debug. Help?
Click to expand...
Click to collapse
Man ask this in kernel thread not here....-.-
Sent from my HTC One X using xda app-developers app

Is it normal that quick system info reports my cpu clock is at 1.4ghz instead of 1.5?

Hi. I have a rooted HTC One X international version with the quad core processor supposedly. 1.5ghz but when i checked quick system info it says my cpu clock is only running at 1.4ghz. I have set cpu installed and i have ensured that ive set the min and max to 1.5ghz but still it remains at 1.4ghz. I dont know if it was like this before i rooted my device or before i installed setcpu, or if this is just the way its supposed to be. Please advice.
If ever this is unusual, could someone tell me how to fix it? Should i reflash the kernel or bootloader?
Thanks in advance for ur help.
draftbeer89 said:
Hi. I have a rooted HTC One X international version with the quad core processor supposedly. 1.5ghz but when i checked quick system info it says my cpu clock is only running at 1.4ghz. I have set cpu installed and i have ensured that ive set the min and max to 1.5ghz but still it remains at 1.4ghz. I dont know if it was like this before i rooted my device or before i installed setcpu, or if this is just the way its supposed to be. Please advice.
If ever this is unusual, could someone tell me how to fix it? Should i reflash the kernel or bootloader?
Thanks in advance for ur help.
Click to expand...
Click to collapse
i tried it and the cpu range shows as 51 to 1500 no probs.
try cpu spy, then run a bench mark service, then go back to cpu spy and check if it reached 1500ghz
Oh, sorry if I got misunderstood. Setting the range is NOT the problem. I can set it just fine, and the profiles work well too. It's just that if I set the min and max to 1500mhz, the ACTUAL cpu clock (the large number on top of the min and max sliders) remains at 1400. When I lower/change the min max, the frequency lowers/changes accordingly. But, as I mentioned, the max ACTUAL cpu frequency remains at 1400mhz even though the sliders are already set to 1500mhz.
So, I want to know if that's normal. I read from somewhere that the maximum frequency for multi-core is 1400mhz and the maximum frequency for single core is 1500mhz. But I'm not sure though so I want to verify that information.
Thanks!

How do I go about overclocking my HTC One X?

Hi all I'm fairly new to these forums, although I have been watching from afar for quite some while now!
I have been trying out custom roms and various kernels and was wondering how do I go about overclocking my device? Only reason I am asking is because I was checking out benckmark results for other devices and noticed some can be particularly high.
Any insight would be most appreciated!
I wouldnt try any overclocking on the HOX because of the heat issues. A more safe and stable way of doing it is changing the govenor of the kernel or forcing cores online. I think you can use core control (in the apps and themes section) to change core behaviour and system tuner to change govenor.
view heisoom
I have now installed core control. Got to admit it is nice having the option to save a bit more power. How much as an estimate do each of cores use anyway just out of interest?
meleelord said:
I have now installed core control. Got to admit it is nice having the option to save a bit more power. How much as an estimate do each of cores use anyway just out of interest?
Click to expand...
Click to collapse
you can download an app called tegrastats to find out more but all you should know is this. once you activate the corecontrol and depending what app you use you should be fine. if i was you i would also use no-frills cpu app. that way you can underclock and would save you more juice
Goku80 said:
you can download an app called tegrastats to find out more but all you should know is this. once you activate the corecontrol and depending what app you use you should be fine. if i was you i would also use no-frills cpu app. that way you can underclock and would save you more juice
Click to expand...
Click to collapse
Fantastic! Many thanks for the advice. I have now installed no-frills cpu, and started to tinker around with the settings. Could I ask as I am still fairly new to some of this, when I first went on to the settings both maximum and minimum were set to 1.5 GHz (Not sure if it was just saying this on the app or not or if these are the actual settings) but I would guess this would use a lot more power am I right?
meleelord said:
Fantastic! Many thanks for the advice. I have now installed no-frills cpu, and started to tinker around with the settings. Could I ask as I am still fairly new to some of this, when I first went on to the settings both maximum and minimum were set to 1.5 GHz (Not sure if it was just saying this on the app or not or if these are the actual settings) but I would guess this would use a lot more power am I right?
Click to expand...
Click to collapse
yes you are right. put the min frequency to say 200 or 300 mhz and then press apply on boot and then reboot and you should be fine

Is Redmi note 8 pro locked at 2 GHz normal?

i've been using this phone for about 2 years now and recently moved (about a few months ago) to using a custom rom (crdroid 7.1.2). it was running smooth and cool until day the clockspeed decided to lock itself at 2000 MHz (checked using cpu-z). I do not know if this is normal but the phone's temperature goes up to 36C on idle. i thought the problem was with the Lspeed app (+custom kernel) so i uninstalled it but it didn't work. I also factory resetting it, but still not luck. will updating the firmware resolve my issue? if not, what other available solutions are there?
have you thought about flashing the stock kernel ?
Fytdyh said:
have you thought about flashing the stock kernel ?
Click to expand...
Click to collapse
I have, but it still gets hot
do you use a case ? does your phone goes over 45 degrees celsius when charging ?
Fytdyh said:
do you use a case ? does your phone goes over 45 degrees celsius when charging ?
Click to expand...
Click to collapse
I do use a case, but hasn't been this hot before recently, and it does tend to hit 40C when charging
topsecretasian said:
I do use a case, but hasn't been this hot before recently, and it does tend to hit 40C when charging
Click to expand...
Click to collapse
If you are using Fast Charging, that heating is entirely normal (happens to me too)
But heating during idle is not normal. Try changing CPU governor to something else. (like schedutil or powersave)
Canny1913 said:
If you are using Fast Charging, that heating is entirely normal (happens to me too)
But heating during idle is not normal. Try changing CPU governor to something else. (like schedutil or powersave)
Click to expand...
Click to collapse
Do you know how to change cpu governor? I tried doing it last night but didn't find a whole lot of information. Schedutil seems to just set it all the way to 2ghz, so I want to change it to powersave
topsecretasian said:
Do you know how to change cpu governor? I tried doing it last night but didn't find a whole lot of information. Schedutil seems to just set it all the way to 2ghz, so I want to change it to powersave
Click to expand...
Click to collapse
use Rootify, select the CPU tab located at the top then change it.
The app sometimes gets stuck at Loading screen though.
Canny1913 said:
use Rootify, select the CPU tab located at the top then change it.
The app sometimes gets stuck at Loading screen though.
Click to expand...
Click to collapse
ok so it does work when i change the cpu govenor, but the only option that actually works is 'powersave' (as well as 'userspace'). all the other ones still sets it to 2GHz. 'userspace' seems to have a somewhat of an improvement but it's only setting everything to a constant value. is there a way have it set to balanced mode?
topsecretasian said:
ok so it does work when i change the cpu govenor, but the only option that actually works is 'powersave' (as well as 'userspace'). all the other ones still sets it to 2GHz. 'userspace' seems to have a somewhat of an improvement but it's only setting everything to a constant value. is there a way have it set to balanced mode?
Click to expand...
Click to collapse
powersave forces the processor to work in the lowest frequency availible, thus consuming less power.
userspace allows the app to set the CPU frequency whatever it wants. This isn't supposed to be used in Android since changing CPU speed thorough an app is super uncommon.
Others like ondemand normally keep the power low but starts using the higher frequencies if a processor intensive app is launched.
You can learn which governors do what in this post so you can set the most suitable one for you.
[REF][GUIDE]Saber's guide on CPU governors, I/O schedulers and more!
Collective guide of CPU governors, I/O schedulers and other kernel variables I present to you a wonderful collection of descriptions, comparisons and graphs of common kernel variables. Before continuing on the wonderful journey of Linux kernel...
forum.xda-developers.com
Canny1913 said:
powersave forces the processor to work in the lowest frequency availible, thus consuming less power.
userspace allows the app to set the CPU frequency whatever it wants. This isn't supposed to be used in Android since changing CPU speed thorough an app is super uncommon.
Others like ondemand normally keep the power low but starts using the higher frequencies if a processor intensive app is launched.
You can learn which governors do what in this post so you can set the most suitable one for you.
[REF][GUIDE]Saber's guide on CPU governors, I/O schedulers and more!
Collective guide of CPU governors, I/O schedulers and other kernel variables I present to you a wonderful collection of descriptions, comparisons and graphs of common kernel variables. Before continuing on the wonderful journey of Linux kernel...
forum.xda-developers.com
Click to expand...
Click to collapse
I see. Well I guess it does work as a solution.
Thanks for the help!

Categories

Resources