• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[M.O.D. KERNEL Q 1.5] MIUI 11 Mi9/ 9T Pro 835mhz GPU DynFsync LZ4 WLblock *FOD Fix*

Search This thread


Jun 30, 2015
I'm currently running V1 of this kernel on eu 9.8.1 with f2fs enabled and working perfectly.

If I want to install V2 and still use eu 9.8.1 I just restore boot and dtbo and then reboot and do a fresh setup, right? Nothing else should be needed?


Inactive Recognized Contributor
Jan 23, 2011
I'm currently running V1 of this kernel on eu 9.8.1 with f2fs enabled and working perfectly.

If I want to install V2 and still use eu 9.8.1 I just restore boot and dtbo and then reboot and do a fresh setup, right? Nothing else should be needed?

If you're running a rom, to update the kernel to V2, just go to twrp, restore the V2 backup provided and reboot to system.
Not needed a fresh install.
  • Like
Reactions: xenix96
i"m really confused by all this. I've flashed a lot of roms/kernels/mods/whatever. The instructions and a lot of tutorials say;"change filesystems to f2fs, reboot and setup the device", but how is that posssible. When you change to f2fs, data is wiped so there is no rom installed, right? So how can I reboot and sign-in? I've tried a millions times to get this working with 9.8.1 and it's always in a bootloop. (and if I reboot after changing to f2fs, it just bootloops over and over)(like when there is no rom installed)

What am I not getting?

(EDIT) So I just found out you have to mount vendor before installing the patch and voila, the rom boots :laugh:
Last edited:


Senior Member
Nov 5, 2006
Higham, Rochester, Kent
Snap shots of the OP page just for quick reading.

The following are the steps after flashing TWRP.

1. Copy the files from folder "[TWRP Restore] GPU MaxRegDynamicFsyncBOEFFAWL-Blocker" in to the device in internal storage\TWRP\BACKUPS\.

Note: To find device ID, just do some backup in TWRP which automatically creates backup and device id folders in TWRP folder.

2. Restore > click restore boot and dtbo

3. Now flash "fstab_patch_F2FS_MI9.zip" in TWRP

4. Now reboot your device before any next step.

5. Boot back in to TWRP. Wipe > Advance wipe > Data > from Repair or Change file system select Change file system and from the next screen select F2FS and swipe to change.It will format data and nothing will be left in data partition.

6. Now Wipe > Advance wipe > Cache > from Repair or Change file system select Change file system and from the next screen select F2FS and swipe to change.It will format chache.

***Note flashing TWRP / Install / fstab_patch_F2FS_MI9.zip MUST be repeated any time you change ROMs or you won't have access to your data!!! So back this up!!!!***

7. Now boot in to your device and set up as a new device.

8. Once device is setup, go back to TWRP and make a backup of data, boot, dtbo and vendor partitions. Vendor partition backup has fstab.qcom file that allows F2FS partition to boot). Copy these backups in a safe place. If want to change ROM, data partition cannot be read unless we restore this backup.

8. Now install magisk apk and enable root functions. Install GMZ doze for better battery life and Mi9 Auto brightness fix. Now for the best battery and performance, flash "[Magisk-Module]MOD-Kernel-OC-Battery-Saver-Settings-GPU830.zip" in magisk. If want to change kernel settings, install "SmartPack_Kernel_Manager_v8.7.apk".


Jul 12, 2017
can confirm that this kernel works on Syberian OS v2.9! The only gripe about it is that I have that "FP not working if screen brightness is <60%" problem. I will try too look more into it, though. Nonetheless I got a score of 420k-ish in Antutu. Thank you devs!


Aug 26, 2019
can confirm that this kernel works on Syberian OS v2.9! The only gripe about it is that I have that "FP not working if screen brightness is <60%" problem. I will try too look more into it, though. Nonetheless I got a score of 420k-ish in Antutu. Thank you devs!

Ya same problem for me too, so I changed it to eviral kernel which also will boost the GPU to 810mhz


Sep 13, 2019
Please video

CAN somebody do video some change and i dont know how please only fast video steps. my phone totaly dead cant start :3 thank you.. cant reflash my rom in software error Mistmatching image and device :3
Last edited:


Senior Member
Jul 26, 2017
can confirm that this kernel works on Syberian OS v2.9! The only gripe about it is that I have that "FP not working if screen brightness is <60%" problem. I will try too look more into it, though. Nonetheless I got a score of 420k-ish in Antutu. Thank you devs!
my I am on Syberia too, could you sum up the steps you used to install the kernel on it? I don't need f2fs or fancy stuff, just kernel with oc gpu

