yashsingh1/xdaforums huggingface dataset:
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] flar2:
Update!!!

Very minor changes. They apply to both OP6 and 6T.

Flash directly and control all options on this and other kernels with the latest EX Kernel Manager: https://play.google.com/store/apps/details?id=flar2.exkernelmanager

Download (OxygenOS Android 9):

ElementalX-OP6-3.07.zip

Changes:

-latest OnePlus updates 9.0.7
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] spikerspike97:
Can I just ask you why you recommend the older version of your kernel fot the Oopen Betas? Just curious, or is it because OP6 is on OOS 9.0.2?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] jbudness:
I installed this hoping I would get better battery life/performance.. I have been a long time user of Elemental(past devices) but I was getting over 8hr screen on time with around the same percentage left just on stock Kernal.. I am enjoying the performance, had been working great with no hiccups, however since I installed this the other day I have seen dramatic battery drain compared.. Granted today is the first day I have used the device with Elemental installed for "normal" usage, the other two days I have been doing heavy modifications/app downloads/youtube and so on since I just rooted it and getting everything setup. The battery drain that I'm speaking about is today with not really even using the device I have lost 30% which is very uncommon when compared to stock..

Anyone possibly have any insight on this?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] flar2:
Kernels never cause battery drain, something else is causing the problem
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] MrSteelX:
sure, open ex manager then go to cpu - boost settings. turn msm touchboost to off. change input boost to all 0. boost duration to 75 ms. Dynamic stune boost to 15.

turn wq_power-saving on. now to Graphics. gpu gov to simple ondemand.

now to Miscellaneous then change Readahead to 2048. read_wakeup_threshold 128 write_wakeup_threshold 1344.

give it a day or 2 and see if you like it.

I'm a lite user of phone. 1 charge last me from 2 to 5 days with avg sot of 6 to 9hr
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] :
Have you analysed what's consuming your battery via a tool such as BetteryBatteryStats?

I find it unlikely that it is the kernel causing the battery drain as I'm currently running on OOS OP08, ElementalX 3.07, and xXx's NoLimits Magisk module with quite literally no issues at all.

Over the last 10 hours my device was in a deep sleep for 9 hours, with battery consumption being approximately 1% per hour even with backups being run throughout the night, and push services running in the background for work.

If you're unsure on how to use BBS to identify battery consumption, please read the below guide for further information, or check out the BBS forum thread.

http://better.asksven.org/bbs-how-to/
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] jbudness:
Perfect I will try these suggestions.. Do i need to make sure that I choose for them to be applied on boot as well?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] :
If you want those settings to be applied each time your device restarts, yes.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] jbudness:
I have not used a 3rd party app like BBS no.. I have just looked at the factory battery stats and didn't see anything out of the norm.. Like I had said though, I have only been using it for the past couple days and this is the first day with actual "Normal" usage if you want to call it that.

---------- Post added at 03:44 PM ---------- Previous post was at 03:43 PM ----------

Perfect, got them all changed ticked for apply on reboot.. Thanks again for the suggestions, I hope this will not only help me but some others if they are having any issues as well!
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] audiovicious:
Is this just a visual bug? So if I look into the Boost Settings before rebooting, I see them all at 0 and set to apply at boot, however after a restart, the value for 0: has always changed to the one pictured. If I open the menu to set it back to 0, it shows them all currently at 0, confirming this brings me back to the Boost screen and sets it as 0.

Is this just a bug that the value appears this way or is that value actually being applied? I've only just started noticing this.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] :
Mine does the same with all kernels, I presume it's the system telling the kernel "Nah, sorry mate, I don't like those settings" and changing them back.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] magnamentis:
since i posted below link probably many hundred times all together and also in this thread it is always interesting to see who is searching and reading a bit. as a user of custom kernels one should at least know what they can do and what not, certainly they cannot safe significant battery life without devices underperforming and also they won't cause any drain, at least not without known bugs and only for some.

http://elementalx.org/the-truth-about-kernels-and-battery-life/
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] audiovicious:
Is this in EXKM somewhere?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] MrSteelX:
thats is happening because oos is killing exkm. just make sure oos is not optimizing the app by keeping it from running.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] spartan268:
Selinux mode changer is a different app altogether.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] audiovicious:
I don't have it optimized, is there something else I'm missing? Also, all of my other settings seem to apply.

---------- Post added at 12:10 AM ---------- Previous post was at 12:09 AM ----------

