yashsingh1/xdaforums huggingface dataset:
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Chronzy:
Can I extract an img to flash in fastboot w/o twrp? Been a while since flashing on this device and it's usually boot.img; I only see dtbo.img and Image.lz4-dtb. Can I "fastboot flash boot xxxx" one of those?

Thanks for maintaining for this device!
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Sultanxda:
Nope, you have to install it with TWRP or FKM or Lineage Recovery.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Kjyap98:
Have been loving your kernal with pixel 2 and what would your next daily smartphone would be?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] YoungFiire:
[MENTION=4800121]Sultanxda[/MENTION] , how can I control the vibration strength like you mentioned in the features list?

Thanks in advance!

---------- Post added at 10:19 PM ---------- Previous post was at 10:19 PM ----------

[/COLOR [MENTION=4800121]Sultanxda[/MENTION] , how can I control the vibration strength like you mentioned in the features list?

Thanks in advance!
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Sultanxda:
New build is up
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] khanhcc:
I have bootloop problem when i try install magisk in pixeldust room july build with sulthan kernel july build
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Sultanxda:
Newwww build.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Kjyap98:
Best kernel ever!
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] legaldexter:
Android 11 Support?

As we know pixel 2 is still supported through A11, my question is will you be continuing your work pixel 2 A11 too?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Sultanxda:
Yeah
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] mkosel:
I just moved to this Kernal from Caesium and am loving this so far. Great work! Is there a download config for FKM so I can easily stay on the current version?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] GohanBurner:
September build incoming?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] ZeroAlee:
If you truly need a Kernel for Android 11, there is a Unofficial Sultan Kernel on the Pixel 2 XL Forum, and it is compatible with our Pixel 2 devices, you have the option to install it, its the same and forged with Sultan Kernel sources, but are not mantained by [MENTION=4800121]Sultanxda[/MENTION]
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] legaldexter:
Just wondering if I should flash this version on my Pixel 2 w/Android 11?

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

Provide me link to that please
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Alxoom33:
No!!! Flash an A11 kenel. Eamon has a Sultan port. Also Proton kernel test version 600. Both based on this kernel merged with A11 source. Other good one is Ex kernel. All 3 work well with A11 on Taimen.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Haris000:
can anyone please explain how am I supposed to install the kernel first without twrp ? Its mentioned that the installation order is kernel >>> TWRP >>> magisk -_-
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] clcdev:
I never bothered actually installing twrp, I just boot it from the img.

Reboot to bootloader -> fastboot boot twrp.img -> flash kernel -> flash magisk
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Alxoom33:
TWRP and Magisk are not compatible in R. So you don't install TWRP. You boot the TWRP image in fastboot. Then you use TWRP to flash Magisk and kernel. When you reboot you will be rooted and have stock recovery.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] bonedriven:
I just installed lineageOS (from stock) on my phone recently. Now I ended up with TWRP in slot A, and lineageOS with a recovery I have never seen (stock?) in slot B. The OS is already rooted with Magisk.

How should I go about the installation of this kernel now?

Thank you for any guidance.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] ViperPyro:
I just flash it within Android using Franco Kernel Manager. There are other apps that let you do this too. Then just reboot and good to go, no recovery needed.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] bonedriven:
According to OP's post, the kernel should be installed prior to TWRP and Magisk. That's the issue.

I have both of them already installed, and TWRP strangely installed in slot A whereas lineageOS and Magisk installed in slot B.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] ViperPyro:
Ah I was referencing for a LOS upgrade when all I need is a new kernel. I use Sultan and it detects Magisk and keeps it, so no loss in doing the kernel last after an OS update.

I've never noticed your condition with split recoveries on the two slots, but either way, you can fastboot boot twrp and flash twrp again if that is what you prefer, then just use either recovery to flash kernel and Magisk again as desired, over stock LOS.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] bonedriven:
In Op's first post,

But OP didn't mention what happens if one flashes not in that order. Does it brick the phone or just you have to flash in that order over again.

If it's the later, it's fine despite some more steps.

