yashsingh1/xdaforums huggingface dataset:
[Mi 3 Original Android Development] paul c:
If you have got this far and flashed a custom ROM, very little can go wrong. Make sure you have the right (AOSP or CM) kernel for your ROM.

My advice is to read as much as you can about what you intend to do (this thread, other kernel threads, Google etc), and only once you are comfortable with the subject, move forward. It'll only take a couple of days to get to that level, it's no big thing. But that knowledge will allow you to understand, analyse and react to situations better.

If the kernel install fails, just reboot (you may have a corrupted/partial kernel download). If the kernel installs but the phone doesn´t boot, return to recovery and reflash your ROM, that will reinstall the ROM's standard kernel.
[Mi 3 Original Android Development] rpjuvvadi:
+1
[Mi 3 Original Android Development] gary138.138:
[MENTION=4984300]Shivam Kuchhal[/MENTION], can you tell us your setting of r5 on RR ROM?
[Mi 3 Original Android Development] Skullpluggery:
Will try r4 in omnirom
[Mi 3 Original Android Development] lethalchronus:
[MENTION=4984300]Shivam Kuchhal[/MENTION] R5 for AOSP Please.. :)
[Mi 3 Original Android Development] bahblo:
F5...F5...F5...F5...F5... R5 for cm...:D
[Mi 3 Original Android Development] Richard_10:
R5 for Aosp [emoji106]
[Mi 3 Original Android Development] SlyUK:
Is anyone running Phantom Kernel alongside Ivan's AOSP Rom ?
[Mi 3 Original Android Development] marko94:
maybe new update soon ? :D
[Mi 3 Original Android Development] SlayerXGaming:
AWESOME.!

Downloading.. :D Really Awesome work man.!
[Mi 3 Original Android Development] SlayerXGaming:
Yup

Yup, im running this awesome kernel on Ivan's AOSP rom and its awesome.!!:D:D
[Mi 3 Original Android Development] SlyUK:
Excellent. Are you using default settings or have you tweaked them ?
[Mi 3 Original Android Development] SlayerXGaming:
i am using the default settings :D . just the phone waits longer on the starting "MI.com" logo than before, but i suppose thats because i installed kernel without clean install of the ROM
[Mi 3 Original Android Development] SlyUK:
How long have you been using Ivan's AOSP rom as your daily driver and any problems thus far ?
[Mi 3 Original Android Development] karthikb89:
Which version bro? r4 or r5? no bugs with Ivan's AOSP?
[Mi 3 Original Android Development] SlyUK:
Any news regarding next version release of Phantom ?
[Mi 3 Original Android Development] SlyUK:
Is Phantom Kernel still being developed for Xiaomi Mi3 and Mi4 ?
[Mi 3 Original Android Development] 24likan:
Next version??
[Mi 3 Original Android Development] Marvin7325:
I tried clean flash, and actually the issue of the long wait at the "MI" logo is still there..
[Mi 3 Original Android Development] Aka9413:
Sorry for asking luv ur works but there is no oc kernel for Mi3W till now can u make one thanks
[Mi 3 Original Android Development] Aka9413:
Its been long still no update for phantom...
[Mi 3 Original Android Development] :
Dear Dev,

Could you tell me that in your plan is an update?
[Mi 3 Original Android Development] Me_Ashish_:
I bet Wi-Fi doesn't works?

---------- Post added at 10:50 PM ---------- Previous post was at 10:47 PM ----------

@Shivam Kuchhal the kernel is not working fine with official CM nightlies.

Boot is taking long, the boot animation looks laggy too. Plus Tue performance is struggling after boot.

Kindly update it soon
[Mi 3 Original Android Development] Dashur7:
Please add support for MM Roms. Thanks :)
[Mi 3 Original Android Development] Jongla:
Can't pass Boot logo on CM13.

:/
[Mi 3 Original Android Development] diongdyh:
Development stopped. Only Lollipop or before is compatible.
[Mi 3 Original Android Development] Dashur7:
Unable to flash on cm12.1 snapshot. I'm using mm partition. I have around 500mb free in my system but still not able to flash. Please help:(

Edit:

