yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] betounty:
Does anyone know if this kernel works with the AOSPI Rom?

I want to know if anyone knows if this kernel is working fine with the AOSPI Rom (8.1 and treble) because I see many having issues with the latest kernel version, I see encryption issues, sensors not working and things like that
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] davypacheco:
Kernel is very outdated , so expect that kind of bugs.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] RavenRein:
My device got encrypted, I'm using RR Oreo Treble with f2fs data partition and ext4 system partition.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Jitu@1234:
Hi, I am using Pixel experience 8.1.0 Orio Treble in my Mido and I am not interested in Rooting my Mido. Without root is it possible to flash FK ?? Please help me
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] vkJhala:
It doesn't require your phone to be rooted for flashing custom kernel.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] VIJAYanandh:
Am getting Android internal error after flashing...
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] cmr_noob:
First of all you should go through the thread before flashing the kernel. Yes the kernel needs to be updated but the dev is quite busy at the moment. If you would have taken five minutes to go through you would have realised that this was a problem. Anyway to fix the encryption problem, Just dirty flash your rom.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] eliezerjk90:
First you don't have to pay if you don't want to. He provides it for free so at least stop bashing him.

Secondly, as the comment above me said, you should have read latest post before you installed the kernel.

Finally, you need to understand that when you used any mods/custom rom/custom kernel, you'll do it on your own risk! You have no right whatsoever to blame the developer for any problem that might occurred.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] runeupo:
Well, you started badly, didn't you.. Did you delete your previous post yourself ? Please don't answer, really .

Here's some to read, it's about the difference between -in my words- leeching and contributing. Hope you'll learn your lesson well next time and at least do some reading prior to flashing.

https://xdaforums.com/showthread.php?t=377814&p=2031989

And back on topic again :)
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] eliezerjk90:
First you need to understand that he's selling the app as a way to DONATE. He doesn't want to receive money without giving something so he makes the app. Now you should understand that DONATION means it is freely given without you expecting anything in return.

Secondly, what he sells is the KERNEL MANAGER. Meanwhile, you have problem with KERNEL, which is FREE. So if you want to claim support at all (in appropriate manner) it is if and only if the kernel manager is not working properly, which is not the case!
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] krishna.rag:
Does it support wireguard?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] agus_ulo:
Yes

https://github.com/franciscofranco/mido/blob/oreo-mr1/scripts/fetch-latest-wireguard.sh
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] RizwanH20:
Fransico sir....

Any updates ?

Upstream and CAF updates are available if you're interested to know :)
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] drakor007:
Any updates? Please. R6 is not compatible with actual LOS 15.1 :(
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Choco_martin:
Hi [MENTION=3292224]franciscofranco[/MENTION]

I've just installed Android Pie ony mido, is there anyway this kernel will be supported in there as well?

Thank you!
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] anandu212:
Is it support miui 9.5

Can i use this in miui 9.5
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Sachin:
Read first post "compatibility"

It doesn't support miui
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] gtimothyw:
Encryption unsuccesful? Any solution? Im using LOS 16 unofficial
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] :
kernel needs to be updated
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] gtimothyw:
How do I know if a certain rom is compatible with this rom? Because after update there is encryption issues.

Please recommend me alternative kernel to work with because my device is encrypted by using this kernel. Thanks a lot guys. Really love this kernel
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Popke523:
when will this kernel support latest los 15.1? on r6 it is encrypted, on older i have bootloop
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] svnhvn:
That's up to franco i think.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Zile995:
All right, encryption problems and vendor mismatches should be fixed now.

Updated to latest LOS15.1 kernel sources (sdFAT, BFQ (forgot to enabled it, cfq is default), f2fs updates, quota v2 enabled...)

Tested on latest AEX Build (Treble ROM).

I didn't test on non-treble ROMs. I don't use Franco Kernel Manager.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] massiswantoo:
Your DPI?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] BOYONG06:
Is it available for non treble?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] vkJhala:
r6 is for both treble and non-treble devices...read OP bro:fingers-crossed:
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] BOYONG06:
Thanks man
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Popke523:
Works with latest los 15.1? original r6 kernel not working
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] seijuro572:
please make one for miui10
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] SimSerg:
Yes. Works fine. Neither encryption failed nor bootloops
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] NE0HP:
Deleted due to inappropriate file size. Check the next post :p
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] NE0HP:
This is for those who are eagerly waiting for the next update...wait is almost over, stay tuned...straight from OP.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] waar19:
Work in mido Android P

