yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Android Development] Andromeda 90:
Thanks for this great kernel [MENTION=3037651]zacharias.maladroit[/MENTION] Really very smooth, great battery life and good performance.

The only problem is with PDesireAudio, Included since v4.5.9 sounds badly, and no settings with the equalizer work.

Any solution?. :D
[Xperia Z5 Android Development] zacharias.maladroit:
can you upload a log ?

perhaps there's anything unusual (logcat + dmesg)

you tried 2_5_1 ?

yes, there's also a single variant kernel in the google drive folder

and that should (hopefully) improve sound.

Please define "sounds bad" in what terms ?

What headphones / headset used ?

What equalizer do you mean ?

No feedback for Dual SIM devices == no new kernel

EVER
[Xperia Z5 Android Development] KafeURNA:
Sorry, I was not last few days over here, sadly I am switching my work / company, so it is hard time last few weeks... I will try it today and tomorrow. And will let you know ;)

I do appreciate your work. But almost no time right now.
[Xperia Z5 Android Development] Andromeda 90:
you tried 2_5_1 ?

yes, there's also a single variant kernel in the google drive folder

and that should (hopefully) improve sound.

Please define "sounds bad" in what terms ?

What headphones / headset used ?

What equalizer do you mean ?

Sorry for answering late, I had a heavy day.

Yes. I am using v2.5.1 on my E6653.

And the problem continues, the sound is as if you go up and down the volume constantly, the same in headphones.

The equalizer that used for the adjustments is the own of the default player of sony. It seems that there are conflicts with it.

I use the eXistenZ ROM.

And in your personal settings, I can change the music effect by.

MusicFX included in ROM.

And Viper4Android.

This solved it a bit.

But not yet for a music lover.

Although you better try a small sample of what I mean, try to listen a little ... :D

Audio Testing https://goo.gl/Qr1N14
[Xperia Z5 Android Development] KafeURNA:
Good job! It is working :)
[Xperia Z5 Android Development] LunatikBunnie:
Was still stress testing the kernel, sorry.

After 2 different flashes of 2.5.1, Wi-Fi works perfectly with no issue. Disabled touch boost in kernel adiutor.

.... Right up until today. The system goes quite hot and then everything is delayed, touch inputs, loading time, black screens. During overnight charging it rebooted, because it said "pin entry necessary after reboot"

There's no battery drain, the battery life is sublime. I would call it good if it were just that. Do let know what logs is needed to help assist in finding out what's the cause of the slowdowns, even as i type this on the Swype keyboard, some taps/swipes are delayed.

Stock 511 Rom. Greenify,(boost mode) kernel adiutor(no unit.d scripts, just disabling input boost) and xposed installed.
[Xperia Z5 Android Development] zacharias.maladroit:
Okay, I might have an idea in what direction(s) this might go but there are several possibilities,

does that slowing down persist and the device keeps on staying hot ? If yes throttling and clocking down of the CPU might be involved.

Alright, so that issue is still dormant in the kernel and in fact related to the kernel - interesting ...

Thanks for confirming, posting that it's happening in Stock, I kind of observed something (perhaps) related and might have fixed it but it seems it's either back or something related (or else) is now there, too

[notes/keywords for brainstorming: overflow, counters; heating, throttling, bcl, qpnp; unix, af_unix, app randomization +/- memory fragmentation, alloc fail/ion, compaction, zram, etc. ...]

Great to read that the optimization towards battery consumption has payed off :)

logs can be acquired from pstore:

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

and also please provide logcat

Ideally if a device just rebooted, the log is still there.

If it hangs and you turn it off ("hard reset"), then turn it on again - naturally the "cache" will be wiped and the log is gone,

so e.g. if it hangs and the led flashed red, wait a bit that it reboots on its on (e.g. wait for 15-30 seconds) - if it doesn't you can force it to off,

but normally it should reboot on its own and should be able to provide the log of the incident.

