yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] casabel:
Hi Mario , Stable Xiaomi.EU Miui 10.3.1.0 just flashed your Kernel and was wondering if you can advise some settings for my usage :

No gaming

Many apps needed in memory open and refresh (like my emails i need fast push delivery)

Multimedia use mainly

Battery to last for my day

I have auditor app installed and changed kernel as you advise in earlier post.

thanks a lot - Mi Max 3 - 4/64

EDIT : Also GPS is broken after kernel flash :(
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
I'll push kernel profiles soon. About GPS: it has nothing to do with it. Try reflash your ROM/firmware
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] makstrix:
GPS working fine here. Xiaomi.eu 9.5.16
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] Wmateria:
Hi [MENTION=5795080]mario_R[/MENTION], is this kernel compatible with the new AOSiP and AOSP Extended roms that was just released?
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
Yes, but it's not worth to flash it. Features are the same. Wait for next update
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] Wmateria:
Thank you, I don't know if the Kernel has CPU Hotplug like Alucard (basically its an option that you can set certain cpu cores off when screen is off).. I see that Floppy Kernel implements that feature on multiple Xiaomi Devices running Custom Roms, Etc. Is it possible to implement that option in the future?
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
Do you mean this? :p but seems alucard hotplug is outdated and it doesn't really switch cores often. I'll try something else.
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] Wmateria:
Well, the dev seems to comes out with new builds still, but yes, anything is always good, thanks for hearing me out :D
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
For what device is that kernel you've posted?
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] Wmateria:
https://github.com/JonasCardoso/android_kernel_xiaomi_msm8996/releases, I figure it may be different since Mi Max 3 is a SD636 device.
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
Yeah, nevermind found the problem. We need thunderplug or hima hotplug. They're optimized for 8 cores.

And that FloppyKernel is for SD821 devices so it's only 4 cores that's why alucard is bugged on sd636. Tomorrow I'll dig into it :p
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] dinhvtai:
I'm using MIUI Masik 4.1 & very satisfied with it. So your kernel is the only reason that I comes to this forum everyday just to check for the update :D
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
Thanks, but I'm still fighting with hotplug... It drives me crazy when something is always missing..
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] dinhvtai:
Take it easy, man. Your current version is already great :good::good::good:
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] Wmateria:
If anything, just make sure the cpu min and max can stick. I think that would be the best thing for now because the current CPU Min/Max kernel for AOSiP and AOSP Extended can't manage to stay put when changing the settings; for example setting to 300mhz. It happens on pratically all the CPU governors.
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
It runs fine for me. I'm on latest AOSiP. Just set your minimum frequency and leave it. It will change in CPU tab because that's probably a bug of kernel adiutor/any kernel manager based on kernel adiutor. Look at the frequency tab. I did set minimum frequency to 300MHz. And it works like it should :confused:
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] Skyllery:
Just curious, Did 5.1 already support Spectrum ? :p
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] Cichy26:
Page 31..
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
No, Spectrum needs also be implemented into ROM if running on Pie.

Small ETA:

>I've deactivated stock MSM hotplug- it's useless since it keep all cores online anyway. With this trick we're able to switch off cores manually or use feature from... zzmoove governor (which I've implemented into the kernel). Zzmoove is mainly designed for battery saving and balanced usage and have an ability to HOTPLUG cores. More info about it's in-built profiles here: https://xdaforums.com/showpost.php?p=42637787&postcount=3

>kernel will use Aroma installer with bunch of additional tweaks to choose before installation

>pre-configured kernel profiles to pick from the widget/KernelAdiutor.

