[mod][fix]frequecy fix for all roms and kernels - Xiaomi Mi 4i

You may have faced this bug
-Not Able to Lock Frequencies
-Not able to Change Governor
Here is the Solution
Just Boot to recovery and flash this zip
Download Link
ANDROID FILE HOST - FREQFIXbyRAZORSHARP.zip
GOOGLE DRIVE - FREQFIXbyRAZORSHARP.zip
CREDITS
VARUN CHITRE( FOR HELP)

Does this fix work for stock MIUI 6 kernel??

Awesome! I can't believe no one comments on this. This fixed my issue with miui7(completely stock btw) that for some reason didn't use lower frequencies than 960mhz. Just used no frills cpu control and was able to fix the lower frequency at 200mhz and changed governor! Checked with cpu spy and saw its now using the lower frequencies. Thanks a lot

@Kiran Anto does your RazorReborn kernel also need this patch? or were you able to incorporate this into it? Btw thanks for the good work!!

How can i undo this? the setting messing up with my phone.. works the opposite~

This thread is dead
Sent from my Mi 4i using XDA Free mobile app

Related

[KERNEL]★Cranium Kernel V6- OC/UV | 12 Govs/ 5 I/o |Much More!★

Hello guyz..........and girls.
I see that many non-cranium users are using my kernel as well,so i decided to make a separate thread
FEatures​
Based on manveru0's kernel,with the following additions/changes-
Overclock Upto 1930 Mhz
NEW CPU GOVERNORS (USE NO-FRILLS CPU CONTROL/SET-CPU TO CONTROL)
Lagfree
Smartass2
Scary
Minmax
SavagedZen
Smoothass
Brazilian Wax
InteractiveX
Hotplug
NEW I/O SCHEDULERS (USE NO-FRILLS CPU CONTROL/SET-CPU TO CONTROL)
BFQ
SIO
VR(BEST FOR ANTUTU TESTING,ALONG WITH CPU GOVERNOR "PERFORMANCE")
SFB NET SCHEDULER
LATEST SAMSUNG PATCHES
init.d support
VDD Stats Support-Software UV(USE INCREDI CONTROL TO SET!!!!!!) {Thanks to -snq}
Custom Bootanimation support-Place sanim.zip in /system/etc
CleanCache
And a hell lots of other patches!​
Download
http://sakindia123.prophecy.li/downloads/cranium-rom-kernels
Instructions-
*Place the .zip in your Sd card.
*Go into recovery mode(U must have FeaMod Recovery to use this!)
*Flash the zip.
Pretty easy,huhh?
Kernel SOurces-
https://github.com/sakindia123/Cranium_Kernel
Kindly keep the thread neat and clean!
An yes,u can flash it on roms other than cranium
PS-Sneak Peek for RC8 Kernel
https://github.com/downloads/sakindia123/Cranium_Kernel/RC8-sneak-peek.tar (Flash via ODIN)
Hi sakindia,
That 1 up to date or previous 1..sorry just to confirm b4 download..
Sent from my GT-I9001 using xda premium
Its the same kernel i guess, just a new thread from the rom..
mhairy said:
Hi sakindia,
That 1 up to date or previous 1..sorry just to confirm b4 download..
Sent from my GT-I9001 using xda premium
Click to expand...
Click to collapse
Its actually v6 of the kernel(used in rc6)'
Benchmarks show that v6 outperforms v7
oopsie daisie double post
ohhh~~THANKS a LOT!! I like this kernel. Btw, how can I change the I/O SCHEDULERS?
sakindia123 said:
Its actually v6 of the kernel(used in rc6)'
Benchmarks show that v6 outperforms v7
Click to expand...
Click to collapse
What are you going to do with test kernel rc8?
Sent from my GT-I9001 using XDA App
alextso321 said:
ohhh~~THANKS a LOT!! I like this kernel. Btw, how can I change the I/O SCHEDULERS?
Click to expand...
Click to collapse
As always...no frills or setcpu...both from market
pyronia said:
As always...no frills or setcpu...both from market
Click to expand...
Click to collapse
Setcpu can't change io schedule. Use voltage control.
Sent from my GT-I9001 using xda premium
fadzlihellmuth said:
Setcpu can't change io schedule. Use voltage control.
Sent from my GT-I9001 using xda premium
Click to expand...
Click to collapse
With No frills you can change the I/O.
Sent from my GT-I9001 using XDA App
anyway, just to let u know. been using rc8 for 1 day now. it works fine
annoymous1234 said:
anyway, just to let u know. been using rc8 for 1 day now. it works fine
Click to expand...
Click to collapse
could u be more specific? ... how about battery life?... how much u can get?.. and is it lag or not?
Maybe kernel RC8 solved the problem ?
Hi Sakindia,
don't want to be too pushy but on my investigations for a solution concerning the charging problem in the original cradle maybe you have a solution. I figured out that all open source kernels suffer from the same problem as mentioned here:
http://forum.xda-developers.com/showpost.php?p=11854684&postcount=1
Maybe it is possible to reintegrate the mentioned modul without loosing the advantages of the cranium kernel
Campai
Rhonin
Rhonin86 said:
Hi Sakindia,
don't want to be too pushy but on my investigations for a solution concerning the charging problem in the original cradle maybe you have a solution. I figured out that all open source kernels suffer from the same problem as mentioned here:
http://forum.xda-developers.com/showpost.php?p=11854684&postcount=1
Maybe it is possible to reintegrate the mentioned modul without loosing the advantages of the cranium kernel
Campai
Rhonin
Click to expand...
Click to collapse
Sorry.i have no idea about it
It can be done if i remove samsung patches,but that affects performance!
FaqihCici said:
could u be more specific? ... how about battery life?... how much u can get?.. and is it lag or not?
Click to expand...
Click to collapse
i lose around 3% on 6 hours idle with 122 min freq and smartassV2. most importantly there is no wakelock and no lag.
UPDATE: last night i lose only 1% for 6 1/2 hours (sleep time). i use ondemand this time, i think its better compare with smartass, gonna stick with ondemand
Nice work brother
can someone tell me what I/O schedulers exactly do? or point me a tutorial about this?
faust.deaconu said:
can someone tell me what I/O schedulers exactly do? or point me a tutorial about this?
Click to expand...
Click to collapse
I/O Schedulers
lol

