yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] mostafaz:
oh, for such these things which is not kernel stuff please get logcat and send to rom's developer, he can read fail/error related to rom & apps there :good:

well, i pushed kernel with stweak support to telegram channel to get feedback and ready to publish here, you can get latest from there. with stweak you can switch between 7 pre-defined profiles and has benefit of descriptions of tunables, you can also disable stweak options from it's 2nd page and control kernel options from kernel adiutor or else, BTW you can control it among stweak.

2nd-i don't have custom thermal driver yet. if i had you could select between rom thermal driver or kernel thermal driver. so if you flash a custom kernel with a thermal driver then you have two driver and for safety you can keep them both but for performance choose only one. (kernel driver ;) )

how you can check if rom thermal driver is exist and runned (it surely exist & runned):

in terminal (adb) run:

show you a number (Process ID) so it's running.

to stop:

to start:

if you want to tune rom's thermal engine it's in "/system/etc/thermal-engine.conf"

but be carefull about touching them to prevent damage because of heat to your device!!!

there is thresholds of thermal engine, means when thermal driver can engage and throttle frequencies if temp of lcd, gpu, cpu, ... crossed the threshold.

there is also benefit to fine tuning it.

for more info look at other forums like LG G3 (ctt mode)

it's good if someone take it and make a sub-forum for it for redmi-4x. (if not exist :D )

and for kernel's custom thermal driver, you have tunables for that in /sys/module/msm_thermal (for msm thermal), there is also some more custom thermal drivers.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] Olezka:
mostafaz

I flash new kernel. without change anykernel.sh - all work. about new profile. Salvation it's more good then extrem battery or battery? and Gabriel it's more balanced then default?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] mostafaz:
Hi good

I try to make them different with same or better results. Salvation acts like performance but battery oriented. Gabriel balanced, i try to get better performance. I like mixed martial arts :D

Thanks
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] Politruk:
Hello! Tell me, does this kernel have support for customizing color profiles? At the moment I have Clarity, but with this kernel I have reset the color settings (saturation and contrast) after lock/unlock screen. Is there a similar problem with Gabriel?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] mostafaz:
Yes

With stock rom & unofficial kernel source yes. That may fixed by official source or it's an act from rom but works with non-stock roms.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] himfa71:
Latest version from telegram working very good with excellent battery backup, Please add working voltage control in next release. Thanks
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] Olezka:
flashed - MIUI-Gabriel-05-[28-02-18] without change anykernel.sh - work without bootloop, thanks by fix :)

now try Gabriel kernel profile - look good.

I change Firmware v32 to Firmware v32_PA... I think more stable now.

PS if have time, can help make script for change mode 2G to 3G/2G ? I use Togle Network APP .. but maybe have more easy way?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] Kecoe:
Aaaa I dont want to tweak it, Im not an expert. Thanks for the information:)!

Btw, i downloaded that stweaks you mentioned but it says no kernelsupport :D. Sorry if you have time for my question, coukd you write me how to set one from these 7 profiles? Whats the differences between these profiles?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] Olezka:
after boot you need wait 1-2 min after run STweak. There very easy .. profile Battery - for more long life battery, Performance for .. Performance :) Default - balanced and 2 new it's "Salvation acts like performance but battery oriented. Gabriel balanced"
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] mostafaz:
Get the latest kernel zip package from tg channel. After boot up waiting some. If it says no support you opened soon. Close & open later (remove from recent) . You should have root access.

Push desired profile button from profile menu.

Stweak reopen itself then you can change options by your needs
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] leodelacruz:
Read some. Learn some :p https://androidmodguide.blogspot.com/p/blog-page.html
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] Kecoe:
Wow thanks

---------- Post added at 04:24 PM ---------- Previous post was at 04:23 PM ----------

Okay thanks! I'll look it up
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] srtraky:
In the latest version of 28.2 all the cores remain on, at all times, someone else happens? I'm using lineage 14.1, in the version of 22.2 did not happen that, a greeting
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] mostafaz:
hi

look at the core control tab, should be little 4 &big 4 as default so means 4 cores little and 2 big idle

try reduce little and see the results, if changed then it's ok
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] mostafaz:
hi

for now from what i've found

2g

3g

4g

but had to run

which disable/enable sim networks

couldn't find right update setting

needs rom related knowledge, 1,18,20 or others are in rill codes in the rom, there maybe some more.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] solim:
Do you know what is the difference in PA firmware?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] Olezka:
no. only have information: Firmware Extracted from 9.2.5.0 Global .. 32 was extracted from 8.***

mostafaz thanks. will try now. I use MiUi 9 dev by miui.su

---------- Post added at 22:45 ---------- Previous post was at 22:20 ----------