Top Liked Posts

  • There are no posts matching your filters.
  • 30
    [M.O.D. KERNEL Q]

    *** NOTE: a dev has posted on TG the FOD fix for beta/ MIUI 12 forked from my code, download there! I asked for GitHub source to comply with XDA and will post once I have it and provide a link to the file link "Mi9/Mi9T Pro Optimization and Overclocking" Telegram has it now: https://t.me/joinchat/NNTe_E9G4ZcZKXCUrajFYQ ***

    MIUI 11 Mi9/ 9T Pro MOD 1.5

    MOD-Q 1.5 is for stable MIUI 11 variants for Mi9 only - Xiaomi.eu 11.0.5 stable is what it was built for, runs best on, just use it. The Mi9T Pro version supports MIUI 11 variants plus many AOSP builds. If you use an official MIUI 11 Xiaomi version you will get a warning message "Contact device manufacturer." You can ignore that, it means nothing. But I highly suggest using Xiaomi.eu 11.0.5, or another MIUI 11 variant like MiRoom or some use Revolution OS.


    FP scanner will only work up to 11.0.5. Xiaomi keeps changing the code and not releasing it to made Dev builds not work. There were "patches" that worked until a few weeks back, but Xiaomi has yet again changed their FP scanner code. So I will not update the FP code, do not ask, it is a complete waste of time. Sorry, but Xiaomi.eu 11.0.5 and MOD 1.5 work very very well together.

    835mhz GPU, Adreno Boost, Dynamic Fsync, Boeffla WL blocker (better battery idle), F2FS optimizations, LZ4 ZRAM. EXFAT USB/SDCard support added. Sultan Boost + PapaSmurf's Op7Pro tweaks, Dynamic Overclocking + Underclocking with frequency boost for smooth, fast, clean performance and fluid scaling. Many thanks to PapaSmurf who greatly influenced this kernel; portions are ported from his Op7 Pro Repo.

    Mi9T Pro version also reported to work on AOSP ROMs using the original FOD implementation (Derpfest, MSM, CRDroid, Havoc, LOS).

    Just use the Magisk Module it installs for you automatically when you flash the zip from TWRP, likely the best results will be obtained. SmartPack can be installed to choose between profiles under Performance Tweaks - battery / balanced / performance / gaming, although the default installed Magisk module is highly recommended by itself for optimal performance and good battery drain.

    Github source has been added for MOD 1.5 here. Please read the Readme that's why it's there.

    Releases are available here: Download them for your device and follow the instructions there. If you already have TWRP and Magisk, it will be easy. Just read please it will answer your questions.

    [M.O.D. KERNEL PIE] Mi9 Android9 GPU830mhz F2FS data/cache Dynamic Fsync LZ4 WLblocker V2 [STABLE]

    MOD Pie notes:

    ***New features added! Dynamic Fsync replaces the Fsync toggle (credits to author Paul Reioux aka Faux123 <[email protected]>), and Boeffla Wakelock blocker 1.1.0 (credits to author: andip71 <[email protected]>) has been added. The GPU830mhz runs on a higher regulator now so even 3DMark runs without issue, this is as stable as it gets. A battery saving Magisk Module has been added for longer life and scored 422.5K still on AnTuTu! It will throttle and hotplug (idle) cores as needed to save battery ***

    Super tweaked kernel for the Mi 9. Best AnTuTu Benchmark 432K thus far, expect 420K-430K in daily operation with good battery life. This will vary based on the ROM selected. Stock AnTuTu is 370K. So you can run your phone faster than any production 855+ at the moment. This kernel is setup on purpose to allow anything from stock to maximum performance, you can set parameters as you like in a kernel manager.

    GitHub Source: https://github.com/mrslezak/MODKernel-V2-Cepheus

    Releases are available here:

    TG Name: MattoftheDead

    M.O.D. Kernel (MattoftheDead). This kernel is STABLE, everything works, it runs on any MIUI based ROM (MIUI Global Dev, MIUI China Dev, MiGlobe, Xiaomi.eu, AOSP, etc.). ***If you install this kernel and don't follow the tweak instructions, it runs exactly like stock. There is now a Magisk module that will run with the optimal settings to make this easy! *** So read up. You can apply any tweaks you'd like. These include:

    GPU 830mhz overclock - stable and smooth. The GPU will throttle down when not being used to a lower mhz. The Magisk Module will enable the max 830mhz clock for you. Or you can go without if you have a dialcode supported GPU MaxFreq OC mode *#*#8106#*#*

    ZRAM LZ4 data encryption enabled - fastest encryption method, smaller ZRAM sizes (512mb is good) work very well [2GB is the stock ZRAM default, LZO is the default kernel compression which is slow]. ZRAM is in-memory swap so it is ultra fast. This allows you to have more free RAM for apps to run.

    F2FS data and cache partition support - full ICE AES 256bit encryption. Note only @mauronofrio TWRP 3.3.1-39 + supports F2FS partition mounting so you MUST use this TWRP recovery!!!

    F2FS has been tested on MIUI Global Dev 9.6.27 and Xiaomi.eu 9.7.22, 9.8.1, MiGlobe, RevOS, AOSP, Havoc thus far (more added daily) and read/write speeds and app access are definitely fast. Support was enabled by working directly with @mauronofrio on XDA (thanks Mauro) so we originated F2FS support for Mi9 - there are also F2FS kernel tweaks that help the speed in the kernel.

    BOEFFLA Wakelock Blocker 1.1.0 - blocks wakelocks and allows you to change what gets blocked that is waking up your phone and preventing deep sleep. There are defaults blocked already in this build that are known to be blockable safely. If you want to add more, use SmartPack Kernel manager under Wakelocks. It will also show you what apps are causing them and the frequency so you can disable the ones that are not needed.

    If you want to join in the discussion and see updates in realtime, World MI9 & Mi9T Pro Optimization and Overclocking is a TG group which has many things related to MOD and any other kernels, mods for the phone, Magisk Modules, all types of things for the devices.

    Go to the releases page posted earlier and download everything.

    Step 2: [ROM SELECTION]
    If you already have a Pie MIUI based DEV ROM installed, you can continue to use it. Global Dev 9.6.27 is recommended. But this supports up to Xiaomi.eu 9.8.1. If you want to use a new MIUI based ROM, download it and setup the device (between these ranges of releases - some like MiRoom, some like stock, some like Xiaomi.eu). If you are clean flashing everything, don't bother restoring all the apps - they will be deleted when you switch to F2FS. Just set it up so you can login and get to the default menu with the default apps displayed. Either way, you will have to setup the device as a new phone. So back up all your user data (photos, downloads, etc), apps, etc. using Google Drive, Xiaomi Cloud, Titanium Backup Pro, or any other app that backs up apps and settings. It's often easiest to put them on your PC since you will be plugged into it during this install process with your USB cable.

    Boot Mi9 holding Power + Volume Down
    Hook up to your phone to the PC with the charging cable
    Open a command prompt. Go to your Minimal ADB and Fastboot folder.
    Type: fastboot devices
    And hopefully you see your device ID pop up. If not you don't have the right driver, the cable is bad, or something else is wrong. Search Google.

    Next flash Mauro TWRP:
    fastboot flash recovery twrp-3.3.1-41-cepheus-mauronofrio.img (or use his latest from the link at the bottom of this thread)
    Hopefully you see it flash to the device in a few seconds successfully and it's ready to go.

    Booting to TWRP:
    Turn off your phone. Now hold down power + volume up. Once the boot Logo appears, let go of the power button but keep holding volume up. TWRP should boot. If not, try again. I usually have to remove the phone case. Now enter your password and proceed to the next section. If it asks you if you want to keep the system read only SAY NO! You will be modifying system components, keep it writable to avoid installation issues.

    Check the releases page posted above. Just unzip the file there and flash via TWRP as an image to boot. It's patched with Magisk already.

    Step 5: [CONVERT EXT4 TO F2FS}:
    Converting EXT4 data and cache partitions to F2FS:

    Check the releases page posted above for fstab_patch_F2FS_MI9_Cache_NoBarrier.zip required to enable F2FS. You MUST flash this in TWRP or your OS will NOT be able to boot an F2FS data partition!!!! This file has been kanged all over the internet, it was created here. Feel free to use it, everyone already is.

    ***Note flashing TWRP / Install / fstab_patch_F2FS_MI9_Cache_NoBarrier.zip MUST be repeated any time you change ROMs or you won't have access to your data!!! So back this up!!!!***

    Boot back into TWRP. You will need to go to Wipe, Advanced Wipe, Click Data, Repair or Change File System, Change File System, and click F2FS. Swipe to change. It will format and you'll have nothing on your data partition. Next format cache. Go to Wipe, Advanced Wipe, Click Cache, Repair or Change File System, Change File System, now click F2FS. Swipe to change. Again it will format and be wiped.

    Next, reboot to System. The device should boot up and welcome you to your "new" device. It has no data apps so it has to be new. You will have to login to your Xiaomi account if it is associated with the device. Then you can choose to restore from a Google Backup and next from Xiaomi Cloud. You can do either one to get your apps back. I would suggest Xiaomi Cloud after Google completes all its downloads - it will place icons in the right places and install your root apps if you had them. And after setting up your apps, now boot back to TWRP and make a Backup. Now for this Nandroid backup you should backup data, boot, dtbo, and vendor partitions (vendor has the fstab.qcom file that allows your F2FS supported partition to boot now). Even if you save to your internal device initially, be sure to put it on a PC for safe keeping. Then If you accidentally wipe your partition later, you can skip importing, get to the main screen after minimal setup completes, enable file transfer from the connected PC, and then copy the Nandroid backup to your Internal Memory. Boot into TWRP and restore the backup and you're back in business.

    So now you install the MagiskManager-v7.3.2.apk to enable all root functions. If you want Google Pay and anything else setup posts are here in the Mi9 forum that show you how. Generally hide all banking apps, trading apps, Google Pay, GMS, etc. And I suggest installing GMS doze for better battery life and the Mi9 Auto Brightness fix.

    In addition, to have the MOD kernel setup for the best performance, go into Magisk Manager, Modules, and flash the (Magisk)MOD-Battery-Saver+_v2.zip from the releases page. It will auto set all the parameters the kernel features, and does a great job with extending battery life at the same time.

    This is the best setup for performance. Pictures are included below.

    If you would like to change the settings, you need a kernel manager. So next you can install the Smart Pack APK SmartPack_Kernel_Manager_v8.7.apk to enable or disable all the tweaks you desire.

    Pictures are attached below to show the TWRP screens for flashing and F2FS partition conversion. Also the settings of best performance using Smart Pack kernel manager are here. If you want to change any of the best settings after flashing the Magisk Module, do it in the kernel manager of your choice and set on boot - where to change those options is in the pictures below for SmartPack.


    Mauro TWRP

    SmartPack Kernel Manger

    FK Kernel Manager CPU Profile


    Minimal ADB and Fastboot

    And one last thing. I have been working with some of the most well known devs out there on XDA on Telegram, Private Messaging, and other channels to get this kernel where it is - but I have no XDA presence. I've helped hundreds of people on Telegram setup their systems or diagnose their issues. If you find this post useful, helpful, innovative, or install my kernel and like it, please click the Thanks button to acknowledge the work that I've done to get the Mi9 to this point. It would be greatly appreciated to get some thank yous for all the hours I've put into this development work for the Mi9, and provides some motivation to keep improving. Other kernels are on the way as well for more Xiaomi / Redmi devices if I feel some love from the community. Much appreciated!

    Thanks goes out to @smeroni68 and @mauronofrio for helping fix the fstab.qcom zip that cost several hours of pain yesterday for users and I on Telegram that did not have the Vendor partition mounted when flashing the old fstab.zip file - it will flash now mounted or not from TWRP. And thanks to @ilia1985 for providing a Magisk Module template for the kernel manager settings, now OC setup doesn't even need a kernel manager!

    If you have trouble installing this mod, try my video tutorial, also I was able to condense down some of the steps.

    MIUI Global Dev 9.6.27 is the basis of this mod. All benchmarks and tests were done on this ROM.
    My Results

    Excellent work @mslezak

    Glad to see some love for our device.

    These are my results before and after flashing the magisk optimal settings file with your kernel.
    Looks like it's base on last one version of android9 MIUI DEV 9.8.1 to modify its kernel, doesn't it ?
    So it's not base on linux kernel 4.14.139 to develop ?


    4.14.83 per the hardware device settings. Q is already upstreamed to the latest Linux and CAF so just waiting on a source release so kernels can be made. No need to spend time upstreaming unless another dev wants to (I'm in contact with the other kernel dev here on XDA we're working together now, he may upstream). He upstreamed his to 4.14.139 and will pull my source repo soon to fix bugs in his build so he may just upstream this kernel or fix bugs in his kernel in the process. Collaboration is a good thing. I've been waiting for assistance for a long time and it's good to team up with others devs. We don't get paid we do this as a hobby.