yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Android Development] zacharias.maladroit:
Do it ! :cowboy:

Source also, of course, please :)

I'm curious what set of changes you use

Keep in mind though that battery drain is pretty much also dependent on how you set up your phone or which firmware is installed:

https://xdaforums.com/z5-compact/help/battery-drain-dependant-firmwares-t3589242
[Xperia Z5 Android Development] zacharias.maladroit:
both is possible
[Xperia Z5 Android Development] CaeLum764:
Deleted
[Xperia Z5 Android Development] Andrei K.:
Lazyplug

I managed to get my hands on three devices:

- Motorola Moto Maxx (SD805, same SoC as Nexus 6)

- Nexus 6P (SD810, same SoC as in Z5 line)

- Samsung Galaxy Note 4 (Exynos 5433, same key architecture as SD810, 4+4 A53/A57 on 20nm)

I got CPU-Z running on them and I can confirm that they all have a similar approach, keeping all cores always-on (at least when screen is on).

On my Z5P, Lazyplug + Vulkan (got the drivers here) is doing wonders on not heating the device too much while playing Need for Speed No Limits. After 10 mins on a 4+2 (core_ctl) configuration, the msm_therm sensor would indicate 46°C+ whereas with 4+4 (Lazyplug) it barely hits 43°C.
[Xperia Z5 Android Development] MitoTakatori:
[MENTION=3037651]zacharias.maladroit[/MENTION], mate, does the latest versions work with 5.11 firmware or just for Nougat?
[Xperia Z5 Android Development] koekoek91:
Latest kernel is only for Nougat.

You can find 5.11 kernels in the google drive folder ;)
[Xperia Z5 Android Development] Hiku:
Does Lazyplug actually work? It didn't work for me before, 8 cores weren't kept always online as the description.
[Xperia Z5 Android Development] zacharias.maladroit:
sure, that's how it's supposed to work,

where's your kernel + sauce ? :)

(still looking forward what changes you did - or better: left out - so perhaps I can get an idea what might potentially cause trouble)
[Xperia Z5 Android Development] zacharias.maladroit:
[MENTION=4471890]whalesplaho[/MENTION] tested out the ramdisk you uploaded,

TWRP is still unstable & rebooting
[Xperia Z5 Android Development] Hiku:
Can you post some screenshots? My post has a mistake so its meaning was wrong.

My kernel source is in RyTek's thread.
[Xperia Z5 Android Development] whalesplaho:
Dnt know why but TWRP works fine n i flash mods.....
[Xperia Z5 Android Development] zacharias.maladroit:
so you repackaged SunKernel & it works ? :confused:
[Xperia Z5 Android Development] Zaisesl:
Zach, you said twrp is not working when the phone is off and i use the command power + vol??

Cause i flash via fastboot twrp 3.1 and it s working..
[Xperia Z5 Android Development] zacharias.maladroit:
The old approach isn't working (powering phone on

only

by power button - waiting for the LED to change color, then press either VOL UP (TWRP from kernel) or VOL DOWN (from recovery partition)),

what you're doing is the new Nougat bootloader method.

Haven't tried that out yet,

will have to do that once I backup the ROM.

What TWRP 3.1 are you using ? the one referenced by [MENTION=7328701]koekoek91[/MENTION] (?)
[Xperia Z5 Android Development] Zaisesl:
Mm.. I dont know which one he made referenced. This is https://xdaforums.com/crossdevice-dev/sony/twrp-3-1-0-z5-z5c-z5p-t3571050
[Xperia Z5 Android Development] whalesplaho:
Yeah but with TWRP 3.1.0 using poc tool.....
[Xperia Z5 Android Development] zacharias.maladroit:
Sun-Kernel Nova 2.33 I.2_6: aka "Doctor Strange"

https://drive.google.com/open?id=0BykGGWB96CBQUkpMSG1tc2JFS2s Z5_SK_Enf_vN_2.33_Nova_I.2_6_sum.zip

https://drive.google.com/open?id=0BykGGWB96CBQTlRlbko1RHhZYkk Z5-DSDS_SK_Enf_vN_2.33_Nova_I.2_6_sum_dual.zip

Changes since I.2_5:

