yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Android Development] koekoek91:
Hey man...

I've been using Z5_SK_Perm_v376_aigoo_I.1_6_3_sum.zip since yesterday.

It seems to me alot more stable.

No reboots, freezings or lagg yet so far.

I used it yesterday with just my own governor values and now I have been changing some of the values you mentioned above using EX Kernel Manager.

I have a few questions though....

What exactly did you mean by ''To fully have the different experience?'' I mean... what exactly was your goal with changing these settings?

Better performance / batterly life?

Anyway below i'll list (some) of the changes I made and mention at what value they were before I changed them.

input_boost_ms (I personally dont really like to enable any boosting) I keep that disabled because I dont think input boost is really necessary.

sched_init_task_load (this was at 30 and I set it to 55)

sched_upmigrate_min_nice 9 (no changes needed)

sched_small_task 60 (no changes needed)

sched_heavy_task I think this was at 0 but im not 100% sure... I set it to 85

sched_boost disabled (for now) as I dont like to boost anything on my phone except battery life :P

sched_upmigrate (this was at 99 and I set it to 95)

sched_downmigrate_ (this was at 90 and I set it to 85).

So I mostly followed your suggestions.

I just changed them a couple of hours ago so I will wait and see what this does.

It would be interesting to know all the meanings of these values and what they do, but I understand that would be to much work to explain :silly:

But as I asked, I am curious about what different experience you were talking about? :)
[Xperia Z5 Android Development] whalesplaho:
i flashed also & no issues yet.... using tha settings yhu posted for kernel adiutor.

tho didnt use ex kernel manager.

but so far so good no issues at all..... but heat & battery drops!
[Xperia Z5 Android Development] korom42:
[MENTION=3037651]zacharias.maladroit[/MENTION]

Using Z5_SK_Perm_v376_aigoo_I.1_6_3_sum for 2-3 days now very stable (no reboots) and smoother than old kernels battery SOT is good it's same as others / or a bit less.

-One bug sound not as great as before volume control on headphones not working properly kinda too high on low steps and there is some noticable noise on few first steps
[Xperia Z5 Android Development] Home4Real:
Hey mates,

I have a problem with this kernel.

First I have reeboots all the time. If I connect charger, connect Carradio with Bluetooth, sometimes if I start WiFi and ~5 times per day they reeboot without any issues. WiFi and Bluetooth are lagging. Can't play any song full length on radio. It's stopped 3 sec later they play.... Play 30 sec than stop again and again....

Anyone knows what's wrong with my E6653?

Before I install ur kernel I follow some root on YouTube with an kernel download from xda. With this kernel I got an Bootloop and nothing works.:( Than I install urs.

Now it works but with some problems.

I installed ur kernel and then superSU. If I do some wrong?

PS sorry for my bad English.... :D
[Xperia Z5 Android Development] koekoek91:
Which firmware version are you running? MarshMallow or Nougat?

And which version of the kernel are you having these issues with?
[Xperia Z5 Android Development] Home4Real:
I use this one...

Maybe it's wrong that I do not have stock kernel installed? I installed this kernel with twrp over the bootlooped kernel.
[Xperia Z5 Android Development] zebasketteur:
Hi guys, today what is the most stable/ battery friendly kernel ?
[Xperia Z5 Android Development] whalesplaho:
no issues here at all...... after flashing kernel what did yhu flashed again & after bootloop did yhu flashed previous kernel & it works?
[Xperia Z5 Android Development] koekoek91:
Try the Z5_SK_Perm_v376_aigoo_I.1_6_3_sum.zip on this post https://xdaforums.com/showpost.php?p=71574054&postcount=1717

So far it seems to work alot better :)

Latest version ( I linked post in quote above) works really well so far.

Battery life is just bad honestly on Nougat so far. Sunkernel has given some minor improvements,

