yashsingh1/xdaforums huggingface dataset:
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Mikkey81:
Here's where I'm at with Kernel flashing. I'm not saying this works with every kernel everywhere but.... The issue at boot is the IMG when a new kernel is flashed, right? So I thought ,when I watched the magisk script run, well this repacks and patches the boot.IMG... right? Started screwing with it to see if i could flash it a t certain point to flash a kernel without fastboot.

Magisk15.0 works every time for me and I've had issues with other versions of Magisk but they work on occasion. I hate being tied to a computer.

I've flashed every kernel I've ever installed. probably, no joke, 100 times... I figured this out in 7.1.2 With Magisk14.2 --- I think I'd have to check my Laptop to confirm it was 14.2 but I'm pretty sure---

Starting point in the ROM itself. Up and running. TWRP 3.2.0-0 installed already.

Make sure my security finger print is turned off... I don't use it anymore.

Reboot recovery

Flash Kernel

Flash TWRP-3.2.0-0 (from recovery, NOT the IMG flash from bootloader/fastboot, flash the installer .zip)

After flash the option to reboot system is right there, bottom right, hit that and hold volume down continuously until I reboot into bootloader.

Choose reboot to recovery from the bootloader

Flash Magisk 15.0

Reboot system

Note*** Sometimes it will hang at the splash screen. ***You're not stuck, dead yet*** Let it sit for a minute and hold power to force a reboot. It will boot right up.

I can confirm this works on Marlin and... This also works on sailfish with Ex Kernel and NSFW.

This kernels flipping great.

Blu-Active Gov is excellent

Elemental gov with touchboost enabled is like butter.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] :
Do u have a copy of magisk 15.0as jonwu deletes older versions. Ive also had issues
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Mikkey81:
I'm not sure what the XDA rules are, but obviously not my work. I'll keep the link on for a little bit.

https://drive.google.com/file/d/1Z1XP47B0FEOinkwAwy__dQBxxyC24eU6/view?usp=drivesdk

Good luck.

Just note. I've also hit points while trying to flash things on what works and what doesn't from where and actually FUBARed my slots/recovery install to a point it would not allow me to flash anything except for Velocity ROM. Everything else would fail out until I flashed back to 7.1.2 on the flash all.bat. this slot crap just turns us all into rookies again. I think I understand it now, but every once in a while I note something new. Benzo almost killed me with the simple flash and reboot on his ROM. LOL... It was too easy for all the other weird crap you usually have to do.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] :
Got it thanks lol
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bsmitty83:
OP updated to R11

-- added voltage control for msm 8996 . ( from the z2 device )

-- updated zram to use crypto compression

-- GPU is now overclocked to 729 MHz max

-- added mac randomization from copperhead os . it is set off by default

for those who are worried about the gpu speed ... I have been using it for more than 24 hrs doing everything I can to stress it and I haven't been concerned in the least bit . you can always set the max freq lower if you like . as far as battery taking a hit well of course it will when the max freq is being used but if your playing a game then the battery is gonna drain anyways .

Voltage control is working . I would take caution messing with the voltages especially if you are using the overclock freqs .

so if your ready ... strap em' on and give it a flash ...... lol

ps : is the oc really necessary ? not really . it helps out a lot for benchmarking numbers . 3d games . general fun . my gaming experience with some games I play like MLB perfect inning and War Wings run butter smooth .
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Darian71:
OMG! You're a Genius! I've tried for days unsuccessfully to flash this kernel on Benzo to no avail. Just tried your method and BAM! Got ROOT (magisk 15.3) and NSFW kernel rocking my Pixel XL!! THANK YOU SIR!
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Mikkey81:
Sooo. Are you running sched governor ...???
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bsmitty83:
On the little cores I am .
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] ChongoDroid:
What are your thoughts on schedutil? Any reason why you don't include it?

Personally I use sched on small cluster and blu_active on big cluster. For gaming or something where I want to stretch battery life I set small cluster to conservative (won't OC) and set graphics boost to medium.

Little longer screen on time without sacrificing FPS.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] TotoBerto02:
Kernel questions

Hi!! Your kernel is awesome! What settings of the kernel do you recommend to get good battery life??
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bsmitty83:
Honestly I wanted to incorporate the schedutil governor into this kernel , I just haven't gotten to do it yet.

I had already added some commits to alot of files that the patches to the new governor modify , so I have to find some common point to start from . I have been pretty happy with the sched governor and the way it behaves . But I really can't say how the 2 compare to each other as I haven't used the schedutil governor at all lol . So I'm still on the fence on adding it or not.

Do you think it works better than the current governor for power saving ? I've always had a soft spot for interactive , it always seems to work best on my devices. I used to prefer Wheatley back in the day lol .
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] ChongoDroid:
Yeah it's what the pixel 2 uses by default iirc. Interactive is what Android switched to from ondemand and should work well but I'm guessing it doesn't play with eas, I'm not sure.

