yashsingh1/xdaforums huggingface dataset:
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] bobbarker2:
I'd love to see some quantitative data for this claim and what settings you are tuning.

"...for some dumb reason."

<sarcasm>

Yeah.. I'm sure during thousands of hours of development, by dozens of smarter-than-us Google engineers, battery optimization via kernel tunables just slipped their minds.

It's not like battery life isn't a big selling point on devices.

</sarcasm>

I'm sure there are some tunables that can show minor gains in performance and/or battery life - I'm not saying Google has god-like omniscience. But for some reason I just can't see Google (or kernel devs) leaving easy to change settings on stock "for some dumb reason".

But I'm open-minded, please prove me wrong.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Az Biker:
The whole battery life thing is like driving slow to save money on a long trip.

I spent much of my first few years chasing MAX battery life by any means possible; black backgrounds, fewer icons, massive greenify, lower cpu freqs, lower gpu freqs, this kernel, that kernel, hunting down wakelocks with malice...

Then I figured it out. Every hour or two of every day of my life I'm close enough to an outlet where I can just recharge my device. Worst case scenario, I have an ext power source for extended time away from modern electricity.

Bottom line; driving slow to save 5 mpg really isn't worth the effort; (5 mpg on a 30 mpg vehicle with a 12 gal tank equals 60 extra miles which saves a total of TWO gallons or $6 a tank)... I'd rather burn the $6 and get their much sooner.

Same with taking a great kernel and thinking that you're going to tweak it enough to save 1 hour batt life; might work, but it isn't worth the effort, IMHO.

Enjoy the device fully, use the outlets more often :p

Just one guy's opinion.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] clothednblack:
Well, I do recall when it was up to the user to achieve the goals of all day battery life, this was about 3 years ago, I was part of the "Team Kernelizers". Here is a blast from the past thread if you want to see some old school stuff that we were all testing and modifying. Let's not forget those useful battery saving apps, I had some awesome battery life spans for those days lol.

https://xdaforums.com/showthread.php?t=2032956
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] cd993:
THIS.

I totally agree with you and relate to being of the nature of constantly evaluating it's performance and in search of the next 'best thing' I could do to improve it. But of recent, I just flash updates but not relentlessly and just spend plenty of time of pure enjoying it. If I think of when my phone usually dies, it's usually on a Saturday where I've taken it off charge early Friday AM for work, used it throughout the day in a variety of ways and enjoy a Friday night/Saturday day with it too where needed - all on my same charge.

It serves me very well :)

---------- Post added at 08:38 PM ---------- Previous post was at 08:36 PM ----------

And agreed, there is still the itch to mod what we have to make it the best it can be :p
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Alxoom33:
Ahmm Lol!

Sure[emoji16]

---------- Post added at 05:43 PM ---------- Previous post was at 05:35 PM ----------

I keep my tuning to OC with ExKM and leaving everything stock. The Taimen battery is great and lasts all day.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] arvylas:
I don't want to be the negative one but in my country 2 gallons are like 16$+. Lol.

BTW I do agree with you that's why my fuel consumption is a bit high I suppose.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] xFirefly93:
My attached zip file contains a Magisk executable script that lowers battery consumption to between 6,46-8,86%/per hour.

Keeping everything untouched would raise that number to being around 12-15%/per hour (based on cellular and/or wifi connection strenght, just for taking a few examples on stuffs that impacts the whole picture of the sole reason to real world battery draining factors).

If you think my words are of a false claim, see my attached screenshots and judge for yourself. And for me, battery life is important - even on a (high end) smartphone with outstanding performance out of the box.

Not everyone is keeping a charger with them in their pocket every day, specially when being in a hurry day after day and being close to non stop on the run, for certain specific reasons.

I had been times, since I bought my Pixel 2, that I have forgotten to bring with me a charger to maybe a friend during the holidays and have been forced to put away my phone because it has been low of battery, or not being fully charged before I had to leave home and my apartment.

Guys like me, that I described here above, needs that little extra that boosts battery life as far as possible (without sacrificing performance or turning the phone into something that kicks it back to the same level as the weak, outdated Qualcomm SOC:s that was released back in 2011-2012).

If you get my point from a general perspective?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] def-g:
Everything is subjective. But if you can get through an entire day. Charge going to bed. What more you need. Unless you're doing a ransom drop. That's different
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Alxoom33:
I use both FUKM Pro and EXKM Pro. Both purchased a while back.

Each can do different things very well.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] franciscofranco:
To not go offtopic, the last release from nathan is lit. Eta for red theme & compilation with GCC?