Managed to flashed on official DU v9.8 but after booting it freezes at the lockscreen and then turns off. I'm using MI4W.Pls help
[Mi 3 Original Android Development] Z4HD:
Is this kenrel support MI3-TD?
[Mi 3 Original Android Development] :
What ROM, are you on?

:)
[Mi 3 Original Android Development] sandeep_ratiya:
OptiCancro 20150505
[Mi 3 Original Android Development] :
This is for you [MENTION=4164019]damnthomas[/MENTION]

Do it like this,

Format System, Flash ROM, Flash Kernel, Flash GApps, Clear Dalvik/Cache & Reboot.

Use TWRP.

Reason: If I am not wrong, you should be on Stock partition layout. ROM for SL consumes almost all space after flashing ROM+GApps, so no space is left for kernel. (just a guess) :P

:)
[Mi 3 Original Android Development] sandeep_ratiya:
i don't have any problems mate [emoji1] [emoji106]

actually i was asking him
[Mi 3 Original Android Development] :
Oops, Looks like I did quote the wrong person, accidentally.

So sorry. :)

:)
[Mi 3 Original Android Development] sandeep_ratiya:
hehe
[Mi 3 Original Android Development] damnthomas:
Stock partition + XenonHD rom :):)

I dont want to reinstall all the apps and data again and how to flash new partition without wiping data and system??
[Mi 3 Original Android Development] Shivam Kuchhal:
I personally recommend TWRP. :p

BTW peeps, what all stuff do I need to keep in mind before building r2? Any issues?
[Mi 3 Original Android Development] patelumangv:
Drivers for screen optimization ( RGB, Hue, Saturation etc.) like in Sturnext.
[Mi 3 Original Android Development] bahblo:
Another hotplug can be good, and little downclock/overclock on cpu/gpu can boost our mi3 on r2 :D
[Mi 3 Original Android Development] Jhayzt:
Graphite optimizations? and yeah, mako hotplug if you please. :p
[Mi 3 Original Android Development] tusharjain95:
MIUI??

Sorry if am being a noob but wanted to make sure if this would work on MIUI 6 dev rom?? Please reply ASAP coz i can't wait to try!
[Mi 3 Original Android Development] Hadi al-Haiqal:
Miui not lollipop..
[Mi 3 Original Android Development] :
No worries, Just do what I told you in previos steps.

Dont do a factory reset & format data.

Just format System & Cache.

First boot will take a lot of time.

:)
[Mi 3 Original Android Development] MerlijnD:
Does this kernel have it's own cpu hotplugging solution? Or is it better to enable MPdecision?
[Mi 3 Original Android Development] Shivam Kuchhal:
Graphite will be added if it works fine for me and please keep MP Decision enabled, it is necessary and I like to stick with it. Too much custom stuff can cause issues. Earlier versions of my Xperia L kernel being an example.

This device is already so smooth, why do you need overclock? :p
[Mi 3 Original Android Development] MerlijnD:
I think I've found a bug regarding cpu undervolting.

When I go to the cpu voltage tab in any kernel editor it only shows half the voltages?
[Mi 3 Original Android Development] :
This isn't a bug as undervolting those frequencies isn't recommended.

If I am not wrong.

:)
[Mi 3 Original Android Development] sauyadav:
Will this work on mi4 global version? I'm on glade room v2.
[Mi 3 Original Android Development] Shivam Kuchhal:
I have no idea, you can try though.

BTW how's battery life guys? Try refraining from reports of custom governors and schedulers.
[Mi 3 Original Android Development] Denis94:
can you add the screen color regulator in the next version?
[Mi 3 Original Android Development] Jhayzt:
Battery is great for me. :D I use ElementalX and SIO.
[Mi 3 Original Android Development] S2Powa:
+1
[Mi 3 Original Android Development] bahblo:
F5.....F5.....F5..... Where's r2.....? :D
[Mi 3 Original Android Development] Adithya88:
Thanks for the kernel. gonna try this and will report back.
[Mi 3 Original Android Development] faizul134:
fast charging!

[MENTION=4984300]Shivam Kuchhal[/MENTION]

Does it support fast charging to 2.1 mAh? ;)
[Mi 3 Original Android Development] Jhayzt:
Hey there Dev [MENTION=4984300]Shivam Kuchhal[/MENTION]! Umm, any updates? :D
[Mi 3 Original Android Development] Shivam Kuchhal:
No but r2 will