If the device slows down - post output of dmesg and logcat, perhaps the logs of the running phone also provide information.

Swype isn't known to be the fastest keyboard (and e.g. it was known to slow down the device, such a SwiftKey, but it ideally shouldn't affect the entire system).

Just as a test & if it's possible to use a different swiping keyboard: can you e.g. use temporarily google keyboard, swiftkey or xperia keyboard for a few days and see if the slowdown also occurs there ?

I've posted above in this message a few terms that came up during brainstorming that could be related to the slowing down and there are several (a lot in fact) steps or possible kernel setups involved to test,

let's go one step at a time otherwise it'll be difficult to find the cause

Thanks :)

Anyone observed something similar (that the other side can't hear you and/or that you only hear an echo of yourself) ?

This seems to happen with calling + loudspeakers
[Xperia Z5 Android Development] the_brad:
Z5P here, yes, I observed that right now. Don't know, if the other side can/can't hear me (was on hold at a customer-service hotline and hang up after 25 mins). But there was a significant echo with loud speaker on.
[Xperia Z5 Android Development] zacharias.maladroit:
another thought:

since you did some more testing:

after what uptime does this "getting hot + delay" happen on average ?

CC: [MENTION=4471890]whalesplaho[/MENTION]

what keyboard do you use ?

when did the "lags" start for you ?

right after rebooting ? - if yes: give it a few minutes: it might take time to update the media index or do other maintenance stuff,

but after a fresh boot it usually shouldn't get slower - if yes,

I need to know what "larger" games or apps you are using, same applies to [MENTION=2472207]LunatikBunnie[/MENTION] and others experiencing slow downs,

please post a list of the apps you have installed

Also XPosed ?

What mods of XPosed ?

[MENTION=6791680]_LLJY[/MENTION] had some battery drain and slowing down of the phone related to XPosed, so depending on ROM (slimmed/trimmed down or "stock"/vanilla) and usage case it could be related to XPosed
[Xperia Z5 Android Development] zacharias.maladroit:
Anyone observed something similar (that the other side can't hear you and/or that you only hear an echo of yourself) ?

This seems to happen with calling + loudspeakers

[MENTION=817586]the_brad[/MENTION] what ROM version do you have installed ?

can you please answer the following questions:

can you remember when you last used calling via loudspeaker and it didn't happen ?

I got meanwhile some useful information out of [MENTION=4503201]blue-spiderfire[/MENTION] 's report from the Z5 compact thread

Thanks
[Xperia Z5 Android Development] whalesplaho:
[MENTION=3037651]zacharias.maladroit[/MENTION]

using stock keyboad, existenZ v3.0.0..... mostly when im using tha phone for long & typing in chats app or firefox trying to reply posts on XDA....
[Xperia Z5 Android Development] zacharias.maladroit:
Okay, several factors can come into play:

one is that the "automatic headphone optimization" feature is going crazy (is that used ?), then reset the apps data, cache and reboot the phone + unplug the headphones

the other is that FauxSound is going crazy - if you have it enabled via Kernel Adiutor (or favorably via "FauxSound" app) - then please wipe the app data and uninstall it, unplug the headphones and reboot the phone, then turn it off.

Then install the app after 1-2 reboots again - that should hopefully have given the phone some time to "center" itself again

other factors could be involved via SoundMods, ROMs, changed mixer paths, volume levels - but I doubt that it applies in this case

I have experienced the first 2 cases but in my opinion only the 2nd case (FauxSound) might apply here since it's exact the behavior I also witnessed

Hope that somehow helps :fingers-crossed:
[Xperia Z5 Android Development] Andromeda 90:
Thanks for your help dev. I have tried what he mentions, and come to the conclusion that.

The problem is really the conflict with the stock equalizer, previously had been fixed the same problem in eXistenZ.

This happened again with PDesireAudio.

I have not done much testing for lack of time, but everything is fixed when selecting any other sound effect, either MusicFX or Viper4Android.

Since when deactivating the stock equalizer, everything works perfect, even works well enabling FauxSound.

Although honestly, sometimes I prefer the automatic optimization when using headphones. [Too bad I cant use it.] :(

But for now the solution I mention is perfect. :good:
[Xperia Z5 Android Development] the_brad:
I tried again and disabled the Sony Equalizer and optimization settings before testing. And it's gone ?. Then I reactivated everything like it was yesterday and it didn't come back.

Will observe in the next few days.

My versions used are

Kernel: 2.4.9

ROM: 5.11

Mods that alter /system: Peter.schwake's camera next mod and that thermalX mentioned here a few times before. And a slightly changed cfg for making my led brighter.

And of course a lot of xposed stuff (10-15 modules).

Nothing's changed in kernel adiutor regarding sound.

I really have to admit, I can't tell, when it worked the last time, since I don't usually use that feature. Mostly when waiting in line at some customer services. And the point here is, that I usually don't interrupt that nice music with my talking (so that I didn't hear an echo). Sorry.

Another topic has been sudden reboots. I guess, I might have found at least one reason for that. In kernel adiutor, there is a setting called

"arch power - Enable Arch Specific Power Function/Savings."

I don't know what that does, but it seems to cause my phone into rebooting a few minutes after activating that. I disabled it and had no reboots for 2 days!

Hope, that might help you all [emoji106]
[Xperia Z5 Android Development] whalesplaho:
Yeap it wont work with stock audio fully but when i use ProjectMeLI, yhu cant use v4a, stock and am3d together except stock with v4a in compatible mode or am3d alone.

I m on existenZ rom so i flashed tha MaxxAudio mod provided in tha rom thread but i noticed dat tha MaxxAudio doesnt have effect except i use dolby but i need turn on dolby on every reboot and if i enable stock, tha sound ll be distorted and bad.
[Xperia Z5 Android Development] RyTekk:
Indeed, we don't need it since sched has been changed.
[Xperia Z5 Android Development] the_brad:
Thank you! Seems I should definitely RTFM [emoji106] [emoji28]
[Xperia Z5 Android Development] LunatikBunnie:
I've attached a bunch of screenshots of the xposed mods I have installed and the temperatures of my phone during the lag.
[Xperia Z5 Android Development] -DM-:
Had something similar happening yesterday but wasn't on a call with loudspeaker...just watching a video, after a minute or so the sound went on all muffled and felt like it switched all to the top speaker (but sound is still coming from both)

Doesn't happen with headphones, only thru phone speakers and it's pretty random after the video starts, a few minutes in and sound becomes all convoluted, stopping and starting again sometime helps....but again it's all pretty random.

No sound mods here on a Z5p, 2_4_9 kernel, RomAur, DSEE HX off, Clearaudio+ off, Dynamic Normalizer on and Sony equalizer to user define on...

Edit: tried to reproduce the bug today, and it only happens with videos within the Facebook app, so might be their player...?!?
[Xperia Z5 Android Development] zacharias.maladroit:
++

introduced 2012

disabled 2014 already

There's however something I remember related to it, that it was to be left "on",

but if it interferes with stability, it probably better should be "off".

Also the kernel is patched up sufficiently that IMO it shouldn't consume that much more battery (if at all)
[Xperia Z5 Android Development] zacharias.maladroit:
[MENTION=2472207]LunatikBunnie[/MENTION] [MENTION=4471890]whalesplaho[/MENTION] and others affected,

I most likely found the main culprit for the recent kernels:

per-process reclaim

[MENTION=5996255]jollaman999[/MENTION] over at Nexus 5X seemingly also ran into a similar issue

Let's see how it behaves now with it disabled ...
[Xperia Z5 Android Development] zacharias.maladroit:
OP (1st post) got updated with a shortcut to the Google Drive folder

tl;dr instruction on how to get the current kernels,

please give 5.11_corona_III.2_6_ctl_X a try :)

Changelog

[Download] How to get the

current

("corona", 5.11) SunKernel(s) - Step by Step:

Note:

The optimization flags needs some testing, so it's NOT 100% sure if the kernel is entirely stable
[Xperia Z5 Android Development] LunatikBunnie:
I just had a red dot notification reboot in front of me, here's the attached logcat

http://filebin.ca/3BPvCUjdl3LD/Log_2017-02-06_11-38-57.txt
[Xperia Z5 Android Development] zacharias.maladroit:
Thank you :)