BTW, I don't know if battery life does improve with this kernel for the standby state. My pixel2 drops more than 20% battery over night just standby with lineageOS, and this is already improvement compared to the previous stock OS (drops 40%) if wifi is on. On the other hand, my iphone laying around pixel2 drops around 4% battery over night with every connection type on.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] rayner123:
I got a general question, would flashing a custom kernel improve the sounds picked up by the microphone during phone calls i.e. is there anything in the kernel that can be tweaked to improve sound picked up during phone calls? Ever since I got the pixel 2 (Second hand) I keep getting told I am not audible, had a S7 edge before. So I have turn up the "call volume" which ends up improving the microphone situation but also means the earpiece is blasting the audio of the person I am talking to. Although I haven't tried to isolate the problem to whether it is the phone or it is the network.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] legaldexter:
What if I have magisk already flashed but i need to flash this kernal? do i need to uninstall MAGISK FOR THIS??
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] ViperPyro:
No, you can just flash the kernel if you are already on a ROM with Magisk installed. It will preserve Magisk. If you are concerned, flash Magisk again anyway.

You won't break anything special due to the three kernel, magisk, TWRP flashing steps. All it does is ensure the right aspects are preserved since some will overwrite others.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] legaldexter:
One more thing to ask Sir will I be able to update lineagOS and will I have to flash this kernal again??
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] ViperPyro:
Yep to both!

The kernel will not impede updating LOS. You can even use the build in updater that does not require TWRP flashing.

LOS includes its own default kernel, so any flash or update will migrate you to the LOS kernel. You can then simply flash (TWRP, LOS recovery, app) Sultan again to get it back. LOS also includes a recovery, so you'll lose TWRP, but you will keep Magisk each time if I recall.

You can always reflash all 3 items any time.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] XS37:
Is this kernel UTD (github says sultan 11.0.0)

I haven't seen any updates but github version changed
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] nathanchance:
I didn't do anything aside from break his patch a bunch of times :p all the improvements are Sultan only.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] :
Breaking it and fixing is all part of tinkering and learning. I come to XDA mainly to learn since my day job is not kernel hacking. I have had the privilege of learning from the devs from legendary "Team Hacksung" ([MENTION=591147]Entropy512[/MENTION] and [MENTION=2162789]XpLoDWilD[/MENTION]), [MENTION=4443334]Grarak[/MENTION], [MENTION=2332422]temasek[/MENTION], [MENTION=5986135]TheCrazyLex[/MENTION] (we enjoyed a lot during the LG Optimus 2X days) and many more that I have missed mentioning here. I will never forget the young middle schooler (back then) [MENTION=2638969]HCDR.Jacob[/MENTION] for getting me hooked to Android.

Thank you all for keeping this a learning platform.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] infamousvincci:
I wont do it then. Lol.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] kamzz:
Hiya all, I'm hoping someone could point me to the correct procedure of installing custom kernels as so far my two attempts have caused the pixel 2 to softbrick.

I am currently running stock 8.1 - 5th May with twrp installed along with magisk 16.

I initially booted into twrp recovery and flashed Sultans kernel and upon reboot received the following messages in fastboot (ImageFailedAuth) or (Slot Unbootable).

Tried booting into twrp but it's borked so a trip to the local smoke filled netcafe it is. Got to install the latest ADB via netcafe, tried booting twrp via "fast boot twrp.img" but returns with a boot sector fail, in the end I had to download and flash the original firmware minus -W.

Device booted but all my data was corrupted in twrp, tried different firmwares to recover my data but no luck. In the end I had to reinstall the firmware without removing -W, installed twrp and had a twrp back up dated May the 18th which recovered fine and I only lost a few weeks info.

Whilst at the café I tried installing the kernel again and twrp straight after but again it softbricked with the same error.

Are custom kernels to be installed on none magisk setups? Or is there an order in which they have to be set up? I find the pixel 2 to be most frustrating phone ive ever owned and no way as bullet proof as my 4-5 year old nexus 5.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Meowdib:
Something is going very right with my phone
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Meowdib:
Reinstall magisk after installing the kernel if you already have Magisk installed. Then reboot.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] kamzz:
Up and running now, thank you !!!
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Hadookie:
Thanks for this kernel. Hopped over to it since I've read throughout the years all the good work you've done for the 1+ community.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Meowdib:
It finally shutdown at 1%, 12hr, 25 min SOT.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Hadookie:
How in the world did you manage that. :eek:
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Meowdib:
I don't know. Just installed the kernel. I'm trying not to modify anything now, just to make sure I never lose it.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] mikeprius:
what is a dtbo ? This is the first phone I never rooted however I feel like the process now is so foreign when I read instructions ? Do most custom ROMs/kernels still flash via TWRP after boot flashing the latest TWRP ?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] :
DTBO => Device Tree Blob Overlay (https://source.android.com/devices/architecture/dto/)

My understanding is that it allows vendors to build a fairly generic kernel and add the device specific hardware capabilities through the DTBO. IIUC, it lets to build a single kernel image and flash it either on Pixel-2 or Pixel-2XL by using the device specific DTBO.

With respect to TWRP: I fastboot into TWRP, install the kernel and have never installed it as a recovery replacement. This has a drawback of having to have a computer to flash a kernel. I am not sure if I had installed TWRP if I could flash the kernel from TWRP followed by flashing TWRP without booting to retain TWRP as custom recovery. This is because the kernel for Pixel-2 has the recovery portion in it. When you flash the kernel, it overwrites the recovery.

PS: I just took a first dig at trying to help, open to be corrected and learn along.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] notahuman123:
[MENTION=4000775]Meowdib[/MENTION] that battery usage: is that for the Pixel 2 or Pixel 2 XL?

