yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Android Development] Ashray_Vk:
I had the same rom and didn't get a red led issue though
[Xperia Z5 Android Development] Tilman:
I've been using v253_II.1_3_sats_dual on Moonwalker v1.6.0 & my Z5P runs fine with Systemless root & Xposed, it's been already 5 days since I last rebooted the device.
[Xperia Z5 Android Development] nreuge:
Same for me, no issue at all with latest kernel & xposed
[Xperia Z5 Android Development] zacharias.maladroit:
Feedback / Comments ?

Please give the following Kernel a test and let me know how it works

it's a reworked 1_2_12 Kernel (SunKernel "reborn")

with some modifications, pretty plain actually

Download, AndroidFileHost :

253 Kernel

https://www.androidfilehost.com/?w=files&flid=107597

should work BOTH on .224 based, and .253 ROMs

Source

https://github.com/zachariasmaladro..._r2/commits/Sun-Kernel_32.2.A.0.253_vII.1_4_1

Notes

- FM Radio App

might be broken

, the handling (and/or app) is pretty buggy and can break either with:

restore of the ROM

lockup of the ROM for other reasons, then it stops to work and locks up the phone

out of the blue the FM Radio app stops reacting, the radio transmission is still running and the app FCs

additional reasons

- so if it's that's the case then either disable it or Freeze it via Titanium Backup

- Please test if the FM Radio app works for you

Please report any regressions (functions that stop working or don't work as optimally anymore since last release)

Kernels for the other Kitakami devices will be released after a short testing period +/- with the next release

Happy testing :)
[Xperia Z5 Android Development] toncheee:
Flashing......

First boot - no issues :)

will report back

---------- Post added at 01:44 PM ---------- Previous post was at 01:41 PM ----------

Starting FM radio causes kernel panic, was working normal on last two builds :(
[Xperia Z5 Android Development] zacharias.maladroit:
Lol - see ?

That's what I'm talking about :D

and I can't even test it since the FM app either crashes for me or locks up the phone,

so I can't reliably tell if it's app, kernel, ROM or whatever side that's causing it,

okay - I got ~3 suspicious commits in focus (mostly stability and reliability fixes - seems Sony's apps [cam, video recording, FM app, etc.] really relies on buggy and unsafe behavior),

will see to build a new kernel later, whether that allows FM Radio to work again

Thanks :)
[Xperia Z5 Android Development] sirdoha:
Hi Zach. Which kernel is best for battery life: tp, sum, hima, qc?
[Xperia Z5 Android Development] zacharias.maladroit:
cpuquiet but it's out of reach since video recording gets laggy with it
[Xperia Z5 Android Development] _LLJY:
Thunder plug seems to be the best. CPU quiet is a little unstable, thunder plug doesn't have any camera issues. OC next update?
[Xperia Z5 Android Development] zacharias.maladroit:
Makes it less dependent on "stock" stuff - I like it,

Thunderplug in the near future, then - first FM Radio needs to work again, no long-term regressions since that makes troubleshooting too difficult,

will need to go a different approach, even with the commits related that made sense it's still panicking,

perhaps it's really important security updates (and that's one of the reasons why Sony hasn't updated their ROM yet :rolleyes: ) - in that case screw convenience,

stability, security and progress ! :angel:

Overclock - what for ?

Isn't the device and battery suffering enough already ?

Like I already wrote in the past - unless there's specifically-tailored governors, hotplug, software, etc. that can really benefit from this

battery-sipping monster NACK

battery consumption of 1.8-1.9 GHz is already 7-8x compared to Krait (Snapdragon 800) processor,

with overclocking it gets as high as 9-10x higher

what do you want ? a battery runtime and SOT of merely 2-3 hours ?

Focus and goal should be to

underclock

the GPU and processor (+/- throttling and hotplug) as much as possible without sacrificing performance and usability,

battery runtime can go up to 6 hours of SOT (I had it 1-2 times already), but this can only be achieved with careful tweaking of all components involved,

including ROM, Kernel, etc.
[Xperia Z5 Android Development] toncheee:
That is it. Make it run longer, and once we achive that, then go for performance!
[Xperia Z5 Android Development] braudrist:
What alternative Zach's kernel would you guys recommend for my Z5 Premium E6853. Zach's page on androidfilehost.com is a little confusing for me since there are myriad of files available and I don't know which one to download.
[Xperia Z5 Android Development] paulle:
That's right, first should good battery life and reducing heat (my phone cpu goes up to 70-75°C and the battery shows 2-3 deggrees less). Maybe the cpu is not affected by these temperatures, but other components in the phone sure and I believe this reduce the life span of these components drastically.
[Xperia Z5 Android Development] zacharias.maladroit:
http://xdaforums.com/showpost.php?p=68380005&postcount=118

II.1_3

Tl;dr

usually at the end of the thread

Hope that helps
[Xperia Z5 Android Development] zacharias.maladroit:
I'll leave this here for you to tinker,

https://www.androidfilehost.com/?w=files&flid=108276

Source:

https://github.com/zachariasmaladro...un-Kernel_Eclipse_32.2.A.0.253_corona_III.1_3

Enjoy :)