I'm getting relatively good battery life now (just hit 4hrs and 10minutes and I have 28% left.)

Seems very responsive.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bsmitty83:
Thanks ! I think YOUR awesome !! [emoji6]

Ahhh , a loaded question . I like it.

Well I probably have a different view on battery saving / power saving .

To me it's more how you use your device than what settings you use . Or kernel for that matter. Sure you might have exceptions but generally speaking the display is always going to be the biggest battery killer . Obviously there are other things that come into play , but beyond turning adaptive brightness on and keeping the overall screen brightness down helps the most .

I have always set my own phones up to be performance orientated . The battery on these devices are stellar as is . If you don't think so try using a device from the Android 3.0 days , I would get an hour screen on time with my Galaxy Nexus .

Sorry but I don't have any magic battery settings for you . Sched governor is probably going to be your best bet for power saving . Beyond that it's really trivial. Don't watch so much porn if you want to have longer battery ??? Lol .
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] ChongoDroid:
nine7nine had a really good explanation on the whole schedutil vs sched thing.

---------- Post added at 02:55 AM ---------- Previous post was at 02:43 AM ----------

Also another power saving thing I change is the uksm governor to quiet.??
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] kentexcitebot:
As someone who've tested sched and schedutil intensively on my OnePlus 3 and Pixel XL, schedutil is definitely the way to go. On the OnePlus 3, schedutil is actually more performant than sched, even saves more battery than sched during heavy load. With the Pixel XL, pretty much the same. I'd implement it for sure!
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bsmitty83:
Good to know for sure.

Ok so I just added schedutil , running it now.

I'll drop sched governor for schedutil and put it up sometime tonight
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bsmitty83:
OP updated to R12

- Replaced Sched with SchedUtil governor

- no other changes

:highfive:
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] ChongoDroid:
Oo la-la

Faaancy
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] jaydiamonds:
Probably one of the dopest kernels I've ever used. Insanely fast. A problem

- Random reboots after R12 flash via Stock

- Installed R11, random reboots as well

- Eventually, phone powers off on it's own.

- Powered device on

Should i be starting from the 1st release? Or does the kernel need time to do it's "thing". I'd like to use this kernel.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bsmitty83:
Try lowering the max gpu freq to 650mhz .

It sounds like your phone cannot handle the higher freq I added.

The only other change I brought in for R11 was voltage control. And unless you changed any voltages that shouldn't be causing your issue .

You should be able to flash any version of this kernel , definitely don't have to start at R1.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] CHANGiism:
The only problem with that is that there is no time for you to make changes to the config before the phone freezes. Would it be possible to make OC optional and have the default freq as default?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bsmitty83:
For sure , but if your device is randomly rebooting , you should have time to change freq to at least see if that is the cause.

If the phone didn't boot at all or only for a few seconds I would agree.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] ChongoDroid:
Turn down the GPU boost to low or off and that way it will only hit max freq for very short amount of time.

Mine seems to handle it fine but it's what I'd do.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] TotoBerto02:
What's settings do you use with this kernel to save battery? (Governors, etcetera)
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] noidea24:
reporting same as previous poster.

Flashed factory image, setup, then flashed r12.

First it froze while changing usb modes, then restarted.

Then it froze and reset while just charging off my pc.

Then the same while in the app store.

Then i noticed whenever the phone went to sleep (screen off) it would freeze and require a hard reset.

i came here and read the comments about lowering the gpu clock so i lowered it from 729 to 652 and have it set on boot. so far i havent had anymore reboots.

just reporting a problem and confirming a solution that worked.

********************************************

Also stating that gpu boost was already set on low, the only other option was off. But it would seem that low + 652 max freq fixed it
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bsmitty83:
Thanks for the update.

I figured upping the GPU to 729MHz would tax some individual soc's . Maybe it has to do with a devices battery ? I know all chips aren't created equal , but 729 isn't really pushing the GPU in my opinion . My device seems to handle it fine , but I may choose to revert back to the 650MHz freq for public releases from now on . I also am beginning to think the XL handles heat dissipation better than the sailfish. Just from size alone .
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] noidea24:
Had two more reboots at low/650mhz. One while charging and waking the device, the other while typing a comment here on xda. I've turned GPU boost off completely, I'll report back with any problems
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bsmitty83:
Definitely schedutil governor on at least the little cores , limit the CPU and GPU speeds to less than max , disable uksm , turn your screen brightness down . Same basic things you would do to any kernel really ....