but Sony will probably have to fix this battery drain issue everyone seems to have themselves..
[Xperia Z5 Android Development] CaeLum764:
I've been using Pdesire's core kernel for a while, it has much less idle drain than the current aigoo kernel and overall better battery life. [MENTION=3037651]zacharias.maladroit[/MENTION], maybe you can ask him for some help?

Link: https://xdaforums.com/crossdevice-dev/sony/kernel-pdesirecorekernel-rc2-sony-t3559035
[Xperia Z5 Android Development] whalesplaho:
[MENTION=7328701]koekoek91[/MENTION] 3.16.4 is out....
[Xperia Z5 Android Development] koekoek91:
This one was posted by zach after that?..

I think not official release though..
[Xperia Z5 Android Development] whalesplaho:
Maybe.... Just saw it in tha Z5 Kernel folder!
[Xperia Z5 Android Development] koekoek91:
Yeah I believe 3.16.4 is the latest one available in the google drive folder.

Z5_SK_Perm_v376_aigoo_I.1_6_3_sum.zip

is alot better though and was only posted as attachment on the thread here.
[Xperia Z5 Android Development] whalesplaho:
tho i have flashed tha 3.16.4 & still testing brov....... hope it gets better!
[Xperia Z5 Android Development] Home4Real:
Ty for that link. I will test it. Short question.

Install zip or only the img? Or is the same? Can I installed over the old kernel?

Ty 4 awnser, sorry I'm noob root'er. 3 years ago I rooted my z2.... In my mind I think it was easier.... :confused:
[Xperia Z5 Android Development] koekoek91:
The boot.img you would use for flashing via fastboot on ur PC.

The whole zip is for flashing through twrp.

Both will give the same result, and yes you can just flash it over the other kernel ;)

Edit: also take a look here at this great guide for beginners