I found a way to do it in EXKM, thanks.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] :
OOS will do it regardless of being optimised or not. Mine is currently not being optimised and the issue still occurs unfortunately.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] MrSteelX:
having Advanced optimization on will also do it as well.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] audiovicious:
I don't have Advanced Optimization on OR EXKM optimized, anything else?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] MrSteelX:
i have boot delay set to 10 secs.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] :
I have Deep Optimisation turned off already under Advanced Optimisation, can Sleep standby optimisation cause these types of issues as well?

Advanced optimisation is found in the Battery optimisation page, you'll find it by pressing the 3 vertical dots in the top right corner and tapping on Advanced optimisation.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] audiovicious:
That fixed it, thanks!
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] :
Interesting, I'll give that a shot. Was this issue happening every time your system booted?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] MrSteelX:
just doing my part to help out.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] audiovicious:
Yup.

EDIT: The settings seem to have reverted to doing that again, even with the delay at boot, and this time without even rebooting.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Lord. Tech:
Woah relax bro, there was no "demand" for anything lol, what he mentioned the first time was that it might need accessibility service to work, there was no further response, there wasn't a "no i can't add it" and so i mentioned it again thinking he must've gotten busy or forgot about it.

And nobody suggested that its rude, i only asked him if he thought it was.

Anyways, i just wanted to discuss how other than accessibility it could be done, there was no demand.

I've had nothing but the highest regard for devs. My question was merely an invitation for a respectful friendly discussion blown out of proportion.

Lastly, If it has caused any offence to flar himself then for that I'd be apologetic, I'd been busy (and cranky i guess) from medschool exams and it wasn't my intention to do so. Cheers.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] MrSteelX:
what mods do you have installed. I'm going to take a wild guess that you have xxx or RENOVATE install that will override your kernel settings.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] audiovicious:
I've got xXx installed, and they played well together previously unless in one of the newer versions of xXx something was changed? Is there any way to have it leave the kernel alone?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] audiovicious:
I know how to edit the xXx profile, but I DON'T know what to do with that wall of text. :P

EDIT: I found kernel tweaks in xXx and have disabled it, let's see how that goes. I wonder if the faster boot option interferes with it as well.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] MrSteelX:
that was just to show what the changes do to the phone. also, do the changes in ex reflect what that file shows?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] :
How is the battery life of this kernel?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Cablespider:
It's subjective to a point. Everyone's usage is different so results are varying. I may think a certain result is sufficient while others may scoff at it. Try it for yourself so that you can draw your own conclusion. See if it satisfies your needs specifically. It's easy enough to toy around with kernels.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] spartan268:
Alternatively you can set the delay for apply on boot for EXKM to something like 60 seconds which will overwrite the changes xXx will make. That's what I do.

THANK YOU!! At one point I was trying to figure out the tweaks he made and searched through the files but couldn't find the scripts.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] audiovicious:
Thank you so much. A brief history: I rooted and started using Elemental day one of the OP6. I left xXx alone until I updated OOS during one of the updates, then installed xXx with it the OOS update. I noticed a sharp decline in SoT and a high standby drain, I chalked this up to the ROM needing to settle in and maybe just the new version had a worse drain as some people reported. It just seemed like some of that "magic" was gone, and I suspect those settings were not playing well.

Well, after disabling the kernel tweak in the xXx profile, I'm now back to seeing what I was more accustomed to (at least for standby drain, in the few hours it's been.) My standby was consistently 1.5-2% per hour, now it's back down to around .5%. It's been an issue that's bothered me for awhile, but I couldn't quite seem to track down and kinda just lived with.

So now on to another question: I see xXx has memory management tweaks among a few other things, and memory management can be configured in EXKM, are these independent of each other? Basically, are there any other settings I should be aware of in xXx that may interfere or overwrite the settings I have applied with EXKM? I had previously figured the kernel tweaks in xXx and EX would compliment each other, when in fact they seemed to be negatively affecting each other. Wondering if I can squeeze more out by letting EX does it's thing over xXx.

EDIT: Not a very "brief" history post there.

Is there any benefit to having the kernel tweaks active with EX installed? As mentioned above, I saw drastically worse usage time. I have it just disabled, but wouldn't enabling it and then having EX overwrite it just have the same effect? Seems I've been doing this wrong so looking to get educated and corrected.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] MrSteelX:
look at it like this, with xxx you got 1.5 to 2% idle drain. without it, you got .5% idle drain. too me, it is clear what is better. I would say it's about finding the right balance between xxx and exkm if you want both.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] audiovicious:
Oh, it's definitely clear what's better, I want to continue to use xXx for a few of the other features it offers, but disabling the kernel tweaks option fixed my problem. You inadvertently solved a problem I've had for awhile. I like xXx for some of its debloat and other features, the main question was, are you aware of other options in xXx that may interfere with EXKM that I could disable and continue to be able to use both?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] spartan268:
I only did it for the memory management tweaks that were done. So I can have my own tweaks and the remainder will be xXx magic.. But now that I have the information from the other poster I can completely rid of it and implement it on my own using EXKM. . I might try disabling it too since you observed an increase drain.