No bull**** included xD
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
Also, just saw that without ****ty msm hotplug minimum set frequencies don't jump to higher ones anymore. You'll need to test it later
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] SasugaWatashi:
Flash v3 oreo for my miui eu 10.2.1.0 oreo and getting bootloop. Already try twice but still bootloop. Dont want to up pie bcs get some issue on latest. Have tried v5.1 on 10.2.1.0 pie, works great but like i said before. Mine have some bug issue.
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] Wmateria:
Yeah i do noticed ^_^ Little Cores 5,6,7,8 tend to be on the lower end despite having it set up on a higher frequency. It doesn't affect overall performance though. I just noticed that the schedule workqueues on awake CPUs is on by default--> meaning when turning it off, the switch comes back on when checking again.

Besides these slight problem; on the brighter side of things, the device is already starting to clock over 11 hours of screen on time. :good: 13:01 SoT @ 20%, phenominal!
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
Did you flash Magisk after you flashed the kernel?
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] :
Hi! I really appreciate your kernel! Would it be possible for you to update the wireguard kernel backend, though? The one included right now is still from dec 2018... Thanks!
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
Yup
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] SasugaWatashi:
I flash like i flash another kernel. Flash rom reboot, magisk reboot and last v3 oreo bootloop. Already try rom reboot kernel and bootloop again.

---------- Post added at 02:25 PM ---------- Previous post was at 02:21 PM ----------
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] :
Can't seem to find the donation link anywhere...
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
Here it is

https://paypal.me/MarioResurrected?locale.x=pl_PL

I did try to add it to the XDA profile but it says it's a wrong link
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
I would like to help, but can't flash Oreo MIUI and test what's wrong. I don't want to get stuck with dead phone because of ARB
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
Also just updated WireGuard to its latest version before my time to work, thanks for reminding me about it :p
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] :
Thank you very much! Ignore my donation note then :)
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
*removed*
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] :
Yeah, why? :^)
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
Thanks for supporting me

Also thank you too, Avi for donate

I hope I could finish everything at this weekend :p
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] Bartos81:
A strange thing on MIUI Global beta 9.5.30.

In the Kernel Adiutor program, the sound tab for the soundtrack is set on the scale -7, I set it to 0 or 2. Strengthening the sound works as long as the player plays the song. When the next song is switched on, the headphone amplification comes to standard settings -7 (minus 7)

At MIUI Xiaomi.eu this problem does not occur
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] SasugaWatashi:
Ok bro no problem. Already flash latest eu 9.0 again. Cannot life without custom kernel. Tq for your work bro.
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
Global versions are always a problem. For example wifi module can't be loaded when system is booting up. It needs to be loaded AFTER system boots up. In logs it says that system doesn't have right permissions to do this :cyclops: Also did you check if issue occur if you switch selinux to permissive?

In terminal type:

su

setenforce 0
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] Bartos81:
It does not work, i can live with it but it's important that we have more processor frequencies.
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
I did a quick upload of rebased ResurrectedKernel. There is disabled cultivation governor (it's just a matter of time, i hope so) and it's updated with latest wireguard (2019.06.01) [MENTION=7008726]B3L1NSKY[/MENTION]

Kernel is running on latest upstreamed kernel sources (thanks to [MENTION=9967554]afr30010[/MENTION]) with extra features from original ResurrectedKernel. It'll be also bundled with future [MENTION=4355924]MrColdbird[/MENTION] AOSiP update
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
I did a quick upload of rebased ResurrectedKernel. There is disabled cultivation governor (it's just a matter of time, i hope so) and it's updated with latest wireguard (2019.06.01) [MENTION=7008726]B3L1NSKY[/MENTION]

Kernel is running on latest upstreamed kernel sources (thanks to [MENTION=9967554]afr30010[/MENTION]) with extra features from original ResurrectedKernel. It'll be also bundled with future [MENTION=4355924]MrColdbird[/MENTION] AOSiP update

Download link: https://xdaforums.com/devdb/project/dl/?id=31620
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] :
Much appreciated! Couple questions, though: can I dirty flash this over latest AOSIP build? Will this affect the upcoming kernel changes? And also, would I have to flash govtuner again and run it? Thanks!
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
Yes, you can flash it over latest aosip. There won't be any problems. I'm running it with this kernel version.

About govtuner. Just use magisk one. Forget about 4.2 beta 2
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] Wmateria:
What is govtuner?
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
https://xdaforums.com/android/software-hacking/mod-gov-tuner-project-29th-june-2016-t3407828
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] Cichy26:
Are you using it? With what settings if use?
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
Balanced with increased performance value= 2
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] SUPERUSER:
lol. ...whats with the pewdiepie vouch in the recovery? ?
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
It's already outdated info xD