We're best friends again.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Alxoom33:
Thanks Farancisco, that means a lot to me. [emoji3]
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] praveen6585:
Sort of related to your assumption that thousands of smart engineers working on years old code would necessarily be working on improving things -

http://tonsky.me/blog/disenchantment/

I pretty much agree to what's written in the article as the examples mentioned there are quite logical.. makes for a an interesting read and would love to hear what the dev view on that.. this is why single devs like [MENTION=6842057]nathanchance[/MENTION] , [MENTION=3292224]franciscofranco[/MENTION] or even [MENTION=8852292]xFirefly93[/MENTION] can work magic where the Google engineers 'failed'.. sometimes basic features might be simply overlooked by the engineers.. not that they can't do it.. they simply don't want to.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] bobbarker2:
Sorry if this is too OT [MENTION=6842057]nathanchance[/MENTION], I know you let some OT but if this is too much just say so :)

[MENTION=8852292]xFirefly93[/MENTION] I don't think that was Magisk flashable but script can be dropped in Magisk nontheless. Looking through the script this is a bit more than your average tweak script.. block level tuning, remounting, schedtune params, wakelocks, vm stuff, lots of logging disabled/lowered.. I'm not against experimentation (otherwise why would I be on XDA?) but I don't take 1 persons (or even a couple) experience comparing 1 day to another as quantitative data.

Also I don't understand some of these tweaks.

You are disabling perfomanced

-lowering gpu_min (better finish a task faster at higher speed or take longer at lowerer speed? Also will that even work if the kernel isnt built for it?),

-blocking some pretty important wakelocks - wlan, netmgr_wl, qcom_rx_wakelock, wlan_wow_wl,IPA_WS,sensor_ind,

-lowered max brightness

-I have no idea what performance/battery impact disabling dir-notify-enable has, nor a few other /sys/kernel things.

-Why enable schedtune boosting - doesn't that defeat the purpose of trying to save battery?

-You enable iowait_boost on the cpu scheduler but from what i recall it is mainly beneficial on x86 systems that can enter p-state.. could be wrong

Hey I give you props for your work and contributions, I'm sure theres things to be learned and experimenting is the first step to doing so. Like I said before, none of the engineers that work at Google or Qualcomm or CAF or in the Linux community are all-knowing coding gods - so there's bound to be ways to improve things. With that said I find it hard to swallow that this script basically cut your battery consumption in half.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] pa.pn2:
Guys which logs are required for the dev if i have random reboots?

I have syslog installed.is it ok just to tick kernel log and grab it after the next reboot?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] bobbarker2:
Your/the articles argument is flawed and doesn't work in the real world. Seems like he's arguing for the "tear it down and start over when we can do things better than before" and a lot of nostalgic wishing. All of mankind's knowledge is standing on the shoulder's of those who came before us. Linus released Linux in 1991. Could it be rebuilt from scratch with the lessons learned and tools available now? Of course. Does anyone know how long that will take or how much time it will cost? It simply isn''t feasible. He argues against "the whole webpage/SQL database" structure and that there's something wrong with the fact that WIndows 95 was 30mb and Windows 10 is 4GB.. This is an idealistic, dreamland, "if I ruled the world" opinion essay, its not adding creditability to.. anything.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] D-m-x:
I installed 3.10 yesterday evening. With this release I had a random reboot once in a loooong time. While using Maps the screen just froze and the phone rebooted. Ramoops is attached.

I see the poster above me also had a random reboot? Details are on the first post how to get Logs.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] pa.pn2:
I get this reboot while opening chrome.screen freezes and phone reboots
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] praveen6585:
I am not saying we need to build things from scratch. I am stating that things are not as efficient as we imagine it to be and there are a lot of compromises being made when changes are being built on old (maybe inefficient?) code. Reliance is more on pushing the hardware boundaries that optimising software. I'm trying to justify the work being done by single devs as Google devs might not be interested to give too much time to minor things.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] D-m-x:
Get a ramoops, it should help the Dev to track down what's happening.

I reproduced my steps, took the Logs and went back to 3.09 for now.

Gesendet von meinem Pixel 2 XL mit Tapatalk
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] xFirefly93:
If you doesn't understand what anyone of my tweaks does, then you should perhaps learn a lesson by google em' all up. Just like anyone else have been "forced" to do in the beginning, when they was a newbie and still walked & LOL:ed on the learning curve.

