yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Android Development] koekoek91:
Thanks for that link.

I'll probably flash this tomorrow night after school.

If I make a full system (boot/system/data) recovery in twrp first and only flash the corona kernel, I can always revert back to the same state my phone is at now am I right?

I ask because I think i've tuned my phone pretty nicely for my usage right now with androplus kernel v36, but still wanna try zach's to see if I can make my phone better with his kernel :silly:

Thanks
[Xperia Z5 Android Development] zacharias.maladroit:
lol,

the following factors break FM (and may or may not lead to kernel panic + reboot):

- FauxSound modifications, longer usage of FauxSound (?)

- longer usage of the DSP (qdsp6v2 and wcd9330)

- "fixes" of sound drivers and components

- ...

- breakage after longer usage indicates that there may be a memory leak, non-proper deactivation of components or other related things

I'm not 100% certain but there are traces in my memory, where it could have happened, too before I even unlocked the bootloader :(

So like I wrote before: buggy ROM base, buggy Kernel source, hard to fix things in that situation,

especially if components rely on breakage (e.g. video recording stopped working when fixing/hardening sound driver, or camera driver etc.)
[Xperia Z5 Android Development] nreuge:
Yes, just restore your backup to revert back :)

Damn hard world !! ;)
[Xperia Z5 Android Development] zacharias.maladroit:
Yes, things are not what they seem (good/bad, black/white, perfect/broken, ...),

it's way more complex than that with unlimited possibilities and factors,

oftentimes situations are harder than really necessary - and we are at fault :(
[Xperia Z5 Android Development] nreuge:
Yes .

But don't be too much exigent regarding your work, the perfection doesn't exist, you do your best and your best is great :)

---------- Post added at 01:55 AM ---------- Previous post was at 01:20 AM ----------

Eagerly testing...

Just one thing: 2.0 GHz big core is actually enabled by default. I'm testing with 1.5 GHz instead.
[Xperia Z5 Android Development] _LLJY:
OC on the big core is totally fine, the little cores are the ones that cause the heat, my raspberry pi3 reaches 85c on 1.5ghz with a heatsink and that uses A53 cores. I disabled the OC on the big core and heat is still the same, however disabling little core OC brought the heat down significantly. [MENTION=5231789]nreuge[/MENTION] [MENTION=3037651]zacharias.maladroit[/MENTION]

Btw use Nightmare governor
[Xperia Z5 Android Development] _LLJY:
For those having issues downloading 1.9.4(like i did) here's the link https://www.androidfilehost.com/?fid=24591000424965182
[Xperia Z5 Android Development] koekoek91:
Long list of changes :laugh:

Im glad to see you added fastcharge.

Will flash this tonight and use it for some time to see how it works :laugh:

Thanks for all your work :good:
[Xperia Z5 Android Development] EDGN:
Thx! I will try now the new 1.9.4 Corona with Nightmare with OC on Big Core and Stock Freq on Little Core :)

Thx [MENTION=3037651]zacharias.maladroit[/MENTION] for your great work!
[Xperia Z5 Android Development] _LLJY:
I prefer Nightmare, how does bioshock behave
[Xperia Z5 Android Development] Tommy-Geenexus:
[MENTION=3037651]zacharias.maladroit[/MENTION]

I think i traced back and resolved the standby drainage issue.

Could it possibly be caused by the bcl driver?

I see you did the same backport like me, any confirmation on this?
[Xperia Z5 Android Development] -DM-:
quick question, I'm asking here as there a bit more action on this side than in the Z5p thread...

I ran the unlock overclocking code via root terminal because I want to reset the the max freq for little cores to stock...

First thing the directory should be /sys/module/msm_performance/parameters/cpu_max_freq and not max_cpu_freq as listed above as in that case it doesn't work...

Second the settings don't stick after reboot as they are reverted back to

0:1344000 1:1344000 2:1344000 3:1344000 4:4294967295 5:4294967295 6:4294967295 7:4294967295