[UPDATE][•KERNEL•UNIVERSAL]TITANIUM KERNEL • Battery • CIFS/TUN • OC/UV • Lots More!

★ ★Hello guys, I am back with new Kernels! ★ ★
★ FAster/Sleeker and better than my previous builds- ★
★ First of all-
★ MY Sources are based on XDA_BAMs sources!
★ Thanks to him for letting me use it!
READ THIS FIRST-
Code:
I am not responsible for bricked devices, dead SD cards,
thermonuclear war, or you getting fired because the alarm app failed.
Please do some research if you have any concerns about features included in this ROM before flashing it! YOU are choosing to make these modifications,
and if you point the finger at me for messing up your device, I will laugh at you.
FEATURES-​
1] Disabled some unnecessary stuff
2] I/O Patches and Tweaks to improve I/O
3] Stochastic Fair Blue Net Scheduler
4] Used many Makefile Optimizations with Linaro 4.6.3
5] Cleancache driver
6] EXT23 mounted as EXT4 (faster and better!)
7] Overclock upto 1.2Ghz w/ Undervolting of stock freq
8] JHash Bumped to V3
9] XZ Compression (Speeds up boot time)
10] GOVERNERS: Conservative/Ondemand/Smartass2/Performance (Less Governers, lesser bloat)
11] IO SCHEDULERS: Sio/Noop
12] Boot freq resticted to 1Ghz (dalingarin)
13] VM_MAX_READAHEAD set to 1024
14] Many small patches/improvements!
15] CFS and VM Ratios Tweaked for best battery + Performance
LOTS! Coming up soon! Stay tuned
Have a look at my github for detailed info about changes!
​
Reserved
FAQ:
1. My device rebooted or crashed, how can I help?
A: Get me /proc/last_kmsg or logcat.
2. Battery sucks, my device is not entering deep sleep. FIX PLOX!
A: Fix it yourself, it's an app waking your device up not the kernel's problem. Also make sure you let your device settle for at least 2 charging cycles. Typically apps like Facebook and Google Maps can cause problems since they wake it up pretty much all the time
3. Signal is dropping since I flashed the kernel, amg u sucks!
A: The kernel has nothing to do with gsm/cmda signal.
4. Do I need to wipe anything when flashing this kernel?
A: Just wipe cache and Dalvik cache after flashing.
5. Does this kernel has X or Y mod?
A: Learn to read, everything you need to know is in the features list, changelog or public repo.
6. Don't use 3rd party init.d scripts!!!
7. After the device boots, the phone runs at 1.35Ghz. So make sure you set it to whatever frequency you want.
8. For Daily use and best battery life, Recommended Settings are 1Ghz Max, 600Mhz Min, Conservative Governer and CFQ/SIO IO Scheduler.
Another one
DOWNLOAD LINKS
Download TITANIUM KERNEL BUILD#1
Last one reserved
Changelogs-
great work buddy...! I have a suggestion that u should creat different OPP for different frequencies. It will br very easy for a normal user to change frequencies through different opp.
It seems very good!!! I will be testing for some days and if battery drain is good, will add to my rom! Thank you!!
vishal24387 said:
great work buddy...! I have a suggestion that u should creat different OPP for different frequencies. It will br very easy for a normal user to change frequencies through different opp.
Click to expand...
Click to collapse
Yes I'll be doing that.. maybe in the coming builds..
Adi_Pat, with the phone disconnected to the computer it says USB Connected and appears the screen of mass storage with the option of activate mass storage.
download link broken.
Adi_Pat said:
DOWNLOADS-
TITANIUM KERNEL BUILD 2 -
Download DDKP3 specefic kernel from here.
Download Kernel with Universal CFROOT Ramdisk from here.
Click to expand...
Click to collapse
Broken links.......Showing File deleted
Invalid or Deleted File.
Updated Download Links~!
can you make it also compatible in AOSP rom?
As I thought its not booting on my phone. Because from my experience I learned that my phone support only 1.2 ghz max. Above that phone stuck at boot screen. Can u give me test kernel with only 1.2ghx max opp????
I am going to test it right now. Would u mind, if it is powersaver enough, if I add it to my ROM (CleanKpuRom) ?
luiseteyo said:
I am going to test it right now. Would u mind, if it is powersaver enough, if I add it to my ROM (CleanKpuRom) ?
Click to expand...
Click to collapse
Wait I am uploading fixed ones which boot.
You can include it in ur ROM
vishal24387 said:
As I thought its not booting on my phone. Because from my experience I learned that my phone support only 1.2 ghz max. Above that phone stuck at boot screen. Can u give me test kernel with only 1.2ghx max opp????
Click to expand...
Click to collapse
Your device will boot now, download and flash the kernel.
Your device did not boot becuase I set startup freq to 1.35Ghz so the phone didnt have enough power to turn on.
Now you test the new uploaded kernel, it will boot and you should be fine.
Adi_Pat said:
Wait I am uploading fixed ones which boot.
You can include it in ur ROM
Click to expand...
Click to collapse
I used the uploaded and the results are AMAZING in powersave terms!! Big thangs!!
Enviado desde mi GT-I9003 usando Tapatalk
luiseteyo said:
I used the uploaded and the results are AMAZING in powersave terms!! Big thangs!!
Enviado desde mi GT-I9003 usando Tapatalk
Click to expand...
Click to collapse
Test 1.35Ghz , I made it as stable as I could.. Also can you tell me what updater script lines are needed to make the kernel cwm flashable?
Sent from my GT-I9003 using xda premium
Adi_Pat said:
Test 1.35Ghz , I made it as stable as I could.. Also can you tell me what updater script lines are needed to make the kernel cwm flashable?
Sent from my GT-I9003 using xda premium
Click to expand...
Click to collapse
I dont know wheather u have repaired the universal titanium kernel or not but on my xxkpq its not booting. I always happens whenever I use a kernel which is overclocked to 1.35 ghz. But whenever I use UC v9 1009 version kernel which is overclocked to 1.2 ghz only then my phone always boot successfully. Its something related to overclocking above 1.2ghz which my phone is not accepting.