https://xdaforums.com/xperia-z5/general/guide-sony-xperia-z5-unlock-root-tweaks-t3298224
[Xperia Z5 Android Development] Home4Real:
Flashing the zip with twrp failed. Can't find md5 data... Maybe I will try at home with fastboot. Hope that will work...
[Xperia Z5 Android Development] koekoek91:
Which version of twrp are you running?
[Xperia Z5 Android Development] Home4Real:
3.0.2-0
[Xperia Z5 Android Development] Hiku:
Disable md5 verification.
[Xperia Z5 Android Development] whalesplaho:
seems 3.16.4 aint so good..... it drains much but reverted back to 3.16.3!
[Xperia Z5 Android Development] zacharias.maladroit:
UI, apps, etc. is supposed to be smoother (cause it's running at higher priority compared to Android processes themselves)

also the up-ramping of the task-migration to big cluster CPUs is supposed to happen LATER (comparable to on Nexus 6P)

All of those settings are already in the kernel,

but Sony is overriding them in their init scripts so some values might be Sony,

thus the need to AGAIN set it manually :/
[Xperia Z5 Android Development] zacharias.maladroit:
376/378 Nougat kernel, v376_I.1_6_5

https://drive.google.com/open?id=0BykGGWB96CBQYVQwdUc1V0stMEk Z5_SK_Perm_v376_aigoo_I.1_6_5_sum.zip

https://drive.google.com/open?id=0BykGGWB96CBQaC1QbzNQVXBFSk0 Z5-DSDS_SK_Perm_v376_aigoo_I.1_6_5_sum_dual.zip

This kernel has

WiFi related battery saving changes, drain might be SIGNIFICANTLY lower

cpuidle changes to allow it to sleep better [stability & reliability need testing]

tweaking optimization flags [stability & reliability need testing]

optimization flags on the kernel might work reliably now (they are actually passed to the kernel)

zram is using lz4

high-performance mode on the wcd9330 ASoC (audio sound chip) is enabled by default [battery consumption, stability & functionality need testing (e.g. echos in calling, etc.)]

sched_boost is set to default value (on or off, depending on what enables or disables it) to potentially lower power consumption

TONs of wakelock blockers have been added (and working reliably), in EX Kernel Manager ALL are available, on Kernel Adiutor Mod NOT

If you're having HIGH battery consumption with WiFi, set the 2.4 Channel to 20 MHz (full bandwith) INSTEAD of 40 MHz - 40 MHz has HIGHER battery consumption and drain (might be bug of the WiFi driver),

or if you have 5 GHz available USE that, it works more reliably
[Xperia Z5 Android Development] crisout:
I can confirm this kernel works on new compilation .33
[Xperia Z5 Android Development] whalesplaho:
Anything new on 33 FW?

---------- Post added at 05:24 PM ---------- Previous post was at 05:21 PM ----------

[MENTION=3037651]zacharias.maladroit[/MENTION] downloading new update v376_I.1_6_5 and also i have idle drain with wifi, how do i change dose values? In settings- wifi??

Thanks always!!!

---------- Post added at 05:50 PM ---------- Previous post was at 05:24 PM ----------

[/COLOR [MENTION=3037651]zacharias.maladroit[/MENTION] can yhu post wakelocks dat can be block to save juice without hindering tha phone functionality...!?
[Xperia Z5 Android Development] crisout:
People are talking about speakers improvements (difference between superior and inferior speaker), unfortunately new issues related with album rendering and lag in phone app, I saw the same battery drain.
[Xperia Z5 Android Development] zacharias.maladroit:
The WiFi changes are in the driver,

the problem is that Sony doesn't tell how and if they modified the driver prior to compiling it as an external module,

it doesn't make sense that the driver has so much higher battery consumption when built into the Kernel instead of using the prebuilt one,

this issue affects both the modified Stock Kernel on Sony's ROM and LineageOS, Carbon ROM and others that use the different WiFi driver (or perhaps even AOSP).

There's currently a pretty high battery drain (well, I forgot to add a lock screen pattern so the phone was active today all the time in my pocket, and probably did some stuff that it wasn't supposed to do)

but it drained from 43% to 0% in 5-6 hours :D

Thus I changed the compilation flags AGAIN, it takes quite some reading and fully understanding the background how the toolchains, flags, hardware, etc. all interact with each other to get the optimum out of this device.

Wakelocks can ALL be disabled but when disabling ALL I get the impression that battery consumption is actually HIGHER than supposedly lower,

so only certain ones probably need deactivation.

It's offered as additional knobs for Nougat ROM since XPosed and effective Wakelock blockers do NOT work on Stock ROM.

I analyzed the logs for the 3.16.5 kernel and there's one interesting one but the other ones are rather cryptic and do NOT point to the exact source of the issue :(

Thanks for those logs !
[Xperia Z5 Android Development] zacharias.maladroit:
376/378 Nougat kernel, v376_I.1_6_7

https://drive.google.com/open?id=0BykGGWB96CBQT3VUVzNURFZSV3M Z5_SK_Perm_v376_aigoo_I.1_6_7_sum.zip

https://drive.google.com/open?id=0BykGGWB96CBQOWxvMXVDYVlKMHc Z5-DSDS_SK_Perm_v376_aigoo_I.1_6_7_sum_dual.zip

This kernel has

changed optimization flags

toolchain switch to Linaro 4.9 (mdalexca)

redone optimization flags [needs heavy testing and evaluation]

one WiFi driver "fix" that supposedly fixes a wakelock/wake unlock mismatch (entries were missing + upstream fix)

If you're having HIGH battery consumption with WiFi, set the 2.4 Channel to 20 MHz (full bandwith) INSTEAD of 40 MHz - 40 MHz has HIGHER battery consumption and drain (might be bug of the WiFi driver),

or if you have 5 GHz available USE that, it works more reliably

I.1_6_5 had a potential VERY high battery consumption (or I simply kept the phone active while not using a lock pattern & it drained on its own in my pocket during 5-6 hours for 43% :p )

Nevertheless I gained further understanding of the optimization flags and reworked them a bit further ...
[Xperia Z5 Android Development] whalesplaho:
Will flash latest update and see.... Seems drain higher in Z5_SK_Perm_v376_aigoo_I.1_6_5_sum like yhu said. So i ll check kernel adiutor and see if i can disable any wakelock buh apart from wifi dat drains tha battery dnt think i have any other issue and i noticed tha fone gets hot unlike before dat it was cooler....
[Xperia Z5 Android Development] koekoek91:
I'm currently testing the wakelock blockers.

Here's how I look at it: I use the phone for a day (before blocking wakelocks), then I look into Better Battery Stats under kernel wakelocks and see which ones I see.

Then I go into EX Kernel Manager to the wakelock blocker options and see which ones that I saw in BBS that were draining,

( with draining I mean were more than 1%) and so I block those in EX Kernel Manager. The others that I dont see draining my battery in BBS app I just leave untouched.

Thanks man...

Will test and see....

On 1_6_5 I had 8% idle drain (over 10 hours).

Forgot to set my alarm, to be able to do an 8 hour test, but 8% over 10 hours on idle seems quite alot.

So ill flash 1_6_7 right now and post feedback later.

Also ill flash soon the new firmware when I get time to do all that :p
[Xperia Z5 Android Development] Nyuubi:
Any tried sunkernel on fw 3.22?
[Xperia Z5 Android Development] whalesplaho:
Its 3.33... A user posted dat it works!

---------- Post added at 01:28 PM ---------- Previous post was at 01:25 PM ----------

Will try download latest FW buh bad net and also ll need to deodexed and do some modding... Will find time buh first need to download FW!
[Xperia Z5 Android Development] Home4Real:
Test it last 2 days. Only 3 random reboots. WiFi and Bluetooth works great atm. Ty 4 ur help. :svetius:
[Xperia Z5 Android Development] zacharias.maladroit:
How "random" are those random reboots ?

Just had a reboot while listening to music (Sony Stock music app) & tinkering around with EX Kernel Manager,

no log - that's kinda weird,

if this crap continues I'll abandon Sony's Stock ROM, even with close to minimal changes there are stability changes (Marshmallow was kind of a breeze compared to Nougat, with Nougat MHL still can't be used built-in with Stock ROM) :eek:
[Xperia Z5 Android Development] whalesplaho:
Abandoned?? Yhu are our only hope buddy, please dnt!!

Tho i had reboot once and i was using an app den it freezes amdand reboots and none while playing music with walkman...
[Xperia Z5 Android Development] koekoek91:
[MENTION=3037651]zacharias.maladroit[/MENTION]

Just did an idle test while blocking all wakelocks available in EX Kernel Manager and turning off wifi.

First time 0.0% drain over 8 hours on Nougat :silly::highfive:

Will test soon with wakelocks blocked, but wifi turned on, to confirm wifi is draining while we sleep..... I think it does :p
[Xperia Z5 Android Development] _LLJY:
Kind of true for ROMs too

The Xperia XZ is a breeze to develop for, the Xperia Z5 is more like trial and error, making the smallest of changes makes the ROM bootloop

You know, i really feel like abandoning stock ROM and moving to LOS
[Xperia Z5 Android Development] Hiku:
I never have a random reboot with my custom kernel on nougat, you must **** something up. I see you pick a lot of useless commits.
[Xperia Z5 Android Development] zacharias.maladroit:
If it only were that simple :rolleyes:

edit:

https://github.com/zachariasmaladro...mi_r2/commits/Sun-Kernel_aigoo_32.3.A.0.372_I

okay, which of those commits are "useless" ?
[Xperia Z5 Android Development] whalesplaho:
After blocking all wakelocks, did phone respond okay and works fine?

Worth trying too....
[Xperia Z5 Android Development] koekoek91:
Yep you can safely try it.

No issues so far for me on 1_6_7.

Tomorrow ill go to school and listen some music for long period of time, I expect a random reboot then but we'll see.

I'll do another idle drain test tonight when I go to bed with wifi enabled and all wakelocks blocked.
[Xperia Z5 Android Development] whalesplaho:
I have done dat and ll see how it goes.... Will test idle drain too at night and is yur data always on at night too?
[Xperia Z5 Android Development] koekoek91:
Yes my data is always on at all times.
[Xperia Z5 Android Development] whalesplaho:
I ll try too and see....:highfive::good:

Do yhu experience phone heat up?
[Xperia Z5 Android Development] koekoek91:
No not really.

Only in TWRP when creating or restoring a backup, but thats pretty normal.

When are you facing this heat then?
[Xperia Z5 Android Development] whalesplaho:
TWRP is normal... During usage, phone get hot buh not as when we initially updated to Nougat brov!
[Xperia Z5 Android Development] koekoek91:
Are you affraid you'll destroy your phone?

I wouldn't worry about that to much.

Is it getting uncomfortably hot to hold in your hands? Get a nice phone case to use it in.

But either way hot phone is never good, then battery will be draining more too :silly:

About why your phone would be hot on this kernel / rom I dont know bro :p
[Xperia Z5 Android Development] whalesplaho:
Hahahahahahahahahahaha.... Just worried bout battery and using a clear transparent rubber case!!! Thanks...
[Xperia Z5 Android Development] koekoek91:
Just finished another idle drain test.

Same settings as yesterday, only wifi turned on this time.

Some significant difference, and I use 5GHz channel.... signal is very strong.

Also im noticing there's no doze interactive time, while im using force doze and Greenify agressive doze.

I guess it'll be my next test to turn off one of the two and see if I get more doze interactive time.

Maybe they are conflicting with eachother?
[Xperia Z5 Android Development] koekoek91:
Anyone else having issues with sound on 1_6_3 upto 1_6_7 kernels?

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

Im currently listening to music (no reboots yet).

But on 1_6_7 theres an annoying high tone very audible in between songs when there's supposed to be silence.

Also music is going louder / less loud by itself.

I've reverted back to 1_6_5 and 1_6_3 and the annoying high tone in between songs is gone, but something just sounds off to me in the sound and it still goes louder/less loud by itself alot.

I don't know if its because of the kernels, I havent reverted back further than 1_6_3 yet.

Im also considering maybe my phone has got some water damage.

I cleaned it with water a few days ago, but I don't really believe something went wrong.

Im considering it as a cause for my sound issues though.

I guess the only true way to rule out water damage is to flash new firmware and listen with stock sound.

I was planning on flashing latest new firmware anyway, so ill probably do this soon when I get time.

Still I was just curious if anyone else is having problems with sound (mainly while listening music with headset), on latest 3 aigoo series kernels?
[Xperia Z5 Android Development] whalesplaho:
How can i change tha wifi signal channel??? I have dis buddy, from 83% to 73%, just data on... I have forcedoze on with just disabling forcedoze on charging on only. I have greenify agressive doze mode.
[Xperia Z5 Android Development] zacharias.maladroit:
That's high performance mode of the wcd9330 for you :p

There's way more "white noise", "hissing" or whatever in the output by default,

afaik I didn't notice this in the past due to the headphones used but when using certain headphones it's pretty clear it's there,

try disabling the high performance mode in Kernel Adiutor (Mod) and please let me know if it's gone with that.

The same applies to PDesireAudio since it's also utilizing the high performance mode from what I can tell,

thus under certain circumstances the output is better (very high level sound output) but that's only certain corner cases and degrades quality in most of the other cases.

There are other kernel-side changes available that allow it to keep the audio quality and even very high volume sound output without crackling

but that needs further testing & investigation for now ...

Thanks
[Xperia Z5 Android Development] whalesplaho:
I dnt have issues but ll test for dis and see... I have dontbelive soundmod and lastest kernel version.
[Xperia Z5 Android Development] koekoek91:
You can change it in your router settings.

Im not sure if there is a way to do it on your phone.

But your screenshots is not from a correct idle drain test. 1h screen on time.

Dont know if this was intended?

For an idle log you need to charge to 100%, unplug and turn of the screen and leave it alone for 6-8 hrs.
[Xperia Z5 Android Development] whalesplaho:
I mostly charge to 85%, so i charge to 87% and use tha phone den i leave it and slept off around 83%. Will try dat tonight and see. Thanks!

I dnt have a router but i have a server station at work but connecting my phone is what i dnt understand.
[Xperia Z5 Android Development] Samir SRA:
Camera Video Lagging

After Flashing

Z5-DSDS_SK_Perm_v376_aigoo_I.1_6_7_sum_dual

on my xperia z5 dual e6683

Camera started to cause lagging.

What to do?
[Xperia Z5 Android Development] koekoek91:
Okay just flashed 1_6_7 again and downloaded KA-Mod.

I tried high performance mode on and off.

The high tone in between songs seems to be gone now.

On higher volume levels sound seems to be normal (high performance mode on/off doesn't seem to make a difference).

But on lower level volume the sound starts to go louder/less loud by itself (mostly when bass sound kicks in this starts to happen).

Right now I am at school, so I need to focus on other things and im not able to carefully mess with the sound settings and listen carefully as we are going into a meeting right now :p

This is all I can say about it for now, will test more in depth on my way home when im on the train.
[Xperia Z5 Android Development] whalesplaho:
Is stamina on or any other battery saving app?
[Xperia Z5 Android Development] Samir SRA:
Yes bro Stamina mood.

But it starts at 15% battery level
[Xperia Z5 Android Development] whalesplaho:
Den it shudnt lag... Try device performance preferred and see..
[Xperia Z5 Android Development] Samir SRA:
ok i just flash again and now its working well.

but one thing,

System Update is showing in my phone , even I did download that at my phone, but when Press Install now, device reboots and after reboot It shows Could not INSTALL.

Why?
[Xperia Z5 Android Development] whalesplaho:
Yur BL is unlocked... Yhu ll download FTF and flash with flashtool!

Good its working well
[Xperia Z5 Android Development] Samir SRA:
If I flash through Flashtool, I will need to flash this kernal again?

And *#*#7378423#*#* is showing my Bootloader unlock allowed : YES.

So BL LOCKED.

Then what wrong?

---------- Post added at 01:20 PM ---------- Previous post was at 12:29 PM ----------

Too much noise in call using headphone. And Music starts loud at starting and kick of bass.

What to do?
[Xperia Z5 Android Development] whalesplaho:
To use a custom kernel, yhu must unlock yur BL. If it shows BL unlocked allowed: Yes, dats because tha kernel has drm fix... Yhu gonna need to use flashtool to flash FTF den fastboot kernel again too....

For tha sound, some users too complained of dat and [MENTION=3037651]zacharias.maladroit[/MENTION] responded some posts up.
[Xperia Z5 Android Development] koekoek91:
[MENTION=3037651]zacharias.maladroit[/MENTION] [MENTION=6223780]Samir SRA[/MENTION]

Okay im finally home and was able to carefully listen to some music in my room without having to worry about my surroundings.

The high tone in between songs definetly is gone now on 1_6_7 kernel, don't know how, but its gone.

I've noticed a few things.

First of all, turning high performance on/off in KA-Mod doesn't really make a difference.

Second thing I have found out is that when having the sound on low volume ( even almost lowest level) it starts pretty loud,

but as soon as the bass kicks in its going less loud and starts to move from less loud to a bit louder to less loud continuously. Bass seems mostly affected by this.

Then I started to play with the volume and this is where it started to get interesting for me...

When ramping up the volume level, pretty much nothing happens until a certain volume level...

(I would say when passing about 65-70% of the volume bar) music will get louder and from that point it will mostly stay at high and the same volume level.

So from that volume level point sound isn't going louder/less loud by itself anymore and music can be listened without issues :)

So the solution for now to get normal sound on 1_6_7 (atleast for me) was to use a higher volume level, of around 60-75% of the volume bar.

No reboots so far by the way.

Hope this helps :)