[MENTION=5627933]androidexpert35[/MENTION] probably can confirm that the biggest and greatest change with this

newly based Kernel

are the sound improvements :D
[Xperia Z5 Android Development] Ashray_Vk:
Oh Zach, you heard me :p thanks

Gonna test this out :D

Edit : Damn, just realized this is for the z5. Don't forget the z5p :p
[Xperia Z5 Android Development] RyTekk:
My kernel + pure stock :D. Underclock isn't a good idea, time to finish a task will take longer since the power consumption is even higher (there's a topic in xda which talk about it). I am finding a way to reduce heating without touching core clock (e.g another hotplug), I am really disappointed when playing Pokemon GO, just could get 2 hours SoT,
[Xperia Z5 Android Development] _LLJY:
I now agree, after trying out no oc for a day, my phone flies through everything.
[Xperia Z5 Android Development] _LLJY:
Audio is fantastic on this kernel
[Xperia Z5 Android Development] zacharias.maladroit:
well, under normal circumstances yes,

but with the unnaturally high power consumption with the A57 cores it's probably better to leave all the work to the A53 cores, which IMO have more than enough muscles and also are way more efficient (unless under extreme non-normal loads),

and even for everyday tasks that's enough.

No one seems to care about the GPU:

I underclocked the max freq to 390 MHz, and even 1080p videos (hardware accelerated in MX Player Pro) play smoothly and without hickups,

That means that the GPU also has more than enough muscles for everyday tasks, probably even gaming without even needing to run at top frequency,

this can save a lot of battery

There's lots of stuff we could do to optimize and lower power consumption - e.g. the HMP scheduling: https://android.googlesource.com/ke...llow-dr/Documentation/scheduler/sched-hmp.txt with its countless tunables

Thanks, glad you like it :)
[Xperia Z5 Android Development] Pandemic:
No issues on this kernel then so far and all works , like fm also ?
[Xperia Z5 Android Development] zacharias.maladroit:
Yes, FM Radio and all should work (including smooth video recording)

most of the security updates are not in yet however, will have to add them later step by step to rule out that any of them break anything
[Xperia Z5 Android Development] zacharias.maladroit:
Introducing SunKernel , codename Corona

Download, AndroidFileHost :

253 Kernel

https://www.androidfilehost.com/?w=files&flid=108577 SunKernel_for_Z5 253_corona_III.1_5_2

Notes

- ALL functions (well, most) have been tested and should work reliably (including FM Radio app, which still acts up from time to time)

- The Kernel is built on the following premise of having a slim Base with which only the relevant (needed & desired) areas are updated, others are deliberately left alone

- [e.g. not ALL Hotplug mechanisms are merged which cannot be used or NOT needed to avoid cluttering the source or even binary from any unwanted effects]

Power efficiency Tests