[share][kernel]ironbuang_systems

good day fellow xda members,,, after some coaching from some friendly people i am now gonna share my kernel....:victory::victory::victory:
to you guys armed with your flame throwers please stand down and have some mercy :laugh:,,, this is my 1st share and well its not yet on par with other kernels like kuro,savie, merruk etc.... but ive been improving it ever since i first started..... and i will continue on with its improvement...
this is also for my kabayans(countrymen) they have produced some roms for our galaxy y but none of them rolled out a kernel so i myself made one
FEATURES:(not much but its basically the essentials)
init.d support
4 cpu frequencies (156,312,624,832)
flash player support
ext2,3,4 support
swap support
droidwall support
undervolted by -100mv
added some governors
userspace
powersave
ondemand
ondemandx
minmax
lionheart
lazy
lagfree
intellidemand
hotplug
interactive
conservative
performance
added io scheds
sio
cfq
deadline
vr
Click to expand...
Click to collapse
DOWNLOAD LINKS - Mod Edit: Links removed as kernel has no source code so is violating the GPL and XDA Forum Rules.
KERNEL#38
KERNEL#39rev1
additions
5 cpu frequency
KERNEL#48
removed unstable 468mhz
undervolt integrated
KERNEL#50
i went loco mode on this one
7 frequencies all in all!!!
now works on jellyblastv3
back on proper 4 cpu freq
KERNEL #53
back to the stable 4 freqs
added ext4 support
added swap support
added boot splash
smaller kernel size(using lzma compression)
312mhz boot now fixed
lionheart, interactive govs built in (disregard metaphase gov its a fail)
can run flashplayer on our phone
only 1 bug 312mhz cant go down to 156 and vice versa must be on 624 or 832 for it to ramp down to 156 (fix coming soon)
312mhz cant go down to 156 and vice versa must be on 624 or 832 for it to ramp down to 156 (fix coming soon)
sorry if development is slow.. busy for my upcoming board exam
Click to expand...
Click to collapse
INSTRUCTIONS
1.reboot to CWM recovey
2.if on kernel with built in cwm go to mounts and storage and mount /system
3.choose install zip from sdcard
4. look for the directory you downloaded my kernel zip
5. flash away
6. reboot and see how it works
Click to expand...
Click to collapse
known bugs
1.INCOMPATIBLE with JELLYBLASTv3
wont boot and logcat show no such file or diretory /system/xbin/busybox(but i checked it busybox is there)
2.HYPERION ROM-reportd by vanhalen35
battery charging wont reach 100% when using setcpu stucks at 99% but unistalling setcpu and rebooting it charges up to 100% dont know why but on my ussrv6 it charges just fine up to 100%
3.#39rev1
468mhz isnt working properly yet
4.#48
kernel version shows up as unavaiable under settings>about phone>kernel info .but is seen using cpuspy
startup is laggy due to it boots up using 312mhz
5.#50
CPU states cannot be read except for deepsleep
still laggy at booting but after a while it is fine
728 is not stable, the rest seems fine need verification from you guys
6. #51
still havent solved the cpu booting at 312mhz
7. #53
312mhz cant go down to 156 and vice versa must be on 624 or 832 for it to ramp down to 156 (fix coming soon)
just report anyother bugs you encounter
big big thanks to these guys:good::good::good:without them i woulld not even know how to compile a kernel without their help
irfanbagus
marco-too
savie
master_key
kurotsugi
and this guy for being my tester...
vanhalen35
and lets always not forget to mention
YOU
Reserved..
I am a true kernel-holic so thanks
Sent from my GT-S5360 using xda premium
finally,
nice job,
and i lol at the english translation of the title,
see?
i told you people will appreciate your work
it also motivates you and lets you have lots of testers instead of you testing it alone
deathnotice01 said:
finally,
nice job,
and i lol at the english translation of the title,
see?
i told you people will appreciate your work
it also motivates you and lets you have lots of testers instead of you testing it alone
Click to expand...
Click to collapse
yeah... i guess you are right... now trying to fix the undervolt so there will be no need for bacem tweak and
trying to add smartassv2 governor
good work sir but is this compatible with repencis v3.5?
deleted (double post)
blackpanther2209 said:
good work sir but is this compatible with repencis v3.5?
Click to expand...
Click to collapse
give it a try... only tested on 3 roms as of now which is ussr hyperion and jellyblast and only jellyblast was incompatible,,, it should work on yours just have back up kernel just in case
Congratulations for ur new kernel.
tnx sir i will give u some feedback after i flash my rom.
Finally you posted it!! Great job
Sent from my GT-S5360 using xda premium
cool.. how about on stock rom?
Sent from my GT-S5360 using xda premium
tjsgy said:
Finally you posted it!! Great job
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
Indeed i did.... figured that development would be slow if i kept it to myself
Sent from my GT-S5360 using xda premium
pm sent..
Sent from my GT-S5360 using xda premium
the kernel is still the same bro after i flashed it.anyway,tnx a lot and congratz of ur new kernel.
blackpanther2209 said:
the kernel is still the same bro after i flashed it.anyway,tnx a lot and congratz of ur new kernel.
Click to expand...
Click to collapse
What do you mean the same??? #38 is same as #39
Or your kenel did not change on your rom???
Sent from my GT-S5360 using xda premium
the kernel did not change on my rom.
did you flash it thru cwm or stock recovery?
Sent from my GT-S5360 using xda premium
blackpanther2209 said:
the kernel did not change on my rom.
Click to expand...
Click to collapse
Did you get any errors???
Sent from my GT-S5360 using xda premium
i flashed with cwm and follow all the instructions and i did not get any error or fc after reboot.

