yashsingh1/xdaforums huggingface dataset:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] sharkie405:
Most articles and information on preserving phone battery life recommend you keep it charged between 20% and 80%. They say it's better to charge in smaller increments as needed throughout the day then to do a 0 to 100% charge everyday. Although with this phone and my usage habits, if I start today at 80%, that easily last me till the next day, so I rarely find myself needing to top off at all throughout the day even with just starting at 80%. Actually I using usually don't even go to 80%, more like 60 or 70. They recommend doing a full charge maybe once a month just to keep the battery calibrated properly.

That's just info that I've read in various places. After having gone through the Nexus 6p dreaded battery issues, I read up a lot on phone batteries. But take it for what it's worth.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] tanbir29:
I was just wondering how wire guard works in this kernel? Is it automatically on or do I need to enable something in the VPN settings? Thanks in advance.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] p70shooter:
Think you're asking in the wrong thread?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] tanbir29:
Sorry I meant kernel. I just edited it. And wire guard is in this kernel as said in the op.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] eushaun99:
https://xdaforums.com/android/general/guide-how-to-wireguard-android-ubuntu-t3723544
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] siddhesh.raikar:
This kernel adds support for you to use a VPN service which supports Wireguard, which is a protocol.

So you need a separate VPN service to actually use the Wireguard protocol and the Wireguard apk to use that VPN service.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] sruel3216:
2.17 up and running perfect. Great job again
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] rickysidhu_:
Thank you for the constant updates! Your hard work is highly appreciated:highfive:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] bobbarker2:
And how old are these articles? The 6P is an exception as it was manufacturers defect, see class action lawsuit, but I have phones like 2013 moto x and Galaxy s5 that still hold a charge perfectly fine as the day they were new.

I think there's a lot of FUD related to battery lifespan, in part fueled by the OEMs themselves as they want you to buy a new phone every 1-2 years.

Hell, I even have a Nexus 10 that shows no signs of battery degradation and that's 5-6 years old.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] D-m-x:
Batterys degrade slightly over time (and charge behaviour), that's a fact. It might not be that noticeable to you because it's a slow Process.

That being said I don't care much, I wouldn't want to use my Phone just beetween 20 and 80% effectively losing 40% of Battery, almost half of it's whole capacity. I think most of us here just keep their Devices about 2 Years, exchange it or use it as a Backup Device where it doesn't matter that much.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Juzman:
Dirty flashed from 2.16.1 to 2.17 and Magisk 14.5 - all working beautifully. :)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] bobbarker2:
Agreed, but just like you said I wouldn't base my usage on trying to get the longest lifespan out of the battery as possible, as the degradation is insignificant - assuming the manufacturer didn't bork something up like what happened with the 6P.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Prattham:
Can you explain what happened actually with 6p?

I mean i know battery shutdowns and bootloop and early battery degradation but why?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] sharkie405:
I get what you guys are saying, and I agree. However, with my phone habits combined with the Pixel 2 XL's awesome fast charging, it doesn't negatively impact my lifestyle to charge the battery in the manner I previously mentioned. I usually charge it for 30 - 45 minutes (to about 80% give or take) every morning as I'm getting up and getting ready, and I'm good for the day. I see no need to leave the phone charging all night. Granted, none of what I said or do is probably necessary, but it certainly can't hurt, even if it's not necessary.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] eushaun99:
How fast does your phone actually charge using fast charge? I'm asking because mine doesn't feel like it's actually fast charging, like at 15% if I leave it to charge for 10 mins, it's still at 18%. Compared to my old note 5 which gets me around 20% in 10 mins, this isn't fast charging at all.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
For me, it usually starts off slow, then ramps up quicker in the middle, then slows down again around 80%. It usually takes an hour and a half to go from nearly empty all the way to full, which is about on par with the Nexus 6P, which had similar capacity and such. Another thing, I am using my Pixelbook's charger as it is rated at 45W instead of 15W like the included charger (same current however). This charger is a more affordable version of that one.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] eushaun99:
Huh, mine usually needs more than 2 hours to get from around 10% to full charge and I'm using the stock Google cable and charger.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Nekromantik:
Are those higher volt chargers useless anyway for Pixel 2 XL as Google capped the max charge so its not actually using full PD 3.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] D-m-x:
Thats also how I see it, I like to use my phone fully, longer SOT is great and all but if I limit my charging and usage that it isn't even a Smartphone anymore I wouldn't have bought it in the first place.