Unfortunately logcat only contains information for AFTER the reboot,

the crucial and import information is in the pstore "cache" - if the device wasn't turned off after or during the hang up (red led flashing)

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

what were you doing while that happened ?
[Xperia Z5 Android Development] LunatikBunnie:
A phone call was coming in, it was idling in my pocket before that. When i took it out, i tried switch the screen on because the screen was black. When it showed my wallpaper it just blacked out and had the red notification of death(RNOD) .

Another thing to mention is, I am also using Moto 360 V2 android wear watch. That's how I knew a call was coming, my wristwatch would vibrate. Funny thing is, my phone didn't ring like it usually would, my watch indicated and the phone vibrated.

Another instance of it happening was during Chrome web browsing, ironically, was to look at replies on this thread -__-

Edit: here is console-ramoops

http://pastebin.com/KUdPuMAr
[Xperia Z5 Android Development] zacharias.maladroit:
That can't be all from the console-ramoops ? :confused:

how about dmesg-ramoops-1 or dmesg-ramoops-2 ?
[Xperia Z5 Android Development] LunatikBunnie:
Here you go : http://pastebin.com/5DfQ0veq

Dmseg-ramoops, only one not uploaded is pmsg-ramoops
[Xperia Z5 Android Development] zacharias.maladroit:
Thank you :)