He got his tweaks inspiration from the person who made "NFS injector". I'm thinking of looking into it but it seems that module may just do a lot more than tweak memory.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] magnamentis:
asking if it was rude suggests exactly that it's rude :eek:

we have certainly no issues with language barriers but you post was off and defending it is even more so.

i recommend that you start thinking why your post was understood (came across) the way it did and seek improvement on your side

it's always the same, first a compliment, than hidden or open complaint or demand, then ask others to cool down instead of considering

a more accurate and/or more friendly or less impatient or less insistent way of communicating a case.

what this does is to drive away devs, especially those who work totally for free and only share there take of things and it also is

discouraging for helpful users because if we let the spoon-feeding, non-reading and strange attitudes prevail it would lead to the kids

staying alone here.

in short, things are exactly as he said and your post came across exactly as he said, period.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] audiovicious:
Yeah, I'm trying to figure out what to disable/enable in xXx now. I'd rather let EX do its magic and then use xXx for anything it won't do, so I'm on a mission to determine what I can use for which one.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] :
I've been watching the back and forth on this one, as I'm in the same situation as you are here I'll let you know if I find anything in my travels with this one.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] :
Thanks for the info, I made the alterations to the script with no reflashing required and the boost settings have held under normal use.

It appears thus far that this was the issue.

Hey mate,

If you didn't want to disable kernel tweaks all together, altering the script in a root explorer does the trick just fine, with all settings holding.

My boot time is still able to be kept at 10 seconds as well. ?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] gohaaron:
How the hell u got 8 hrs SOT?? Mine is only 5 hrs max if I'm lucky.... Same with stuck and EX kernel... is That On the OP6? What governor r u using? Please share

---------- Post added at 04:30 PM ---------- Previous post was at 04:29 PM ----------

Is using EX manager necessary? Because I'm using kernel adiutor

---------- Post added at 05:26 PM ---------- Previous post was at 04:30 PM ----------

Ok I just tried flashing 3.07 but let's failing... Even with EXKM... Anyone having the same issues?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] audiovicious:
Try downloading it again, whenever I get a fail that's what fixes it.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] gohaaron:
Nope... says Unpacking ramdisk failed... Aborting
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] :
What's your OS, and current rom?

Have you come from a non-stock kernel?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] gohaaron:
I'm on OOS. Current kernel is EX 3.06. but I keep getting the error either flashing from EXKM or in TWRP.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] :
From memory I do recall something about these issues being solved by reflashing TWRP in another devices subforum. ?

Give that a whirl and see if it works out.

Don't forget to follow the steps to reapply root if you do, then try flashing Elemental X from TWRP.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] gohaaron:
YES!! Finally managed to hit 7 hrs SoT!! woohoo!! I just followed the tweaks given in this post... amazing!!
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] mitas35:
Which page?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] gohaaron:
Maybe it is because im still on OOS 9.0.2?

---------- Post added at 10:39 AM ---------- Previous post was at 10:38 AM ----------

this one
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] gohaaron:
8 hrs sot achieved
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] audiovicious:
After disabling the kernel tweaks and memory/RAM tweaks in xXx, I'm excited to report my usage time has doubled, if not more. I would have never gotten this much out of it before. I'm wondering what the "Misc System Tweaks" is and if I'd get even more by disabling that, but I doubt it, this is about in line with what I had prior to my mixup.

Side note: I don't have crazy high SoT, but the idle drain lasted me days, and at least 8 hours of that or so was me using the device for music with the screen off, which drains more. I don't see how someone can star at a phone screen for 8 hours out of 24 hours of the day, but everyone has their own usages. I got 2d9h out of this charge, with lots of screen off music. Very excited about the usage.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] spartan268:
That's crazy. I didn't expect that to make things worse. Did you implement your own memory tweaks via EXKM or just left it as is?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] audiovicious:
I disabled anything to do with memory through xXx, as I've had WAY better success with Ex and EXKM. As far as memory goes, I changed a few little things in EXKM, but nothing major and I just let it handle the "magic", if you will. Additionally, I've gotten a new car during the time I had my issues (GTI vroom vroom) and some of the bluetooth features were wonky sometimes (It's a new car, so I wasn't sure if it was just buggy sometimes, or a result of the phone), I noticed after disabling some of the xXx tweaks, they seem to have cleared up as well (May have something to do with it aggressively clearing items in memory, not sure?) Overall, I'm much happier with the device again.