So anybody mind to share some light on how to do this properly?

Thanks
[Xperia Z5 Android Development] RyTekk:
You should check is there governor profile folder in sys/devices/cpu/cpu0/cpufreq, those governors have been added are old and I don't think they work probably.
[Xperia Z5 Android Development] Pandemic:
Bro [MENTION=5627933]androidexpert35[/MENTION]

How is the last corona 1.9.4 kernel, all good rock solid and no drain and issues ?
[Xperia Z5 Android Development] halfblack:
Hi, thanks for this kernel, my device got a huge boost.

However I am experiencing an issue - if I use headphones (no mic) and somebody calls me (sometimes all it takes is just to plug them, listen to music and unplug without any incoming call) my phone mic is not working until I reboot the phone.

Same thing happened when I used Andro Plus kernel, but not when I used the one included in latest SlimRom for Marshmallow.

Any help would be greatly appreciated.
[Xperia Z5 Android Development] Dockyy:
[MENTION=3037651]zacharias.maladroit[/MENTION] can you compile the v22_II_1.2 when its finished please ? thanks in advance :)
[Xperia Z5 Android Development] halfblack:
To add to my previous post - I have plugged in Sony headphones with mic and 3 splits on the jack, tested and mic in phone works fine after unplugging them.
[Xperia Z5 Android Development] zacharias.maladroit:
Will add a changelog soon-ish, the following kernels contain the changes explained so it should be a thing of listing those changes subsequently,

thanks

Haha, yeah - the initramfs includes some magic to address the DRM functionality (which the ROM also appears to need) :)

Hi halfblack,

Thanks for using/testing the kernels, thanks for your report - please post the "Kernel Version", e.g. 3.10.84-v22_II_1.6, etc. so that I can take a look what might cause this,

Which apps are you using to listen to music ? What specific headset did you use (that without mic), which one is the Sony one ?

Any specific apps you're using to control or modify sound ? Any changes in Sound & notification -> Audio settings ? (e.g. DSEE HX, ClearAudio+, etc.) - do you use Viper4Android ?

With which AndroPlus Version did you reproduce this ? The Kernel in SlimROM should be the stock kernel with SonyRIC & dm verity disabled - link to the ROM & version please

sure :)
[Xperia Z5 Android Development] zacharias.maladroit:
Alright guys, here's the new kernel:

Source is at:

Sun-Kernel_32.1.A.0.xxx_AP-mod-v22_II_1.6_eval

For best measure - combine it with

Wakelock Detector, Greenify, Amplify, AppOpsXposed, BootManager (XPosed; or other that e.g. also allows control of system apps), Disable Service/My Android Tools (by WangQi)

with Wakelock Detector it's rather easy to greenify Google Play Store which is one major culprit of wakelocks,

with AppOpsXposed (or other App Ops via root) you can control what apps or services keep awake (wakelock) the phone and thus occasionally or more often drains the battery

with Disable Service/My Android Tools you get pretty powerful tools that allow you to disable service on a fine-grained basis, and e.g. specifically turn off Google's Analytics; which as a side-effect also might save battery

with Amplify you can disable wakelocks, alarms and services in a general sense and helps quite to some degree to cut down battery consumption

Features:

(will add more later if I forgot anything)

Changelog:

Recommended default settings

(set via e.g. Kernel Adiutor; start from there and change to your liking)

In case you watch 4K HD/HQ videos and the above is not enough

Turn the following off:

Enjoy :)
[Xperia Z5 Android Development] _LLJY:
yo does your kernel support aosp?
[Xperia Z5 Android Development] mpro420:
are you serious?

Edit : hi [MENTION=3037651]zacharias.maladroit[/MENTION]

Whats different between original new kernel and the dsds version? Thanks[emoji3]
[Xperia Z5 Android Development] _LLJY:
Does aosp support your kernel ****
[Xperia Z5 Android Development] Ashray_Vk:
Dsds is for the dual sim version
[Xperia Z5 Android Development] mpro420:
Got it !

