yashsingh1/xdaforums huggingface dataset:
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] habylab:
Not related to the kernel, and it works for me.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] joakimbo:
This kernel is on fire!! Never experienced such a fast and smooth phone before. Touch latency is superb, performance is insane and battery life is on par with stock, if not better.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] chrcol:
YEah I might try this kernel, as scroling is pretty stuttery in some apps. What kernel is stock on havoc os 8.x? as I want to back that up first if its not OOS kernel. I just back up boot.img and that is kernel backed up right?

Than flash this kernel, then reflash twrp and reflash magisk?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] joakimbo:
Yes correct. This kernel doesn't support custom roms tho. It only works on OOS.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Tomatot-:
I think it actually works on custom ROMs based on 9.0.2. for example TreskMOD (based on Omni) uses it, same for AOSIP (I'm not sure if they tweak the kernel first). So you give it a try. But not havoc 8.1 obviously. Make sure to backup your current kernel first in case things go wrong.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] chrcol:
well there is a download link for a 8.x version of this kernel

yeah just checked is a 8.1.0 version
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] carlos67:
I've swapped from Ex. to this kernel and so far I'm liking it very much, however, I have a problem...........

When I try to set the boost duration (in milliseconds) to anything over 200 the cpu's stick at their boosted frequencies and don't ramp back down. If I set duration to 200 or less they DO ramp back down. As I like to set boost duration to 1000 (1 second) to give a better response (at the expense of perhaps a little battery) can anyone else confirm that boost duration above 200 causes the CPU's to get stuck at boosted frequency.

Much appreciated.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Stroky:
I just switched from stock to this kernel, and you can definitely feel the difference in smoothness and Latency.

So sad that the kernel ends here, but I hope other devs will implement these patches soon.

Thanks for your work here!
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] dante_nfs:
Restart the device. And remember to add the kernel manager and Magisk to battery exceptions
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] prabhu_91:
FYI This kernel only supports OOS and OOS based ROMS. TreskMod/AOSiP use this kernel's source to build a version (called as RedFlare by mTresk) compatible with AOSP ROMs.

Edit: See here https://github.com/mTresk/android_kernel_oneplus_sdm845/commits/android-9.0 for Redflare source code
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] carlos67:
Makes no difference. Tried restarting and exempting magisk + kernel manager from battery optimization and you cannot have the boost time over 200. Try it and see. The cpu’s get locked at boost frequency.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] pappschlumpf:
Yes it is, because of boost on frame commit. With longer boosts that leeds into an always boosted loop. The how to set it up solution you've found already [emoji6]. I use that boost, too in my kernel. 120ms is default. Long enough in my opinion. Because of that automatic boosts.

Gesendet von meinem ONEPLUS A6003 mit Tapatalk

If you like my work ;)
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] joakimbo:
Anyone tried this on OB 7?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Toni Moon:
Anyone knows if work in beta 7?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Voltaine:
It does
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Dabarr:
I am still rocking this in OB7 and I don't wanna change kernels in the future :crying:

I wish I could do this myself, but my kerbel and coding knowledge is barely existing.

Thanks for all the awesome work you did in the past. It's highly appreciated!
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] tbalden:
What's your testing methods? I'm just curious how do you test extensively in one day after the latest release.

This is an excellent kernel either way so I'm just trying to learn how one measures these things nowadays.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] nathanchance:
If you haven't explicitly disabled fsync, it's enabled and you have nothing to worry about!
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Khaveesh:
I checked on kernel.org and the latest LTS kernel branch is 4.14. Is there any difficulty in basing your kernel on the latest LTS. Just asking??
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] habylab:
Just on your last point there, I see in the blu spark thread that I asked him why he doesn't merge your upstreams... after a long post, he seems to suggest that a lot of people hide warnings rather than fix them. I'm assuming you don't do that? Definitely don't want to cause an argument here, but I've seen your work praised by other Devs (Franco included) so seems odd for him to issue a rebuttal of your work.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] 850T5m:
If I'm using ElementalX, with Magisk and TWRP, can I just flash this over the other kernel with Magisk and call it a day? Or do I need to flash stock, TWRP, kernel then Magisk lol

Edit: just read in the OP... Can I simply flash the stock boot.img, then everything else, or I need to flash also system, meta, etc?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] biohaz55:
Stock boot.img - Flash kernel - Magisk
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] rav101:
To take this a step further,

Fastboot flash stock boot, use a PC to flash twrp with root and then take a twrp backup of the boot partition.

Then flash Flash kernel and root.

Now if you want to change kernel you can restore the boot partition backup to make switching a much easier and quicker process.