I also need more than 1 1/2 hour, but that might have something to do with that too. It seems to charge faster when the Battery is heated up a bit due to the Charging

https://www.androidpolice.com/2018/...much-slowly-certain-temperatures-doesnt-tell/
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] eushaun99:
Interesting article. I've also noticed that when the battery's kinda warm it charged abit faster, but I didn't know if it was placebo or not. Kinda sucks tho, that means that we don't have the 'proper' fast charging like Samsung or OnePlus as we have to quite literally warm up our pixels to get it.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] D-m-x:
Yes, seems that way. Whatever reason Google had I guess it was a good one (if it isn't by Hardware Design), maybe even had something to do with the 6P Fiasko.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Prattham:
Anyone?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
I mean nobody truly knows why. Could be faulty parts from the beginning or improper current management causing faster battery degradation. Neither Google nor Huawei have released any info so it's just guesswork at this point.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] CyberpodS2:
The one nice thing about the 6P battery issue (if you can see a bright side) is once you replaced the battery it was like a new phone again. Cost me 65 with the install and I have a great backup phone on FI.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] galaxys:
Better yet, Google gave me a new Pixel XL for my Nexus 6P RMA! :good:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] thagabe:
[MENTION=482227]galaxys[/MENTION]

Same, as I had bought the extended warranty I received a Pixel XL. Which I promptly sold to google for the Pixel 2 XL ($866 [$75 off] - $375 [Trade-in] + $0 [Free Home Mini] = ~$466 for a Pixel 2 XL)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] D-m-x:
I got the whole cash back I payed for it 600€, so I invested that in a 2 XL.

Say what you will about Google phones but the support is usually top notch.

Gesendet von meinem SHIELD Tablet K1 mit Tapatalk
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] switchy85:
Not asking for help, as I have no log of this issue at the moment, but just wanted to see if anyone else ran into this.

I had been on 2.12 for a while and decided to update when I applied the February patch. Updated the phone and then booted and flashed twrp like usual. Installed Flash 2.17 and Magisk 15.3 in twrp and rebooted. Everything seemed fine, but my camera would immediately give a "could not connect to camera" or fatal "camera error" and freeze up intil I closed the app. Tried clearing data, cache, etc and I eventually got the viewfinder to show something, but still got the error.

Tried it in safe mode and still errored out.

Re-flashed the February update thinking something happened with that. Didn't install anything (kernel or magisk) and the camera was fine. Installed flash kernel and magisk and the error was back.

Ran magisk in core only and still had the error. Uninstalled magisk entirely but kept flash kernel and still had the error. Tried flash kernel 2.16-1, 2.16, and then 2.15 without magisk. It appears that my camera will not work with any flash kernel after 2.15. Installed magisk and the camera is still fine.

Now, I know without a log this isn't useful, but I'm not sure what could be causing the issue except for the kernel, and I have no idea why. For anyone else running into this, try version 2.15 and see if everything works.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] bobbarker2:
Sounds like something on your vendor partition got messed up. That or system. Flash factory image and reflash kernel etc.

Nothing kernel related though.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
I agree with bobbarker2, I haven't had a single issue with the camera. I do really appreciate you doing a whole bunch of troubleshooting. Did you use the factory image to update or sideloaded the OTA? Also, I assume it says you are on the February update in Settings?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] switchy85:
I've only ever updated by flashing the factory image with the -w removed. I also already re-flashed the update, and that's when I discovered not installing flash kernel made the error stop. And yeah, it says I'm on the February update. My next step was going to be a factory reset, but after discovering I'm fine with version 2.15 plus everything else enabled I didn't want to go through the headache.

Was there any major change or feature that came with version 2.16?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
No, just the February security update. I don't really know what to say other than it works for me and everyone else in this thread :/
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] usadream:
I had the exact same issue with camera and 2.17 but while being on jan update. Have u tried the deuce script with the feb update? that fixed it for me, now all perfect
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] bobbarker2:
Hey [MENTION=6842057]nathanchance[/MENTION] , wondering if you had any idea what could be causing these errors:

E/20:33:49.274 SchedPolicy(19131) set_timerslack_ns write failed: Operation not permitted

And