Yes, going to flash latest test build right away. :p
[Mi 3 Original Android Development] Jhayzt:
Great! :D Well.. can I test it too? XD Can't wait!
[Mi 3 Original Android Development] pratyush997:
Already spamming F5 :D

Is DT2W coming anytime soon?
[Mi 3 Original Android Development] Jhayzt:
hey there dev [MENTION=4984300]Shivam Kuchhal[/MENTION]! How's the testing going? Hope we could get an update soon! :) The kernel stands out in gaming due to it having elementalx. :) I do a lot of hearthstone soo yea. :)
[Mi 3 Original Android Development] Shivam Kuchhal:
I add features, compilation fails. I revert, it goes back to being normal.

I can release an update with added stability patches and required features or work on adding something groundbreaking. So in the end I am trying my best to give you guys a worthy r2. ;)
[Mi 3 Original Android Development] emeuge:
Spend the time you need bro... For me Phantom r1 is the best kernel working nowadays in mi3; with intelliactive and the max freq limited to 1,2 working fine, no lag and battery is quite good!!!
[Mi 3 Original Android Development] bahblo:
See mr2 branch but wheres download location?
[Mi 3 Original Android Development] Shivam Kuchhal:
Phantom Kernel r2

So the much awaited release is here finally!

Changelog:

Compiled using O3 optimizations

Added msm_hotplug by [MENTION=4152171]myfluxi[/MENTION]

Added LCD_KCAL control driver with latest patches by [MENTION=4316709]savoca[/MENTION]

Fixed simple_ondemand GPU governor crashing and enhanced it with awesome work of [MENTION=4855459]Blechd0se[/MENTION]

Added Conservative GPU Governor

Enhanced GPU functioning with devfreq patches

Thermal patches along with Thermal control driver by [MENTION=3292224]franciscofranco[/MENTION]

Added optimized AES NEON routines

Added powersuspend kernel driver

USB Force Fast Charge

Stripped debugging

More cpufreq patches

Updated ARM typology and CPU Power driver by [MENTION=4684315]flar2[/MENTION]

Scheduler patches

kgsl patches

...and bunch of other stuff, go to github and check yourself.

Download available in dev-db as always

Info about recommended settings to be added soon. :)
[Mi 3 Original Android Development] SurajH:
Waiting for setting :fingers-crossed:

Which app gives full list of features included ?

is kernel Adiutor OK ?
[Mi 3 Original Android Development] bahblo:
Refresh this thread almost every 15 minutes and my waiting has over.... :D

- why tripdroid cannot tunables but other I/O can tunables (using kernel auditor)?

- schedule workqueques cannot activated? Or this need fix?

Great job .... :good: :good: :good:
[Mi 3 Original Android Development] SurajH:
Schedule workqueues on awake CPUs to save power --- set it ON but after some time it gets OFF :confused:

Any specific setting follow to keep it on ;)
[Mi 3 Original Android Development] Shivam Kuchhal:
I don't have any idea. I never change it anyways, must be clashing with hotplug.

Don't know about that too. :p

Yes, its okay. :)
[Mi 3 Original Android Development] sauyadav:
Thanks! But what about fast charging with 2.1 amp current support?
[Mi 3 Original Android Development] Shivam Kuchhal:
Yeah, forgot to mention it. It is there. I think its 1 amp not 2.1 though :rolleyes:

BTW updated post #2 with recommended settings. Do check it out.
[Mi 3 Original Android Development] sdnavale:
Best kernel ever...getting 6hr + sot easily

Thermal throttling working great.

Device doesn't heat up even once.

Great work dev.keep it up!!:angel:
[Mi 3 Original Android Development] SurajH:
Msm hotplug is not working great..it keeps wake the cpu ...drain battery so I decide to switch mpd and No wake up after that ..

Pls look into that issue
[Mi 3 Original Android Development] Shivam Kuchhal:
It works really great for me and all my testers. Did you change any of its setting? Moreover, me and my testers are having great battery life and performance. Also I haven't made any change to it, its directly taken from [MENTION=4152171]myfluxi[/MENTION] and added as adopted by [MENTION=5334172]Gnome[/MENTION] for whom also it works fine.