Regards,

Ravi
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] 850T5m:
That's an awesome idea, thanks!
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] nathanchance:
Yes, it's a difficult process and even if I was successful in getting it to boot, it would not be anywhere as stable as 4.9, which is why it's better to take the stable updates.

NOTE: I am only stating this for the users, I don't care to change the opinions of established developers as that is just foolish. I don't expect a response though should there be one, why not do it here?

Lol... No, these are the only warnings I have hidden in addition to stable (if mainline/stable thinks disabling certain warnings is fine, I'm not going to disagree with them), everything else is fixed (compared to this). My kernel compiles with -Werror on the stock GCC 4.9.4 toolchain, in addition to Linaro's GCC 7.3.1, GCC 8.1.1, and Clang 7.x.

As for stable, there are always going to be doubters. I'm doing my best to relay all of the information I have received through participating in the stable process here (which I feel shows objectively that I am correct merging in stable). The only way developers will start caring is if users do.

If it was really as stupid and pointless as people say, why is Google doing it (Pixel 1 and Pixel 2) and why are they requiring others to do it starting with P (commit)? Nevertheless, these guys will never agree with me, which is why I don't waste my time with older developers, instead choosing to focus on those just getting into the game so best practices can be established right away.

I also don't care if others developers don't agree with or trash my philosophy or work, that's completely and utterly fine. I believe what I believe because of facts presented to me but that doesn't mean there isn't an alternative set of facts elsewhere. All I want is for users to be informed on what I value in a kernel so they can make a smart and sensible choice.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] vibrantliker:
If you are on stock, would you not need this step: "Either dirty flash your ROM or flash the stock boot image"?

Having to flash the stock boot image before flashing a different kernel is very new to me. I'm used to just flashing the kernel then Magisk for re rooting.

Hoping someone has 2 seconds to explain this
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Burt Squirtz:
Benchmarks, real world usage. Apps open faster, device snappier, feels smoother. This has always been the case on every single device i have owned, (Nexus 5, Nexus 6P, 5t, Now this) between Blu spark and Flash kernel).
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] :
battery life

What do you mean by better battery life ? better than stock ? do you think its better than Elemental X (in battery life )
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] tbalden:
oh ok. then it's more of a habit than extensive testing in this case. I'm so much used to HTC hero speeds, that I can't really see snappiness and smoothness, all is so epically smooth and buttery on these new snapdragons since 8xx :good::highfive::cool:
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Noxxxious:
Anything with '810' in the name is bad, look at Exynos and Snapdragon. But yes you should sell your OnePlus because benchmarks, real world usage, faster opening apps, snappiness device, best smoothness from my iPhone 11 on iOS 13 dont lie. This has always been the case on every single Android device I have owned between iOS and Android.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Burt Squirtz:
Better than blu spark. I don't know about elemental x - flashed it once on my Nexus 6p, and wasn't impressed back in the day.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] habylab:
I appreciate your honesty and well mannered reply, which I didn't get elsewhere! I like your ethic!
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] vibrantliker:
Where do you get the stock boot.img from?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] tasoskio:
http://nchancellor.net/downloads/kernels/op6/stock/
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] habylab:
Sorry, double posted due to poor signal!
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] vibrantliker:
Thanks, don't see the 5.1.6 in there
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] oneszero:
Is it within the realm of possibilities to flash your kernel on GSI, if the boot, vendor, etc images are from 5.1.6 ?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] nathanchance:
Should work fine.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] oneszero:
I tried once last night and it boot looped...well actually, not even. Just as far as the unlocked BL screen, constantly. Any ideas why?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] nathanchance:
No idea. I'm not going to play the custom ROM game this cycle.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] DocRambone:
Something really strange with 1.01, new install after full wipe.

Still no boot with 1.01, always reboots to fastboot. Any way to get logs?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] rav101:
What did you use to full wipe? Fastboot fresh instal) or their or something else?

Are you remembering to install Magisk straight after?

Are your on OOS 5.1.6 with Flash 1.01?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] DocRambone:
Full wipe after install from oos, offical 4.1.6

Reboot temp twrp, install 1.01, reboot: No boot

Install magisk: no boot

1.00 installs and boots normally
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] hurray:
I think you have missed some steps:

Reboot temp twrp, flash 1.01 zip, flash twrp permanent.zip, flash Magisk (all in one session without reboot)

That work at my phone without issues if I come from the original kernel.

If I update from another third party kernel I use this with success:

Reboot temp twrp, flash original boot.img, flash 1.01 zip, flash twrp permanent.zip, flash Magisk (all in one session without reboot)
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] DocRambone:
No, i did the install the same way, still no boot. 1.00 boot tho.