Thanks
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Meowdib:
Pixel 2, I don't know what I did that day. I know I charged it all the way to 100% but I don't normally do that now. I go to 80 and down to 15-20 only.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] mikeprius:
Thanks for the info. I had a Pixel 1 and I assumed the process was somewhat similar. So you fastboot with a PC to TWRP, then just load the kernel in after it has been unlocked ? Are you running a custom ROM or stock ? With my Pixel 1, it was the same thing, there was no longer a dedicated recovery partition. Instead it runs a recovery through a modified boot.img with TWRP then boots into A/B slot. Or you can leave TWRP out and just use fastboot to use TWRP each time which works as well.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] :
I am on stock 8.1 with Sultan's kernel flashed. Tried DP3 and had soft reboot.

I come from Pixel 1 too but did not do much due to all the inherent complexities that come with A/B partition and verified boot.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] :
[MENTION=4800121]Sultanxda[/MENTION] DP2 had a better auto brightness ramping (both up & down). It might be more a ROM thing but can something be done in the kernel to smoothen the transition. Basically queue the requests to increase/decrease brightness, average it out for a given time window and apply it. A sliding window average based approach.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Hadookie:
In regards to brightness does this kernel support HBM?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] StillManner:
What ROM are you on?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Meowdib:
Stock. It only happened that one day, other days, I'm only getting 8-9 hrs SOT
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] gears177:
Any chance this could support overclocking
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] :
[MENTION=4800121]Sultanxda[/MENTION] Thank you for a solid kernel with no need to tweak further. Wondering if you plan on making a release with some of your newer fixes shortly? I will be off the grid (internet) for a month and preparing for it.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] xFirefly93:
If you want overclocking - ElementalX kernel is your friend.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Sultanxda:
N O.

I'm going to upload a new release today with a big new feature I've been working on ;)
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Sultanxda:
New build is up with a custom CPU boost driver I wrote yesterday that maximizes battery life while keeping the phone perfectly smooth. The technical details are listed in the changelog.

I'll probably get around to adding support for custom ROMs when I come back from my vacation in a few weeks.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] :
Wow, thank you for the update and the detailed commit messages.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] adamokari:
Man would I love to use this on lineage. Looking forward to it! Thanks for all that you do/have done for the development community!
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Sultanxda:
New build is up with custom ROM support and improved CPU boost frequencies.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Hadookie:
Getting great standby time.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] DuckRuckus:
Does this kernel disable "now playing"? It hasn't worked since I flashed this, and I was curious if that was one tweak to get better battery life.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Hadookie:
It's been working for me. Just left a BBQ where it was naming songs being played.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] adamokari:
Man that was fast!
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] infamousvincci:
I flashed it on my nephilim rom and it is working fine.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] danbrown162:
Android p support?!
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] stryker09:
Works on P DP3
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Sultanxda:
New build is up with WeChat fixed.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] lllluzhnan:
soooooooooo much thank you
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] infamousvincci:
What was wrong with WeChat?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Sultanxda:
Everything. It would instantly force close whenever you'd try to open it.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Sultanxda:
Last update before I go on vacation tomorrow. Sorry for the frequent updates; enjoy!
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] infamousvincci:
Thank you! Flashing it now. :)
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] lllluzhnan:
So far so good. Thanks

BTW how long your vacation is? I have already missing you (and your kernel's new update).

:laugh:
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] davidisflash:
Just installed this for the first time. So far so good! Have an awesome vacation
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] munchy_cool:
Hello [MENTION=4800121]Sultanxda[/MENTION],

I am trying to build Nitrogen OS with your kernel and getting below error.