drivers: spread some more love & queue work on system_power_efficient_wq

bcmdhd: replace wait_for_completion with interruptible variant

IPA: replace wait_for_completion with interruptible variant

all changes are power consumption related and might cut down power consumption (for those components) also by 5-20%

Want feedback

- stability (besides Sony Music App)

- smoothness [is the GUI less smooth ? more lags ?]

- performance (e.g. gaming, is there lags, stalls, lower performance ?)

- battery runtime/idle or usage/consumption

- things that might have changed in behavior
[Xperia Z5 Android Development] koekoek91:
https://.xda-.com/showpost.php?p=71336702&postcount=946

This is the one I referenced.

If I remember correctly, for this one to work... you have to be on a kernel that has TWRP included in it, and you have to flash this one to recovery/fota kernel.

Best would be if this TWRP could be included into the kernel (when possible ofcourse) ;)
[Xperia Z5 Android Development] whalesplaho:
Tha link is invalid... Tha AndroPlus TWRP is for fota recovery as a second partition... One can even have TWRP 3.0.2 inbuilt in kernel and still have 3.1.0 in fota recovery.
[Xperia Z5 Android Development] koekoek91:
Thats how I had it for quite some time, with zach's kernel (that had TWRP 3.0.2 included) + twrp 3.1.0 in fota recovery.

But the best would be to just have TWRP 3.1.0 included in zach's kernel.

[MENTION=3037651]zacharias.maladroit[/MENTION] I know including TWRP 3.0.2 is causing problems at this point, this is why I referenced the 3.1.0 version for you to see if that might work.

Here's the working link: https://.xda-.com/showpost.php?p=71336702&postcount=946
[Xperia Z5 Android Development] CaeLum764:
Just had a reboot with the led flashing red 3 times, I think that's a kernel panic? Couldnt find log in /sys/fs/pstore. Maybe can recommend a way to get logs?

Z5 on nova I.2_5 kernel.

Battery life was quite awesome though. In the screen shot, I had the reboot at ard 50%, once the phone started, it dropped to 26%.
[Xperia Z5 Android Development] whalesplaho:
Dats not good... 50 to 26!!

Never had dah, just maybe 1-2% drop except i use TWRP.
[Xperia Z5 Android Development] CaeLum764:
Yeah not sure what happen there after the reboot.

Will be testing the new kernel(nova I.2_6) soon
[Xperia Z5 Android Development] whalesplaho:
And kmseg log not present in pstore folder... Do yhu have a deodexed and superusermod rom???
[Xperia Z5 Android Development] CaeLum764:
No, just stock nougat 2.33 with Magisk.
[Xperia Z5 Android Development] whalesplaho:
Okay.... I ll try latest version on stock again and see!

Im trying to use font selector buh freezes on 2.33...
[Xperia Z5 Android Development] crisout:
Thank you so much!
[Xperia Z5 Android Development] Zaisesl:
Okay.. im using nova 2.6, for now is working perfect, no hangs, no kernel panic. Battery life seems a little bit improved but i habe to do some test. For now is working perfect, tomorrow i will report other things
[Xperia Z5 Android Development] zacharias.maladroit:
Just learned that pstore might not be mounted - which is strange since it worked on MM before,

perhaps Sony changed anything.

I hope I don't run into any reboot but I'll take a look if that thing with pstore can be improved.

What were you doing while the kernel paniced ?

To ALL

if you run into an issue - I know it might be annoying, repetitive or whatever,
[Xperia Z5 Android Development] whalesplaho:
testing latest kernel out....... post feedbacks soon!

Zack i tried to recompiled tha latest kernel with poc or rootkernel but twrp still have kernel panic!!!!
[Xperia Z5 Android Development] CaeLum764:
I think I was just browsing the web on chrome. Wasn't doing much on the phone at the time.

On stock nougat 2.33 with Nova I.2_5 kernel with Magisk installed. AdAway is installed as well. No mods or themes.

Will be testing the new kernel soon
[Xperia Z5 Android Development] CaeLum764:
Still on Nova I_2.5 kernel. Battery has been quite good. On moderate usage, was able to get 5 hrs of screen on time. Battery drain on idle is quite low as well.

