yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Android Development] koekoek91:
Awake screen off = 95% of the time.

Thats alot.

The biggest (probably only big issue) that keeps your phone awake is wlan_wake.

This has something to do with your connection and/or wifi.

I would try a day without running wifi, and use mobile data instead if you can.

But for better help on this I would go and post on this thread: https://xdaforums.com/android/general/guide-extreme-battery-life-t3095884

If you ask for help on that thread:

- Charge your phone to 100%

- Unplug from charger

- Leave your phone idle for atleast 6-8 hours (DON'T touch your phone during that period)

- Dump an idle log from BBS app to your phone and share it on the thread.

Also post it here on Zach's thread if you want and then ill try compare it to my phone ;)
[Xperia Z5 Android Development] whalesplaho:
Okay i ll do as yhu say... Im on tha move now!

I ll try charge soon n leave tha phone for 6-8hours like yhu said and den post a log from betterbatterystats app!!

Appreciate buddy!!!
[Xperia Z5 Android Development] koekoek91:
[MENTION=3037651]zacharias.maladroit[/MENTION]

Hey,

Had a few random reboots on 3.14.2

Yesterday when I was listening to music through Sony Music App (thought this was stable), but apparently not.

And today, opened KA-Mod.. wanted to have a look at the frequency table and then it rebooted.

Added logs (from today).

Cheers
[Xperia Z5 Android Development] korom42:
[MENTION=3037651]zacharias.maladroit[/MENTION]

First thanks man for keeping the development on this amazing kernel

-I noticed on all nougat kernels the first big core is always clocked on max frequency whenever screen is on even without using the phone .. this waste of energy means heat and battery drain that's no big deal especially for SP810

-Hotplug options on 3.14.3 are cool but it seems to be unstable I'd 2-3 of random reboots a day while using music app , I'd also crashes with YouTube app

-The v3.10.4 is the most stable for me.. smooth and great battery with naptime (0% idle drain) I'm sticking with it for now.
[Xperia Z5 Android Development] whalesplaho:
[MENTION=7328701]koekoek91[/MENTION] i noticed that tha wlan was awake last nite while charging so i disable it.... tha battery only drops from 100% to 99%!

i dnt know what is turning on tha wlan.

---------- Post added at 10:37 AM ---------- Previous post was at 10:06 AM ----------

buddy there is already 3.14.3 on tha kernel folder.... dnt know what it contains!~

i cant try cos i used poc to integrated new twrp, ta.img (of my phone) to last kernel he did (3.14.2)! he made specially for me based on request (no busybox, no twrp & no drm fix).... i hope [MENTION=3037651]zacharias.maladroit[/MENTION] can still do for me!
[Xperia Z5 Android Development] koekoek91:
I was going to compare your screenshots to my results but then this morning I rebooted my phone so BBS stats where all gone.

But what I did see (can't show it though sorry)...

wlan_wake was at the top of kernel wakelocks for me too.

I had spent 12 hours on the battery cycle and I saw about 4hrs awake time (screen off).

Thanks for notifying me about 3.14.3, I didn't know about it yet :p :good:

Edit: I just see there's also a 3.14.4 in the folder.

I'll try both of them for a few days.
[Xperia Z5 Android Development] whalesplaho:
What is waking up wlan.... Initially tha battery doesnt gets drain dis much especially without mobile data turned on. Please check buddy and also i saw dis; https://xdaforums.com/crossdevice-dev/sony/guide-nougat-battery-drain-fix-t3575511
[Xperia Z5 Android Development] zacharias.maladroit:
Thanks for the feedback,

please try out 3.14.4,

I had uploaded it for Z5 compact but due to lack of meaningful feedback I had postponed release for the other devices

https://drive.google.com/open?id=0BykGGWB96CBQNk5xaEpRWG96aU0 Z5_SK_Perm_v376_III.3_14_4_ctl_X_sum.zip

https://drive.google.com/open?id=0BykGGWB96CBQVnBXcXhMWVAyNHM Z5-DSDS_SK_Perm_v376_III.3_14_4_ctl_X_sum_dual.zip
[Xperia Z5 Android Development] koekoek91:
I dont know whats up with wlan_wake.

I just noticed it for the first time when you posted your screenshots.

I'd just experiment with mobile data and wifi and see what happens.

Also yes I saw the post you linked.

Using that script right now.
[Xperia Z5 Android Development] zacharias.maladroit:
you know, the kernel has in-built wakelock blocker for wlan ;)

give it a try in case it's bad :D
[Xperia Z5 Android Development] koekoek91:
Yeah I know man.

I haven't messed with it yet because you said it ''could'' mess things up.

And i kind of forgot about the wakelock blocker... I would have adviced him to try it if I remembered.

But sure, ill experiment with it :laugh:

idle drain is already pretty good for me, even with the wlan_wake kernel wakelocks... so thats why I haven't messed with it yet.

Thanks for helping me remember the wakelock blocker is there :p
[Xperia Z5 Android Development] whalesplaho:
I didnt think of tha wakelock blocker too... Just didnt wanna messed up with things also since i dnt know bout it. I ll check tha deep sleep dis night and see if tha wlan awakes too den ll try tha wakelock blocker.....

---------- Post added at 03:05 PM ---------- Previous post was at 03:04 PM ----------

Lemme know yur reports on yur tha script tho im trying too to see and maybe [MENTION=3037651]zacharias.maladroit[/MENTION] might av a look too!

---------- Post added at 03:10 PM ---------- Previous post was at 03:05 PM ----------

[/COLOR [MENTION=3037651]zacharias.maladroit[/MENTION] dnt know if yhu can help with v3.14.4 without drm fix, busybox and twrp please.....

Thanks always....
[Xperia Z5 Android Development] zacharias.maladroit:
https://drive.google.com/open?id=0BykGGWB96CBQR3lVdFJyOG1adHc Z5_SK_Perm_v376_III.3_15_ctl_X_sum_cpuquiet.zip

https://drive.google.com/open?id=0BykGGWB96CBQOFFPSVlnMnNOOG8 Z5-DSDS_SK_Perm_v376_III.3_15_ctl_X_sum_dual_cpuquiet.zip

Yo dawg, I heard you like hotplug, so I removed too much hotplug from hotplug and went for cpuquiet hotplug :p

That should be more stable, let's figure out if those additional instabilities were due to intelliplug (+ bricked, it was a multi-hotplug setup after all)

Default governor is "runnable", that should reduce the occasional lags or slow downs,

if you need more multi-core performance switch to "rqbalance", but with that the experience is

less consistent

I haven't boot-tested the kernel, currently on LineageOS

Thanks
[Xperia Z5 Android Development] _LLJY:
So how's lineage?
[Xperia Z5 Android Development] zacharias.maladroit:
what device is that from ?

LineageOS is rather weak in terms of battery runtime,

pretty heavy drain compared to Stock with every little bit of reading or doing.

But then again it also wasn't that great on AOSP,

not sure what it is that keeps the phone or parts of the SoC active (or other hardware ?)

Snapdragon 810 is really crap (

or its configuration/implementation and software

) compared to e.g. the Snapdragon 800,

the battery on my Note 3 is a bit bigger but not that much bigger that it would explain why the battery drain is that much higher on the Z5

Seems like we really need a great wakelock blocker of some sort

https://play.google.com/store/apps/details?id=cn.wq.myandroidtools&hl=en doesn't seem to work on Android 7.0 or 7.1 according to feedback though,

haven't tried it out yet ...
[Xperia Z5 Android Development] whalesplaho:
was thinking of moving on to LineageOS..... guess i ll stick to stock den Zack!
[Xperia Z5 Android Development] zacharias.maladroit:
give it a try,

it's not that bad :D

It's only for my use-case (lots of listening to music, then reading books on Amazon Kindle, browsing and reading on the web, etc.)

It's a new OS and needs some in-depth tweaking
[Xperia Z5 Android Development] koekoek91:
Snapdragon 810 is not that crap.

On Marshmallow with some tweaking to the interactive governor, you can pretty easily get standard 5-8hrs of SOT on moderate to mid-heavy usage.

I really have no clue either why battery life on N sucks so much (compared to MarshMallow).

It gets me through the day on Nougat, so looking at it that way I have nothing to complain.. but battery life is supposed to be better on Nougat but so far no no :rolleyes:

I am using that myandroidtools app at the moment to kill some services ( I think it works, but don't expect any wonders).

Last night I applied the code from [MENTION=6126659]PDesire[/MENTION] his post, charged my phone to 100% and went to school this morning with a fully charged device.

Doing some normal usage like browsing, XDA Labs, Whatsapp, Email etc (no heavy stuff like gaming or watching videos) to see if the code would do anything.

So far im thinking not really... It feels like active drain has become slightly less, but it could be placebo too.

2hrs 24mins and 59% left at the moment.... not that bad, but compared to marshmallow it still sucks big time.

I can probably make it to 5 hours with this, but I could already make it to 4 - 4,5 hours without PDesire's code, so I don't know if it has changed anything... maybe slightly.

Will post my final result (if I drain my phone enough before the end of the day) tonight on [MENTION=6126659]PDesire[/MENTION] 's thread.
[Xperia Z5 Android Development] zacharias.maladroit:
IMHO (in my humble opinion) not really,

perhaps there's a bit less VM overhead, thus less cpu load

but there wasn't much to begin with

There's something else,

same with Marshmallow and Sony's broken DRM implementation,

before that I tried out virtually all kernel-side (and lots of ROM-side) changes,

wakelocks, high idle load, etc.

but it didn't make that much of a change (practically none).

There's supposedly high battery drain from perfd (the daemon that collects the battery and usage stats) with 372 but that is supposed to be fixed with 376 and 378,

but the battery is still abysmal compared to Marshmallow.

Also: LineageOS or AOSP is supposed to achieve good or great battery (on e.g. the Note 3 it's better than Stock or ported Stock ROMs)

LineageOS on the Z5 is as fast as it can get,

but the battery consumption is way too high ...

dunno
[Xperia Z5 Android Development] koekoek91:
Yep...

Its not the CPU.

Im often watching CPU behaviour with DevCheck widget when im tweaking my governor tunables in Kernel Adiutor.

But there's just not much to tune any further because the CPU behaves fine (IMO) if tweaked right.

On MarshMallow tweaking the CPU improved battery life alot, but on Nougat, like you say... there must be something else draining the battery.

Only thing we can do I guess is hope it will be improved in future updates and wait for xposed to hopefully bring other opportunities .
[Xperia Z5 Android Development] _LLJY:
I got my stats from the XZ, the 820 is extremely power efficient, even though it's not that optimized... Yet.

The 810 isn't crap either, CPU is more efficient at doing tasks compared to the 820, CPU on 810 is also much faster. Ugh, the 820 is weird

Edit: EAS makes a big difference on the 820
[Xperia Z5 Android Development] zacharias.maladroit:
explain and elaborate those statements, please

In theory it might be better but in practice it sucks,

of course it is much faster if it uses way more battery, it sort of has to - otherwise it's even more of a fail :(
[Xperia Z5 Android Development] koekoek91:
Something weird just happened on my phone which I haven't seen before lol.

I wanted to have a look at frequency table in KA-Mod and got a random reboot.

Before the reboot I had 40% battery left (absolutely sure about this)

And now after reboot it has dropped to 28%:silly:
[Xperia Z5 Android Development] whalesplaho:
Please don't ignore my msg buddy.... Im counting on yhu n SK is my daily kernel!

Thanks... I ll try give LineageOS a trial.
[Xperia Z5 Android Development] koekoek91:
[MENTION=3037651]zacharias.maladroit[/MENTION]

There is a problem with latest 3.15kernel..

After flashing it, my external SD card wasn't recognized anymore.

Even in TWRP it showed External SD: 0MB.

So I downloaded 3.14.4 to my internal storage and flashed it, and now my SD Card is back.

Screwed something up? :p
[Xperia Z5 Android Development] _LLJY:
At 100% load the 820 is faster, but in daily bursty loads the 810 is a lot faster.

And the 810's cpus don't aren't even loaded most of the time(big cores are always idle), the 820 is always buzzing around.
[Xperia Z5 Android Development] zacharias.maladroit:
WORKSFORME,

flash again,

microSD access worked fine, etc.

only the sound AMP output needed adjustment, as usual

https://drive.google.com/open?id=0BykGGWB96CBQWFNtREJkVFg1UTQ Z5_SK_Perm_v376_III.3_15_2_ctl_X_sum_align.zip

https://drive.google.com/open?id=0BykGGWB96CBQRG9vUnhDbnF6UHc Z5-DSDS_SK_Perm_v376_III.3_15_2_ctl_X_sum_dual_align.zip

For those still running into stability issues with Sony Music app,

that kernel has the alignment forced, no unaligned accesses are allowed,

not sure why it's even throwing those issues/errors in the first place,

hopefully this makes it more stable
[Xperia Z5 Android Development] koekoek91:
Oh then I apologize.

I thought MicroSD problem definetly was a kernel problem.

I went ahead and just flashed Z5_SK_Perm_v376_III.3_15_2_ctl_X_sum_align.zip

No problems with this so far.

I can try to flash previous version again to see if the problem with MicroSD was just a rare issue or persists.
[Xperia Z5 Android Development] zacharias.maladroit:
ugh - still seems to happen,

also when using Neutron Player it also reboots :silly:
[Xperia Z5 Android Development] whalesplaho:
Buh never had reboots while playing music.... What could have happened?

Flashed latest kernel n no more cpu hotplug except cpuquiet.. Whats tha differs betw hotplug and quiet?

And [MENTION=3037651]zacharias.maladroit[/MENTION] bo reply to my pm... I know its quite annoying buh i cant change my kernel dats tha prob!
[Xperia Z5 Android Development] koekoek91:
It seems very random.

After flashing this kernel I put my phone on the table screen off and a minute later it rebooted.

But listening music since about an hour after that without issues (so far) using poweramp now.

I'll check later Sony music app but I like poweramp too.

Dont know if theres difference in power consumption? Haven't used poweramp that long yet.

On a side note: what im noticing so far is CPU behaviour seems more erratic on this kernel.

Cores going on and offline constantly during active usage (little cores seem more offline but big cores are used more).

Not sure how this will play out for battery life, but we'll see.
[Xperia Z5 Android Development] zacharias.maladroit:
Bro, don't push it,

I'm not going to build countless kernels just for the heck of it (and if it's known to be broken)

e.g. in this instance I left out Z4/Z3+ since there's not much feedback or testing coming from them ...

cpuquiet is more consistent and stable, one reboot reason was removed by switching to cpuquiet ...
[Xperia Z5 Android Development] zacharias.maladroit:
PowerAMP seems to use more power than Neutron,

yeah, that's probably due to latest cpuquiet changes

anyway this will have to wait, need to focus on stability first,

can't do several things at the same time,

I also need to focus on other things than kernel
[Xperia Z5 Android Development] koekoek91:
Sure ;)

One thing at a time thats probably best.

Just reporting it :)

I'll try out Neutron too.
[Xperia Z5 Android Development] whalesplaho:
I understand brov... Didnt mean to!

Please dnt think of stopping cos SK keeps moi Z5 going.. Okay guess cpuquiet is better of den. Thanks always man!

Update: if yhu can update twrp to 3.1.0 it woud be nice.... Just saying tho!
[Xperia Z5 Android Development] zacharias.maladroit:
I'd like to stick to 3.0.2 for now,

most likely tobias.waldvogel will update it in one of his repack tool ramdisk bumps

Also: never change a working system ,

there were e.g. issues when updating to never TWRP version on the Kindle HDX 7 , so I want to avoid that - also I'm short on time
[Xperia Z5 Android Development] Hiku:
Then why don't you start from zero? Kernel copyleft is highly tested, you don't need to fix it at all. I got device what doesn't boot with even CAF commits from LA.BF64 branch.
[Xperia Z5 Android Development] zacharias.maladroit:
did several times

each result was a non-booting device :D

Sony needs to get their act together with their crappy Stock Kernel + Stock ROM and in-built MHL + proprietary external modules,

LineageOS or AOSP is wayyyy less high maintenance in that regard
[Xperia Z5 Android Development] whalesplaho:
Guess cos yhu need to unlock bootloader and some stuff before yhu can tweak tha fone just like HTC... Unlike Sammy dah required less and sony gat one of tha best stock rom!!!

Dey just tryna be secured in their ways.
[Xperia Z5 Android Development] zacharias.maladroit:
The following kernel is working stable since several hours for me with either Sony Music App or Neutron Music Player App:

https://drive.google.com/open?id=0BykGGWB96CBQSlVuX0RMNXh1Tmc Z5_SK_Perm_v376_III.3_16_2_ctl_X_sum.zip

https://drive.google.com/open?id=0BykGGWB96CBQLVBOSTFtSkRDWEU Z5-DSDS_SK_Perm_v376_III.3_16_2_ctl_X_sum_dual.zip

please give it a try
[Xperia Z5 Android Development] zacharias.maladroit:
The following one might be more stable, there was a random reboot while idle with the previous one:

https://drive.google.com/open?id=0BykGGWB96CBQaXF3WVBrakQ5VVE Z5_SK_Perm_v376_III.3_16_4_ctl_X_sum.zip

https://drive.google.com/open?id=0BykGGWB96CBQdUNSS2QwWFMyYUE Z5-DSDS_SK_Perm_v376_III.3_16_4_ctl_X_sum_dual.zip
[Xperia Z5 Android Development] crisout:
Hi [MENTION=3037651]zacharias.maladroit[/MENTION], I'm really thankfull with your work and i'd like to help with the development, but I don't know how to do a proper feedback or what do you need, do you have a link or something about it?
[Xperia Z5 Android Development] koekoek91:
Thanks...

Was having several reboots on 3_16_2 :p

Well, you can just generally share your experience with the kernels he uploads that you flash.

Also when you're having reboots, you can save and share logs from this folder by navigating to it in a root browser: sys ---> fs ---> pstore.

Maybe [MENTION=3037651]zacharias.maladroit[/MENTION] will give you more options, but these are the ones I know about and that I use to provide feedback.

If I can do more, i'd also like to know what we can do more to help :D
[Xperia Z5 Android Development] whalesplaho:
[MENTION=3037651]zacharias.maladroit[/MENTION] i have freezes and i ll need to hard turn off den turn on again... Dnt know what's wrong, i have attached my log.
[Xperia Z5 Android Development] koekoek91:
On which kernel is this?

On 3_16_4 im having some lagg sometimes and when im listening to music and then open other apps, everytime music stops for just a second.

However, when playing games I have no lagg issues so its weird.

I suspect its something with the CPU / CPU-Quiet, still have to try other hotplug settings to see the difference.
[Xperia Z5 Android Development] whalesplaho:
Im on 3.16.4... It happens on previous cpuquiet version 3.15 i think buh its too much on dis version. Once my phone is in deep sleep, it just doesnt respond to touch and power button den it becomes hot a bit until i force off it. [MENTION=3037651]zacharias.maladroit[/MENTION]

[MENTION=7328701]koekoek91[/MENTION] i experienced dah too den when i unlock it starts playing back!
[Xperia Z5 Android Development] whalesplaho:
Im using LSpeed and i checked now, most of tha cpu are offline, just 2 and sometimes 3 online....
[Xperia Z5 Android Development] CaeLum764:
Just had a random reboot while reading an ebook using Moonreader.

Stock Nougat (.378) with 3.16.4
[Xperia Z5 Android Development] koekoek91:
[MENTION=3037651]zacharias.maladroit[/MENTION]

2 reboots in a row here too while listening to music using poweramp.

Also noticed I can't open my external SD Card folder and some other folders anymore in Root browser for some reason.

I tried other root explorers, but they all give me a headache by not opening the folders I need to open, or not being able to rename console-ramoops file.

I was only able to upload these two dmesg logs.

There also was a console-ramoops log, but for the reasons I mentioned above I am not able to share it.
[Xperia Z5 Android Development] crisout:
Hi [MENTION=3037651]zacharias.maladroit[/MENTION] I've been using your kernels for a while, since the last one I've been never had so many random reboots, the reboots happened when I was using maps and some just idle while it was charging it and got many stutters using Spotify.

My settings

Z5 E6603 Comp. 376 Stock

I attached my log and screenshot

I hope this helps this is my first feedback :p
[Xperia Z5 Android Development] zacharias.maladroit:
Thanks for the logs !

Unfortunately XDA doesn't allow me to download those - right now !

(Server issues ?)

Anyway: The following kernel

is based on aigoo (new source, before Pedigree [stock kernel + caf merge] was released), somewhat reworked,

and pretty close to Sony's kernel source,

for wifi the prebuilt module is used

Please see the attachment

Thanks

edit:

To fully have the different experience, the following settings might need to be changed:

https://github.com/zachariasmaladro...mmit/4d9a5df4d53ebdaee2885390d44ac2cbe59bf320

input_boost_ms to 1000

https://github.com/zachariasmaladro...mmit/2a77628e0dcacf06ce536eb76653ea088ec6b2ee

sched_upmigrate_min_nice to 9

https://github.com/zachariasmaladro...mmit/fef79087f344c6a036761ca5dd5f76f0776dc5e8

https://github.com/zachariasmaladro...mmit/01aa2f79fc65374838a87ba8cc8557d29e62332a

sched_small_task_pct to 60 [might be Sony's stock value]

sched_heavy_task to 85

sched_boost / sched boost: enabled

sched_init_task_load_pct to 55

sched_upmigrate_pct to 95

sched_downmigrate_pct to 85

Those values are for testing & currently under evaluation !
[Xperia Z5 Android Development] whalesplaho:
[MENTION=3037651]zacharias.maladroit[/MENTION] thanks for providing another test version... Dose values, where can dey be inputted?
[Xperia Z5 Android Development] zacharias.maladroit:
via e.g. EX Kernel Manager, "scheduler options" or what its name is
[Xperia Z5 Android Development] whalesplaho:
Kernel Adiutor can't do tha job? Guess i ll download EX Kernel Manager den buh flashed tha kernel and no issues yet.:highfive::good:

---------- Post added at 11:41 PM ---------- Previous post was at 11:16 PM ----------

Dnt know.... Installed ExKernel Manager but closes itself.. Doesnt let me put tha codes.
[Xperia Z5 Android Development] crisout:
Thank you [MENTION=3037651]zacharias.maladroit[/MENTION] for all your time!

pd: by the way this version is passing safetynet ;)
[Xperia Z5 Android Development] Tilman:
Well you could buy the app from the play store instead.

Or make an init.d script and add those values.
[Xperia Z5 Android Development] freaky2xd:
hey please add undervolt
[Xperia Z5 Android Development] _LLJY:
It's not possible on the 810..
[Xperia Z5 Android Development] freaky2xd:
too bad :( worked fine on the Z2 with a S802