How to add cpu/gpu frequencies - Xiaomi Redmi 4 Prime Questions & Answers

Anybody knows which files contain the information needed to oc the cpu and gpu?I'm trying to build a kernel but i can't find info about this for our phone.Actually there isn't much info for this subject in general.Other phones with the same cpu have plenty of oced kernels so it's doable for r4p as well.

Ask the devs who works on kernel on Telegram.

Related

[DISCUSSION-TEST][25 JULY]CPU Governors and I/O Schedulers in DooMLoRD's Kernels

Since the moment that most of x10 users are using custom kernels and our devs are working hard to add new features and add-ons, i think that this thread can be a good place for most of us,like me, that would like to know much more about technical specs and options and for all devs, like a place for reporting experiences and give suggestions.
Before starting..
ALL CREDITS AND MANY THANKS TO:
- zdzihu for providing us custom kernels and for all his hard work in x10 development
- DooMLoRD for modding and adding new features and helping us with kindly support
Link to Z’s kernels: http://forum.xda-developers.com/showthread.php?t=1135475
Link to DooMLoRD’s kernels: http://forum.xda-developers.com/showthread.php?t=1172200
In the last few days, DooMLoRD has worked over his kernel ( v03) in order to add new I/O scheduler types and new CPU governors and he has let us the possibility to choose all settings we want and prefer (according with his kernel’s name “Power to the people”). So now, the objectives of this thread are:
-Post and link information about scheduler and cpu governor types
-Post tests, opinions, comparisons and suggestions about differences between them and over different ROMs
So standard posting form should be as below:
Kernel type ….(including max OC frequency used)
ROM and baseband version …
…all that you want regarding cpu governors and schedulers… ( benchmark tests are very appreciated )
Here, there are some starting and basic information:
http://en.wikipedia.org/wiki/I/O_scheduling
http://www.mjmwired.net/kernel/Documentation/cpu-freq/governors.txt
I hope this thread can be useful for all and may become a way of improving our experiences with the x10!!
Best regards
Kekko
my phone wroks fine @ 1152 with doom's kernel v3 x series (UNDERVOLTED)
@1152 interactive governer is the fastest and doesn't drain the battery. smartass though i think it's less battery consuming but is laggy.performance governer: wlod after a pretty time
@1190 smartass:so laggy and can't use it. interactive &performance :reboot
what's strange for me here is that with WB cust. kernerl 4.0.3 phone reboots always @1113 and didn't be stable till i reduced the MAX frequency to 1036
now with doom's kernel it's stable @1152 is that because of undervoltage?!! and if so..can i reach @1228 with more UV ?!!
for me i didn't use the s series (same kernel with stock voltage) so can't decide
I got error: "failure at line 1: copy_dir package: system system: installation aborted" when flash Doomkernel v4b for lockbootloader. Can u help me to fix it?
Yeah sometimes you get errors but still the kernel gets installed
Go to Settings-> about phone and check the kernel version
How about others added in v6 of doom's kernel
such as: smartassV2,interactiveX and etc..
eh_hk said:
How about others added in v6 of doom's kernel
such as: smartassV2,interactiveX and etc..
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?p=20797923
Sent from my X10i S

[Q] Kernel Moudles for CPU Governors

Is it possible to add cpu governors eg ondemand.ko into /system/lib/module and ismod them in init.grouper to allow different governors on a stock kernel
and if so does anyone have the modules or can point me in the right direction of how to build, create, and learning materials books, sources on the android kernels and modules
now i know a little bit about a little bit when it comes to android now im assuming that the android kernel is just a branch of the linux kernel and shouldn't be much different from it however im not sure what i should be looking for or reading
the kernel modules for cpu governors will help be finish my rom for the nexus 7 however if it turns out that some good resources comes up and i can pick up on it quickly i will have a custom kernel for the rom as well
am i right/wrong in saying the nexus kernel tree inc. drivers etc for tegra3 can be pulled via git from googles kernel repo

Khaon's Kernel and GPU overclock.

Hi and welcome on forum.
I in this forum quite while but only just for read and collecting information.
I have Nexus 10 with AICP 6.0.1. To unlock potential of this tablet i install custom kernel from @Khaon.
In first post its stated:
- UV and OC both for the GPU AND CPU supported
Unfortunately i can only increase CPU speed as well as CPU voltage.
I don't have option to change GPU frequency.
To do this im using "Kernel Adiutor".
Can you help me with my question??
Regards
HipHopAst said:
Hi and welcome on forum.
I in this forum quite while but only just for read and collecting information.
I have Nexus 10 with AICP 6.0.1. To unlock potential of this tablet i install custom kernel from @Khaon.
In first post its stated:
- UV and OC both for the GPU AND CPU supported
Unfortunately i can only increase CPU speed as well as CPU voltage.
I don't have option to change GPU frequency.
To do this im using "Kernel Adiutor".
Can you help me with my question??
Regards
Click to expand...
Click to collapse
Sorry for the late reply.
it is normal you don't see anything in kernel audiutor because :
1) latest kernel of mine( marshmallow) was started from scratch and I didn't add gpu support
2) kernel audiutor 's design doesn't allow to easily include gpu control for our device. The easiest solution i could find was to edit some init.d script.
Now that I got more time I will include again my gpu patches so gpu full control is back