No reboots this time around
[Xperia Z5 Android Development] Tommy-Geenexus:
[MENTION=3037651]zacharias.maladroit[/MENTION]

I have emailed Sony about the current kernel panic issue.

Their reply:

Let's wait whether or not things will change with the next firmware release.
[Xperia Z5 Android Development] zacharias.maladroit:
Thanks for notifying them [MENTION=5243932]Tommy-Geenexus[/MENTION] :)

on LineageOS it didn't boot for me (perhaps) up until CONFIG_FFU was disabled

but even changing that on Stock ROM doesn't make it boot, could be something in the ramdisk ...
[Xperia Z5 Android Development] zacharias.maladroit:
Sun-Kernel Nova 2.33 I.2_8_2 [Highly experimental kernel]:

https://drive.google.com/open?id=0BykGGWB96CBQWDhWRklfejl1eVU Z5_SK_Enf_vN_2.33_Nova_I.2_8_2_sum.zip

https://drive.google.com/open?id=0BykGGWB96CBQcVZ4VXpBWjlMVzA Z5-DSDS_SK_Enf_vN_2.33_Nova_I.2_8_2_sum_dual.zip

Changes since I.2_6:

enabled power_aware_timer_migration (timers on less power consuming cores) [this should save juice]

ALSA: overhauled the core of the sound subsystem (stability, reliability & other fixes/improvements)

ASoC: Make sure drain command is finished before pm [re-ported it to our device]

ASoC: Correct offload device configuration

replaced more instances of wait_event with wait_event_interruptible [battery savings, lower load avg]

GCC 6.3 Toolchain: add optimizations from O2 optimization level that improve code & stability, minimize size and execution stalls [eval]

dtsi: lower initial backlight brightness some more (matching SunKernel Eclipse III.3)

dtsi: re-add missing ramoops (pstore) entries, now pstore might actually work

arm64: fix a migrating irq bug when hotplug cpu [highly experimental change] [essentially it's moving functions & stuff around so not that experimental - but still, it's concerning IRQs, this is supposed to fix instabilities related to hotplug that have existed for quite a long time]

silencing several more sources of logspam

fix NULL pointer dereference (crash/reboot) in i2c core

binder: drivers: android: correct the size of struct binder_uintptr_t for BC_DEAD_BINDER_DONE

ipa: fix the potential heap overflow on wan-driver, ipa: Prevent multiple header deletion from user space

drivers: soc: qcom: Add error handling in function avtimer_ioctl

msm: sps: add the checking of userspace input length

qseecom: fix incomplete error handling for several functions

fixed the warning in sched/core related to idle_cpu_relaxed

cpufreq: interactive: Skip timer when policy->min == policy->max

ping: implement proper locking

net: ipc_router: fixes

Highly experimental Kernel

If you're uneasy with experimental changes - then hold off testing it for a few days until I can say more

You have been

warned

and given a

choice

Want feedback

- stability (besides Sony Music App)

- smoothness [is the GUI less smooth ? more lags ?]

- performance (e.g. gaming, is there lags, stalls, lower performance ?)

- battery runtime/idle or usage/consumption

- things that might have changed in behavior

- upon crash: logs: https://sites.google.com/site/zhuow...onandroid60andabovesysfspstoreconsole-ramoops
[Xperia Z5 Android Development] whalesplaho:
[MENTION=3037651]zacharias.maladroit[/MENTION] under CPU Voltage any specific setup from yhu??

Gonna flash tha new test version and see... Battery life on 2.33 2.6 makes lotta of sense and heating reduced much.

Thanks but havent used heavily much.... Will test music playing more....
[Xperia Z5 Android Development] whalesplaho:
[MENTION=3037651]zacharias.maladroit[/MENTION] please i would appreciate if yhu can take a look into dis.... On 2.33 v2.6 kernel, font selector ll load up a blank space so i take logcat n posted in app thread and tha dev says its kernel issue, so i made a stock 33 patched kernel n flashed den it works.... Really surprising!!!!

I have attached tha logcat, please help me look into it. I want to use yur kernel buddy, please!!!

Thanks....
[Xperia Z5 Android Development] whalesplaho:
Also please add kcal support amd i noticed all my CPU is online.... It has never been like dat before!!
[Xperia Z5 Android Development] freaky2xd:
Hello! I need a Kernel for a stock based rom (Android 6.0.1 buil 5.11)