Just so there is no confusion , the little cores have a overclocked freq of 1.9GHz , it was designed and implemented to be a boosting freq , and it does just that. If you use schedutil governor , it will set the max little core freq at 1.5 GHz , but it WILL still use the higher freq when it deems necessary. If you want to use the higher freq as an actual max freq , switch governors. Using a governor like interactive will use the highest freq as it's max .
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] TotoBerto02:
Oh thanks bro it's helpfull and sorry 4 noob question but what do you mean with uksm? And how can I disabled it?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bsmitty83:
No worries .

Uksm is short for ultra kernel samepage merging . It's basically a memory saving feature that scans memory for duplicate memory pages and merges them into one .

It can be enables or disabled through most kernel tuning apps , or from a terminal app or adb shell .

Or even using a root file browser to edit the file manually
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] TotoBerto02:
Ok ty bro time to flash again (because I'm on R11 lol) and do what u said ty bro
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] ChongoDroid:
conservative on small

blu_active on large

No OC

GPU boost low

uksm CPU gov quiet
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Mikkey81:
Seriously... Hopped back to R11. Not liking the schedutil seems a little choppy and missed sched's decent usage and skill with the Over clock (struggling with heat on other govs) I've been running Sched/On demand with Maxed OC and GPU with the Medium Boost and I'm smooth as hell with almost 7 hours of screen on time. 4 with High Brightness Mode.

Now note I don't play Games but a ton of Music on Bluetooth, Pictures of my Two year old all the time, GPS with Google maps while i travel for work and Corporate Email at about 150 emails a day.

As always. You're just killing dude.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bsmitty83:
Lol . Next version I'll include sched as well for you so you can stay on the current builds ....leave no man behind .. [emoji39]

Glad to hear as is well otherwise tho . I've noticed a lil more heat using other governors on the little cores than sched/schedutil , but nothing crazy . Even playing 3d online games my phone doesn't get hot enough for me to worry . I like to believe that if any phones got the best binned 821 chips it would be Google .
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] boostnek9:
I'm having a bit of trouble with battery life on R12. Now, keep in mind I do have xposed installed with GB so I'm not sure I can attribute the issue to the actual kernel but I'm losing because in my GSam monitor, it shows kernel at the top for usage which seems odd to me.

Screenshot https://imgur.com/gallery/xqLHg

I'm expecting it to be xposed but think it's a good thing to report that here seeing as others will likely use the framework.

Thoughts on culprit? I need to charge my phone half way through the day.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bsmitty83:
I haven't noticed a huge drop in battery life yet , what CPU governor are you using ?

I'm not sure if it's a result of schedutil and the code I pulled in , or something else.

I'll definitely keep an eye on things .
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] boostnek9:
I was using Schedutil. It's been better since I changed to conservative tbh. Again it doesn't mean your kernel is the culprit and don't mean to put this on you though.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] ChongoDroid:
So I noticed that my phone was spending lots of time OC'd using schedutil on the big cluster. The small cluster OC is nice because it spends less than 2% of total time at that frequency meaning it probably only ramps up to 1996mhz for app opening and similar quick operations.

However a few games I play would FC so i played with the settings and I thought I'd report back with my new settings for best of both worlds.

schedutil on small cluster 307-1996mhz

conservative (edit: I've been using zzmove since posting this as it prefers even lower frequencies when load is coming low or idling) on big cluster 307-2150mhz

CPU boost options:

input boost enabled

Boost milliseconds - 300

Raise that number by 100 until you have zero chop in scrolling apps (Google, swipe for Facebook, Twitter, etc)

This setup is intended to keep frequencies on small cluster for UI and only using big cluster quickly and then scale down to lowest frequency possible.

Try it out. If you're getting random FCs in graphics based apps/games.

PS if your phone doesn't like the higher gpu freq change it to 652mhz and raise graphics boost to medium from low.

I use Google Earth pinch to zoom to test FPS and drag racing: streets to test stability.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bsmitty83:
No worries man . The schedutil switch was a huge set of changes , the commits I included were from benzoROM's kernel which included reverting a bunch of EAS code and then some upstream/experimental commits. So it could be that as well.

I always try to fix things that I break lol. My gnex kernel had lots of activity , it became a hangout thread for the remaining users and it was awesome. I had 3 different versions of a kernel that I maintained , and I tried hard to stay on top of things. My kernels probably will never be perfect , but usually they work ok .

So I guess what I mean is that I can take negative feedback , so if you experience something you think isn't normal , especially after flashing a new kernel version with changes that could affect the issues your having . It never hurts me to be aware of issues. Even if it's not kernel related .

Also I had some apps crash using vr scheduler , just for people to be aware of . I switched to any other scheduler and it was fine .
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] brymaster5000:
B-Team! Dude how you been? Thinking about rooting my pixel XL. Glad to see you're here, means I don't have to bring out the elite kernel. :silly:
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bsmitty83:
Lol ,it's been a long time my old friend . I've been good as can be , no complaints. You ?