I have the 256GB version
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] rav101:
I haven't done a fresh install but I am on 1.01 on the 256gh version.

Edit: to be fair I did actually do a fresh install. I used the clean 5.1.6 fastboot zip which wipes everything, I installed flash kernel and Magisk and then renovate Magisk ROM. It should be working for you if all steps done right???
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] hurray:
I also have the 256GB version and I don't think that this will make a difference in flashing a kernel.

I just jumped around from different kernels with my second method by going back to the original kernel before flashing a new one. If you really have done all of the steps then I don't know where the problem is.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] habylab:
Quick question: how comes I don't get the "your device has been modified" prompt when installing your kernel? I see lots of people pointing this out on other threads, but haven't had it with yours. Have you surpressed it somehow?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] nathanchance:
I don't know what other kernel developers did to cause that message but I've never had it and I've done nothing to try and hide it.

I'll take a look at the installation problem when I get home but I've had zero issues flashing the kernel.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] DocRambone:
Update: Factory reset, install 5.1.6 on both slots and full data wipe fixed install error. Sometime the big gun is needed :)
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] masri1987:
for whatever it's worth, i flashed 1.01 yesterday on my 256 gb version and had no problems booting up,

but as a true flashaholic, i'm on another kernel right now (i'll be back soon nathan)
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] nathanchance:
[MENTION=3262915]habylab[/MENTION] ah I know why everyone is getting those popups... They're disabling CONFIG_MODVERSIONS which is required by Google for Treble.

https://source.android.com/devices/architecture/kernel/modular-kernels#loadable-kernel-modules

https://github.com/nathanchance/op6/blob/8.1.0/init/Kconfig#L2123-L2131

I opted to leave it enabled for security reasons and instead hack kernel/module.c to just allow the WLAN module to load: https://github.com/nathanchance/op6/commit/3862c15eaae435c9789d09d661a6d726f3bfabc1

I assume everyone will just add Sultan's commit to use the stock config for /proc/config.gz to fix that popup, which also works.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] vibrantliker:
Wish I could get an answer:

Why is this the only kernel that asks to flash the stock boot.img before flashing and where do you get it for 5.1.6?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] meiax93:
Sometimes you need a shower before wear new shirt. Something like that la. ?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] nathanchance:
I'll remove it from the OP, I just carried those instructions over from my old kernel. You should be fine to flash the kernel over other kernels.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] tbalden:
I like your reasoning. This is a very good practice especially if you have a lot of time at hand for testing like the manufacturers.

In my world the ain't broken don't fix it is a healthy choice.

But I'm just overly cautious, coz I also know that stable Linux is very well reviewed and tested.

I'll think about this a bit more, good starting point for reasoning.

Cheers
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] nathanchance:
Exactly, I report the results back to Greg every single cycle, even helping backporting some patches (like I just sent a backport to fix a warning in 4.9 this morning). I stopped a patch from going into 4.4 that would have broken the touchscreen driver (unfortunately it went into 4.9 and broke boot but it was shortly figured out and reverted), which is great because everyone can benefit.

I certainly don't fault you for your philosophy, even if it isn't one I subscribe to. Ultimately, that's the beauty of open source! We all work together but we think different. Always happy to discuss stuff like this :)
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Lownita:
My OP6 occasionally drops framerate so that the scrolling or animation noticeably stutters for a short burst of time. The best way to replicate this is to open an app, wait a few seconds without touching the screen and then press the back button/gesture. Most of the time, the animation is smooth, but sometimes it feels like it's running with very low FPS for a short burst of time (just that one animation). From my experience, this get's worse the longer the phone is up and running. A reboot will get rid of that problem for a while. So far it has happened with every kernel I have tested.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] joshuous:
Does it happen on stock kernel? And can you take screenshots and screen recordings? I'm interested to see whether it's similar to something I used to experience on the OP5
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Lownita:
Yes, it does also happen on stock kernel! What I can send you right now is a log that I've already sent to OnePlus using their own logging tools and instructions.

Please note that, while taking the logs, it has happened twice. Once about 10 seconds after starting logging and a second time shortly before I took the screenshot which is included in the archive.

Here's the zip: https://drive.google.com/file/d/0B4aEPdA0FF18ODYzQnl4a2Rrck1HZGI0a2dPUzU5Tm04Q0JR/view?usp=drivesdk

I can record it later if you'd like to see it.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] joshuous:
Any screenshots with Profile GPU Rendering enabled?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Lownita:
Not yet, but as soon as it's starting again, I'll take some!
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] tbalden:
Nice catch there. I usually opt for switching off as little as possible in module loading for stock rom/custom kernel.