:32:10.865 KernelUidCpuTimeReader( 1762) Delta: u=-8s305ms s=-1s159ms E/20:32:10.865 KernelUidCpuTimeReader( 1762) Current times: u=+1m44s685ms s=+23s320ms E/20:32:10.865 KernelUidCpuTimeReader( 1762) Previous times: u=+1m52s990ms s=+24s479ms E/20:32:10.865 KernelUidCpuTimeReader( 1762) Time between reads: +9m14s883ms E/20:32:10.865 KernelUidCpuTimeReader( 1762) Malformed cpu data for UID=10026!

The second error occurs on many UIDs.

I realize these aren't full logs to actually diagnose a problem if there is one, but everything runs fine so I didn't think it warranted a proper log dump. Just wanted to see if you had any idea as to what these errors mean, if they can just be ignored or if they're worth investigating more. In which case I'll be happy to provide you the proper information.

Thanks for all your great work!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
The first error comes from: https://android.googlesource.com/pl...roid-8.1.0_r14/libcutils/sched_policy.cpp#342

I'm not sure why it would be setting it off

The second one I don't think is an issue: https://android.googlesource.com/pl...id/internal/os/KernelUidCpuTimeReader.java#90

But do these happen on the stock kernel?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] 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.4.117

Small CAF patches

Latest WireGuard snapshot (0.0.20180218)

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] Az Biker:
YOU. ARE. A. BEAST!

And your title still shows 2.17 :p
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Nikos2k:
I have installed this kernel and enabled DT2W via EX kernel manager.

Very often when I take the phone out of my pocket, the screen is open (and apps have been started by random presses)

Why is this happening?

I doubt that a double tap is triggered in my pocket
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] joetheshmo:
Sweep to wake is a superior wake gesture and has almost no chance of pocket wakes, imo
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] D-m-x:
But it is. I've stopped using DT2W because of that. I've noticed that it has also something to do how you put your Phone into your Pocket (Display facing your Leg vs. not facing your Leg).
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Nikos2k:
Is there a way to increase the required intensity of the double tap?

I will try swipe to wake to see if it works without undesired wakes
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
I have no idea what that is.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] carlylemiii:
It's the ability to "lock" onto a specific LTE band, e.g., maybe you're on Sprint and want your device to stick to B41 and not let the tower choose to switch you to B25.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
I don't know how that would depend on the kernel? What error are you getting when you try?

EDIT: I just realized you aren't the person who asked the initial question but if you can provide any additional info, I'm open to it.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Az Biker:
Nathan answering questions, and fixing problems for users who didn't even ask...

Now THAT's freakin service right there :p
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] pa.pn2:
If i wanna try a different kernel is it ok to flash stock boot image first?

normally i would do a wipe of system and caches,but since twrp is not yet working properly i don't know if it's ok like i wrote...
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] sidhaarthm:
Thanks for the excellent kernel OP, I flashed it first thing after unlocking the BL last night. What surprised me most was how good the battery life is on standby! It was only the first night of ownership for me so not sure if the phone's battery is this good or its' down to the kernel, but you deserve thanks anyway :)

See attached screenshot - not a single % lost after 11hrs of standby, which also included some time on 4G and driving. Well impressed with that as I was at least expecting a couple of % loss overnight. This is with WhatsApp, Telegram, Gmail, Facebook - all running as normal.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
Update!

Linux 4.4.100 dropped, meaning it's time for another Flash update! This one has a lot of good underlying changes. Drivers for the touchscreen and battery are now built in meaning that we have full control over them. There are also some other optimizations, mostly courteous of [MENTION=5051294]frap129[/MENTION] (if you haven't checked out Electron yet, you're missing out). Nothing super major though, it's been thoroughly vetted for about a week now (I ran this while I was in Toronto and New York and had zero issues, I guarantee you won't either). 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.100

Optimizations courtesy of [MENTION=5051294]frap129[/MENTION]

Inline battery/touchscreen drivers

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] galaxys:
Touchscreen drivers is the best news for me! Thanks
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] pbsec:
nvm
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] blaze9090:
[MENTION=6842057]nathanchance[/MENTION]

What I am wondering about since my Pixel 1.gen:

Does it make any sense to use something like L-Speed app aditionally to your Kernel?

Thx in advance
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] elreydenj:
Has anyone else noticed their device does not automatically turn on wifi on their home network anymore. With WiFi off, it used to automatically turn on shortly after entering my home. All settings are checked under wifi settings.... Not linking this to the kernel here , I just can't think of a better thread to inquire about this than this one!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Are wifi and bluetooth scanning enabled?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] elreydenj:
Wifi scanning yes. Bluetooth scanning no... Do both have to be enabled?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Badger50:
Nope. Just curious. I know it won't work if it's not enabled.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
I don't know if L-Speed has EAS tuning; if not, no.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] eqbirvin:
I use l speed for only disabling scroll caching and net tweaks. I don't recommend touching the CPU or IO tweaks if using any of the pixel kernels

