yashsingh1/xdaforums huggingface dataset:
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] pappschlumpf:
Hahaha, right! Data safety first!

[MENTION=3428502]Freak07[/MENTION] many thx for the f2fs upstream commits. Great!

Gesendet von meinem GM1913 mit Tapatalk
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] MarcoG::
Switch to F2FS for 1.5.0 and no issues

the kernel is very smooth.

Thx for the Update

Gesendet von meinem GM1913 mit Tapatalk
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] kezzuki:
Same here. Up and running for 12 hours and good so far.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] -Grift-:
Update:

Backed up fully (TWRP)

Copied entire internal storage to PC

Followed OP guide for F2FS

Rebooted to OS to "rebuild /data"

Rebooted to recovery

Transferred files back to internal storage

Follow guide (rm -rf instead of formatting)

Rebooted into OS with original /data intact and F2FS

So far no issue aside from my lockscreen PIN being removed after first boot post restore.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] MurdererFight:
[MENTION=3428502]Freak07[/MENTION] you replaced 1.4.0 changelog with 1.5.0
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] zjcjgjj:
I have flashed,but my wifi is broken.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Toutatis_:
Read this post: https://xdaforums.com/showpost.php?p=79676175&postcount=200
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] MrPhilo:
Wait so you can use an ext4 backup and restore it to a f2fs format? At least that's what I'm getting from your steps?

EDIT: just read the link post, was on route to wipe lol. Will try this, thanks dude

EDIT2: Do you need to reboot to OS to build data? Is that a must step, just missing on that link that's all
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Flamehell:
Sorry guys, stupid question... is this kernel working with the regular op7? Not the Pro... Tnx a lot!! :)
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] schmeggy929:
What's with the F2FS craze lately in here? What's wrong with the default file system? Wasn't it already mentioned you will not notice any difference in reading and writing to storage. Seems like a lot of work.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] -Grift-:
I could not mount the internal storage onto PC from TWRP as it was unformated if that makes sense, much like how a new USB thumb drive needs to be formated before usage.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Maverick Jester:
This is the only proper way to do this. I've been using this method since the early days of F2FS support.

[MENTION=3428502]Freak07[/MENTION] I would recommend amending your conversion post to include this post. It would alleviate a lot of questions and concerns around data loss when performing the upgrade.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] PhantomX:
I flashed the kernel this morning and everything was going well but according to ex kernel manager it isn't going into deep sleep state.

Is this normal ? Or i have something wrong ?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] -Grift-:
Check out Betterbatterystats and Wakelock Detector. Lots of wakelocks for me which resulted in plenty of "Awake while screen off".
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] netmm:
You could also check in battery options > battery optimization > click top right corner then advanced > check if the first checkmark is set.

I had this off for whatever reason and it prevents deep doze
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] PhantomX:
Thanks for the suggestions after a 1hr it went into a deep sleep I am still confused why it took that long
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Pfeffernuss:
Both options turned off here and quite perfect deep sleep still :good:
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] netmm:
Well exkm shows it as deep sleep but gsam battery monitor showed it as light doze instead of deep doze.

I'm not sure if there's much of a difference, but with this kernel you can't check since gsam won't work, at least for me...
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Paz9:
[MENTION=3428502]Freak07[/MENTION] since F2FS uses nobarrier for fsync_mode

is that equivalent to using barrier=0 in EXT4?

i have tried barrier=0 and f2fs and i notice the same performance bench increase.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Jerreth:
I've been reading all this information on f2fs I've read in the guide that it is to flash the /system /cache /data but no one mentions wiping system or cache and converting it to f2fs should I be doing only /Data before I move forward
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] nexus_vl:
Is it usefull to use f2fs on system aswell?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] :
Probably not. Would maybe only affect boot speed, but after the phone is booted, system is basically readonly all the time.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] nexus_vl:
Read speed has improved over ext4 that was not so in the past ,hence my question.

But maybe it's a greater risk
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] MrPhilo:
So using this method there is no drawbacks right? Than a complete clean install f2fs?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] BobAzzon:
Noticed even when minimum is set to 300 in the CPU settings in ex manager, it never drops below 672. Am I missing something? No mods or anything activated
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Freak07:
It is not normal that your phone uses 300mhz as minfreq for the little cluster. Either you flashed another custom kernel that changes this before or something is up with /vendor.

Do a dirty flash of the firmware you’re currently on. I hope this resolves this issue for you. Look at the second post, there is a guide linked.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Freak07:
Set the phone to selinux permissive for gsam to work.