Work in Redmi note 4 android pie?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] seijuro572:
Wow custom rom :eek:
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] iValsaraj:
Great Man. Thank you so much... I was trying francokernel for a while, the encryption problem happends everytime. I tried with different roms but no use.

This one worked for me on havoc rom.:svetius::svetius:
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Curi0:
If you want MIUI support you can modify it your self it probably requires a small modification the kernel is open source

---------- Post added at 09:29 AM ---------- Previous post was at 09:25 AM ----------

Viper causes battery drain if you have force enabled on. I'd say its best you remove it to see if its the cause
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] prashant2198:
Did nothing of that sort. Will try switching off the module for a while and then test the difference. Thanks.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] franciscofranco:
Hello mido users, I have something for you! A new build is up for Treble custom roms (should work on Pie too last I checked, but let me know)! You can auto-flash with my app here http://get.franciscofranco.xyz or get the zip from the OP!

The app has undergone massive improvements with new features through the last couple weeks, check it out!
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] ThanveerAliSayed:
Thanks for the update
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] vkJhala:
Yup it's working on pie:D
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] HuangjiQ:
Is there a telegraph group?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] LilBlinx:
Can the sources be updated to reflect the latest changes?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] svnhvn:
Thanks and how's your honey moon mate?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] 5k0tt:
Changelog?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] eliezerjk90:
Here's the changelog

1. He's married now :p
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] seijuro572:
thanks for the update bro :D
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] st4ik:
does anyone work with zram ? for me don't work
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Zile995:
Maybe this https://github.com/franciscofranco/tissot/tree/oreo-mr1-custom
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] LilBlinx:
That branch is for stock Android 8.1 on tissot, probably not the branch that is used here also.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Zile995:
There are stock and custom branches.

Idk, I thought that it is unified for mido and tissot (saw both defconfigs) :)
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] franciscofranco:
Updated the OP with the correct link.

Was great, thanks for asking.

Yeah ZRAM doesn't seem to be mounted. I'll check it out.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] bnesic:
Cant open Running Services with latest kernel build. AOSiP rom.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] franciscofranco:
Not Kernel related.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] gtimothyw:
How is R7?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] BealeStBluesBoy:
DT2W problem again, stops working when device is sleeping
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] der_Kief:
confirmed ... same problem here :(

also it cannot forced with kernel manager
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] franciscofranco:
Considering I didn't change anything on the touchscreen drivers, it's straight from LineageOS-15.1 branch I dunno. I'll try to figure it out.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] bnesic:
+1 DT2W
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Zile995:
What is this, we switched to conservative governor?! :D

ft5435: fix double tap to wake when system sleeps ?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] thapaavijeet:
Forcing ZRam through a kernel manager does no good. It just sits there without doing anything.

To have an effective zram, you need certain options enabled in the kernel plus a line in the fstab and selinux labels.

I am a bit skeptical about having zram enabled for devices with more than 2GB of ram. I mean, why use additional CPU to compress swap pages and take a hit on the battery.

https://source.android.com/devices/tech/perf/low-ram
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] franciscofranco:
Duh. I forgot my own code. Thanks in advance.

ZRAM doesn't hurt a bit anymore. I just forgot to set LZ4 compression, which failed the init and everything collapsed. It's already working on my loocal build.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Nixsuki:
Thanks after a long while. Congrats again Sir. Franco the newly wed ☺ r7 is the best and good here in Lineage 15.1 no issues found. ?

Smoothness over load and ram is decent optimized! ?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] thapaavijeet:
Hi, one more thing

I see your interactive tweaks are commented out, are we sticking to QCOM stock values?

Plus regarding the target_loads "80 1958400:85 2016000:95"

2016000:95 seems not really needed since there's nothing after it. Is it because of max_freq_hysteresis or io_is_busy.

These two parameters appear the most mysterious to me, could never understand them.

Edited:

target_loads "80 1958400:85 2016000:95"

I understand it now, NVM, thanks. :good:
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] franciscofranco:
I set conservative by default, I feel like it works better for our single low power cluster
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Keller0088:
Awesome Kernel Franco! i loved it.. Jut one thing..

Double tap to wake stops working after phone idle for about 5 mins :(
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] franciscofranco:
r8 is out! Get in the action quick and easy with my app http://get.franciscofranco.xyz Flashing a new Kernel has never been easier! Zips in the OP if you prefer (booo) to flash on the recovery yourself

1. Fixed ZRAM init