That contains some info but it's not really clear where it comes from (well, there's of course the connection to bluetooth and bluesleep, but there's no full fledged bluesleep driver available/used in our source,

then there's "screen off" [low power mode] and the android gms connection and finally lmk)

Do you have ARCH_POWER enabled, by chance ?

I remember recently that there was a case where Google Play or Play Services was updated and something similar occurred

So could you please check if there is an update for Playstore or Play Services available (via XDALabs app) ?

I've found several additional null pointer exceptions to be fixed but I'm not entirely sure if that's enough - also if it's 100% related to the kernel

What ROM are you using ?

stock 5.11 ?

Any ROM mods ? Any init scripts ? Kernel Adiutor ?

Anyone else had similar issues ?
[Xperia Z5 Android Development] LunatikBunnie:
No idea what ARCH_POWER is or whether it was ever enabled.

Stock 5.11

No mods, no scripts, Adiutor installed but nothing touched. Previously had input and touch boost disabled, but I didn't set it to apply on boot so on a restart i just left them as they are.

Would changing Governors help?
[Xperia Z5 Android Development] whalesplaho:
Flashed latest kernel.... Tho still experiencing phone heat up buh seems reduced.

Battery doesn't do so much, still drops... I have LSpeed, Greenify' Kernel Aduitor to disable touch boost only, Amplify and existenZ rom!
[Xperia Z5 Android Development] koekoek91:
I've read some other people talking about heating issues from eXistenZ ROM.

If I recall correctly I also read someone stating it uses some thermal config file or something like that which could be causing it.

Have you tried on different ROMS? And different kernels, stock, androplus? To compare if the problem persists.
[Xperia Z5 Android Development] zacharias.maladroit:
This is getting annoying I hit several instabilities and limitations to add mm rework to the kernel again

due to texfat module (proprietary, prebuilt exfat filesystem driver for microSD)

Related:

http://stackoverflow.com/questions/40225803/android-3-18-43-kernel-texfat-stock-module

http://lists.infradead.org/pipermail/linux-arm-kernel/2015-March/330326.html