- Downclock the max GPU frequency to 390 MHz [this should be NO Problem for e.g. MX Player Pro with HW and HW+ acceleration for even 1080p videos (tested)]

- Downclock the max CPU frequencies for BIG to 1.5 GHz, little 1.3 GHz

- Darkness/SmartMax governor for little CPUs, SmartMax for big CPUs

- More aggressive Task packing for HMP Scheduling (this needs in-depth knowledge and LOTS of tests)

- ...

Attention

- This kernel is in

TESTING

state since power efficient WQ, quickwakeup, LPM improvements, NVIDIA relax improvements, KTM/BCL interface, CAF changes and some more got merged

- The goal is to IMPROVE STABILITY and RELIABILITY but it needs more TESTING to confirm this intention

- issues CANNOT be ruled out - caveat emptor !

- This is reason enough to Backup your data, have another Kernel release on your phone's Internal or External storage ready in case of (potential) trouble

Kudos

to [MENTION=5627933]androidexpert35[/MENTION] , [MENTION=6791680]_LLJY[/MENTION] , the BETA Testing team, [MENTION=4798704]RyTekk[/MENTION] , [MENTION=5169444]AndroPlus[/MENTION]

Sauce

https://github.com/zachariasmaladro...-Kernel_Eclipse_32.2.A.0.253_corona_III.1_5_2
[Xperia Z5 Android Development] nabeelrazanaqvi:
Hi guys sorry for me noob question. I wanted to know

1. How to flash this kernal

2. Is this working with stock sony .253 rom?

3. Will twrp gone if flashed this kernel?
[Xperia Z5 Android Development] sirdoha:
1. Simply flash it via TWRP

2. Of course

3. No
[Xperia Z5 Android Development] RyTekk:
Anyone can confirm if smartmax work? Is it tunable?
[Xperia Z5 Android Development] toncheee:
Just flashed SunKernel_for_Z5 253_corona_III.1_5_2

will test through workday, and report back.

---------- Post added at 06:46 AM ---------- Previous post was at 06:08 AM ----------

For now all OK, and FM radio works :)
[Xperia Z5 Android Development] sirdoha:
REPORT SunKernel_for_Z5 253_corona_III.1_5_2:

- Using Battery Efficiency Guide of Zach but battery still drains fast (and furious :) LOL).

- FM Radio works like a charm, without any issues so far.

- No lags, crash

In short, this version fixed some issue of the recent SunKernel version but battery is not good as expected, compared to V12 and SunKernel Reborn.

Yes, it works and is tunable! :)
[Xperia Z5 Android Development] Tommy-Geenexus:
You are right with race-to-idle.

However, in daily usage, underclocking is a must to increase battery lifetime.

Everything simply gets too hot when system is under sustained load doing daily tasks.
[Xperia Z5 Android Development] toncheee:
In las hour 1% drop - exchange sync - push, gmail sync - push, BT connected to smartwatch, 2 minutes screen time, 20 sec phonecall

For me it is quite good :)
[Xperia Z5 Android Development] RyTekk:
Then I think we should port intellidemand governor, it restricts core clock at a determined value and just jump over when GPU clock gets maximum (gaming time...). My level is too low to do it right now :D
[Xperia Z5 Android Development] xerxess:
only me or the latest kernel (corona) isnt support fast charge? because the toggle in kernel adiutor is gone
[Xperia Z5 Android Development] Tommy-Geenexus:
No. This is not suited for modern devices.

Best way would be a port of Intels turbo boost technology to increase singlethreaded performance and minimize multithread overhead.
[Xperia Z5 Android Development] RyTekk:
Is it available in Linux kernel source? The thing you mentioned is more impossible than mine, Intel even hasn't brought it to their mobile SoCs.
[Xperia Z5 Android Development] zacharias.maladroit:
[MENTION=302350]toncheee[/MENTION] [MENTION=7541648]sirdoha[/MENTION]

thanks for the reports !