Is this the newest version for my build number?

Z5_SK_Perm_v5.11_III.3_7_4_ctl_X_sum.zip

My device: Z5 E6653 32gb

Does it support a dmr patch, if not how can I retsore the dmr features?
[Xperia Z5 Android Development] korom42:
[MENTION=3037651]zacharias.maladroit[/MENTION]

Hey bro thanks for keeping the work on this kernel, Just had a crash was playing some music this is my log I'm on 2_8_2

PS I'd a couple of crashes on 2_6 when phone is locked I try to unlock it and it stay locked not responding, followed by kernel panic this happened to me twice.

Also bro I noticed that hotplug profiles and options are broken not really working.
[Xperia Z5 Android Development] whalesplaho:
No crash nor force reboot nor kernel panic here.... Played music for like an hr + and no issues with Walkman+ClearAudio... Except dat it seems battery not so great..
[Xperia Z5 Android Development] crisout:
Zach, does it have this version kcal support?
[Xperia Z5 Android Development] zacharias.maladroit:
nope, KCAL is still out,

as I can't rule out it affects stability or functionality

As mentioned some time back - the kernel needs testing of the existing components & subsystems first,

then other stuff might get added.

How much are you and [MENTION=4471890]whalesplaho[/MENTION] relying on it ?

I'm currently in the middle of a scheduler rework so can't add it immediately

Also [MENTION=4471890]whalesplaho[/MENTION] since that font selector app is non-default sony (+ deodex) I can't support it right now,

there are other priorities - also you got a zip which modifies your system to set the font you need.

Did it work on SunKernel Nova before ? (there were changes related to SafetyNet so if it worked before those changes I'm favoring SafetyNet over font selector ...)
[Xperia Z5 Android Development] zacharias.maladroit:
Are you running any system tweaks ?

How modded is your system ? and sound mods ?

There seems to have been a memory leak prior to the crash involving the killing of dozens of apps which is quite unusual,

Sony Music App ? what sound effects ?

via headphones (cable) ?
[Xperia Z5 Android Development] korom42:
Stock firmware deodexed + superuseemod+ magisk + naptime doze app

Sound mod : Yes, just one by dontbelive here

- I use regular wired earphones​, Sony music latest one, effect automatic optimization + clearaudio+

- I multitask quite heavily I'd few apps downloading from play store + some background​ opened apps (Chrome+YouTube+FB+IG)
[Xperia Z5 Android Development] whalesplaho:
Its just an app i always use just like SK cos its isnt like other 3rd party app, it was developed as a result of tha Japanese FW version having it on there rom buh not been available on tha international version.....

got a zip which modifies system to set font? I dnt understand dat cos i only use font selector to change my font but since tha rise of Nova 2.33 kernel, its either it freezes and hangs my phone or it restart but lately it started opening but couldnt load tha interface den i try stock patched kernel and everything works fine but i aint a fan stock kernel, never been cos SK and Androplus has been wonderful in doing good kernels but lately yurs has been up n running and we appreciate yur effort in striving to give us tha best........

Yhu can go ahead and settle with tha priorities first and other scheduler yhu wanna rework but it ll be nice please if yhu consider adding support for font selector since it doesnt harm tha system and doesnt cause any lag nor freeze.... Thanks!!!!

Yhu didnt answered my question on CPU Voltage? What settings can one use or we can just leave it out and also can yhu share yur settings for kernel adiutor on Nova SunKernel!!!!:good::highfive::victory:

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

---------- Post added at 02:54 AM ---------- Previous post was at 02:51 AM ----------

Yeah +1 using dat soundmod buh magisk didnt work for me... My phone keeps rebooting instead of showing bootanimation, it ll reboot after bootlogo!!!! Except dah battery aint so great yet, no freezes nor hang here!!!

I use LSpeed+Greenify+ForceDoze.....
[Xperia Z5 Android Development] whalesplaho:
Wooooopppsssss.... Had a freeze dis morning den follow by a reboot... Was playing song with Walkman using clearaudio+ and automatic optimization...... I gat log in sys/fs/pstore, i have attached dem below.... I have greenify, forcedoze and lspeed as usual.
[Xperia Z5 Android Development] whalesplaho:
My battery went from 48% to 36% when it reboot!
[Xperia Z5 Android Development] whalesplaho:
[MENTION=3037651]zacharias.maladroit[/MENTION] im thinking of flashing dis, is it safe??? Phone heats up but not so much tho!

https://xdaforums.com/xperia-z5/development/mod-smartemperaturex-best-balanced-s810-t3438890
[Xperia Z5 Android Development] korom42:
Just got another random reboot right after playing a Facebook video

Stock firmware rooted+deodex+superuser MOD

no tweaks or mods except this (dontebelive audio mod) which is stable I guess
[Xperia Z5 Android Development] zacharias.maladroit:
Sun-Kernel Nova 2.33 I.2_12_2 - caretaker:

https://drive.google.com/open?id=0BykGGWB96CBQSW1mZktJRjQ1UDg Z5_SK_Enf_vN_2.33_Nova_I.2_12_2_sum.zip

https://drive.google.com/open?id=0BykGGWB96CBQTGwtaE5TYzJWS3M Z5-DSDS_SK_Enf_vN_2.33_Nova_I.2_12_2_sum_dual.zip

Changes since I.2_8_2:

kernel/sched (scheduler) rework [sync with linux 3.10.105+ upstream]

scheduler: fixes that Sony seemed to have overlooked/left out before

reverted (undo): IRQ rework - too experimental, is still under heavy work in the Linux kernel

ASoC: a few fixes

ASoC: LOTs of fixes on the CPE (codec processing engine) that should make failing much less likely (fix memory corruption [instabilities]], fix instabilities, allow session with calibration data, fix error that sound wouldn't work & device would need to be rebooted, etc.) [Sony didn't seem to care about those]