Yeah , I was using my Nexus 6 with a broken screen for a while , it finally let go so I bought an XL . Definitely root it. Magisk is pretty painless and works great on stock rom .

Ha , flash if you dare ! You might go right past light speed and hit ludacris speed [emoji6]

I think it's running pretty good . Lots of tunables to use and experiment with . I consider it stable even tho I named it NSFW

Welcome to the small gathering that might become a party yet ...... Good to have you.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] brymaster5000:
Nice! I'm doing great. I picked up the Marlin in November and I sort of retired from kernels the same time I retired the Shamu. Both buck and I... Been too busy. Didn't care for the problems and price of the pixel 2xl so grabbed this. If I get time I'll root and join in. :cowboy:
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bsmitty83:
OP updated

- R13

- Added Chill governor and re-included sched gov

- Added Thermal Control via sysfs

- updated UKSM ( now works alongside KSM )

- added CAKE net packet scheduler

- added configurable printk ( can be enabled/disabled via sysfs )

/sys/kernel/printk_mode interface

- updated Adreno Idler

- removed powersave governor ( unusable IMO )

- various minor updates

Schedutil has been running well for me . Havent seen a noticeable hit in battery nor have i noticed the boost freq being abused. but I included sched just in case lol .

UKSM will now use ksm's sysfs nodes so you will see both options in a kernel manager app . if you turn one off it turns both off . but you can use all of the tunables
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Gordietm:
If I use Blu_active on the little cluster and Schedutil on the big cluster, is that a good combination?
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bsmitty83:
Reverse it and I say yes .

I think schedutil would work best on the little cores . But that's why I include so many options . All these choices are very much on a person to person basis which one will works best or what combo would work best. Give them a shot , if you don't like the results , try something else . I think all the governors function as they should , except powersave which absolutely cripples my device.

I also should mention that using zram and uksm is overkill , I use one or the other but not both.

Personally I've been using schedutil on the little cores , and ondemand for the big cores .
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] Gordietm:
Now my phone just bootlooped and got stuck on the Google logo. Is there something I should be doing with the kernel. Never did this before.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bsmitty83:
Just make sure you are on Android 8.1

If you have flashed a custom kernel before this one , make sure to flash the stock boot image first . ( Or the boot image from whatever ROM you are using )

Other than that I cant think of anything special you should have to do to use this . Next time you boot this kernel , lower the maximum GPU frequency a step .

I would advise against using this kernel if you aren't comfortable with different kernel parameters and settings. Not to say it wont work , but I leave alot of the choice up to the user.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] kalosada:
I think I love this kernel. May be it is safe to say, I used to love it especially prior to R11 or up to R11. Now my Pixel XL is getting hot when I use it for more than 5 minutes or so. I am a novice user of course who do not play with the default settings nor I use any app to change the setting. May be it is time for me go back to stock? Does the default setting for this kernel provides the best outcome considering all scenario such as battery, performance etc.?

[MENTION=4608636]bsmitty83[/MENTION] thanks for your work and maintaining this kernel and providing us to use it. I have been reading some of the posts in this thread, looks like you are providing options to the users to change the kernel settings. I wonder if I stick to default settings I would get reasonably good benefit or not really.

Thanks.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bsmitty83:
I raised the maximum GPU freq after R11 , so the increased heat is likely because of that. If you reduce the maximum GPU freq it should solve you problems.

Or you could always use R11 , if you are just using this kernel as it is and not changing any settings . The difference in versions are generally settings you have to manually select . Sure there are some code updates , but unless your after certain features that one version has over the other , or security fixes , flashing the newest won't really benefit you .
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] kalosada:
Thanks for the clarification.

Sent from my Pixel XL
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] PWn3R:
I tried installing this and I think the GPU freq change is too much OC for my phone. It reboots randomly within 30 seconds of hitting the lock screen and reboots constantly. I can't even get into an app to lower the GPU clock.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bsmitty83:
Definitely a possibility . You could try an older version like R10 , which has a slightly higher GPU freq than stock but should be ok .
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] PWn3R:
Will give it a shot.
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bsmitty83:
OP Updated to R14

- linux 3.18.93

- reduced max GPU freq to 710Mz

happy flashing
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] bsmitty83:
I just noticed I forget to add sched in this release lol . My bad .I was going to do 2 builds , one sched one schedutil , but I decided to just keep both. I'll make sure it's included in the next build .

Till then , I'd suggest giving schedutil a shot . It's been running good for me . Enough that I forgot I was missing sched....
[Google Pixel XL ROMs, Kernels, Recoveries, & Other] kingbri:
[MENTION=4608636]bsmitty83[/MENTION] what are the best governors and I/o scheduler to use on this kernel?