I am not going to write down an explanation to why I have choosen to tweak my phone this way, it would be longer than the whole Bible itself and being so far off topic, in a thread that should be dedicated to Nathans own kernel in the first place, isn't my piece of cake.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
I don't mind.

/sys/fs/pstore/console-ramoops

If it's reproducible for you, can you walk back through the versions and let me know when it starts?

This bug has been here for a long time, someone (might have been you actually) reported this with 2.58 I believe. I haven't made changes to this code path in a long time so something not obvious got added.

I haven't been able to reproduce it myself unfortunately. I'll keep looking but until I figure out when exactly it started, it's going to be hard for me to fix it.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] bobbarker2:
Yeah of course I get what you're saying. Check out chrome://gpu and look at all the workarounds applied. Workarounds may or may not be as efficient as actually fixing whatever is broken, but we live in a world with deadlines for deliverables, project timelines, etc. Like I said before, all human knowledge is gained from standing on the contributions of those who came before us. We build on existing code because that is what we have to work with, for better or worse.

To not use this "old (maybe inefficient?) code" is the same as saying rebuild from scratch.

---------- Post added at 09:51 AM ---------- Previous post was at 09:40 AM ----------

It's pretty obvious what I meant by "dont understand" was "I don't know why you did these things - care to explain?" I know what they do but I don't know your reason for the changes or how they will increase battery life w/o sacrificing performance or causing behind-the-scenes problems. Maybe I didn't word the "don't understand" verbosely enough, but its clear from what I point out that I'm asking for an explaination for the mods you made.

Longer than the bible? Come on,, you are changing a dozen or so known values in a well-documented open-source kernel.

In regards to OT, nathan said its okay but I'm already losing interest and think this is a pointless venture on my part. It's funny, any time I've asked a scripter "why did you change A to B?" I get a similar response as yours... "go google it".

it really isn't that hard to say "I disabled performanced because it causes X and therefore Y benefited" I'd really love to know why you think disabling so many important wakelocks is beneficial.. you're disabling qcom_rx_wakelock - good luck responding to ARP requests!.

Anyway that's enough of this, best of luck in all your tweaking endeavors.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] pa.pn2:
For me i think it started with 3.08 version i think.but I'm not 100 percent sure
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] D-m-x:
Yes, I imagine it's hard to track down. Might have been me way back with 2.58, but this was different. In that case the Phone froze and I had to reboot it manually via Power Button.

This time (today) the Phone froze for 2-3 seconds and rebooted itself. I could only reproduce it once when using Maps (might have been a heavier load on the System).

This issue I had today definitely started with 3.10 for me because I have been using 3.09 all week till yesterday evening and used the Phone quite a lot with Navigation and listening to Music etc. Installed 3.10 yesterday before I went to bed and today in the morning I had the Random Reboot when using Maps.

I don't know if the Log did tell you something?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
Would you (and anyone else having these weird reboots) run this test kernel for me? Thanks!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] pa.pn2:
Sure.will flash and report back later
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] D-m-x:
Will do the same.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dethknite:
I wanted to report a recent issue with the latest 3.10 build and Android Auto. After flashing my car would no longer recognize my device for "projection". It was fine running up to the 3.09 b2 build. I tried rebooting several times and also tried shutting off the car and trying again a half hour later. Flashed 3.09 and it is working again. Not sure what may have caused this. If you need logs I can reflash 3.10 and try to capture something.

*Update: I am going to try your test build later when I am leaving work "flashkernel-wahoo-gde8b34564896".
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] pa.pn2:
Till now no reboot for me

Was browsing a lot beside the pool
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] dethknite:
The test build works with Android Auto.. cheers
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] KHold01:
Had this issue as well. Along with several other issues. I thought my phone was dying. Wiped in twrp and all is well.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] bobbarker2:
It was the pool not the kernel. Swimming pools are known to mess with Linux..

---------- Post added at 04:47 AM ---------- Previous post was at 04:46 AM ----------

Any game in particular? Preferably one that's free off the store I can download and try out. I've never had any memory management problems.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] KHold01:
It was my whole phone not one particular game or app. Don't think it was the kernel. Just commenting that I was having issues and a wipe fixed her right up.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] joetheshmo:
Wipe as in a clean flash or ???
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] KHold01:
Twrp
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] joetheshmo:
What did you wipe in twrp? Factory reset or what
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] KHold01:
Data, cache, davlik. Just the regular wipe and swipe
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Tornado15550:
Try "Ingress" from the Play store. It's free. There were two things that would happen -

When you lock the phone, and turn the screen on in say about 30 seconds to a minute there would be a black screen instead of the game.