it's work. but have one strange can change only 2 card together .. can't change sim1 and sim2 ..

I will try google about it.

*new*

to 2G can change one by one. to 3G change only pair if change one second change to 3G byself. I find way.. one change to 3G other change to 2G after restart daemon, if need only one card 3G.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] sochansam:
Hi. Checked mine on Salvation profile and saw that Little is 0. Big is on 4. For both Awake and Suspend core control tuning. Is this normal for the Salvation profile?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] Dynaguy:
I have the same issue, reboot fixes it
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] prin2ce:
Thanks bro but i have switched over to miuipro
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] Kuato:
Tried on latest NOS Official 8.1.0, this is the first kernel which can run Arena Of Valor at 55-60FPS, even Stock kernel on miui couldn't run more than 40FPS on AoV. Amazing! Really amazing!!!! Thank you buddy! :D
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] mostafaz:
good, there should be more commands which rom can change them easily but we don't ;)

yes, salvation turns little off all the time and keep big 2 idle and brings on more big core if needed, it's ok by salvation config. you can switch to liitle cores for suspend sleep by set 0 to big and 4 to little suspend state, but if you don't have much tasks on suspend state you can reduce suspend cores for little cluster then if found drain much/faster then increase number of cores to let it finish the tasks faster to save battery. sometimes if you set performance oriented profile you will get better battery.

thanks for sharing :)

does heat cause FPS drop for that game ? (i mean how much reduced at heat)
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] sochansam:
thanks [MENTION=5175597]mostafaz[/MENTION]. So far Salvation has been doing well and I haven't gotten the weird Instagram glitches and late notifications with the latest build.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] OvKill:
This kernel based on official source ?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] Kuato:
With extreme performance profiles its reduced to 35-40FPS, afterall Its great, anyway I also use my own parameters and I got 45-50fps stable when my phone warm up, I just use Lionfish governor, disable Adreno Idler and etc. But it drain my battry faster LOL :silly: just found a single bug, Video playback sometimes ( 1 per 10 videos) is black, I haven't take a logs yet, but I'll take a log if this that happen again, no doubt this kernel is suitable with my extreme usage :D
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] prin2ce:
Your kernel working great with RR Luis Oreo ;)
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] mostafaz:
not yet bro ;)

ok :good: :)

:)
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] himfa71:
I am using latest version from telegram, getting great battery backup, Please add more cpu underclock freq and working voltage control in next release. Thanks for lowest gpu underclock, I mostly use my device for reading therefore by using underclock cpu and gpu freq I get very good battery backup, like 14-16hr sot, I can easily get 18-20hr sot by using lowest underclock cpu, thanks
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] vishal thakar:
Volte working on miui rom?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] jibs3k:
Please update the kernel with the latest official source.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] solquest3:
Hello.

Is the latest version from telegram ok with nougat (RR or Dotos)?

Thanks!
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] mostafaz:
users reported "no"

currently working on ramdisk and stweak, asap i get my goals there i'll do that, thanks

great, i'll try. thanks

booted nougat & oreo ;)

safety-net failed.

if you found weird behaviour there please send the log
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] :
Request

Greetings Sir.

I love your Kernel. And When paired with Your Stweak app it's Just Brilliant *-*.

Would like to tell you that Spectrum is not supported anymore in Latest builds from TG channel. So can you please add it again :highfive:

Looking forward for your Work With Official Kernel. Hope So You can Fix Reboot to recovery not working with Official sources.. as Other Devs are facing this problem with official Sources too. Cheers :fingers-crossed:
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] sochansam:
If I select Default profile, does it mean it goes back to my rom's default or is it a Gabriel default?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] jibs3k:
Please let me know the channel name too, as well as whats stweak is. ?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] prin2ce:
https://telegram.me/gabriel4x is the name of channel and stweak is the app used to tweak Gabriel kernel
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] mostafaz:
Greeting

Thanks

I'll try

Gabriel default.

Disable load on boot at 2nd tab and reboot. It will rom configuration but stweak is disabled

1st post

Tweaking app to tune Gabriel Kernel options

That is not Gabriel's channel :)
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] prin2ce:
Oops I thought that he was asking for santoni official channel I've edited the post :D
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] brijeshb433:
flash kernel again with your firmware zip... i got volte in miui9 with latest kernel ... Volte is working fine
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] mostafaz:
hi

thanks for report :)

does flashing kernel over firmware caus volte failure ?

your procedure was firmware over kernel ?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] brijeshb433:
i mean if u flash any kernel in miui, u must flash its existing firmware zip... i had flashed both file together and it worked for me.. but wifi is not working.. if u know how to fix wifi then tell me ..
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] mostafaz:
Ok thanks