overall battery consumption report is a bit early I'd say (since flashing always causes stats to get inaccurate),

but it's good to know where the trend might go ;)

[MENTION=5771875]xerxess[/MENTION]

My bad, I don't use it so always tend to forget it ;)

will add it back ASAP

Regarding

breakage of FM Radio app

- some setting in Kernel Adiutor in my Profile seems to break it when applied

- uninstalling and using EX Kernel Manager allowed me to experience it first hand (while listening to radio):

sensors, (perhaps also modem) wakelock control

- not sure how or why it's connected to FM Radio, and why FM Radio also doesn't work when it's disabled firsthand, but at least now I / we know

at least one

additional possible cause for it to stop working
[Xperia Z5 Android Development] zacharias.maladroit:
https://lwn.net/Articles/699055/

that sounds like some sort of HMP scheduling with a Hotplug driver which is aware to hotplug (unplug) big or more of the little cores when the tendency goes towards single thread apps (smaller number of tasks/threads) and a governor which then ramps up the frequency to max (or even allows overclocking)
[Xperia Z5 Android Development] _LLJY:
Hi Zach, please check WhatsApp.
[Xperia Z5 Android Development] _LLJY:
[MENTION=5243932]Tommy-Geenexus[/MENTION]

Best (not as complicated way)is to determine frequency through an algorithm of voltage and temperature.

I came up with one that work pretty well as a temperature throttle algorithm, but my level isn't good enough to do it.

Those who have the skills to make it into a governor the algorithm is (Load/temperature)*(number) it works best with (Load/Temperature)*1000
[Xperia Z5 Android Development] sirdoha:
REPORT SunKernel_for_Z5 253_corona_III.1_5_2 AGAIN (AFTER 1 DAY)

Hi [MENTION=3037651]zacharias.maladroit[/MENTION]

I've used my phone for 1 day (From 8 AM yesterday until now). After full charging without interrupt, clearing the batterystats.bin, follow all your guide on Battery Effciency, flash SmarTemperatureX, using Greenify, I can find that the battery life is much better now, compared to the state when I reported and even better than SunKernel Reborn. Thus, Battery life is quite fine (enough for me) but performance seems has been cut a bit (got 65k on Antutu, the same as Sony Stock Kernel. on tp version, got 100k and with SunKernel Reborn got 80k).

Audio is really impressive, especially when using headphone, no white noise and clear bass.

Overall, this version is quite great, in short it's a balance between battery, stability and performance. But I hope you could give it "More" performance on the next version.
[Xperia Z5 Android Development] Tommy-Geenexus:
Obviously one will have a hard time trying to write an ARM counterpart to Turbo-Boost.

But i'd rather have a variation, as seen on the Galaxy S7.

When <= 2 CPUs are active and a bursty task is scheduled on a CPU, freq limit will be released, when under sustained load, it will be locked.

However this is rather complex, and for now im fine without major experiments.
[Xperia Z5 Android Development] nreuge:
Same for me.

Back to 253_II.3
[Xperia Z5 Android Development] toncheee:
So 10 hours on CORONA kernel I'm on 66% of battery

SOT 45 minutes, 16 minutes of phone call, and exchange sync - push, gmail sync - push, BT connected to smartwatch all the time

For me it is the best battery friendly kernel since I have this phone
[Xperia Z5 Android Development] Pandemic:
Link/post to that kernel bro [MENTION=5231789]nreuge[/MENTION] ?

I still run on androplus v36 but want to try another kernel what us very good and stable without drain/bugs :)
[Xperia Z5 Android Development] _LLJY:
Latest one
[Xperia Z5 Android Development] nreuge:
253_II.3, here

(FM radio actually works)
[Xperia Z5 Android Development] Samuel Wilson:
Quick question please,

Can somebody suggest the best Power Suspend Mode (to be applied in Kernel Aduitor) for this kernel? (options are, Autosleep/Userspace/LCD Panel/Hybrid)

I actually don't quite get the differences between all the modes, so if anybody have a good source to understand them that would be great!

