yashsingh1/xdaforums huggingface dataset:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] otonieru:
Uninstall the magisk module first.

Reboot

Check the optimisation list, make sure it already listed as not optimised

Boot to TWRP

Flash the Oreo Zip

Reboot

Check the list again.

Also check /system/etc/sysconfig/google.xml

See the date to see whether its successfully replaced or not. :)

Btw, i might suggest you all to move the further comment to my main thread. I dont want to clutter nathan kernel thread
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] ram4ufriends:
Anybody noticed phone unlock/fingerprint reader being slow? Wanted to understand if it is isolated to my device alone...
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Cowbell_Guy:
What are main differences between this and elemental kernel?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] CyberpodS2:
Read the release notes on both and you can compare. The only thing I'll tell you, as it might not be apparent at first glance is this kernel has upstream commits that are or may not be in the regular release, where the other does not go down that path. Best way if you don't understand the lingo so much is to try them both and explore the settings using EKM.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] otonieru:
Fingerprint is fine overhere
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] sruel3216:
if i want to uninstall this do i just delete the google.xml?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] LLStarks:
Will 4.4.110 include the Spectre patch?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
Yes and no. 4.4.110 will have the Meltdown fixes for x86 (so not relevant here). I will add KPTI for arm64 if it is relevant when it gets backported by Chromium.

Google added a few fixes for it in the January security update: https://support.google.com/faqs/answer/7622138

We probably won't need much else aside from that but I watch the LKML so if anything crops up, I'll know.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] LLStarks:
Do we need KPTI? What kind of overhead will occur on ARM?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nidhish91:
Gestures doesn't seem to work.. What am I doing wrong?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Does your kernel manager have proper root access?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nidhish91:
Oops i didn't download the kernel manager. Assumed it will auto activate.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
After you give it root access, it'll work fine :good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
Yet to be seen. Google plans to add it on all of their Chromebooks to be safe.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Cowbell_Guy:
Which is closer to stock?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] CyberpodS2:
That's above my pay grade, but neither is a huge departure from stock behavior at this point from what i can tell. To be honest, both guys are rock solid and have been known to help each other out... Personally I would like to see you try this kernel first only because I've been running his stuff for years across several phones and completely believe in his product. Once you have found you are getting (or not getting) what you are looking for, I would suggest trying the other one. Really give each one at least a week. You very well may find neither one is noticeably better than the other. Or you may find one seems to be sliced bread and the other is cat food. What I'm trying to say in my semi drunken blather is you gotta try them fort yourself to really see if they for your needs. I'm sure if you ask nicely, both guys might give you their mission statements if your really invested in learning about custom kernels. :)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] xryptic:
Does the default Google gestures (not enabling flar2's implementation) such as dt2w work fine? Mine seems to be very unresponsive and rarely works, unsure if it's kernel related. Thanks.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Prattham:
I have set it to display ambient notifications on double tap and it works everytime
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] xryptic:
Do you mean you are using it with always on display? I am using dt2w without AOD turned on.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Disable the native dt2w under ambient settings, and just use the kernel gesture. Works much better :good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] v12xke:
Agree 100%, I do think the kernel implementation works better with Google dttw turned off.... however on that first unlock after reboot, or after Smart Lock times out and you have to key in a PIN, you don't have the gestures because EXKM hasn't loaded yet. Essentially every time you need to enter the PIN, you will not have dttw, or in my case sweep to wake. I hate having to use the power button to wake the phone.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] CyberpodS2:
I don't know about this phone, but on the 6P I believe it was a Rom feature that allows the unlock after reboot without the pin or pattern. Same for fingerprint.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Prattham:
I have disabled AOD

---------- Post added at 06:23 PM ---------- Previous post was at 06:22 PM ----------

Xposed module as well
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Prattham:
From two days i have been facing thus and not really sure where to post

If my phone goes to sleep my screen doesn't wake up

I don't have any doze apps or such

When I try to unlock via fingerprint i can feel the successful vibration but screen don't lit up

I have to do a hard reboot

Today morning my alarm rang and i woke up and notice screen is blacked out but alarm was ringing

Again had to reboot