[Q] Yotaphone 2 Custom Kernel?

I have a YD206, and it burns almost all the time, it's always uncomfortable to hold despite on mere 5 mins of web browsing. Battery usage always shows Display as the culprit, but that's not what appears to be the cause.
The only fix was to install a kernel manager and underclock the device to 1574 Mhz, to keep the temperatures under check. Just as I was strolling on the Internet and stumbled upon a link to 4pda.ru. However, a dev has forged a kernel with various CPU governors. Here's the link:
https://4pda.ru/forum/index.php?showtopic=797643&st=560
I request anyone here who speaks Russian or is acquainted with the site, to share the information and the kernel so we may also benefit from the rare development on Yotaphone.
Yes it's the old Domnescu's kernel, but it's only for RU Lollipop .134 version. We are waiting that he compiles the one for Marshmallow and I will put it in the guide.
Thank you for the update. Development is extremely rare on this device and custom kernel is definitely a step ahead in controlling system level events of the device, usually not possible through the OS. For example the device could benefit from Undervolting, bringing down temperature and enhancing battery life.
Please do share whenever possible.
Thanks.
glasseffects said:
I have a YD206, and it burns almost all the time, it's always uncomfortable to hold despite on mere 5 mins of web browsing. Battery usage always shows Display as the culprit, but that's not what appears to be the cause.
The only fix was to install a kernel manager and underclock the device to 1574 Mhz, to keep the temperatures under check. Just as I was strolling on the Internet and stumbled upon a link to 4pda.ru. However, a dev has forged a kernel with various CPU governors. Here's the link:
https://4pda.ru/forum/index.php?showtopic=797643&st=560
I request anyone here who speaks Russian or is acquainted with the site, to share the information and the kernel so we may also benefit from the rare development on Yotaphone.
Click to expand...
Click to collapse
I tried no frills CPU Control to underclock CPU but any of versions from GP not recognises root... I am rooted so what góra wrong?
wiewiorcwaniak said:
I tried no frills CPU Control to underclock CPU but any of versions from GP not recognises root... I am rooted so what góra wrong?
Click to expand...
Click to collapse
NoFrills does not recognize root. Please try SetCPU, it further offers you the option to assign event based profiles (different CPU frequency tables and governor based on screen state, charge state). It certainly works on Marshmallow 6.0.1. However it's a fix, not a solution, it needs to be implemented through the kernel.
To whom it may interest, I'll attach here the Domnescu's Kernel 1.07 to be used WITH LOLLIPOP RU 134 ONLY. It has multiple governors, schedulers, more files' type support. By the way I read nothing about UV, so I suppose it is not supported in this version.
The .zip with a longer name must be extracted and flashed using fastboot, the other .zip file with a shorter name can be flashed using TWRP or sideloaded.
TheArt. said:
To whom it may interest, I'll attach here the Domnescu's Kernel 1.07 to be used WITH LOLLIPOP RU 134 ONLY. It has multiple governors, schedulers, more files' type support. By the way I read nothing about UV, so I suppose it is not supported in this version.
The .zip with a longer name must be extracted and flashed using fastboot, the other .zip file with a shorter name can be flashed using TWRP or sideloaded.
Click to expand...
Click to collapse
Thank you for sharing! I'm sure people will find its use as this could be a way to associate different governors with the recent Marshmallow kernel. I'm not sure whether Yota has released the sources for Kernel for Marshmallow. If they have, then we can expect some development soon, else, the longer it takes, the sooner the device would be lost into oblivion.

So Called Kernel[7.0][G925F/I]

So Called Kernel​
Disclaimer
Code:
I'm Not responsible for ur bricked devices or something that happened to your phone after flashing this. flash it at your own risk
Hey guys.....this is so called engineer. Hope you all doing well. I've been busy these days with my studies. so i'm not active these days. anyway i got free time now. first i thought of releasing my rom's second version and then i caught up with an idea why not make a kernel. so here i am. This kernel is in testing stage. I've tested it and so far no bugs or lags. hope it will be same with you.
Kernel Features
Built with google toolchain v4.9
set selinux to permissive(I know how important it is)
Cpu big cluster freq can be over clocked and under clocked up to 2400MHz and 400MHz
Cpu small cluster freq can be over clocked and under clocked up to 1800MHz and 200MHz
fixed safetynet
you can tweak kernel using Mtweaks for now. I will add synapse support later.
small edits to ramdisk.
better deep sleep
tweaked Tcp
added some features to default config file.
edited ramdisk default.prop
added latest magisk 17.3(kernel is prerooted.u dont need to flash anything)
added busybox,sqlite scripts
a few more...... much will be added in the future
Installation
1.Go to TWRP or whatever the recovery that u have installed
2.Flash kernel...........reboot..........enjoy
if u like it just press Thanks button:good:
Download
so called kernel
Credits
@The Sickness (thank you very much for your guide.)
@WildfireDEV
@AntonioMartitos
@enesuzun2002
@minealex2244
@samsung(for its source)
@google(for its toolchain)
@So Called Engineer(me)
@Linux(for build environment)
lets stop its getting weirder lol...
forgive me if i forgot someone
contributer
So Called Engineer
Source : https://github.com/so-called-engineer/so-called-kernel-v2
Version:
Status : Beta

Resources