If this continues like this, and the kernel appears to get more unstable, this kernel will be ported over to LineageOS and will stay there ... NO MORE Stock !

I'm fed up with it ! :mad: :(
[Xperia Z5 Android Development] whalesplaho:
Did with AndroPlus kernel... But havent testede lastest kernel wif anoda rom. It might be rom, can't say.

---------- Post added at 07:29 PM ---------- Previous post was at 07:28 PM ----------

Wooooopppsssss... No more stock???

Buddu please be cool n yur work is respected. Just dont know wah really is tha culprit.

---------- Post added at 07:30 PM ---------- Previous post was at 07:29 PM ----------

Or maybe to test tha rom on pure stock without any mod. I just need tha phone for daily activities if not would have love to.
[Xperia Z5 Android Development] zacharias.maladroit:
5.11_III.2_8_ctl_X_t14 Kernels are in the Google Driver folder,

~ 300 changes related to bugfixes, stability and security got added:

https://github.com/zachariasmaladro...rnel_Eclipse_32.2.A.0.5.11_corona_III.2_ctl_X

I started naming it by number, several dozens builds later and at least 1-2 dozen failed builds later,

this is now where it's at

That's where your feedback comes in !

If you NOT urgently need microSD access (well, microSD can be also formatted with Fat32 but only files to 4 GB size are allowed),

then

please test this kernel WITHOUT the texfat module whitelisted,

Keep in mind that for most microSD access WILL be broken !

that way we can see if all these instabilities might have been caused by the closed-source module, examples:

http://stackoverflow.com/questions/40225803/android-3-18-43-kernel-texfat-stock-module

http://lists.infradead.org/pipermail/linux-arm-kernel/2015-March/330326.html

edit:

I'm taking a break with LineageOS ...

Still too unstable,

Use kernels at your own risk

Might reboot regularly and reboot on wakeup

Ideally remove your microSD and see how stable the phone is

It's not only texfat.ko it's 2 additional prebuilt crypto-modules that seem to make the kernel unstable

Thanks for testing !
[Xperia Z5 Android Development] whalesplaho:
Taking a break?

Bad news....
[Xperia Z5 Android Development] jugglerpl:
zacharias.maladroit, I have a request for you :) Please place release's changelog on your Google Drive. It will make easier to note changes.
[Xperia Z5 Android Development] zacharias.maladroit:
hm, seems like I need to follow the current kernel approach a bit more - otherwise stability will be compromised for usage on LineageOS

Those random Kernel panics are annoying - it panics while listening to radio, while going to deep sleep, while just being idle, etc.

https://bugzilla.redhat.com/show_bug.cgi?id=671007

describes the problem with 2.8 pretty accurately

Anyone knowledgeable on this topic feel free to chime in and leave their 2 cents:

WIP branch is at: https://github.com/zachariasmaladro...clipse_32.2.A.0.5.11_corona_III.2_8_ctl_X_WIP

Could still be that these random Kernel panics

are caused by the prebuilt qualcomm modules:

DRBG - which we don't really want but it seems the system is dependent on it - say hi to the NSA (if that is related to the infamous Dual_EC_DRBG) :p

then the qc5 crypto engine which should be already be built into the kernel :confused:

References:

https://blog.cryptographyengineering.com/2015/01/14/hopefully-last-post-ill-ever-write-on/ Hopefully the last post I’ll ever write on Dual EC DRBG

https://arstechnica.com/security/20...t-of-backdoored-dual_ec_drbg-was-regrettable/ NSA official: Support of backdoored Dual_EC_DRBG was “regrettable”
[Xperia Z5 Android Development] zacharias.maladroit:
5.11_III.2_6_5_ctl_X_t7 Kernels are in the Google Driver folder,

[this is for a smaller group testing, for this I need to rely on ZFS snapshot feature to be able to roll back to built kernel source to track down kernel source issues]

Short changelog

needs some quick and dirty stability and functionality testing

so that I can pass that mark in the kernel source as

"stable" / "working" / "continue"