I'm on jan patch manually flashed successfully with magisk 1456
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] ilal2ielli:
Are you using a screen protector that covers the proximity sensor?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Prattham:
yea i do but i have not faced the isssue before and it has been a week or so i have got that protector plus my sensor works fine in calls....

cheers
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] xryptic:
Just replying back to myself as an update to this issue since I have likely found my issue and I can reproduce it. This is not Flash kernel related to state up front.

See these bug trackers who have people having similiar issues and I have starred both so they get Googles attention faster. You should too if its affecting you.

This tracker issue is reproducible by me.

https://issuetracker.google.com/issues/71510515

This is another tracker that also seems like its the same thing.

https://issuetracker.google.com/issues/70819065

Basically the proximity sensor no longer updates its distance once 0.0cm is reached and the screen/edge sense is not responsive anymore thereafter even when bright light is shined on it, which is why my problem manifests itself when in dark environments or left in my pocket and taken out. Does not happen when room is brighly lit.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] v12xke:
Good references, but the proximity sensor itself has nothing to do with light or dark. There are apps you can use to test the functionality of the sensor to rule out a hardware issue, or even reset it. Google knows about it and has put a priority on getting it fixed. Meanwhile, if you have a screen protector that covers the sensor take it off and see if that helps. Obviously, if your cover has a cut out for the sensor it is not part of the problem.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
Update!

I normally would have released 4.4.110 yesterday but we don't actually run an ounce of code for it because we aren't x86 lol. So it's just a number upgrade. [MENTION=6552280]MSF Jarvis[/MENTION] added a few great things he found, including some improvements from Alex Naidis from PA regarding the msm-core subsystem, which should make tracking CPU loads better. Lastly, Google released a Clang 6.0 toolchain, which I have upgraded to. Other than that, enjoy!

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.4.110

Optimization patches found by [MENTION=6552280]MSF Jarvis[/MENTION]

Minor sdcardfs improvements

Upgrade to Clang 6.0

Downloads

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

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

Commits

Kernel: https://github.com/nathanchance/wahoo/commits/oreo-mr1
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Dark_Eyes_:
Is it possible to flash boot and dtbo images without using fastboot? I'm away from my pc for a while and would like to flash the latest version ;) I know the twrp app can flash boot.img, but I wonder if it works on taimen? Also flashing dtbo.img without fastboot might be a bit harder. Anyone?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] clnzx2:
If you have TWRP, why not flash the zip?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
You know more than I do my friend. If your already on flash kernel then just flash the latest followed by magisk. I don't think we can flash the boot.img since recovery and boot are now tied together. But, I could be wrong. Common occurrence for me :good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Dark_Eyes_:
I should have mentioned it... I don't have twrp ;) I prefer not to mess with it for now, I haven't got the time to get up to speed with it yet.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
You can try using FlashFire to flash the Magisk patched boot image. You can use dd to flash the dtbo image but at the moment, there is no change from the stock dtbo image so you're probably fine going without flashing it.

My personal recommendation would be flash TWRP (it's stable now) and just use the zips.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] bosox284:
You can still flash the boot.img in TWRP. You just need to flash the TWRP zip afterwards, because you'll lose it on a reboot otherwise.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] rickysidhu_:
I just got home after making a trade with someone, my Oneplus 5T for his Pixel 2 XL. My OCD is preventing me from using it until my screen protector arrives in the mail :silly:

But as soon as it does, I'm flashing this kernel asap!

I've been doing lots of reading about flashing things on this device and apparently TWRP touch stops working if rooted and on the stock kernel. I'm guessing just rooting and booting back into the OS is a bad idea?

Just wanted to verify, the order for this device is:

boot or install TWRP, flash this kernel, then flash the magisk zip?

I know its been discussed a ton but I just wanted to triple check before I start modifying the device!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] sruel3216:
just curious...What does the new Clang toolchain do?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
Nothing much from a user facing side but results in better and more accurately compiled code.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
I have added the arm64 fixes for Meltdown that were added to Google's kernel/common this morning to my tree. I will most likely release a new build tomorrow once its stability has been verified. Our processor isn't outright vulnerable to these attacks like Intel chips are but it does not hurt to err on the side of caution.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] alia5:
Probably a bit OT, I'm just curious what's going on here.