Thank you :)
[Xperia Z5 Android Development] Alex1911:
Hi, do your research and stop spamming the Forum.

Yes it supports AOSP.

Best Regard's

Alex1911
[Xperia Z5 Android Development] Ashray_Vk:
Man, this is for stock based roms, AOSP isn't supported in this kernel as far as my knowledge goes.

Maybe you are the one who should research before posting something.

Take care the next time you post something like this. You could have soft bricked someone's phone and he/she wouldn't be in a position to recover his/her device.

Peace.
[Xperia Z5 Android Development] _LLJY:
Confirmed, it isn't supported for aosp, I just tested it on aosp, got stuck at the Sony screen then reboots and gets stuck at the Sony screen again
[Xperia Z5 Android Development] zacharias.maladroit:
No, drivers are significantly different of the "Stock" Kernel and AOSP Kernel (especially camera),

but I've built a working kernel for AOSP
[Xperia Z5 Android Development] _LLJY:
Oh that's great, could u link it pls?

---------- Post added at 11:22 AM ---------- Previous post was at 11:21 AM ----------

Wait never mind ._. Found it
[Xperia Z5 Android Development] Dockyy:
no more update for STOCK rom ?
[Xperia Z5 Android Development] Dockyy:
Hi, Stock is not under dev anymore ?
[Xperia Z5 Android Development] Ashray_Vk:
I think stock is pretty okay as of now. He may be giving more attention towards CM/AOSP. Not to forget , personal life too :)
[Xperia Z5 Android Development] zacharias.maladroit:
yes it is, what you need ?

an updated kernel to 185 base ?

it's pretty stressful to build lots of kernels for 5 (?) devices, ROMs and other stuff.

Also experience with AOSP/CM kernel builds flows into experience for stock kernels - so no worries ;)

yes, I'm in a pretty picky situation right now and rather focus on other things than Android

another thing is that I'm somewhat pissed at Sony's stock ROM and kernel base with all its limitations and constantly reminded of it when building those ;)

Thanks
[Xperia Z5 Android Development] peter.schwake@gmail.com:
If you could update to. 185 would be fantastic. For me it is the best kernel for stock rom.
[Xperia Z5 Android Development] nreuge:
This one seems well born :)
[Xperia Z5 Android Development] Pandemic:
Great bro [MENTION=5231789]nreuge[/MENTION]

What are the best settings in kernel adiutor ?

I use this now and runs great ^^
[Xperia Z5 Android Development] nreuge:
Well, it is too soon for me to tell and it depends of your usage...