Just focused on kernel instead of playing with some lines in installing script haha. It'll be deleted in future release
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] SUPERUSER:
haha alright...anyhow I discovered that the v5.01-pie zip is causing the sound and notification section in settings app to FC on the latest xiaomi.eu

I did a clean flash and flashed each zip to see where the issue starts, first rom, then magisk, then this zip after two reboots in between each zip file

Not sure if the built in error reporter help you any or if I need to give you full catlog? because atm I am on a clean flash so I have to install a terminal or log app

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.SubSettings}: java.lang.RuntimeException: Cannot initialize effect engine for type: ec7178ec-e5e1-4432-a3f4-4657e6795210 Error: -3

at android.app.ActivityThread.performLaunchActivity(Unknown Source:591)

at android.app.ActivityThread.handleLaunchActivity(Unknown Source:36)

at android.app.servertransaction.LaunchActivityItem.execute(Unknown Source:57)

at android.app.servertransaction.TransactionExecutor.executeCallbacks(Unknown Source:99)

at android.app.servertransaction.TransactionExecutor.execute(Unknown Source:34)

at android.app.ActivityThread$H.handleMessage(Unknown Source:36)

at android.os.Handler.dispatchMessage(Unknown Source:21)

at android.os.Looper.loop(Unknown Source:208)

at android.app.ActivityThread.main(Unknown Source:107)

at java.lang.reflect.Method.invoke(Native Method)

at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(Unknown Source:11)

at com.android.internal.os.ZygoteInit.main(Unknown Source:274)

Caused by: java.lang.RuntimeException: Cannot initialize effect engine for type: ec7178ec-e5e1-4432-a3f4-4657e6795210 Error: -3

at android.media.audiofx.AudioEffect.<init>(Unknown Source:127)

at android.media.audiofx.DiracSound.<init>(Unknown Source:4)

at com.android.settings.sound.g.onCreate(Unknown Source:53)

at com.android.settings.utils.j.create(Unknown Source:5)

at com.android.settings.utils.j.<init>(Unknown Source:53)

at com.android.settings.sound.g.<init>(Unknown Source:0)

at com.android.settings.MiuiSoundSettings.onCreate(Unknown Source:559)

at android.app.Fragment.performCreate(Unknown Source:15)

at android.app.FragmentManagerImpl.moveToState(Unknown Source:346)

at android.app.FragmentManagerImpl.addAddedFragments(Unknown Source:48)

at android.app.FragmentManagerImpl.executeOpsTogether(Unknown Source:125)

at android.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(Unknown Source:99)

at android.app.FragmentManagerImpl.execPendingActions(Unknown Source:21)

at android.app.FragmentManagerImpl.executePendingTransactions(Unknown Source:0)

at com.android.settings.jZ.a(Unknown Source:215)

at com.android.settings.jZ.a(Unknown Source:41)

at com.android.settings.jZ.onCreate(Unknown Source:194)

at android.app.Activity.performCreate(Unknown Source:16)

at android.app.Activity.performCreate(Unknown Source:1)

at android.app.Instrumentation.callActivityOnCreate(Unknown Source:3)

at android.app.ActivityThread.performLaunchActivity(Unknown Source:368)

... 11 more

https://paste.ubuntu.com/p/GpZs2fhKB9/
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
5.01 is for stable release.