The confusion started for me with that [MENTION=4684315]flar2[/MENTION] did the same patch as you, but forgot to leave modversions on.

Sounds like a good catch. Tho' I wonder how it turned into this need for a patch.

What's your idea, what impact has using the stock config on this check for modversion? Is it checking for the status of the config line, right?

...

now that I think about it, it must be that. :good:
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] nathanchance:
Yeah I have his initial patch as well, I just used it for the modversions function too.

Yes, Google runs some checks on the kernel configuration at boot so that companies don't try to circumvent Treble requirements. Ultimately, there's nothing wrong with using the stock configuration hack, it works and there's really no harm. I just won't use it because I already have it fixed :p
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] tbalden:
frankly, i don't like the modules workaround patch either, and don't want loading of oopsing modules if possible to circumvent. Best would be to compile wlan module and use that, but that's in need of systemless overlaying or system mod which is a no-go.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] vibrantliker:
Thanks!
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Carphedon:
I have a question, i see that most custom kernels have wireguard support. I tried to set up a wireguard connection with stock kernel and this works fine. What is the difference with custom and stock kernels in this regard? Does the stock kernel already have wireguard support?

Nvm, a bit of searching gave me the answer, thanks for your time anyway!

"WireGuard runs on ordinary Android devices, but ones that have the special WireGuard kernel module will have numerous advantages. That is the topic of this thread. The main interest here in XDA Land is in making the kernelspace version readily available to ROM devs, which has the best possible performance, battery life, integration, and stability."
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] nathanchance:
Update!

Remember any and all bug reports need to include logs and clear steps to reproduce (see the info in the OP). You should also know what version it started with. If you want to be a tester and get builds before they are released here or just hangout, feel free to stop by Telegram!

Short changelog

Linux 4.9.108

WireGuard snapshot 0.0.20180613

Downloads

Primary: http://nchancellor.net/downloads/kernels/op6/8.1.0/stable/

Mirror: https://github.com/nathanchance/fk-zips

Commits

Kernel: https://github.com/nathanchance/op6/commits/8.1.0

AnyKernel: https://github.com/nathanchance/AnyKernel2/commits/op6-flash-8.1.0
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Lownita:
I posted them in the elementalx thread: https://xdaforums.com/showpost.php?p=76806210&postcount=360
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] nathanchance:
Maybe see if this fixes some of the jank: http://nchancellor.net/tmp/op6/8.1.0
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Lownita:
Just flashed and set up stune boost, will report back. Thank you!
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] habylab:
Can you share how you're setting this up? Is it via a kernel app or just the value in a file? Did it on my OP3 a while back, just wondering what people do now. What settings do you use also? Thanks!
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] :
No FIOPS IO scheduler?

I see the only ones are CFQ, Noop, and Deadline, which really sucks. I've heard that Noop isn't optimized for Android, that CFQ is bad for battery and causes jitter, and that Deadline isn't very good for battery either.

Are any of these statements true lol? Have I just been misinformed?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] nathanchance:
No, I fully believe that CFQ is the best choice for this device, as it's what the Pixel 2 uses (arguably the most optimized phone on the market) and what Linux has set as default. I don't know who started the whole "certain I/O schedulers are better for battery life" thing but it should really stop as it isn't true. If there is any difference, it's going to be negligible.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Lownita:
I have set it up in ex kernel manager, I'll add a screenshot!
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] :
Ok, I will use CFQ then. Thanks :)
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] joshuous:
Thanks, please do verify if you face those janks on Nathan's latest build
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Lownita:
Yes, they're still there, sadly. I quickly took a logcat, maybe it helps.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] jacdelad:
I don't know if it's my fault, but the primary mirror is not available and the secondary seems to be something for Nougat.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] nathanchance:
You didn't look hard enough then: https://github.com/nathanchance/fk-zips/tree/master/op6/8.1.0/stable

You'll need to use the desktop site and hit "Download". The primary site should be up tomorrow sometime hopefully.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] joshuous:
Ergh, I guess I'll be spending a while identifying the commit that possibly fixed this
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] jacdelad:
Thanks. Sorry for the inconvenience. It's a bit confusing for a non developer.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] flar2:
Try without Nova Launcher maybe?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Lownita:
I'm using it already. It's not helping.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] ** A - R **:
Anyone (owning Pixel/2), with the same FrameDrops ?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] prajnay:
I am not facing this issue .

Here is my CPU boost settings and profile rendering.

But I have seen micro stutters here and there .