Many thanks!

---------- Post added at 09:05 PM ---------- Previous post was at 08:59 PM ----------

I'm on v253_II.1_3 and FM works fine for me!
[Xperia Z5 Android Development] zacharias.maladroit:
Introducing SunKernel , codename Corona

Download, AndroidFileHost :

253 Kernel

https://www.androidfilehost.com/?w=files&flid=109739 SunKernel_for_Z5 253_corona_III.1_8_2_bcmdhd

Notes

- ALL functions (well, most) have been tested and should work reliably (

including FM Radio app

)

-FM Radio app should work reliably now, the wakelock toggles made it stop working randomly (when activated ?!) + also to Kernel panic once activated

-In-built WiFi Module is

EXPERIMENTAL for suzuran [Z5 Compact] (need feedback)

- The Kernel is built on the following premise of having a slim Base with which only the relevant (needed & desired) areas are updated, others are deliberately left alone

- [e.g. not ALL Hotplug mechanisms are merged which cannot be used or NOT needed to avoid cluttering the source or even binary from any unwanted effects]

Power efficiency Tests

- Downclock the max GPU frequency to 390 MHz [this should be NO Problem for e.g. MX Player Pro with HW and HW+ acceleration for even 1080p videos (tested)]

- Downclock the max CPU frequencies for BIG to 1.5 GHz, little 1.3 GHz

- Darkness/SmartMax governor for little CPUs, SmartMax for big CPUs

- More aggressive Task packing for HMP Scheduling (this needs in-depth knowledge and LOTS of tests)

- In case your phone uses LOTS of Background tasks, try to use conservative governor for BOTH big and little cores, this will make your phone a bit less smooth but battery consumption goes down

- ...

Attention

- This kernel is in

TESTING

state since power efficient WQ, quickwakeup, LPM improvements, NVIDIA relax improvements, KTM/BCL interface, the WiFi driver is built-in, CPUQUIET, CAF changes and some more got merged

- The goal is to IMPROVE STABILITY and RELIABILITY and also

CUT Battery consumption

but it needs more TESTING to confirm this intention

- issues CANNOT be ruled out - caveat emptor !

- This is reason enough to Backup your data, have another Kernel release on your phone's Internal or External storage ready in case of (potential) trouble

Kudos

to [MENTION=5627933]androidexpert35[/MENTION] , [MENTION=6791680]_LLJY[/MENTION] , the BETA Testing team, [MENTION=4798704]RyTekk[/MENTION] , [MENTION=5169444]AndroPlus[/MENTION] , Myself5,

Sauce

https://github.com/zachariasmaladro..._Eclipse_32.2.A.0.253_corona_III.1_8_2_bcmdhd
[Xperia Z5 Android Development] zacharias.maladroit:
yeah, yeah - I know, it's still consuming more battery than it should,

haven't found the cause yet ...

https://www.androidfilehost.com/?w=files&flid=109809
[Xperia Z5 Android Development] nreuge:
Maybe you should make much less changes from one power efficient version (e.g. 253_II.3) to the next one and then patiently waiting for feedback.
[Xperia Z5 Android Development] _LLJY:
Comparing to stock, it's much less.

Edit: I found the cause

---------- Post added at 02:09 AM ---------- Previous post was at 02:02 AM ----------

The cause of the high power consumption is because of entropy, turn it down to write:128 and read:64
[Xperia Z5 Android Development] nreuge:
Yes, these are the default values in latest version III.1_9 and battery consumption seems pretty decent!!

Doing right now the power efficiency tests.

Very promising kernel...
[Xperia Z5 Android Development] EDGN:
Really nice CPU behavior, but sound stocks a little while Bluetooth audio streaming
[Xperia Z5 Android Development] nreuge:
version III.1_9

Lags and gliches with these settings.