[MENTION=5334172]Gnome[/MENTION] did you encounter any such issue? Any help?

Also, it will be great if you guys report even if it's stable, it will help us to keep the thread alive.
[Mi 3 Original Android Development] zincro3:
Will this work on Mokee ROM 5.1.1 ?
[Mi 3 Original Android Development] gelarman:
great kernel i use it on blisspop 3.3 where kernel adiutor is part of the rom.

great battery life no heat up issue
[Mi 3 Original Android Development] akshayAXE:
YES!!!

I'm using it on latest Mokee nightly.

Me and my device thank the dev [MENTION=4984300]Shivam Kuchhal[/MENTION] from the bottom of our hearts for giving us such an awesome treat.
[Mi 3 Original Android Development] Gnome:
I have no issues with msm_hotplug. Weird it doesn't work for you though. I suggest go back to stock toolchain like mine.
[Mi 3 Original Android Development] solazz:
I'm using the kernel with resurrection remix rom, also no battery drain with msm_hotplug
[Mi 3 Original Android Development] bahblo:
peek to your github its look like new release will coming not so long again.... :D

:good: :good: :good:
[Mi 3 Original Android Development] Jhayzt:
Dev [MENTION=4984300]Shivam Kuchhal[/MENTION], I'm loving the performance here! :D I did some modifications of my own. I can't say for battery though but when I game, I get max 4-5hrs of sot. Hotplug works for me so I guess no need to rollback. The only bug I got is when I undervolt, I get SOD or WD(Wake Death).
[Mi 3 Original Android Development] Shivam Kuchhal:
Don't go beyond - 50, that's the sweet spot. [emoji14]

Yes you guessed it right. Cherry picked some more features and removed buggy power efficient workqueues. Notable new cherry picks are enhancements to low memory killer and new workqueues. More to come as my testing goes. :)
[Mi 3 Original Android Development] Shivam Kuchhal:
How's the new GPU patches going for you guys? Specially the super optimized simple_ondemand governor? ;)
[Mi 3 Original Android Development] Jhayzt:
Navigating the whole UI feels smoother. Like reallly mad smooth. Feels like I'm using an iPhone. :) ElementalX + SIO + Simple Ondemand = Rainbow Unicorns. EVERYWHERE. XD
[Mi 3 Original Android Development] bahblo:
+1

but i still using interactive bcause elementalx more aggressive so more drain battery on my phone
[Mi 3 Original Android Development] Jhayzt:
Well I think its because elementalx tries to balance everything. Like when you do normal stuff, it tries to be a conservative governor without performance loss. On the other hand, when you game, this is where you'll see elementalx shines thus it becomes to agressive.
[Mi 3 Original Android Development] Hadi al-Haiqal:
Why do not have any option?.. Or just like that.. I'm using your setting in post #2 with Xenon HD rom..
[Mi 3 Original Android Development] rajib4:
[MENTION=4322209]Jhayzt[/MENTION] The combination sounds great ;) how is the battery holding up with this combination?
[Mi 3 Original Android Development] Shivam Kuchhal:
You can find thermal temperature setting here.

Under CPU tab of kernel auditor.
[Mi 3 Original Android Development] IronStep95:
Nice kernel

Very nice kernel, it also works on Xiaomi Mi4W with CM 12.1, I tried it for a couple of days and my phone seemed very smooth, I hope that you guys will add some new features/optimizations in the next weeks
[Mi 3 Original Android Development] superGuyAdi:
dt2w

Sir please port dt2w :)

Thanks for the awesome kernel.

It has the best governor i need.
[Mi 3 Original Android Development] tjluvu:
One of the best kernels evrrr...

Hello,

I just wanted to tell the dev that.. This is one of the best kernels... I hv everr used... Screen controls... Nd everything we need in a kernel...

But just one ques. ....