The second issue is if you leave the app and go on Chrome and browse websites for a bit (1-2 minutes at most) ingress will get closed by the system almost due to low memory.

This is just one example. There were other games exhibiting a similar issue.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] pa.pn2:
Had another freeze including reboot

Log attached
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
What were you doing when it happened?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] pa.pn2:
I was browsing in chrome.nothing more.any useful information in the log?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
It's the same crash that's been happening for a while (first reported on 2.58 but I doubt that's when the commit that caused it got introduced).

Can you try this build for me? https://transfer.sh/D591F/flashkernel-wahoo-gfcb2ea382cfe.zip
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] pa.pn2:
Sure.will flash now but can report Tomorrow.im on holiday and my flight back to Europe will be at 2.45
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] xFirefly93:
What is changed or reverted in this nightly/test build, shortly explained?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] jlee08517:
my phone rebooted yesterday on 3.10 while using waze and gpogle maps. Of course I couldn't get logs since I was driving...

But I'll try to grab next time it happens.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
Odds are it is the exact same crash. I guess I'll need to go out driving since it seems like Maps causes this crash fairly consistently.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] jamiejames:
I'm a truck driver and use Google Maps frequently on a daily basis. Never had this issue. I even leave it running while I'm using Google Assistant to run other apps. Never a problem.

I'm not saying it's not happening it's just my personal experience. I'll mess with it a little more and see if I can get it to do it. I'll grab a log.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] xFirefly93:
I am wondering what kind of apps people have installed on their phones when either the kernel, or the system, panics and causes a reboot..
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
The only reason I am not convinced that it isn't some mod that people have installed is someone close to me is having issues too and they wouldn't install anything janky (although maybe not lol).

I just used Maps for a good thirty minutes without issues, I'll have to flip around in Chrome to see if I can get it to trigger there.

To anyone who has been having these reboots somewhat consistently, the first reported crash of this nature happened on 2.58. I'm not convinced that this version was the cause so I'd appreciate if people could walk back from 2.57 down to see which version introduced it. I don't think playing whack-a-mole with builds is going to be productive at this point.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Alxoom33:
Nate, have you seen any issues with your kernel with bt dropps. Since the September patch I have had numerous bt drops with Both the EX and your kernel. Usually happens in my car while connected to the phone on a music app. Haven't tested the stock kernel, though.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] KHold01:
I've had this issue as well. I always thought it was my vehicle because it was happening before I had the taimen
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
No, I use Bluetooth all the time and have had no issues.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] clothednblack:
I use Bluetooth daily (headset and stereo in my vehicle) Pandora through the stereo and talking through my headset, never has either one dropped off or missed a beat. Stock rom and currently on latest flash, but have been on all the previous flash versions as well, no issues with any Bluetooth devices.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] arvylas:
I'm using bt everyday in my car connected to 2 devices simultaneously torque+ music streaming and never had a problem.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] pa.pn2:
Till now no reboots for me with latest testkernel [MENTION=220065]nathan[/MENTION]
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
Hmm interesting, keep using it and let me know if anything crops up.

If it does, just go back to 2.57, 2.56, 2.55, etc and let me know when it stops happening.

Thank you for all the testing, I appreciate it!
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Semtronix:
And then he drops the bomb that he's not actually changing anything in his "test" kernel, you guys just say yup that fixed it #kernelconspiracy
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] xFirefly93:
I died and slowly LOL:ed when I saw this comment..
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] pa.pn2:
Lol.maybe.who knows
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
To be entirely fair, I have considered that :silly:

but the logs prove it's real so I have to change something lol.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] D-m-x:
For now I haven't had a reboot either with the latest test Kernel and I used Navigation, Bluetooth etc. pretty heavily today.
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] nathanchance:
Just for science, how does this build fair? https://transfer.sh/b4KrQ/flashkernel-wahoo-g5c12d0ac2f63.zip
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] Dielahn:
For the iytbp there is an updated apk and settings.sh file and installer. Just get all three and follow same install instructions as before and it will work fine
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] RampageRR:
Installed this yesterday afternoon and everything seems to be working perfectly. Does anyone know if vibration strength is adjustable in this kernel?
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] GareyZheng:
Good job
[Google Pixel 2 XL ROMs, Kernels, Recoveries, & Oth] :
Do you keep your settings/set up on this kernel near stock? I obviously love your kernels but it seems the stock Google kernel is performing incredibly and helping with great battery so I'm debating just using Google kernel... You stay near stock or do you tweak a lot of the values? Hopefully that makes sense