I'm never seeing the CPU cores sleeping while the display is on. They always stay practically at their lowest frequency when idling.

However, the big cluster is read to be at 345MHz, even though min freq. is set to be 1132MHz (I didn't change anything from the defaults btw)

The only time the cores seem to sleep is when the device is actually locked.

But I've never seen this on stock kernel before flashing this.

Granted, it could all just be wrong readouts. Still, I'm curious about this.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] LLStarks:
We need 4K read benchmarks to judge the impact of KPTI
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Az Biker:
That's the process pretty much.

If you don't want to keep twrp, boot into twrp.img , flash customer kernel, then magisk.

If you want to keep twrp, flash twrp.zip from within twrp right after booting into twrp, follow same remaining steps..

If you get stuck at 'white G' screen,hold power button and reboot.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] rickysidhu_:
Awesome, thanks for the help, especially the additional tip on getting stuck at the white boot screen. Much appreciated :)

Now that screen protector needs to get here asap...:eek:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Prattham:
Okay so it happened again

After yesterday's night when i left my phone in my desk and today morning the screen again didn't turned on

Can anyone please help
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] salada2k:
*deleted*
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] D-m-x:
There is nothing anyone can or even wants to do to help you. You are not even following the first Step Nathan wrote down in case something like this happens. See the 1st Post for this:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Prattham:
Yea okay but it's not a random reboot that I'm facing and the fact that i cannot take a log because it is random
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] D-m-x:
Doesn't matter if its a Random Reboot or not, I'm not a Dev but I'm 99% sure that no Dev can help you without Logs because your Issue also seems to be isolated and maybe not even Kernel related . Also you can connect your Phone via Adb and look at the Logcat while your Phone is doing that to maybe give you a clue whats going on.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] piyush7243:
Change Kernel and try to isolate first before asking the Dev to help
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Prattham:
I tried ex kernel and same happened

It didn't happened before in dec update only when i updated to jan patch but after 2.06 it started

2.05 was fine though
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] piyush7243:
Go back to 2.05 n see if it happens
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] mitchdickson:
Judging by your participation in other threads, you have been trying (and failing?) to make other modifications. How would you be sure that the January Google update has anything to do with your problem given the other mods?

You should clean flash the January factory image and see if you still have a problem.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Prattham:
Yea i have done that already but haven't tried stock Kernel because of the twrp touch doesn't work for me

I'll give a another go tonight and see what happens
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] mitchdickson:
You completely wiped your device?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Alxoom33:
Yes, I agree. Wipe, it may take care of your TWRP issue.

Reflash factory image with full wipe.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] KKenna:
Is there a way to get a push notification when new versions drop (Like pushbullet in the old PN days)?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
Not directly. You can subscribe to the GitHub feed for my releases through something like Blogtrottr (though you may get spammed by the queue tags I push). I also post to my Twitter and Google+ page.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Prattham:
Nope haven't tried that

Well i might as well but moving 30gb data back and forth takes time lol
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Az Biker:
If it happened on EX as well, not a Flash kernel issue.

I agree to start from scratch (wipe device) and only add twrp and cust kernel without ANY additional mods, and see how it runs.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Pkt_Lnt:
This only takes about 1-2 minutes from P2XL to a Linux laptop.

adb backup -apk -shared -all -system -f ~/<path_to_backup_dir>/backup_yyyymmdd.ab
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
All good, I'd rather catch issues before they make it here :) I'm working on it now
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
Unfortunately, Clang 5.0 causes reboots while opening the camera and rotating the device and I don't have much time to debug this so I'll to wait for Google to release the 8.1 kernel source.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] pa.pn2:
Can we use any kernel app like ex to adjust your kernel?or isn't it needed anymore?

Edit.ok saw it in the q&a...
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] flank3rsky:
Thank you very much for your sharing.

And I have a question. I compiled the same kernel with clang-4.0 in AOSP prebuilts dir. I got the Image.lz4-dtb and repacked it with AIK tools. But the device booted failed.

Can you share how to compile and repack the WAHOO kernel source?