I stopped fixing selinux denials for gsam, when I saw how intrusive that app is. Better battery stats is a better option for me personally.

No it’s not.

https://android.googlesource.com/device/google/crosshatch/+/e02e4813256e51bacdecb93ffd8340f6efbe68e0

Like I said, I’m not interested in disabling fs options that keep data integrity intact.

Use f2fs only on /data like I described.

The SD855 is meant to be used at a minfreq of 576mhz for the little cluster, 710mhz for the big cluster and 825mhz for the performance core.

I know it seems counter intuitive, especially when coming from older models, but these new socs are more efficient that way.

The power Hal will just reset the minfreq to 576mhz if you choose 300mhz. :svetius:

Nothing to worry about.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Paz9:
I understand, I just wanted to educate myself a little more

Sorry that sounds exactly like barriers

"This patch proposes to skip FLUSH commands for UFS when fsync(2) for non-atomic

files is called."

" For non-atomic files, this patch adds an option to give nobarrier which

doesn't issue flush commands to the device."

Isn't this is essential what barriers do?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] kezzuki:
Hey

your SOT is really impressive and i really want to get that on my 7pro as well:laugh:

I followed your suggestions like no debloating no magisk placebo, but my sot/screen off consumption is still way higher...i would think that the messaging app i use (wechat) is 99% chance a battety drainer but i dont havr much else running on the phone (beside Gmail)...

So i feel like i have to ask and learn from you :laugh: if you do not mind sharing some of your wisdom.

May i ask what have in your settings please?

1, what do you have on recent app management? normal or deep clean?

2, Do you have deep optimization enabled? (in battery optimization)

3, Do you lock any app in recent apps page?

4, Do you go into each app and set "Restrict background actvitiies"?

Thank you for your time!
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] BobAzzon:
Thanks for explaining that, always heard mixed things about underclock. I did notice jumping around when set to 300. Now I know why, set it to 576 and it's idling much better now.

---------- Post added at 09:13 PM ---------- Previous post was at 09:08 PM ----------

Just out of curiosity, what are the stock maximum settings for the cores?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] MrPhilo:
Converted to F2FS, did the rm -fs restore in TWRP for the EXT4 backup and it's all good so far :), no problems at all!

I was wondering, this is more of an OCD, I prefer 1024 zram than the 934mb (1/8th) and I set my EX App to 90 seconds, but that seems like it still not long enough and goes back to 934.

Is there any chance you can include this in the service.sh file so I can adjust it please, just that zram builds up really fast and it takes a while every boot to clear it before I can change xD
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] ledvedder:
Does converting to f2fs also delete all of my apps? Or just pictures, music, downloads, etc?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] :
you can edit the file manually

gimme 5 mins or so and ill edit with the path
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] -Grift-:
Everything user related such as apps, app data and internal storage content. When /data is wiped and you boot up to the OS you will see the device setup wizard as if it's a new phone :good:
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Noxxxious:
I kept everything pretty much untouched except for disabling 'Ram Boost'.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Maverick Jester:
Nope, I've never experienced issues using this method. It's effectively changing the filesystem type, and restoring the data back onto the filesystem.

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

You're missing the point. F2FS doesn't need those mechanisms in place, as the way the filesystem operates is different to EXT4. You're continual posts on this matter come across as unnecessary trolling. Please read up on F2FS and how it has been implemented in the Pixel 3 in particular.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Paz9:
Really dude? Trolling? I understand f2fs, it's a log system compared to a journal system on ext4

Both require flushes (barriers)

I'm trying to understand why it's OFF on f2fs and on on ext4

Fsync_mode can be changed to barriers ON which means it can use and probably should use barriers because it guarantees flushes in the presence of a power outage

don't hate on a person trying to understand better.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Noxxxious:
https://android.googlesource.com/device/google/crosshatch/+/e02e4813256e51bacdecb93ffd8340f6efbe68e0
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Paz9:
So I was right

Fsync_barrier and discard is exactly the same

It just affects f2fs less than ext4 because of checkpoint rollbacks in the presence of a hard shutdown - crash etc.

Thank you for this, just what I needed.

edit: NOT DISCARD, i meant BARRIER.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] MrPhilo:
Deleteee
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Reuben_skelz92:
So I formatted data to F2FS. hardware info app still saying it's ex4. Is that lying to me ? Or hasn't it done it lol
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] MrPhilo:
What did you do after formatting to f2fs? Try diskinfo
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Freak07:
1785mhz for core 0-3, 2419mhz for core 4-6, and 2841 for core 7.