Actually while.. Using the cpu voltage options... I accidentally... Overvolted my cpu by 50mV... But den again again i undervolted it by... 50mV... Sooo do i hv to undervolt it again by 50mV.. Coz i think... The cpu has returned to its original voltage setup..
[Mi 3 Original Android Development] Tomi_Ohl:
I've read somewhere that the stock adreno governor is more performance orientated than ondemand. Is simple_ondemand the same? I'm playing intensive games so I want the best out of my mobile. I've tried that simple_ondemand for some minutes but didn't see any significant changes in GTA:SA performance so returned back to adreno just to be sure.

Another thing, why is it recommended to set multi core power saving to aggressive? I've heard somewhere that more active cores are better for performance. Am I disorientated?

EDIT: source: this post by Francisco Franco.
[Mi 3 Original Android Development] Shivam Kuchhal:
Thanks :)

simple_ondemand should be just fine for everything, its ported from Moto G kernel of [MENTION=4855459]Blechd0se[/MENTION] and I believe that it does the job just fine. Also setting multi core power saving to Aggresive saves battery and doesn't performance so there's no harm in doing it. :)
[Mi 3 Original Android Development] atomix18:
Hi! I am using this kernel with mokee 5.1.1 nightly, and when i turn on Msm hotplug (Mp decision is off) my phone freezes and shuts down and i have to hold power button for 10 sec. to turn it on. Then when i go back to kernel auditor settings in Hotplug - MpDecision is On and msm hotplug is on. Wnen i turn them off the phone is OK.
[Mi 3 Original Android Development] akshayAXE:
I am also running the latest Mokee Nightly with this awesome kernel, I don't face any of the issues you've mentioned, MSM Hotplug works flawlessley with MPDecision disabled.

Try reflashing the kernel and then clear Cache and Dalvik.
[Mi 3 Original Android Development] Jhayzt:
Dev [MENTION=278765]shivam[/MENTION] Kucchal! Maybe you can include f2fs on your kernel. :D

https://github.com/mi3-dev/android_kernel_xiaomi_msm8x74pro
[Mi 3 Original Android Development] atomix18:
I reflashed the kernel with wipe cache and wipe dalvik cache, and when i tryed to change cpu min max mhz, there where only 300 mhz 7xx mhz 10xx mhz 1497 mhz (don't remember exact values), but only these 4 options, and again when i turned on hotplug and change GPU governor on simple ondemand, my phone freezed and turned off. After that the phone didn't want to go to recovery from power menu options, but went to recovery from kernel auditor, so i flashed Mokee kernel...
[Mi 3 Original Android Development] sabbo28:
During a call, if we hold the phone to your ear after a while the phone is switched off
[Mi 3 Original Android Development] lethalchronus:
[MENTION=4984300]Shivam Kuchhal[/MENTION] Can I ask the link for this Phantom Kernel build of yours?

as you can see on the image, I believe that this is your work and it's working on AOSP, but I can't see any May 21 Build of your Phantom Kernel, you wouldn't mind sharing it do you? more power to you! :good:
[Mi 3 Original Android Development] Shivam Kuchhal:
ROM bug, not kernel.

Haha, its currently in testing, will release it soon along with a version for Ivan's AOSP. :)
[Mi 3 Original Android Development] lethalchronus:
Ohhh its currently on testing phase eh, I just happened to see it on Ivan's Rom Thread that someone has posted about it, I'm glad to know that you're currently working for a kernel that would support Ivan's AOSP Rom, MOOOOOOORE POWAAAH! Wink ~
[Mi 3 Original Android Development] iSagar7:
Why my Android OS is the maximum battery drainer.. :(
[Mi 3 Original Android Development] Shivam Kuchhal:
Coming tomorrow for both AOSP and CM based ROMs ;)
[Mi 3 Original Android Development] lethalchronus:
Ahhhhh yeah! god damn it! hahaha, well I was hoping that fast charging function would work properly :good: judgement day is coming for us AOSP Users! MORE POWAAHH (again) :D :laugh:
[Mi 3 Original Android Development] LoveForEver:
Is there a way to make time go faster?
[Mi 3 Original Android Development] Jhayzt:
Oooooohhhh yeah! Time to go back to pure AOSP! :)
[Mi 3 Original Android Development] karthikb89:
Does this mean that it will work on Ivan's AOSP? Fingers crossed...
[Mi 3 Original Android Development] Jhayzt:
Still mashing that refresh button dev [MENTION=278765]shivam[/MENTION] kucchal! WAITING for R3! :)
[Mi 3 Original Android Development] Shivam Kuchhal:
Double Tap 2 Wake is here guys