Thank you :)
[Xperia Z5 Android Development] sceryavuz:
Sorry, for N for MM or for L?

Edit: on ch. for MM
[Xperia Z5 Android Development] whalesplaho:
Flashing 5.11_III.2_6_5_ctl_X_t7 right away to test..... Thanks for yur hardwork, wish i could donate buh ll someday!
[Xperia Z5 Android Development] koekoek91:
New nougat version is rolling out :laugh::cool:
[Xperia Z5 Android Development] whalesplaho:
Yaaga...... 376FW!!:highfive:
[Xperia Z5 Android Development] zacharias.maladroit:
5.11_III.2_6_5_ctl_X_t9 [2.7/2.8 preview] Kernels are in the Google Driver folder,

https://drive.google.com/open?id=0BykGGWB96CBQYmhMWkVMb3M3TDA Z5_SK_Perm_v5.11_III.2_6_5_ctl_X_t9_sum.zip

https://drive.google.com/open?id=0BykGGWB96CBQcDlhZUVHbTIxNUU Z5-DSDS_SK_Perm_v5.11_III.2_6_5_ctl_X_t9_sum_dual.zip

that one is close to 2.8/2.7 version bump and the first kernel stable in that configuration,

if you NEED a STABLE one DO NOT USE IT,

it contains several bluetooth, etc. related fixes which might help,

Sony for Stock ROM is using a kind of exotic bluetooth driver so it's hard to track down issues with it.

If you're brave and test it out,

please let me know about

general stability

performance

battery in idle

battery in use [audio playback, reading, etc.] and whether it's worse, much worse, better, same, etc.

bluetooth

audio quality

...

That's the kernel I'm currently using
[Xperia Z5 Android Development] zacharias.maladroit:
376 / 372_III.3_ctl_X [3.0 preview for Sony Stock "7.0 Nougat"] Kernels

https://drive.google.com/open?id=0BykGGWB96CBQNEdDSHI3T1ZRNkE Z5_SK_Perm_v372_III.3_ctl_X_sum

https://drive.google.com/open?id=0BykGGWB96CBQWVA3U3lPOGZTb0U Z5-DSDS_SK_Perm_v372_III.3_ctl_X_sum_dual

both kernels use the ramdisk of dual sim model (like in the past) and should work in that regard,

no guarantees, of course that it'll work

(NOT boot-tested) - since I'm still on 5.11

edit:

repackaged kernels offered on XDA do not work for me [with stock kernel]

either phone is constantly crashing or the phone isn't booting AT ALL

Note:

Kernel pulled for now - Nougat kernel is postponed until further notice
[Xperia Z5 Android Development] parydia:
This is not for 376? I think the build name is 376 not 372 :)
[Xperia Z5 Android Development] zacharias.maladroit:
Kernel source is still 372, patched kernel is 376

Will rename the following kernels to avoid confusion :P
[Xperia Z5 Android Development] parydia:
Oh ok haha

I'm going to try N with your kernel ;)

Edit : I've installed Nougat customized AU and everything work in defaut but when I flash the new version 3.0 beta SK, I have bootloop . Do you have solutions ?
[Xperia Z5 Android Development] whalesplaho:
[MENTION=3037651]zacharias.maladroit[/MENTION] i flashed tha latest 5.11 version n no reboots yet but i noticed dat when im playing musicals with loudspeaker and lock my phone, it stutters and distorts but it doesnt while using tha phone and also it doesn't with earpiece or bluetooth device.
[Xperia Z5 Android Development] crisout:
Me too :(
[Xperia Z5 Android Development] peter.schwake@gmail.com:
Spotify is working correctly, tried with other player I recognised same problem.
[Xperia Z5 Android Development] whalesplaho:
Im downgraded to 2.6.5 t7 back cos t9 gets hot while usage while t7 doesnt and also no stuttering and distortion in LS on 2.6.5 t7....

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

Thanks for tha confirmation....