optimization flags: back to conservative/defensive flags

hardening of the kernel: raised the bits of randomization (thanks to [MENTION=5243932]Tommy-Geenexus[/MENTION] for the reference), enabled YAMA security framework

hardening: raised the MMAP MIN_ADDR to 32768

hardening: a few additional restrictions added

troubleshooting: set CONFIG_ILLEGAL_POINTER_VALUE to 0 (disabling it ?) this should counter faulty kernel and/or app behavior but it's not really appreciated (eval)

Changes since I.2_12:

fixed "random" reboot related to DSP / sound processor that could (finally !) be tracked down the drain handling (thanks to [MENTION=5033594]korom42[/MENTION] for the nice log output)

Want feedback

- general stability & overall functionality

- upon crash: logs: https://sites.google.com/site/zhuow...onandroid60andabovesysfspstoreconsole-ramoops

Notes

- the IRQ rework revert should fix softirq/irq related issues (@trax7 ), the CPE and sound changes should make sound operation generally more reliable

- likely that "sleep of death" / not waking of the phone also is fixed now

- sound hasn't been extensively tested yet, so Sony Music App might be crashy (needs testing)

- battery consumption might still be somewhat higher (can't really explain since with exact same flags & config / very same kernel it was lower for one entire day - before starting working on the kernel)
[Xperia Z5 Android Development] korom42:
[MENTION=3037651]zacharias.maladroit[/MENTION]

Glad I could help :) .. before I move to 1.2_12_2 this is another crash log on 1.2_8_2 I got it right when attempting to unlock the phone totally not responding