https://del.dog/utelasiqaz.rb

Can you please help.

PS:- Flashkernel compiles and boots fine with the same rom sources and device/vendor tree.

I know I will need this additional commit, but i forgot to make it in the first try.

https://github.com/LineageOS/androi...mmit/f72373a0dc59437ca189b3eb1ba993ca271c3aff
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] razrlover:
I know OP is on Vaca, not sure when coming back though. Think it might be in thread.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] munchy_cool:
what might be in the thread?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] razrlover:
Sorry i meant thought he might have said when he was coming back from vacation
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Sultanxda:
Can't know what the problem is unless you post the error ¯\_(ツ)_/¯

That said, I'm not really interested in adding stuff to improve custom ROM support.

Mid July.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] munchy_cool:
i thought the del.dog link had the error, but guess it's not complete.

Anyways, i was just trying to avoid an extra step of flashing the kernel on top of the rom, guess i will just flash it.

Thanks for the reply and enjoy your vacation.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Sultanxda:
The errors in your link really don't look like the real errors. If they are, then it's just the compiler being used to compile the kernel. I use GCC 8 to compile this kernel. Whatever version of clang that Google's using should work too.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] lasha117:
one stupid question:

i run android p developer version, will it work on this?

will i get all the updates?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Sultanxda:
From somewhere in Japan, I have uploaded a new build with CPU boosting on app launch! Apps launch at a good speed now.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] xFirefly93:
[MENTION=6842057]nathanchance[/MENTION] Check this out! :)
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Meowdib:
Upload came from the future
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] NinjaCoool:
Arigatou gozaimasu Sultan-san!
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Sultanxda:
I made a derp in the previous build that resulted in slightly worse screen-wake performance, so I've uploaded another build from the future with the regression fixed.

Back to vacationing...
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] somnambulantdead:
Will this work with the July security update?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] TheSockGlove:
No complications so far with PPP5.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Sultanxda:
New update for Pie!
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] lpsld:
Great to see you back, hope you enjoyed your vacation :)

I have some questions. You changed the boost driver to boost the cpu everytime when a new frame is committed to the screen. For me this has many downsides: when I'm watching a movie, it's always at boost frequencies and my phone is getting hotter and hotter. Is there a way to make this "more intelligent"? I'm definitely not a guy who understands kernel coding so I hope I'm not saying anything wrong
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Sultanxda:
I'll turn off the boosts during video playback.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] danbrown162:
Eagerly awaiting feedback on the pie kernel (the new one which deactivates during video playback)
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] :
Would it be possible to detect frame drops and boost only then? More like a closed loop feedback based approach.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Sultanxda:
Boosts only occur when there is an actual frame ready to be rendered to the display, so no boosts occur for "dropped frames."
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] :
I meant triggering a boost only if there have been frame drops.

1. Track frame drops using an atomic counter

2. When a frame is ready, check if the counter is non zero and boost only if non zero

3. If there are no frame drops in a time widow, reset the counter to 0

Implementing average drop in a given time window efficiently will be difficult. Using a single counter and a watermark to trigger the boost might be simpler.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Sultanxda:
The kernel can't tell the difference between frame drops and a lack of new frames to be rendered, so this wouldn't work very well.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] TheSockGlove:
Possiblity for a wireguard backend update? Any consideration is appreciated.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Sultanxda:
The latest version of WireGuard available at the time of each kernel release is automatically included.

Running the following command shows the current WireGuard version:

cat /sys/module/wireguard/version

This shows that the version of WireGuard in the Aug 12 update is 0.0.20180809, which is the latest version.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Sultanxda:
I measured power consumption during video playback with and without boosting, and there was no increase in power consumption both for 480p and 4k video playback (for videos stored on the device). Power consumption actually suffered from frequent spikes of a few hundred milliwatts without boosting due to the scheduler choosing higher CPU frequencies in an attempt to find the best frequency combination for the current load.

Streaming video playback consumes even more power, to the point where boosting versus not boosting is totally irrelevant and the power consumed is exactly the same.

I've tweaked the boost frequencies a bit to reduce the overall power consumption, but I won't disable boosting during video playback since there seems to be no benefit in doing so.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Sultanxda:
New build uploaded from the future with slightly reduced power consumption \o/
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] cesarguaro:
Hi bro, the last version isnt booting :S it keeps on google loading screen, i flashed over the previous version :S what can i do?¿
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] buschris:
I did also, and wiped dalvik and cache. it if takes forever to boot, do a hard reset