Probably won't be in r3 because it needs more work but still thought I should share it.

[YOUTUBE]NtPz9KWnyfQ[/YOUTUBE]

If other fellow developers want to help then please contact me through PM, I will be more than grateful to share sources.
[Mi 3 Original Android Development] SurajH:
Waiting badly
[Mi 3 Original Android Development] tjluvu:
Phone Hanging occassionaly

Hello people....

This kernel is totally awesome nd full of features...

But the only problem i had with it was..after undervolting. My phone freezes almost aroung once in or twice in a day.. Nd den i had to hard reboot my phone by pressing the power button for 10 secs..

Is this because of the undervolting or something esle.. ??
[Mi 3 Original Android Development] Shivam Kuchhal:
Do not undervolt below -50mV and it should be fine.

BTW guys check the double tap to wake post now, fixed the video link. :)
[Mi 3 Original Android Development] tjluvu:
I did the same.. Undervolted it by - 50mV... But still... Whats the problem... Why its Hanging occassionaly... Plzzz check the screenshot nd tell me if everything isnalright... Also i noticed something more.. Its not showing the voltage for all the frequencies...
[Mi 3 Original Android Development] Shivam Kuchhal:
Phantom Kernel r3

New release is here finally!

Changelog:

Add support for

Ivan's AOSP

, nearly all features of CM kernel are there in AOSP kernel except for a few

Remove power efficient workqueues and replace them with backported better workqueues

Squashed task adj rbtree optimization from Motorola

Hotplug thread infrastructure

Stripped debugging

memcpy, memmove optimization from Motorola

Reverted unstable stuff

Added filter to disable some common wakelocks

Updated exFat driver

Added LCD notifier

Sound and asoc fixes

More cpufreq, tick and PM patches

Disabled CRC check(boosts performance)

Switch to lz4 for kernel compression(faster bootup) :D

Add overall CPU status to view frequency details for all 4 cores

More cpufreq patches

More info here-

https://github.com/shivamk11/android_kernel_xiaomi_cancro/commits/mr2

From now on there'll be two zips, one for CM based ROMs and AOSP based ROMs. Don't get confused AOSP zip is only and only for Ivan's AOSP ROM and not any other ROM

Easy to notice features not present in AOSP kernel-

Voltage control

Thermal control(AOSP kernel already has it)

Also in case you're wondering this release doesn't have

double tap to wake

functionality as displayed above. It is buggy and needs work.

Downloads available in dev-db as usual.
[Mi 3 Original Android Development] bahblo:
Thx to give my request in your kernel... Try this if it can be implemented in our mi3 or not... :good:

Thx to give us best kernel for our mi3

Request again ... one by one :D

-Simple GPU Algorithm
[Mi 3 Original Android Development] nealgosalia:
Please release a test version of the dt2w kernel :p
[Mi 3 Original Android Development] rajib4:
[MENTION=5894747]tjluvu[/MENTION] The last 2 (729 MHz and 883 MHz) seems to be problematic. IMHO with -50mV it should be 735mV and 755mV respectively. Rest looks fine.

Change these 2 and try it out.
[Mi 3 Original Android Development] solazz:
I'm also having some problem when under volt by -75 mv. This value works fine for r2.
[Mi 3 Original Android Development] codeVerine:
Awesome work bro. Can you provide best settings for latest r_3 build ?
[Mi 3 Original Android Development] karthikb89:
Did anyone try r3 on Ivan's ROM? Works without bugs?
[Mi 3 Original Android Development] lethalchronus:
Thanks for bringing us this, for us AOSP users! you're awesome! thank you very much. :D

ah [MENTION=4984300]Shivam Kuchhal[/MENTION] by the way may I ask one more thing, I am currently on 5.5.20 Ivan's ROM, does updating via OTA (next future ivan's build) affects your kernel? do we need to flash the kernel of yours everytime we OTA update?
[Mi 3 Original Android Development] Shyam Lohar:
most probably you won't be able to use ota :) & if ur able to & kernel is updated then you have to reflash kernel :)