(screen didn't turn on)

followed by reboot, wasn't playing any sound or stuff

- As usual no mods or system tweaks

- naptime doze app + dontebelive sound MOD
[Xperia Z5 Android Development] f1^ter:
Hi dear @zacharias.maladroit . Confirm that doesn't work either Font Selector, the program opens but displays a blank window with the name of the program. Just want to say that if you boot from the old kernel in recovery, it seems to me that the cache and Dalvik it is clean is not correct, and most likely the problem may be? I understood in the log that calls to question the errors with Dalvik cache. Maybe this will help You, by the way, the program Font Selector is not the only program where it leaves the app with an empty window (for example port Smart Cleaner with XZ). All such errors in the log refer to just Dalvik and cache... Thanks for Your work - really good! Firmware .376 this is not observed. The system also Deodex.
[Xperia Z5 Android Development] Hiku:
Choose rm -rf for wiping in twrp setting, wiping causes partition corruption.
[Xperia Z5 Android Development] zacharias.maladroit:
Sun-Kernel Flares 5.11 (

Marshmallow

) II.2_t2 [5.11_2_6_5-config_t4] Kernel

https://drive.google.com/open?id=0BykGGWB96CBQOWxDWS1wMmRCX2M Z5_SK_Perm_v5.11_2_6_5-config_t4_sumire.zip

https://drive.google.com/open?id=0BykGGWB96CBQWTRyY1NpeW1iV2s Z5-DSDS_SK_Perm_v5.11_2_6_5-config_t4_sum_dual.zip

sauce: https://github.com/zachariasmaladro...94_kitakami_r2/tree/Sun-Kernel_Flares_II.1_t2

- ALSA: reworked

- ASoC: wcd9330: reworked

- ASoC: CPE (codec processing engine): reworked

- msm8994 codec: fixed offload device config

- kgsl: page pool allocator + increased memstore size (smoother GUI, higher FPS)

- random: fix entropy depletion

- msm_performance ("stock" hotplug): reworked

- KCAL: (stability eval)

- mmc: reworked + boosted (40% performance boost, disable CRC to add 30% additional boost)

- lz4: fixed up

- camera: boosted

- hsic_host ('HSIC (High Speed Inter-Chip)' interconnect) - wakelock relaxation

- scheduler: enable multi-core powersaving (level 1)

- a few general performance & stability fixes

- sched: disable boost by default, make input-boosting optional (enabled by default)

- GPU: downclocked by default (in idle, preferred "work" frequency is 180/190 MHz)

- load-average: use interruptible wait in several locations to cut down load-average & thus power consumption via CPUs

- reduce power consumption on the 'SPDM bandwidth monitor device'

- FM + WiFi built INTO the kernel

- MHL is prebuilt (Sony external module - due to witchcraft and blood magick requirements this wonder [building into kernel + booting] will take some time to achieve)

- ...

This will be my go-to kernel for some time until I've finished my personal + professional work
[Xperia Z5 Android Development] flis94:
When i disable z-ram in kernel adiutor or other app phone wont go to sleep ,how to fix .tnx
[Xperia Z5 Android Development] zacharias.maladroit:
repackage ramdisk with forced zram loading commented out,

otherwise - it's not a bug, it's a feature (blame Sony for force-loading zram ;) )

Normally it shouldn't cause sleep or deep sleep interruption, not sure why it happens ...

you have logs ?

dmesg, logcat ...
[Xperia Z5 Android Development] smiley.raver:
what does the rm -rf option actually do? (sorry never seen it itl recently but wasnt sure what the function was)
[Xperia Z5 Android Development] zhjackss:
is it just me or wifi doesnt work?
[Xperia Z5 Android Development] Hiku:
It is a command to delete folder, default wiping will format your partition and somehow it isn't compatible with nougat firmware.
[Xperia Z5 Android Development] smiley.raver:
ok thanks
[Xperia Z5 Android Development] Zaisesl:
In wich firmware are you using this? Cause this is for marshmallow 5.11
[Xperia Z5 Android Development] zacharias.maladroit:
it'll only work on Marshmallow and 5.11 (well, 305+), older Marshmallow ROMs have an too old WiFi firmware for it to work

+1
[Xperia Z5 Android Development] whalesplaho:
should i enable cpu core? mind sharing some settings for ex kernel manager.......

please still looking forward for tha font ....... thanks!
[MENTION=3037651]zacharias.maladroit[/MENTION]
[Xperia Z5 Android Development] whalesplaho:
had one freeze while using tha phone yesterday but no log.... was using bbm den drop tha phone & it locks & i tried to unlock buh not responding & tha led blinking light for unread msgs.... so i dropped tha phone hoping it ll work or reboot itsef buh no it was getting very hot n hot. had to force off it & leave for a while before powering it on back.
[Xperia Z5 Android Development] Zaisesl:
https://xdaforums.com/crossdevice-dev/sony-themes-apps/fonts-font-style-flashable-devices-t3532561

did you try this for the font?