this seems like dev check app to me? it shows mine correctly as f2fs.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] netmm:
Mine shows ext4 also, but twrp says it's f2fs, strange...
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] ledvedder:
Converting to f2fs is intriguing. But, are those that have done it really noticing a difference?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] :
Not really in real usage, only difference is benchmarks really.

Even games like pubg or asphalt 9 are still similar to ext4 launch times
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] kezzuki:
I was scared to check since i dont wanna see it showing ex4 LOL

but i did, and it shows f2fs. i was like whew.

I wiped internal and reformatted to f2fs through thr latest TWRP...you sure you were on lates twrp? I cant think of anything else that could go wrong..
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Reuben_skelz92:
What kernel etc were you on when you did it ?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] joshdouglasdavis:
Thanks so much for your work on this! I am using this kernel with KDE AI and WOW this makes the phone incredibly smooth and have great battery life.?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] kezzuki:
i think i reformatted to f2fs after a local update (clean install) purposely. So, at least the target slot will have everything stock.

But i think that shouldnt matter, as local update doesnt touch neither userdata nor internal storage.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] weedlucho:
Mine also says ext4... How can I know for sure if my format to F2FS worked or not? What app should I try?

Enviado desde mi GM1913 mediante Tapatalk
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] weedlucho:
Like this:

Enviado desde mi GM1913 mediante Tapatalk

Edit: I checked with DiskInfo and it shows F2FS! So perfect!
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Maverick Jester:
The commit that was pointed out to you, is the exact same one I referred you to look at. If you had simply read up on the F2FS implementation of the Pixel 3 like I suggested, you'd have had your answers already.

It's trolling when the OP has requested you to stop asking these questions in his thread, and you continue to do so despite his non-interest in the matter. Nothing wrong with wanting to learn more about a topic, but open up your own thread in future instead of spamming other threads with your questions.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] dubt17:
I have a quick question. First of all, great kernel, love building everything from source and the constant updates to add improvements.

My OnePlus has had pretty average battery life with 4-5hr SOT since I've purchased. It's at no fault to the kernel, because even before rooting I was getting 4-5 SOT. I've spent the past couple of days with FHD+, 60Hz all the time, greenify, servicley and naptime and think I've tamed all of my rouge apps.

After testing with underclocking just a bit on each cluster, I can see that it drastically reduces the current used in EXKM when switching apps, which is where I see the most draw. Probably due to touch boost and the GPU trying to work harder to draw frames.

When I reboot, even with EXKM boot settings selected on the underclock settings, it defaults to stock settings. Is this the magisk module? Is there a way I can get a permanent underclock?

Thanks!
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] rickysidhu_:
Successfully updated to 9.5.8, formatted to f2fs, installed latest kernel and everything is working flawlessly! Thanks for your work on the Pixel 3 XL and now the 7 Pro :)
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Lirannl:
Your kernel is the only way I got OTG to work properly!
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] :
Turn off touchboost
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] dubt17:
It's re-enabling on reboot. Is there no way to make these changes persistent?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] RandomPooka:
If you're using EXKM to set it on boot, you need to disable battery optimizations for EXKM. Used to, anyway. Otherwise, it won't apply settings on boot.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Strive12138:
earphone wire control bug

after I flash your latest kernel, i can't use the earphone wire control, it's a earphone with type-c interface and don't have dac
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Freak07:
Did it work with 1.4.0?

one plus changed some stuff regarding usb c in 9.5.8. does it work fine on stock 9.5.8 and stock kernel from 9.5.8?

I only have the usb c earbuds from my pixel and the oneplus ones. The button on them works fine last time I checked.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] ledvedder:
What setting can I adjust to allow notifications while the screen is off and the phone is inactive? Some notifications won't come in until I open the phone, even if they are events that happened hours ago.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] cheth20:
Any plans of adding sound enhancement like mic gain, built in ear piece gain for calls?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] dubt17:
Settings > Battery > Battery optimization

Then unoptimze the apps that are getting delayed notifications
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] ledvedder:
But they weren't getting delayed with the stock kernel. Only since I flashed this kernel.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Pfeffernuss:
Probably more wakelocks being blocked by this kernel.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Freak07:
I noticed this behavior on my unit from day one. Device was completely stock. I’d unlock my phone in the morning and all messages would pop up simultaneously. It got somewhat better over the last weeks for me.

Apparently there are some mechanisms from OP built into the OS to save power.

What helped me a bit:

You could try to navigate to

Settings > Battery > Battery optimization > top right corner three dots menu “advanced optimization” > disable both option in the next menu.

It almost seems like one plus hid this setting on purpose. Hope it helps.