2. Fixed a bug with double tap to wake in which it stopped working after the device was on deep sleep for a while
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] DiogoSilva48:
Sorry to bother you, this happens on pie, not a major bug but I just wanted to tell you. Props and thanks.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] franciscofranco:
Oh, easy fix, hold on.

EDIT:

Check now, should be fine.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Keller0088:
Wow that was fast! Thank you Franco! Have a nice night!
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] franciscofranco:
:highfive:
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] aron11195:
pubg doesnt sit well with this kernel, stutters everywhere to the point the game is unplayable
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] franciscofranco:
I'll test, but it smells fishy, shouldn't have any problems whatsoever.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] davypacheco:
I just played arena of valor ( a game) just after installing the update of r8 and Is unaplayable, it went from 55-60fps at 4-12 fps, couldnt play at all, something Is wrong with GPU, apps performance are great though , it took 3 minutos to load the game , when the usual Is about 30 seconds
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] franciscofranco:
I'm certainly testing it. Might be thermal throttling, dunno yet. Will post when I get some hands-on with it.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] davypacheco:
Amazing chief! Also I don't know if this behavior is intended but cpu clock speed is lock at 1.6ghz , if I set it at 2.0 it will go back to 1.6 right away no matter what governor I'm using

Pd , back to r7 meanwhile
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] archis007:
Why isn't the Franco kernel app letting me know that newer version of your kernel is available? Btw I'm on los 16. Maybe the kernel is in beta, that's why it's unsupported for pie. But still letting you know.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] mbangi:
Same problem no more update notification ?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] aron11195:
just tested r7 version, pubg's working great little to no stutters.. r8 however is a different story.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Chanukya chanu:
Couldn't play pubg in r8 it's lagging like hell

Any one facing same issue ??
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] aron11195:
backread pls, lagging on mine as well. already reported.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] gtimothyw:
It is better to stay in R7?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] razibrizal:
try changing governor, how the result?

afaik conservative governor is for battery
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Nixsuki:
TO ALL PUBG MOBILE GAMERS,

Please keep in your mind that our device is midrage only it can be set to high as playable but not smooth as well. Kindly use GFX Tool in playstore to blend perfect settings.

Follow this settings for great game experience:

1280x720

Realistic

60fps

Shadow (Skip)

Anti-aliasing (Skip)

GPU Optimization (Disable)

Save and run the game.

Kernel is great here! Also I played Arena Of Valor (SEA) smooth no issues all high (HD)

Consider explore your self.

---------- Post added at 06:29 AM ---------- Previous post was at 06:27 AM ----------

Why? Please read the latest r8 changelogs and then good to go.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] guanto96:
Thermal throttling
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] aron11195:
have you flashed r8 then tried pubg?, the game isnt playable at all with this kernel, its not the conventional stutters the game almost freezes every second, even on the main menu.. and we know what our device is capable of.. r7 however does not have this issue, so yeah its better to stay on r7 or wait for another update.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] der_Kief:
thanks for the update :)

I recognized one more thing and I don't know if it's "by design"

I'm not able to adjust low memory killer values anymore. They are not present at my kernel manager ....

Also it seems that zRAM is not working correctly or maybe I understand it the wrong way.

After initial boot zRAM don't show up in system information tools. When I alter the zRAM value with kernel manager (let's say + 10MB) then it's shown correctly within the system information tools.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] lumin25:
I'm also facing constant crashes in R8.

Game: HIT: incredible heroes tales.

R7 was normal, I've switched to interactive but the crashes persist.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] jeetsarkar007:
facing lag in pubg like hell in r8.. going back to r 7....just a double a tap to wake not working on some occasions..waiting for new release. and thanks for updating
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Nixsuki:
Works great on me.. I used gfs tool with realistic and 60fps. No lag at all
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] nirmalyajana6:
Why fk r7 and r8 are not flashing with RR os in redmi note 4 ?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] st4ik:
R8 works very good. Also PUBG no problem.

Thank You.

Rom lineage os 15.1
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] maple3142:
Why it is so slow even if I switch to performance mode?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] anandjain2507:
Unable to flash r8 on redmi note 4 with AEX Rom.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] antonholmstedt:
Doesn't work for me with kernel support, but works with stock kernel i.e. userspace VPN.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] aron11195:
don't wanna mess with the kernel, one of its feature is "flash and forget". pubg is laggy as hell but asphalt 8 actually plays great and so does mobile legends.. problem only persists with r8.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] :
did you install command line tools in wireguard settings?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] gtimothyw:
Did anyone feels that it is a bit slower to load new apps?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] :
possibility for addition of LMK settings, adreno idler in future builds?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] franciscofranco:
Well, I'm having a hard time figuring out that PUBG lag. I just played an entire game and I won the thing on medium settings.