5.1 will works good. Or use latest upstreamed version from download tab on xda main kernel thread

https://xdaforums.com/devdb/project/dl/?id=31620
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] SUPERUSER:
ah thank you, I will try this.

I was so tired yesterday that I probably did not see this

I'll do a another clean flash and report back :good:
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
No need to make a clean flash. Dirty is okay
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] zioloiso:
I have a problem. My Google Camera crashed when I instal last version kernel. GCam Arnova 1.5. No instal, gcam works. Where is problem?

Wysłane z mojego MI MAX 3 przy użyciu Tapatalka
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
Install camera2api again
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] zioloiso:
I know. Apk crash when I try make a picture.

Wysłane z mojego MI MAX 3 przy użyciu Tapatalka
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
Reinstall?
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] zioloiso:
I instal again Rom, Work. Instal kernel, crash. I dont have idea why crashed. GCam reinstal, no Work too.

Kernel 5.1 gcam works.

Wysłane z mojego MI MAX 3 przy użyciu Tapatalka
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
Maybe it's because of kernel is upstreamed. I'm using other gcam version and it works flawlessly
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] zioloiso:
What version do you use?

Wysłane z mojego MI MAX 3 przy użyciu Tapatalka
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
Just edited my previous post. Check the screenshot
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] zioloiso:
Omg. This version does not run, crash : | I have to use Kernel 5.1 and GCAm Arnova 1.5.
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
Are you running AOSiP or MIUI?
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] zioloiso:
MIUI Global beta.

Wysłane z mojego MI MAX 3 przy użyciu Tapatalka
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] SUPERUSER:
Thanks, I already did it before I saw your post...but anyhow it works fine now :good:

I've been busy having my server teared down the whole day but the rom seems to work fine now, I'll finish configuring tomorrow.. too tired now
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] TioCareca:
well with aosip and this kernel i got no wifi... ?
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
Did you try to just reflash the kernel? I'm only testing it for AOSiP for now, no issues
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] TioCareca:
yes, still no wifi...

i dirty flashed the rom, all good, if i flash kernel again no wifi...
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
Open terminal emulator and type

su

insmod /vendor/lib/modules/wlan.ko

Also what recovery are you using? Official one is a mess btw. I'll upload wifi fix zip tomorrow if still won't work
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] TioCareca:
after that command it say: not found

i am using orange fox...
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
Okay, so wifi module didn't get pushed. I'm currently not in home, so I'll create wifi fix zip when I get back to home. If you need wifi now then just extract kernel zip, then go to

Extracted_kernel_folder/modules/vendor/lib/modules

Pick wlan.ko from there

Copy it to /vendor/lib/modules

Set rw-r-r permissions

Reboot
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] Me4oKyX:
So is this kernel usable on MIUI roms ? I would really like to try it out :)
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
I'm not supporting official miui roms. Custom miui should work.

Anyway,you can always make a backup of boot partition in recovery and try the new kernel
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] Me4oKyX:
I'm using custom everything :) Nothing stays stock on my devices. Thank you mario_R for this great kernel :) Will try it out ASAP.

P.S. The latest version for Android Pie is v5.01, right? Also Dev, could you suggest an app to set up the kernel best ? Thanks :)
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] SUPERUSER:
That is not correct, the file should be placed where specified.

Inside the folder "qca_cld3" so the total path to the file being /vendor/lib/modules/qca_cld3/qca_cld3_wlan.ko

If the folder does not exist create the folder with permission 755 and set the file permission on 644 and reboot

See image and notice the path at the top: This is how my phone looks
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] Shlyify:
Yes sorry i wrote that folders from my memory....I got file placed same like you with permissions set 755 for folder and 644 for file :)
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] SUPERUSER:
Well did it work?

Does wifi work now?

Edit:

I am not using the kernel, leme just be clear on that but I am noticing in your image that the file is half the size of the original file?

On my phone its 6,9MB big.