Flash miui zip file for miui & aosp for non miui roms. No wifi issue with miui & oreo just flash correct kernel package
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] zhrlmsdnsho:
I'd love this kernel, but I couldn't pass safetynet status when using this kernel, i hope you will fix this problem on the next update :fingers-crossed:
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] mostafaz:
Ok :)

Can you tell me your procedure for safetynet pass?

Magisk hide for Google play store & framework?

Anything else?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] MVLaurentiu:
Hi I just install your kernel on miui stable and it's nice only issue is that WiFi is no longer working and the 2 core little that should be offline is still online. Power consumption does not go more then 300 mili amps so respect for that if you can under clock it your the best.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] mostafaz:
Hi

Flash latest miui kernel + stweak app from telegram channel ( 1st post)

Seems you flashed aosp package.

All you need is there :)
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] zhrlmsdnsho:
My procedure for safetynet pass:

1. Clean flash rom

2. Instal your kernel

3. Instal Magisk Manager

4. Instal safetynetfix

Correct me if my procedure is wrong :D
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] prin2ce:
Please update the kernel sir :D
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] prin2ce:
[MENTION=5175597]mostafaz[/MENTION] any chance of getting 4.4.x kernel for santoni. I saw some commits on github by Eduardo noyer regarding the same
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] Phuclun510:
Will this be based on official sources ?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] mostafaz:
I'll push an update

Already merged zram, random, workqueue from 4.4.y & binder from 4.10.y mainline.

Needs a massive update into 3.18.y mainline to use 4.4.y mainline drivers.

For using 4.4.y mainline instead needs to convert santoni drivers to works there.

I had 3.10.y drivers into a 3.4.y (lg g3) mainline with 7k commits (thanks to dorimanx).

We can have 4.4.y drivers but it's not a 1 month work ;)

Also we should check we get benefits of them or not! Sometimes needs to merge more drivers to make one driver works properly.

For zram i merged zsmalloc too (related to each other). With new zram we have per cpu compression streams and more compression method.

If you find some commits or a driver feel free to drop a link :)
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] mostafaz:
After next release..

Already worked on ramdisk for Stweak ;)
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] prin2ce:
So much typing :laugh: it is difficult but you great developers can make it possible and yup I'll continue searching for those drivers and commits. that much I can do:D

---------- Post added at 09:23 AM ---------- Previous post was at 09:22 AM ----------

@mostafaz have official sources become stable to compile a bugfree kernel for oreo

---------- Post added at 09:24 AM ---------- Previous post was at 09:23 AM ----------

https://github.com/bitrvmpd/msm-4.4
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] MVLaurentiu:
Hi I mad a fresh install of the android on the 4x phone and reinstalled your kernel and all works perfect 2 cores on little 2 on big. didn't manage to find the app that you mentioned but no big deal now I want to see how long does the battery life last thank you!!!
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] mostafaz:
Great :)
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] prin2ce:
The app is stweak and it is available in the opening page of this thread.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] mostafaz:
Great :)

Here is mine with miui 9.2.4 (salvation profile)

Depending on usage pattern

Good luck ;)

If anyone has a profile which works good then i can add it to stweak with his name
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] himfa71:
Battery backup depends on usage, my usage is mostly reading or YouTube and I can easily get 15-16hr sot, I don't use any big app, and I use extreme battery profile from Gabriel stweak app and modified it as per my requirements,
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] himfa71:
This is from 96%, using only telegram and xda during this time
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] rkdok23:
How to remove background app closing problem ?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] prin2ce:
Please don't share sot it is subjective lest you should give a thanks to the developer :cool:

---------- Post added at 01:59 PM ---------- Previous post was at 01:59 PM ----------

Which ROM u using ?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] rkdok23:
Which ROM u using ?[/QUOTE]

Miui 9 latest beta
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] prin2ce:
Miui 9 latest beta[/QUOTE]

Kk just turn off miui optimisation in settings but it will slow up your device . the problem with miui is that it keep on closing apps to make the ui smoother but you can try other kernels if this don't work for you :D
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] rkdok23:
Kk just turn off miui optimisation in settings but it will slow up your device . the problem with miui is that it keep on closing apps to make the ui smoother but you can try other kernels if this don't work for you :D[/QUOTE]

Thanks .
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] mostafaz:
you are right

Fixed

Pushing to tg channel