I'll revert a patch that "I believe" might be causing some issues for some of ya'll and see if it helps. It's definitely weird though.

Release in a couple minutes.

Should be fixed now.

ZRAM is inited alright.

mido:/ # cat /sys/block/zram0/initstate
1

mido:/ # cat /proc/swaps
Filename	Type	Size	Used	Priority
/dev/block/zram0 partition	532476	0	-1

You need to be on a treble rom as stated everywhere.

Nope.

Adreno idler is placebo, the default trustzone governor works fine.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] imzuhaib:
lag

Flashed this kernel, but facing extreme lag in GPU related apps

There is extreme Heat ( Thermals are high)

i am using AOSP 8.1 Rom. No Dirty Flashed ROM again for Stock kernel
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] raizzen09:
Laggy

I thought I'm the only one. So laggy pubg in r8. Even tho the governers of my cpu and gpu is in preformance mode. I'm using LOS 15.1 latest
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] franciscofranco:
Auto-flash with my app http://get.franciscofranco.xyz or get the zips from the OP.

r9 - August 28th. 2018

1. Upstreamed 3.18.120

2. Reverted a patch that could be introducing some weird jank with PUBG and other apps

3. Re-enabled LMK to allow users to mess with minfree settings
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] jeetsarkar007:
downloading r9...flashing soon..

pubg running great

great to have u back [MENTION=3292224]franciscofranco[/MENTION]
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] gtimothyw:
Why I always thought that r6 is the most snappier? Sometimes the device feels laggy in multitasking and picture in picture mode.. Now I'm trying to flash r9. Btw really happy that Franco here again
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Zile995:
Latest AEX + Franco R9

I will have to change value with kernel manager, and it will be activated after that.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] GreekFlash:
[MENTION=3292224]franciscofranco[/MENTION] Sir now that the kernel sources are released,will you make a kernel for mi a2? sorry for offtopic but i dont know where to ask the dev
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] der_Kief:
so it seems that zRAM still not working correctly with R9 ... i had that with R8 and LOS 15.1
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] uaevuon:
Have a question.

Why cfq is default not bfq?

Is cfq better than bfq?

I thought bfq is better (as i know)
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] dheerajsinghal:
Working with LOS 16....
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] thapaavijeet:
Instead of using

on init
write /sys/block/zram0/comp_algorithm lz4
write /sys/block/zram0/max_comp_streams 4
write /sys/block/zram0/disksize 536870912

write /proc/sys/vm/page-cluster 0

on post-fs
exec u:r:init:s0 -- /system/bin/mkswap /dev/block/zram0
exec u:r:init:s0 -- /system/bin/swapon /dev/block/zram0

Use

on post-fs-data
setprop ro.vendor.qti.config.zram true
write /proc/sys/vm/page-cluster 0
write /sys/block/zram0/comp_algorithm lz4
write /sys/block/zram0/max_comp_streams 4

Qcom-post-boot refers the prop, sets 512mb of ZRAM for devices with more than 1Gb of Ram and enables it by default.

Meaning no need for kernel manager to enable it manually.

Working on LOS15.1 with fkR9

---------- Post added at 09:22 PM ---------- Previous post was at 09:04 PM ----------

@franciscofranco

qcom-post-boot is overriding your

write /sys/module/lowmemorykiller/parameters/minfree "18432,23040,27648,32256,36864,46080"

with values

18432,23040,27648,32256,55296,80640

Calling them after

on property:init.svc.qcom-post-boot=stopped

Would help.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] franciscofranco:
Very helpful, thank you so much! Always learning!
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Lightning_Edge94:
how you got the navbar..??
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] LonelyDay:
Thank you buddy. Working fine.
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Zile995:
Yes, I can confirm, it is working now :)
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] skipthisforme:
I have no idea what zram is. So does that mean r9 is not stable yet?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] LonelyDay:
It's so stable

Zram will help ram loaded. Zram or not if you enjoy using old franco kernel. Please flash R9 and if you will activate zram, please follow the steps above. :good: :good: franco will send you a gift LoL
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] Rekt1251:
Woot! R9 is out!

Thank you!
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] MoreTissues:
What should I set my zram value to? For better ram
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] DepeTT:
I'm a flash and forget guy so i didn't understand which settings i should use of those above, could you be more specific?
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] der_Kief:
a more detailed explanation with exact steps would be nice :)
[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] skipthisforme:
Does it affect my battery if I do that?