I'm gonna continue to try to pick through and see if I can find that best of both worlds middle ground, but a LOT of my drain and issues have been fixed by tweaking xXx some. Here I was thinking it was coming from an update.

Side note: I'm not hating on xXx at all, I'm still using it, but it was causing some major conflicts with some of my settings and bringing down the quality of the device. YMMV.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] gohaaron:
If I was wasn't using my phone that often I'm sure mine could have gone longer than URS...ur screen off batt drain is 1.6% 0er hour mine was 0.55%... it's all down to your usage I think... YMMV
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] audiovicious:
LOL I wasn't trying to get into some measuring contest over whose was better, I was just excited to have it down. I played at a minimum of 10 hours of music during that 2 day period, that'll skew the screen off drain. Still, I was just excited to make it 2+ days with my normal usage. I was barely finishing a day before and it was really aggravating. A lot of my phone is used in a screen off setting, made clear by the SoT time in 2+ days. I guess I use it alot, but I don't stare at if often?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] gohaaron:
I wasn't saying that we're having a race here either... But looking at the raw numbers I think 4 hrs plus SoT plus 2 days without charge is okay not bad... And no I don't stare at my phone for 8 hrs straight lol... Means I've used it for 8 hrs with the screen on... Which is quite an impressive feat... I'm not sure what tweaks u made with the xxx ROM but I believe u could do much better and experiment with more settings... EXKM does the job for me... Mainly in the CPU boost department... But hey like u said room for improvement is always welcomed... And I know this phone is capable of doing so... Even up to 10 hrs SoT is possible
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] flar2:
Update!!!

This release fixes sweep2sleep vibration disable setting and add speaker gain control for the 6T.

Also, a note about flashing: there was an obscure bug in Magisk v18 that caused auto flash to fail in certain situations. This has been fixed by [MENTION=4470081]topjohnwu[/MENTION]. If you installed Magisk v18 yesterday or earlier, or previously installed Magisk canary builds, you should revert to a clean stock boot.img and flash v18 again (it was re-uploaded with the fix--no new version number). If you face any sort of ramdisk errors while flashing kernels, you will need to go back to stock boot.img and start fresh.

Flash directly and control all options on this and other kernels with the latest EX Kernel Manager: https://play.google.com/store/apps/details?id=flar2.exkernelmanager

Download (OxygenOS Android 9):

ElementalX-OP6-3.08.zip

Changes:

-add speaker gain control for 6T

-fix sweep2sleep vibration disable
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] gohaaron:
Guess I'm stuck with 3.06 then ?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] :
Why?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] gohaaron:
Cos I'm getting the error... Gonna flash to stock not image now

---------- Post added at 06:48 AM ---------- Previous post was at 06:15 AM ----------

Ok I think there's a new bug... U can't adjust vibration strength anymore... It's always the same and u can't turn it off... Argh!!
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] mori_moh:
Can't flash the zip tho.. not sure whatever it had. Both in EX kernel and twrp recovery still no success. Did anyone face this same issue?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] :
If this is in relation to the ramdisk issue, please see the following link: https://t.co/mC8zxkhHgM?amp=1

tl;dr Reinstall Magisk v18 and have another go.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] spartan268:
Not when you're playing music in the background. The usage that was provided by Audio was very good. Now if you can come back with 8 hours plus SoT and using music with screen off for a few hours on top then color me impressed.

If he removes the music aspect then yes it can be 8 hours plus easily.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] gohaaron:
Worked fine for me but just the vibration bug is there

---------- Post added at 07:22 AM ---------- Previous post was at 07:20 AM ----------

Agreed. 10 hours of continuously music streaming or downloaded?

---------- Post added at 07:25 AM ---------- Previous post was at 07:22 AM ----------

Oops my bad vibration tweak working again... Was forgot to turn on override settings... My bad!
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Gr8man001:
Same here, tried with clean stock img, tried to flash with twrp as well as ex kernel Mgr-no go. I am on 3.0.7v which works fine for me. Will wait until issue is resolved, no big deal. Thanks
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] apeiron6:
Flash TWRP recovery and magisk. It should work
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] The_Voice_70:
Myself staying on 3.07 until it`s fixed. No other way. Sorry. ;)

Edit .... solved als followed:

1. Reflash TWRP zip

2. Reflash Magisk

3. Reboot System

4. Flash 3.08 via latest Ex Kernel Manager

That works ...