Currently I use these settings (I'm not a gamer):

Big: 1958 MHz

Little: 1344 MHz

Governor: smartmax
[Xperia Z5 Android Development] koekoek91:
I love all the features in this one. But I dont understand how people manage to run overclocks lol with this device getting so hot.

Im actually trying to downloack a bit more for more battery time, but even with all cores (big + little) at 1248mhz max and downclocking back to minimum of 384mhz on idle using interactive governor on both big and little clusters, and gpu down to 390mhz max .... phone feels pretty warm when gaming.

No lagg or whatsoever though at those lower frequencies when playing my couple of games.

I need to install a monitoring app which i'll do tomorrow probably and hopefully i'll be able to post some results and some screenshots from what I got playing with this kernel
[Xperia Z5 Android Development] Pandemic:
The hotness is normal due the quadcore, but when you stop gaming then it get cooled down so no worries, it dont explode as the note 7, i had the same hotness on my Z3 without problems.
[Xperia Z5 Android Development] koekoek91:
Yeah I know its pretty normal for this device to get hot, even on complete stock firmware and kernel at stock frequencies I saw temps in the 70'-80's when running hwbot cpu prime benchmark app.

In twrp doing a backup or restore it probably gets in the 90's for my device as it feels even more hotter than when im running prime benchmark.

But with this said, I dont understand how people can still run 1.9 -2ghz clocks and even still get good battery life.

This makes me wonder if my device is getting bad or something. Batterylife in general on my device im pretty satisfied with, but for this kernel I have to do some more testing.

My main goal basically here is to downclock as much as possible when still not having to suffer from lagg or crashes or random reboots. With this new corona kernel as of now, i would say its really good.

Need to use it longer and do more testing to be sure if it will work out the best for me though :silly:

Anyway, thanks though for trying to make me not worry to much about the hotness :laugh: :good:
[Xperia Z5 Android Development] korom42:
I found this guide it helps me a lot to choose the best governor for for diffrent situations (performance/battery/gaming or balanced ) It's a very informative thread too

[REF][GUIDE]Most up to date guide on CPU governors, I/O schedulers and more!
[Xperia Z5 Android Development] _LLJY:
The 810 has two speed bins, chips that are lower quality will fall into bin 1 which has a higher voltage(hotter phone) however, the higher quality ones are run at a lower voltage(less heat) so some phones are hotter than the others. In fact not all chips are the same so every phone will have a slightly different heat output.
[Xperia Z5 Android Development] Tommy-Geenexus:
Wrong. Bin 0 runs at higher CPU/Bus speeds, thus is the higher quality one.
[Xperia Z5 Android Development] _LLJY:
Eh, I got mixed up, but pretty sure most people still get what I mean
[Xperia Z5 Android Development] RyTekk:
Where did you get that? My CPU seems to be 0, I checked out the console ramoops (not sure is it right way).
[Xperia Z5 Android Development] zacharias.maladroit:
I've had it for quite some time under suspicion but wanted to test and change other variables first,

but the higher drainage still seems to be there; so now the changes are reverted ...

There are essentially 3 things that can cause the "perceived" higher drain (I write perceived since the 3rd factor is a correct battery voltage calculation and thus it's only impression):

- high priority workqueue (could be)

- BCL core mitigation via KTM interface ("BCL<--> KTM interface")

- Update the ADC to vbat conversion formula

I've uploaded a new Kernel to the same folder (Z5 only so far): https://www.androidfilehost.com/?w=files&flid=110293

Everyone is free to join testing since that's the only change,

all changes got reverted, the third change which

corrects an error which was there in the first place

got re-added (Update the ADC to vbat conversion formula)

Let's see how this influences battery behavior ...
[Xperia Z5 Android Development] _LLJY:
Hmm okay, could you possibly add thunderplug? I can't live without a hot plug XD my OCD kicks in when I see all cores active
[Xperia Z5 Android Development] zacharias.maladroit:
Not sure whom I wrote and/or explained it to,

but Thunderplug hotplug + especially HMP scheduling behavior is currently broken,

as long as the changes aren't included it seems to favor the big cores way too much from some observation.

Also: I'm not fueling any (my or from others) OCD or other compulsions anymore for the heck of it to merely try and try again,

and the current kernel needs more testing,

pushing out new kernels every few days is useless in terms of gaining meaningful data out of it,

also it's way too stressful which I'm not going to do anymore ...
[Xperia Z5 Android Development] nreuge:
Wise decision, my friend :)
[Xperia Z5 Android Development] toncheee:
I Flashed new kernel, will report in approximately 24 hours how is it compared to III_1.9.4
[Xperia Z5 Android Development] nreuge:
I've had idle battery drain today

Testing tomorrow and reporting results ASAP
[Xperia Z5 Android Development] nreuge:
Idle battery drain is still there... :(
[Xperia Z5 Android Development] toncheee:
Heavier than on III_1.9.4

On BBS kernel wakelocks I have 7% suspend_backoff, it wasn't present on earlier kernel.
[Xperia Z5 Android Development] toncheee:
Reverted to III_1.9.4, battery is better than III_1.9.5 and suspendd_backoff wakelock is 1% (only few seconds in 1h 40min)
[Xperia Z5 Android Development] zacharias.maladroit:
so you're using WiFi and Chrome, like, a lot ?

https://github.com/asksven/BetterBatteryStats-Knowledge-Base/wiki/suspend_backoff

http://hackups.blogspot.de/2013/08/suspend-backoff-wakelock-on-android.html

http://baheyeldin.com/technology/so...rain-because-of-suspendbackoff-wakelocks.html

Several Sony apps could account for it, AVG, Facebook, Maps, etc.

It looks like suspend_backoff either is a entirely different can of worms,

or it's better mitigated with BCL / KTM mitigation ;)
[Xperia Z5 Android Development] toncheee:
Yes I do :)
[Xperia Z5 Android Development] nreuge:
The battery drain seems intermittent with vIII.1_9_4 for me :eek:

BTW, andropluskernel v36 uses msm_performance too, and there's never idle drain with it.
[Xperia Z5 Android Development] Keystone:
confirmed... Tried 1.9.5 for 4 hours and noticed the same sleep drain and extra wakelocks, went back to 1.9.4 and it seems as good as I had it with my old Z3.
[Xperia Z5 Android Development] Pandemic:
[MENTION=3037651]zacharias.maladroit[/MENTION]

Is this normal bro on III_1.9.4 and 8 hours till full charge ><" ?

I use a normal official Sony wallcharger and normally it take 1.5 to 2 hours fully charged and with that kernel not, so i revert back to androplus v36 sorry :(
[Xperia Z5 Android Development] zacharias.maladroit:
[MENTION=2902434]Pandemic[/MENTION]

Whoa bro, that's unusual - never had it with Sony official wallcharger,

what thermal engine or mods are you using ?

Does your ROM has battery saver (or what its name is) enabled ?

This could explain it
[Xperia Z5 Android Development] Pandemic:
Yes very unusual bro :(

I use the terminal engine by our RXS bro [MENTION=5627933]androidexpert35[/MENTION] and nothing else and no only stamina mode but that is disabled.
[Xperia Z5 Android Development] nreuge:
This is due to SmarTemperatureX, it has slow charge bug in last versions...
[Xperia Z5 Android Development] HaoZeke:
Hey, I noticed a lot of branches on github, which one, if any would be suitable for looking into for a cyanogenmod dual sim test build?
[Xperia Z5 Android Development] zacharias.maladroit:
Actually none since stock and aosp source differ pretty much but take a look at the latest branch:

https://github.com/zachariasmaladro...-Kernel_Eclipse_32.2.A.0.253_corona_III.1_9_4
[Xperia Z5 Android Development] EDGN:
Which ROM? Any other things like Thermal Engines or the Z5_Endurance_Tweak?
[Xperia Z5 Android Development] koekoek91:
i've reverted back to androplus v36 too.

Today I barely used my phone and it was fully charged.

When I looked at my phone again about 4-6 hours later and after not even touching it for hours, battery was at 66%.

Plus I noticed, it was probably coincedince, but when I looked at my phone... it was rebooting.

So I suspect my phone rebooted alot while I was not using it when I was at school.

Anyway, still I am always eager to try out new kernels from Zach though. I just have to have a reliable kernel when I am at school, which is why I reverted back to Androplus V36 for now.
[Xperia Z5 Android Development] EDGN:
Okay after about 24h on 1.9.5.

Freq Big@2,0ghz Small@1,5ghz Gov:Barry_allen or alucard

Some random reboots. Battery is not the best to be honestly. Phone heats up really quickly. In normal use like XDA or writing Whatsapp its between warm and hot. I didn't try games!

At least Audio is working fine now :)
[Xperia Z5 Android Development] nreuge:
Go back to 1.9.4 :)

Yes audio is great !
[Xperia Z5 Android Development] toncheee:
I also reverted back to 1.9.4

On 1.9.5 I experienced few random reboots, but narrowed them to Barry_Allen GOV, no reboots on others I used.
[Xperia Z5 Android Development] RyTekk:
Those governors in 1.9.4 update are really old, they're in 3.4 kernel and single cluster architecture. I said that you guys should check if there's governor profile folder and monitor the cpu frequency behavior (up/down scale) to make sure does a governor work. At the moment, there're just 5 custom governors that work on big.LITTLE that I know, those're ElementalX, ZZMoove, darkness, alucard, nightmare.
[Xperia Z5 Android Development] nreuge:
Which is the more battery friendly ?
[Xperia Z5 Android Development] RyTekk:
ZZMoove gives a better battery when screen is off, specially music playing. Alucard is great in balance, its performance is equal to interactive while giving a little extra power saving. Nightmare is the best in performance (I'm using it), battery life is not bad, I've got the same battery usage as alucard but the laggy is really disappear. Last one, darkness is an update of nightmare to lower power hungry, it may give better battery than alucard with a little impact on smoothness (but not much).
[Xperia Z5 Android Development] koekoek91:
Thanks for this info. I might try again in the weekend with 1.9.4 and your governor suggestions :)
[Xperia Z5 Android Development] nreuge:
Well, still testing v1.9.4

I'm now using darkness governor with big 1958 MHz / little 1555 MHz (i.e. stock frequencies)

Performance is good and battery life is very good.

No idle battery drain recently (had actually just one time with this kernel, so the issue isn't completely elucidated...)

The sound is really really great!!

I'm no longer tempted to go back to Androkernel v36
[Xperia Z5 Android Development] islanders:
is 1.9.4 stable ? no random reboots ?
[Xperia Z5 Android Development] nreuge:
I only had reboots just after changing something in kernel adiutor. So, no random reboots for me in normal usage.

However, some governors can be more stable than some others.
[Xperia Z5 Android Development] klemen241:
Any ideas oh good scheduler and other kernel settings like read ahead size and stuff? For balance performance and battery
[Xperia Z5 Android Development] nreuge:
v1.9.4

Had one reboot today, just after having enabled bluetooth and GPS
[Xperia Z5 Android Development] _LLJY:
I don't think it's possible because the big cluster has the same voltage as when it's at 1958mhz, but the little cluster has its voltage raised at 1632 and 1708mhz. So the only thing we can conclude from this is that either the increased clock speed is more efficient than the stock once(better Race To Idle) or its just a coincidence

Edit: from what I've read, oc does affect power consumption, however increasing it by 100mhz is really nothing, you need massive overclocks to even make a difference in SOT(Voltage seems to play more of a role here)
[Xperia Z5 Android Development] RyTekk:
It's caused by kthread improvement, I let zach know and he reverted them in 1.9.6, just waiting for.
[Xperia Z5 Android Development] nreuge:
Seems I also get such an battery life improvement changing little freq from 1344 MHz to 1555 MHz.

When increasing little freq, big may be used less often and since big is less power efficient than little, battery life would be better. That's a possible explanation.
[Xperia Z5 Android Development] _LLJY:
That may be due to efficiency, if the CPU can finish it's work as fast as possible and go to sleep, that's ideal.
[Xperia Z5 Android Development] nreuge:
I think that we are on the way of a better understanding of S810 than Qualcomm and Sony engineers !! :p
[Xperia Z5 Android Development] xerxess:
What governor do you use?
[Xperia Z5 Android Development] toncheee:
I use _LLJY's ROM and 1.9.4 version of kernel, and I can't put little cluster over 1344 MHz, big cluster goes on all frequencies.

Does anybody know what is the problem, and how to fix it?

EDIT: is it some script, I use Lplug and Lthermal
[Xperia Z5 Android Development] nreuge:
Use the latest kernel adiutor (the official app)
[Xperia Z5 Android Development] toncheee:
Just tried it, and it somehow locks all cores (big and little) to 384 MHz, can't set any other frequency.

reverted back to kernel adiutor mod
[Xperia Z5 Android Development] nreuge:
Weird things happen on your device...
[Xperia Z5 Android Development] Keystone:
exactly the same for me. Each are turned off automatically at night and for the two days when they turned back on in the morning the phone rebooted.