I dunno why that is if the file is modified to make it work with the kernel?
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] Shlyify:
It's not working :(

Can you upload me your file?
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] SUPERUSER:
Here you go

https://mega.nz/#!WeRRDCAC!kFc-FQb9z3_C3fIy8vAnHDrq-ETqhFXv65WHv8GciX4
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] Zanr Zij:
Uv some mv please. Redmi N5 kernel also UVable about 20-50mv ( by dev, no UI for user )
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] Shlyify:
Tha

Thanks, but still not working ;)
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] SUPERUSER:
Opening the zip file it seems like its a repack process.

I wonder if it would be possible to make an uninstall zip file to revert to the old kernel if something goes wrong?

Similar to what magisk does, placing the original kernel in a folder if needed in the future so its being flashed back when flashing the uninstall zip

---------- Post added at 20:09 ---------- Previous post was at 20:08 ----------

Undervolting just a little bit would be preferable to decrease risks with the rom being unstable and avoid overheating issues
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] Zanr Zij:
If you flash Magisk before kernel, when something go wrong you just flash Magisk Uninstaller to restore stock kernel only :)
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] SUPERUSER:
hmm good idea.

There is no other files being written to any other partitions that will need to be restored to default state?

Other then the qca_cld3_wlan.ko?
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] Zanr Zij:
Magisk Uninstaller is all you need :)
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] SUPERUSER:
Thanks it worked.

I backed up the backup archive in /data and restored it to run the uninstall magisk.

I do confirm.

Wifi does not work.

And it does not work with restoring the original rom file.

I successfully restored the original kernel and wifi work again.
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
It's half the size because I've used "strip" command so the size is smaller. I can compile test version without stripping the module. I don't know why AnyKernel2 can't push wifi module for some users to /vendor partiton. For my testers on telegram group WiFi_fix.zip worked. For another tester there were'nt any problem with wifi after flashing just kernel zip. :confused:
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] SUPERUSER:
For me the qca_cld3_wlan.ko file was replaced no issues on my end but the wifi did not work, the switch went back to off when I turned it on.

Tomorrow I might be able to give you some logs if that would help
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
Are You on MIUI ROM or AOSP based ROM (some GSI ROM maybe)?
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
Are you on MIUI or do you use GSI ROM?
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] Shlyify:
Miui - xiaomi.eu 8.9.20
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] SUPERUSER:
I'm on Revolution OS

https://miui.revtechs.me/en/mimax3/
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] mario_R:
Hmm, okay tomorrow will compile test version with not stripped WiFi module

As above, and as you said, could you make some logs when you're free? For example with MatLog app and send screenshots here

EDIT:

Nevermind, compiled it just now. Test it please, also keep in mind the size is big without strip command

https://drive.google.com/open?id=11B0016iGzRUe9vMPW5i_deWEN3kRPhZl

Also don't flash WiFi_fix.zip and check in /vendor/lib/modules/qcacld3/ if there is a big module file
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] Mikromama:
WiFi works fine only on V2-test file :)
[Xiaomi Mi Max 3 ROMs, Kernels, Recoveries, & Other] magnamentis:
so nothing stays stock, means you replace great stock features with mediocre custom just to be custom ?

ok, that's not my point, my point is that if you use everything custom you should be aware of 2 things in reply to your questions:

a) the default settings of a kernel are logically the settings that a developer finds "best" while "best" does not exist, it's personal prefs and choice.

b) there is no such thing like "best" as explained above

last but not least, latest android PIe version can be found with google and it's 9.0.x and if you were asking for latest kernel version it's 5.1 not 5.01

info is in the OP, always read the OP, that first and the last 10 pages and then google before posting

https://xdaforums.com/announcement.php?f=7959

so i refrain from taking this any further or give things a name just post a bit more careful so when we come to read here won't lose time for nothing.

Changelog:

V5.1:

-fix for sound+videos on latest beta MIUI versions