Back to kernel default settings.
[Xperia Z5 Android Development] RyTekk:
It would be nice if Zach adds nightmare governor, it's really a powerful governor with a little impact on battery (I still get 6 hours SoT but the lag isn't exist anymore). And he should disable Powersuspend instead of state notifier since state notifier is more friendly with Doze than Powersuspend (Powersuspend is outdated and maybe it's not compatible with new architecture anymore).
[Xperia Z5 Android Development] zacharias.maladroit:
Will take a look at nightmare, thanks :)

Powersuspend isn't even in latest source anymore :silly:

state notifier is only needed for drivers that have hooks for it/dependent, so far no users for it, so left out of source

Thanks
[Xperia Z5 Android Development] RyTekk:
Actually state notifier can solve some silly behavior of Doze.

http://xdaforums.com/showpost.php?p=59222849&postcount=86
[Xperia Z5 Android Development] enjelpuspa:
It would be nice too if you also include fast charging :)
[Xperia Z5 Android Development] zacharias.maladroit:
Well, the issue wouldn't have been there without state notifier, that's at least my understanding from it,

so it fixes a problem that wasn't there before without it :confused:

There will be :)
[Xperia Z5 Android Development] RyTekk:
LOL maybe it is, I see a lot of kernel builders picked it, I got nice battery life in the past and then I think my kernel is stable, I started to pick those features (Powersuspend, Adreno Idler, State Notifier) and then the battery is not nicer, even it's worse. I had better do what I said, the simpler the better.
[Xperia Z5 Android Development] nreuge:
[MENTION=3037651]zacharias.maladroit[/MENTION]

Well, even with stock kernel parameters, I get poor performance compared to stock.

I switched from cpuquiet rqbalance to cpuquiet runnable and all is now far better. Good performances and decent battery life.

I can even downclock the max CPU frequencies for (big 1.5 GHz / little 1.3 GHz) without lags or glitches !

I continue my testing...
[Xperia Z5 Android Development] nreuge:
Yes, finally, default kernel parameters are the best.

Downclocking is not a good idea with cpuquiet...

Moreover, I dislike the sound, modded too much...
[Xperia Z5 Android Development] EDGN:
I would agree with the last Comments. Battery was not better with CpuQuiet than without. Addionally the Sound is stuttering. I'm getting best Performance and Battery/Heat with this Setting so far. Although the CPU behavior was really nice to see in KA. Maybe CPUQuiet needs some more Trial&Error Kernel Testing :)
[Xperia Z5 Android Development] _LLJY:
What theme are u running?
[Xperia Z5 Android Development] EDGN:
This one: https://play.google.com/store/apps/details?id=com.themegray

Also some xposed modules: n-ify, battery home icon & PerfectColorBar. Some Changes in GravityBox too
[Xperia Z5 Android Development] nreuge:
Moreover, kernels with msm_performance as hotplug can be underclocked without any issue at all.
[Xperia Z5 Android Development] EDGN:
There a different opinions about Underclocking. At first i tried UC also, after [MENTION=6791680]_LLJY[/MENTION] told me to use Stock Freq with SmartMax Gov i believe that UC is not needed for our Z5. But OC is also not recommend by me as i experienced in every OC-Setting i tried serious Thermal Problems
[Xperia Z5 Android Development] nreuge:
I don't know what is the best, it would require serious extensive tests.

I know one thing for sure (it's a simple physical law): the more the device heats, the more energy is wasted (because heat is lost energy that is not used by the SoC), the less the energy efficiency is, the less the battery life lasts.
[Xperia Z5 Android Development] koekoek91:
Im confused a little about where the latest sunkernel can be found. I've looked at the androidfilehost page from zach but its confusing to me about what is the latest kernel.

Is it Sunkernel V26 or Sunkernel III Corona 1_9 or which one should I download for firmware .253? Also where can I find a changelog of all those?
[Xperia Z5 Android Development] EDGN:
You have to search in this Thread. Latest is Corona, but the sound is laggy.
[Xperia Z5 Android Development] islanders:
i'm new here , can someone tell me what's the best sunkernel version ? , does is drain lot of battery or no ? thank you all