[solution]To solve the hanging and heating problem on Note 4g

First things u need (do it with your own risk i does not responsible for any damages)
Need to disable thermal config first. Refer here
en.miui.com/thread-91121-1-1.html
- credits "zmuhammx" senior member
1.rooted note 4g
2.No frills CPU Control app from Google play
3.After installed No frills app
4.open the app
5.set maximum clock frequency to 1402 GHz
6.set minimum clock frequency to 300 MHz
7.set governor to Userspace
8.set I/O scheduler to row
Done.... Now solved
Please press thanks button for small effort
This also can be done on mokee rom right?
izzatmustakim said:
This also can be done on mokee rom right?
Click to expand...
Click to collapse
Yep its works with mokee rom and all other roms too
Need to disable thermal config first. Refer here
en.miui.com/thread-91121-1-1.html
zmuhammx said:
Need to disable thermal config first. Refer here
en.miui.com/thread-91121-1-1.html
Click to expand...
Click to collapse
Added to thread

Any way to overclock GPU ?

i use Kernel auditor for CPU modifications ...is there any such way for GPU ??
May be cyclox kernel in ROM thread can help if you have not tried. However, i think we can only set to higher values for CPU if kernel supports but GPU can only be set to lower values or the max set but not overclocked.
shashank1320 said:
May be cyclox kernel in ROM thread can help if you have not tried. However, i think we can only set to higher values for CPU if kernel supports but GPU can only be set to lower values or the max set but not overclocked.
Click to expand...
Click to collapse
Yeah... I meant d max set.... Kernel auditor made my phone smooth but still animations r stuttering.... I asked d same thing in cyclox kernel thread.... Waiting for dev response
shashank1320 said:
May be cyclox kernel in ROM thread can help if you have not tried. However, i think we can only set to higher values for CPU if kernel supports but GPU can only be set to lower values or the max set but not overclocked.
Click to expand...
Click to collapse
Yeah... I meant d max set.... Kernel auditor made my phone smooth but still animations r stuttering.... I asked d same thing in cyclox kernel thread.... Waiting for dev response
sreekantt said:
Yeah... I meant d max set.... Kernel auditor made my phone smooth but still animations r stuttering.... I asked d same thing in cyclox kernel thread.... Waiting for dev response
Click to expand...
Click to collapse
Hope he respond on that. Anyway GPU is fine for this phone and OC may or may not impact battery as well
Any luck?
BELIEVER PK said:
Any luck?
Click to expand...
Click to collapse
not yet bro
sreekantt said:
Yeah... I meant d max set.... Kernel auditor made my phone smooth but still animations r stuttering.... I asked d same thing in cyclox kernel thread.... Waiting for dev response
Click to expand...
Click to collapse
Can u suggest me what values to give in the max frequency and min frequency. Nd also stock frequency is 2.1 GHz, which doesn't seem to increase. How to increase that frequency from 2.1 to something higher. Thanks in advance.
Rishav Nath Pati said:
Can u suggest me what values to give in the max frequency and min frequency. Nd also stock frequency is 2.1 GHz, which doesn't seem to increase. How to increase that frequency from 2.1 to something higher. Thanks in advance.
Click to expand...
Click to collapse
If u really want max performance at the expense of battery
Just set CPU governor to perfomance mode....it will be in interactive mode by default....change all the 8 cores to perfomance- no need to play with frequency values.
But this isn't needed at all after latest cyclox kernel update
Here is the process i followed which made my phone buttery smooth maintaining the battery life
1. Flash latest Cyclox kernel (download from attachment or the thread if u can find it)
New GPU governor would be automatically activated which makes the animations smooth
2. i wasn't still satisfied with performance as it was lagging after a day or two if we don't reboot. If u r satisfied- No need to follow next step.
3. Root with Magisk - Flash run time optimization(ART optimization) module in recovery
Clear Cache & Dalvik Cache- Reboot
this worked like magic on my device
4. If u face any issues with ART optimization module...i have attached uninstaller too, if u have any connectivity or crashing issues which is unlikely as we r on same device - just in case - have attached crashfix.zip file(only use if u have problem with main moule)
Kernel & Module thread links - Download appropriate kernel file from thread if u r not on stock
https://forum.xda-developers.com/honor-6x/development/kernel-cyclox-kernel-honor-6x-t3676919
ART optimization thread link- they're few more advanced settings mentioned in this thread if u want to play with it - Default setting which is set to 'Speed' was sufficient for me.
https://forum.xda-developers.com/apps/magisk/module-android-runtime-optimization-t3596559
Thanx to developers for their wonderful work
sreekantt said:
If u really want max performance at the expense of battery
Just set CPU governor to perfomance mode....it will be in interactive mode by default....change all the 8 cores to perfomance- no need to play with frequency values.
But this isn't needed at all after latest cyclox kernel update
Here is the process i followed which made my phone buttery smooth maintaining the battery life
1. Flash latest Cyclox kernel (download from attachment or the thread if u can find it)
New GPU governor would be automatically activated which makes the animations smooth
2. i wasn't still satisfied with performance as it was lagging after a day or two if we don't reboot. If u r satisfied- No need to follow next step.
3. Root with Magisk - Flash run time optimization(ART optimization) module in recovery
Clear Cache & Dalvik Cache- Reboot
this worked like magic on my device
4. If u face any issues with ART optimization module...i have attached uninstaller too, if u have any connectivity or crashing issues which is unlikely as we r on same device - just in case - have attached crashfix.zip file(only use if u have problem with main moule)
Kernel & Module thread links - Download appropriate kernel file from thread if u r not on stock
https://forum.xda-developers.com/honor-6x/development/kernel-cyclox-kernel-honor-6x-t3676919
ART optimization thread link- they're few more advanced settings mentioned in this thread if u want to play with it - Default setting which is set to 'Speed' was sufficient for me.
https://forum.xda-developers.com/apps/magisk/module-android-runtime-optimization-t3596559
Thanx to developers for their wonderful work
Click to expand...
Click to collapse
Thanks a lot for helping me out. I've just rooted my Honor 6x. So was exited about it and trying out new things. I successfully flashed the Dolby Atmos and its working fine.

Categories

Resources