If it’s the wlan driver, I cannot do anything about it. OP doesn’t release the source for it, and I have to use the stock CAF one.

Please stop talking in terms of “probably”. if you have no idea or aren’t sure of what you’re talking about so why even post and spread misinformation?

This kernel blocks no wakelocks by default. If you would have even bothered to read the OP, you’d noticed being stated that blocking wakelocks is unnecessary, unless there is some hardware incompatibility.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Pfeffernuss:
"Wakelock Blocker:

- advanced wakelock blocker with the ability to block any wakelocks (dangerous, use with caution)"

Incredible manner of overreacting, imho.

Papp solved the reason why your and his kernel on some devices rendered WiFi non-functioning btw.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] :
The op says this blocks some qcom rx wakelock last I checked
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] duminduweera:
DELETED
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Freak07:
The OP never said that.

at first the duration this wakelock was able to hold the device awake when triggered was reduced. This has had no effect whatsoever.

Now the code for this wakelock is just removed from the wlan driver. It’s not blocked.

The wlan driver has more than enough ways to wake the device when needed.

I missed messages on stock, just when I received the device the first nights. Which is one of the biggest flaws for me.

Disabling both options in settings I pointed above makes it better for me.

could be, thanks, I will check this. Any other mods or magisk modules you use?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] duminduweera:
Don't worry for now, I just changed to white and back dark theme, and it seems to stick now.

I dont have any other magisk modules other than your companion module and Google Dialer framework.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Freak07:
Yeah it’s working for me too as it seems. Just did a few reboots.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Paz9:
did you notice a difference with ram boost disabled?

also AFAIK ram boost is non-functional / removed on Kirisakura.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Noxxxious:
As far as you know write barriers and discarding blocks are the same as well. Nonetheless I dont see the OnePlusSmartBoostManager whining about smart boost being disabled, therefore I cannot give a conclusive answer without checking this in framework. However there is a strong correlation by checking the kernels smart boost implementation. What I can answer is that ive never noticed any visual difference with or without it enabled on stock kernel. Perhaps because it first uses the predefined app list in ramboost.xml before it learns(doubt it does) which apps you use. I dont use any of those apps that are predefined such as Fortnite, Boom beach, Asphalt and tons of other games.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Freak07:
There will be an update with latest upstream, and a few other changes as well sometime soon :svetius:
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Oswald Boelcke:
Moderator's Announcement

Thread has been cleaned from some posts where an initially interesting discussion shifted into an argumentation that became off-topic and did not add value to this thread.

While I encourage everybody to keep this thread vividly, interestingly and beneficially to all members, please consider to use private messages for discussions and information exchange that only effects single persons or are related to very personal views.

Please do not hesitate to review the XDA Forum Rules to get a feeling for the right touch.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] :
Where is this ramboost.xm located, and would it be possible for you to share the contents of that file? Just interested in seeing what apps are supported
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Noxxxious:
In system/etc/
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] gcjmail:
Can oneplus7 use this?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] edwardeutsch:
No.
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] more_than_hater:
settings (about app) crashes with your kernel.

clean install 9.5.8, magisk without any modules and your kernel
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] rickysidhu_:
Doesn't happen with me
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] more_than_hater:
well i did clean install without any other steps so... with magisk only - everything is fine, so can't be magisk problem.

for example, with smurf - everything is ok. stock - ok
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] :
Did you install the companion module?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] more_than_hater:
oops. ill check it tomorrow and give you feedback guys :D i guess thats it

/update

that's exactly why i had problems. interesting, truly
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] jamesfitzes:
hello guys, I had a few questions since I've never used custom kernels before:

If I install this kernel and want to go back to the stock kernel after, do I have to flash the stock image and lose all my data and pictures?

I am running the XXX no limits magisk module. Is this kernel compatible with that one?

Thanks
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Freak07:
Hey :)

To return back to stock, flash the restore-stock zip found in the OP to revert the changes I made to some files.

afterwards remove my magisk module in magisk manager.

Then I suggest you do some research on how to flash stock boot.img OR how to dirty flash your firmware. Both will fully restore the stock kernel.

Afterwards you will be on stock and your data will still be intact.

If you’re not very familiar with all this, make a backup of your data if it’s important to you!
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] Sandy._.12:
It's it just me or K-Lapse doesn't work on the lock screen?
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] RazorBlade123:
That's because of the in-display fingerprint sensor, it doesn't work with night mode or k lapse
[OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D] klym.software:
Kcal and the OnePlus nightmode also don't apply to the lock screen