IDK though if it really helps
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] skinza:
Which 1 do i choose to flash the dtbo.img?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
You need to flash with fastboot to the dtbo partition.

There's a reason I'm not providing a flashable zip. Use fastboot to install the kernel like the OP tells you to.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] skinza:
I flashed electron img with twrp worked perfect

Ok will do
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] KHANrad_SIN:
What's the major differences between flash and electron? is flash closer to stock when compared to electron?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] CyberpodS2:
I've seen some new folks around the threads lately... Just wanted to drop this here as a reminder that this phone with this kernel rocks!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Juzman:
Thanks for the quick updates! Only issue I have is when removing fingerprints, flashing updates then re-adding fingerprints again I always have to reinstall my banking app because it doesn't recognise the fingerprints again (get a message failed to initiate the cipher).

Minor issue though really. :)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] davall:
You can store the kernel on an USB Stick and access the stick via twrp OTG. Then you don't have to touch your security
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Prattham:
So twrp can read otg without decryption?

But it will ask for password at the start up screen so how to go about that
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] davall:
Easy as 1-2-3 ;)

Press Cancel when it asks for password -> press keep read only -> mount -> choose storage and voila!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] State.of.mind:
Have any of you had any issues with your phone rebooting everytime a USB is inserted?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] v12xke:
Some of you out there probably already know this because it's been posted around, but you can also just put kernel and magisk zipfiles in /data and not need to touch security either. Drop them there beforehand, reboot to recovery, hit cancel to bypass entering your password, hit install, and then navigate to the data folder. Files there are not encrypted so you can just queue them up and flash as usual. This should work with monthly security updates as well.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] 12Fully:
Does the dtbo have to be removed prior to flashing if on a custom ROM?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] p70shooter:
No not for this kernel
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] bigknowz:
[TAIMEN] [8.1.0] [4.4.116] [CLANG 6.0] Flash Kernel 2.17

Early adopter 2.18, guess OP not updated yet, thanks [MENTION=6842057]nathanchance[/MENTION].
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
Hmm pretty sure I updated it after [MENTION=4670411]Az Biker[/MENTION] told me about it, guess not :silly: it's just the title that is off, rest of the OP is updated. You're welcome :)
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] 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.4.118

Security patches and bug fixes from latest CAF tag (LA.UM.6.4.r1-06900-8x98.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] sirxdroid:
[MENTION=6842057]nathanchance[/MENTION] Thank you for your hard work and frequent updates.

May I ask for a favor please: for the md5 files, could you strip the path from the file so that it can be easily validated by a download script? Thank you.

c73c8e11afba5ee42e7f108054fee40a /home/nathan/web/downloads/kernels/taimen/8.1.0/stable/FlashKernel-Taimen-v2.19.zip
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
Sure, you can use the cut utility in the meantime though, which is all I am going to do.

cut -d ' ' -f 1
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] sirxdroid:
What I had in mind was something like:

c73c8e11afba5ee42e7f108054fee40a FlashKernel-Taimen-v2.19.zip

So you can simply do md5sum -c FlashKernel-Taimen-v2.19.zip.md5
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
Sure, I'll see what I can do.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] E30Nova:
Why can't I get fingerprints to work?

I flashed 2.16 and 2.16.1 no problem, but anything newer and I can't even add fingerprints. When I try to add them it either does nothing when I put my finger on the sensor or says sensor is dirty.

Gotta be something I'm doing wrong.

I even ran flash-all and installed 2.16.1 again and had no problems. Flashed 2.18 and can't add fingerprints again. :(
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dredq:
Download Settings and Stock. zip

https://drive.google.com/file/d/1aXZ24ZsByr3GcPZJmAvUrfm1n5E7DsPU/view?usp=sharing

Flash in TWRP.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] E30Nova:
Thanks.

Flashed it but still can't add fingerprints. I can't even get past the "touch fingerprint sensor" screen.

I guess I'll try the newly released 2.19.

Nope, still nothing.

How do I get a log? I doubt it will do much if the sensor isn't even recognizing anything, but maybe it will help?