Thanks
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] himfa71:
I know, and thats why I posted sot, I was telling LAUrentiu the same thing, that sot depends on user's usage patterns, read my upper comments, I wrote that it depends on usage patterns, and I specifically wrote that my usage is only reading and watching some YouTube, and I am using latest Gabriel kernel from telegram, and also read my earlier comments too on previous pages I thanked the dev, told how much sot I am getting because of Gabriel kernels cpu and gpu underclock
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] mostafaz:
Great :good:
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] rkdok23:
Are you facing background apps closing problem in miui ??
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] mostafaz:
Hi

I didn't notice that

How many ram you have ?

Look at stweak memory tab

Which profile you are using?

Lmk levels are important at such issue

Foreground 100

Background 200

In this example if free memory goes under 200 oom start killing background apps to free up the ram if free goes under 100 it will kill foreground.

Set oom level to light

Low men reserve to relaxed

See if it happens again!

Low free ram causes lag.set to default to see happen again!
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] rkdok23:
I have 2gb ram variant . I faced background apps closing not in your kernel ( havent used your kernel yet) but in stock kernel . I am currently using nos with your kernel and its working just awsm . I wanted to use miui with your kernel so i was just clarifying things . Thanks for your reply . Can you share your stweak profile backup ??
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] MVLaurentiu:
I disagree in this case having 6 cores permanently active for 10% CPU usage and core active at 700 MHz from 1100mhz core it's a lot of waist.

As for apps I use 17tracking Aliexpress YouTube a payment app for electric, gas, phone and TV bill and also webtoon. That is it and I get 2 days battery. With the last miui beta I got 1 day of battery
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] mostafaz:
Then don't use aggressive oriented memory profiles for your usage.

Currently testing some tuning
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] himfa71:
Share your sot in this setting, how much u r getting,
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] iZsk:
kernel app

in my rom the gabriel kernel app showing like this. i am using nos 8.1 even i format twice my device clean flash still.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] Captain_Hungary:
Flash the kernel again, I think magisk messes up the profiles
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] vishalpal555@gmail.com:
Over clocked GPU and overclocked and underclocked CPU..... Would be great
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] mostafaz:
Which rom? Im on miui stable 9.1.1.0

Also aosp 7.1.2 was good.

But oreo not :)

Can u attach wifi fix please
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] moonchild:
Hope it helps
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] OvKill:
Aicp 7.1.2 latest. Ok ill try later
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] MikeChannon:
Cleaned a few posts. Please avoid "discussion" about religion. We allow a

brief

statement of your religion, but that should be in signatures not in posts. OP please note and for others, religion is not a subject we discuss here, there are many other sites for that.

Mike
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] oka1:
From the Moderator Oka1

To all in this thread.

Please adhere to the rules of XDA - Stating your religious affiliation is acceptable in XDA. This should Only be in your signature line. Nothing else is acceptable, no Dictating your judgement of others, no "Mine is better than yours" comparisons ..... nothing more than your stated affiliation.

Religious beliefs are so varied in this world these types of conversations rarely end well and they have NOTHING to to do with android development.

Do not engage in off topic conversations in this thread or ANY OTHER .......

Remember Post respectfully, post on topic or Do Not Post ........... it is really pretty simple

Thanks ! ~~~oka1
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] poxer1933:
hello on a new core does not work wifi does not work flashlight in tiles
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] mostafaz:
thanks

wifi working fine in los 15.1

but miui not, driver conflict, thanks

im going for them
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] r0m10:
the menu key brings up recent applications. Can you fix this? Sorry for my English
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] moonchild:
:confused: It is a recent key to open recent applications only by default :confused: If you need to change, change it in settings
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] Ramakrishnan ?:
[MENTION=5175597]mostafaz[/MENTION] . . i am tried ur oreo test build its slow charging and not charging above 94℅ . . if u give ur tg id its usefull for reporting
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] mostafaz:
thanks

i thaught it's good to have all conversation in xda to have a log and anyone can use them. i'll give my id :)

since i'm new here and i should see the dmesg , can you please remove this node or use this command in adb or rooted terminal:

it's calibrating the battery and may see wrong battery percentage for 1st or 2nd charge.

ofcourse it may not work because you may be in oreo for some day and not switched to new rom by now.

*flashlight in aosp works good but in stock gives permission denied in sysfs which seems not correct but 3rd party app can turn it on.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] r0m10:
this is not fixed in the settings. in Clarity-v1.8 the menu key is customizable, and with this the kernel is not
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] mostafaz:
Gotcha

Menu key only shows recent by one touch
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] arrasyiedd:
Wifi not work on lineage 14 , after i flash wifi driver :(
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] mostafaz:
which build you have? v1 from xda?

in stock rom use some services and load modules as well but in aosp it should be as built-in drivers. so if you found in the kernel zip file a folder name "modules" with few "*.ko" files it means it's for stock and wifi can't load there.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] arrasyiedd:
Then what must i flash then ?