Execuse me for my poor English. Thanks again.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
I can't talk much about repacking a boot image as that's not what I do but my minimal AOSP manifest has an explanation about how to compile a boot image, assuming you can spare the space: https://github.com/nathanchance/pixel2-manifest
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Az Biker:
NVM :D
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] flank3rsky:
After reading your minimal AOSP manifest, I realized that I used the wrong mkdtimg. I compiled and replaced the mkdtimg, and now the problem solved.

Thank you very much.:)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
Update!

Here is the first update for Flash on this device! 1.00 got a lot of warm welcomes which I deeply appreciate. I kept this update small as I wanted to make sure there are zero regressions. I will be looking at other features as time permits. Enjoy!

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.4.98

KCAL control

Downloads

Primary: http://nchancellor.net/downloads/kernels/

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

Commits

Kernel: https://github.com/nathanchance/wahoo/commits/8.0.0
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] elreydenj:
Thank you! Is this 1.01 Stable the same as the 1.01 r6 RC version?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
At this point, I have zero idea lol.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] elreydenj:
Thanks. Updated anyway just to be safe!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] bobbarker2:
[MENTION=6842057]nathanchance[/MENTION] I love you and I missed you and your kernel not being developed for the pixel 1. Happy to see you're developing a kernel for the 2.

Do you have a repo for your Alpha, Beta And RC kernels? Or not making them public to keep things simple?

And I was looking around github and saw this commit

https://github.com/frap129/taimen/commit/bcf17e035b041e92179089323a85e06e30a1ea52

Optimized Console FrameBuffer for upto 70% increase in Performance

So yeah... Can I haz pls? :silly:

I'm sure you're aware of it already or have it in the pipeline but just in case I wanted to draw your attention to it.

Your contributions to the community to lower the barrier of Entry for new Developers are amazing. You provide your own tool chain which is ready to go, scripts, a step-by-step guide, excetera. You rock man. XDA should be paying you.

Can't wait to see where you go with this project.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
No, I don't push the testing build source as it is always changing.

Optimizations are in the pipeline; I don't know about that one though, I don't like adding code from unknown entities that I don't understand. We'll see.

Appreciate the kind words :)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] elreydenj:
Thanks again Nathan. When utilizing flash kernel it appears that the touch screen doesnt respond when booting into the flashed twrp zip that just came about. Users are reporting success when flashing Snoke zip prior to flashing the TWRP zip and then flashing magisk zip. No dice with flash kernel however. Any thoughts?

Edit: All is well on TWRP beta 2. False alarm!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] samteeee:
[MENTION=6842057]nathanchance[/MENTION]

Thank you..
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
For the record, until TWRP is in a really stable state, I refuse to rely on it for the kernel installation. I will most likely continue to distribute images for a long time to come.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
When you get praised by the linux-stable maintainer ?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dr_rick13:
so if I wanna install kernel and achieve root? I just have to patch the boot.img and fastboot right? I don't wanna use TWRP yet, seems way too buggy
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] MikereDD:
You the man!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
Correct.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Alxoom33:
If your data is corrupted, the clean flash is a waste. I suggest you don't move your data except for media and set up your phone clean.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Prattham:
Okay so i have done it clean install

Moved only my pics and pdf files

Re installed my apps

Flashed kernel no mods

Everything was fine

Woke up in the morning and it happened again

I have noticed is my battery was less than 15% every time this happened to me

I have disabled battery saver though

:(
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Sounds like you've got the Google Play Services eating my battery bug! Have you run better better battery or GSM battery monitor to see what's eating up your juice??
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Prattham:
Negative play services don't even show up in my stats

What i meant to say was i actually use my phone and battery is less than 20% and i go to sleep

So in morning it drains about 5 6 % and hence that issue

Will charge the device before sleeping today

This is just so weird :rolleyes:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Alxoom33:
Perhaps your phone is defective?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] sruel3216:
What causes these wakelocks. I wasn't getting them the previous charge
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] joetheshmo:
I can't speak to all of them but the two at the top are related to location services
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] sruel3216:
What can I do to fix? Clear data in play services?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Prattham:
I never had any problems earlier

Also

I tested with battery greater than 25% left and after 7hr of sleep i unlocked and screen woke up successfully