yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Compact Android Development] trax7:
There is a newer version - 05.05.2018. Also, its highly probable that the reboots you are having are from other modifications you made or other apps. I haven't had any reboots in a while (if I undervolt I have some but thats normal).

Even if that is the case, you should always post logs of the occasion, not just say "I have reboot", because that doesn't bring any information. :)

Logs are in /sys/fs/pstore - archive and post.
[Xperia Z5 Compact Android Development] zacharias.maladroit:
Good one !

afaik that was a long standing issue or at least had occured in the past already
[Xperia Z5 Compact Android Development] GreyLeshy:
Updated SoundMod to version 4.

https://xdaforums.com/showpost.php?p=74393818&postcount=171

* Fixed a bug where one of the speakers could turn off at maximum volume for protection.
[Xperia Z5 Compact Android Development] zacharias.maladroit:
[MENTION=8041676]GreyLeshy[/MENTION]: great find - I was suspecting (and observing) that modem usage was causing long-term high battery consumption, seems this might address the problem:

commits/DEV/drivers/char/msm_smd_pkt.c

edit:

I've only taken a quick look but: is jitterentropy & drbg (?) hooked up into random.c and other places in your source ?
[Xperia Z5 Compact Android Development] GreyLeshy:
No

edit:

[MENTION=3037651]zacharias.maladroit[/MENTION], at this point, I don't see any point in this implementation.

msm8994 has a built-in RNG block (FIPS 140-2).
[Xperia Z5 Compact Android Development] trax7:
[MENTION=8041676]GreyLeshy[/MENTION] latest 12.05.2018 build breaks YouTube app streaming. I tried uninstall/different versions - all do the same - the video stutters and has no sound. Also I saw some higher CPU usage...

Rolled back to 5.05.2018 and the issue is gone. Btw here's logs from a rare reboot I had on 5.05.2018. :)
[Xperia Z5 Compact Android Development] GreyLeshy:
Videos and streams played fine through YouTube. [ver. 13.17.55; 720p; 1080p]

Under what conditions there is an increase use of the CPU?
[Xperia Z5 Compact Android Development] trax7:
Okay, so:

YouTube works normally on 5.05.2018. After flashing 12.05.2018 I see the thing I said in my previous post. On the same version of the app that just worked just fine before I rebooted and flashed 12.05.2018.

If I plug in headphones, the stuttering stops and and the phone starts playing through the speaker! While headphones are connected! After about 3-4 minutes in stopped playing from the speaker and started from the headphones. Throughout the videos it stops to buffer from time to time and the second time it did that the video jusy went black, but the sound was playing on speaker (While headphones connected). I think if its not from the kernel itself its from some of the updated drivers bundled with it in the zip file.

As for cpu usage: here are screenshots. At this time with 5.05.2018 I get a much better spread in frequencies and in 12.05.2018 I get this - stays on higher frequency for longer even on simpler tasks (without actually being smoother).

Edit: now I switched to YouTube and resumed my video and sound played on headphones w/out the video stuttering. Once I get the headphones out - it happens again - no sound, stutters heavily. Put them in again - stutters stop, sound is played via speaker while headphones are connected.
[Xperia Z5 Compact Android Development] GreyLeshy:
Do you use any sound mods?
[Xperia Z5 Compact Android Development] trax7:
I just tried to shutdown on 12.05.2018 to try and flash older kernel but it force rebooted, here's logs.

Watchdog bite caused here:

[ 1680.144558] Unable to handle kernel paging request at virtual address 013cf046 [ 1680.144696] pgd = ffffffc0368a8000 [ 1680.144762] [013cf046] *pgd=00000000420ec003, *pmd=0000000000000000 [ 1680.144959] Internal error: Oops: 96000006 [#1] PREEMPT SMP [ 1680.145028] Modules linked in: mhl_sii8620_8061_drv kscl(O) ant_drv fm_drv brcm_bt_drv brcm_hci_ldisc qdrbg_module(O) qcrypto_module(O)
[Xperia Z5 Compact Android Development] trax7:
No.

I just tried 5.05 zip file with 12.05 image - result is the same. YouTube stutters and no sound...
[Xperia Z5 Compact Android Development] GreyLeshy:
In a zip file, only the kernel and modules are modified.

cpp_firmware not flash.

edit:
[MENTION=4644172]trax7[/MENTION], perhaps the problem in modules, compiler (2018.05) made change to modules.
[Xperia Z5 Compact Android Development] trax7:
Another reboot, Oops! from Undefined instruction. I went through the logs and found some mdss errors before framebuffer initialization. They aren't fatal but nonetheless... There's a couple of warnings after that.

Going further, the logs gets spammed to hell by _bcl-hotplug error onlining some cpu core - I know this is normal but it's every second row so could there actually be a performance benefit of disabling logging just for that to calm the system down a bit, given that if hotplugging is working as intended..?
[Xperia Z5 Compact Android Development] GreyLeshy:
This spam can be turned off without any problems.
[Xperia Z5 Compact Android Development] trax7:
Hm... Same thing with Youtube on 13.05.2018... :(
[Xperia Z5 Compact Android Development] GreyLeshy:
Provide files:

system/etc/audio_platform_info.xml

.../audio_platform_info_i2s.xml

.../mixer_paths.xml

.../mixer_paths_i2s.xml

.../sound_trigger_mixer_paths.xml
[Xperia Z5 Compact Android Development] trax7:
There they are. Maybe I can flash your Sound Mod if the problem is here and it solves it..?
[Xperia Z5 Compact Android Development] GreyLeshy:
Sound configs are OK.

For the test you can try.
[Xperia Z5 Compact Android Development] trax7:
It seems to have fixed it.
[Xperia Z5 Compact Android Development] GreyLeshy:
And how did you do it?
[Xperia Z5 Compact Android Development] trax7:
Flashed your SoundMod. :laugh:
[Xperia Z5 Compact Android Development] GreyLeshy:
Most likely a bug due to this change "ASoC: msm8994: Add voice multimode DAI links for voice call".
[Xperia Z5 Compact Android Development] trax7:
I found a weird bug. I got a reboot while watching YouTube again, this time logs are like this tho... Version 13.05.2018.
[Xperia Z5 Compact Android Development] zacharias.maladroit:
Which gets invalidated by the lots of changes we're adding to the kernel,

are the 2 prebuilt qcom modules from /sbin being loaded for you ?

have NOT been there for me last time I checked
[Xperia Z5 Compact Android Development] GreyLeshy:
Yes, these modules are loaded.
[Xperia Z5 Compact Android Development] zacharias.maladroit:
okay, so that's probably the way how the kernel needs to be built with lots of modules

(the ROM expects so, Sony-AOSP discussion even pointed out specific cases with e.g. the wlan module that there are stalls / complications if not done that way)

suspected as much that kscl (FIPS) module and perhaps others needs to be built as external module

Thanks
[Xperia Z5 Compact Android Development] GreyLeshy:
It seems to me that it is not mandatory as in a script of initialization there are no checks of the initiated modules.
[Xperia Z5 Compact Android Development] zacharias.maladroit:
Yeah, there aren't any - haven't seen those

but it was at least mentioned in a newer device (binaries ? framework ?).

Don't know if it applies to our device as well - in any case it's a pretty strange concept to have modules and components externally

when you can build it all in a monolithic kernel - it saves (some minor) space and it provides higher security due to less attack surface and other reasons
[Xperia Z5 Compact Android Development] emosis:
Performance seems good.. Antutu score is 70 000

But V 0.5 have some problem it sometimes stops phone.. Had 3 times in a day 2 of them is while taking photos one in a game one in a social application..

I dont know take logs..
[Xperia Z5 Compact Android Development] GreyLeshy:
I tested the kernel а week and there were no glitches.

To get logs, use the command:

su
dmesg > /data/local/tmp/dmesg.txt
[Xperia Z5 Compact Android Development] trax7:
I have a weird glitch - if I am in for example the YouTube app and I use an overlay (e.g Messenger) while watching a fullscreen video, be it playing or paused, the video picture just loops a millisecond of itself (sound goes on without problems). Same thing happens with the camera viewfinder btw.

The video can be fixed by getting out of fullscreen mode and going in again.

That happens everytime i test it and hadn't happened before i flashed version 0.5.
[Xperia Z5 Compact Android Development] ModyCZ:
Hi, I must report a strange bug happening running the latest 0.5.0 version. After 8-10 hours on 0.5.0 kernel the UI freezed, but phone didn't reboot. After 10-20 seconds UI was responsible but for 2-3s only and then again freezed, after 3 cycles I rebooted and downgraded. I have no logs, I wasn't near my PC. Regards!
[Xperia Z5 Compact Android Development] GreyLeshy:
[MENTION=4644172]trax7[/MENTION] , [MENTION=3064306]ModyCZ[/MENTION] , Thanks for the feedback.

At the moment I'm sitting on 32.4.A.0.160, but will have to return to 32.3.A.2.33 for correction.
[Xperia Z5 Compact Android Development] ModyCZ:
I'm able to compile your kernel from your github and test it before release, feel free to commit and then let me know. I'll be away for the next week but after that I'll can test daily. Regards.
[Xperia Z5 Compact Android Development] GreyLeshy:
OK.
[Xperia Z5 Compact Android Development] trax7:
The glitch in my last post is accompanied by lags. Also sometimes it's not limited to just overlays on top of a clip but that is a sure way to reproduce the bug.
[Xperia Z5 Compact Android Development] zacharias.maladroit:
No need,

just revert d15a15bf664bc87704af84bcfbe061d58fca3530 (dts: msm8994-mdss: Enable power collapse on idle)

that should do it :)

Seems like Z5 Compact users do better testing than all other Z5* device owners combined ;)
[Xperia Z5 Compact Android Development] GreyLeshy:
Upgrading the kernel to version 0.5.1.

Changes:

- Enabled BFQ;

- Cancelled patch: dts: msm8994-mdss: Enable power collapse on idle. Thank you [MENTION=3037651]zacharias.maladroit[/MENTION]

Check

https://www.dropbox.com/s/gzj8y646kkn0tvv/Green_Kernel_v0.5.1.zip?dl=0
[Xperia Z5 Compact Android Development] trax7:
Doesn't boot... :(
[Xperia Z5 Compact Android Development] GreyLeshy:
Fixed https://www.dropbox.com/s/umm9kfy8dyp8ox7/Green_Kernel_v0.5.1.zip?dl=0
[Xperia Z5 Compact Android Development] ModyCZ:
This kernel is stable again, thank you!
[Xperia Z5 Compact Android Development] GreyLeshy:
I am glad to hear it.

And thanks for the test!
[Xperia Z5 Compact Android Development] PeppeBove:
Because small device means SMART DEVICE ?
[Xperia Z5 Compact Android Development] Mewbit:
Great work GreyLeshy

I got your kernel up and running with 7.0, no errors yet. Just a side question, I noticed this with even 7.1.1 when I had it but is anyone else experiencing audio latency issues specifically when playing video on the Z5C? I get audio lag playing recorded videos, youtube, Netflix, you name it... I've search for hours trying to find ways to remedy this but I have had no luck.. It's about 100-250ms in lag so its bearable but extremely annoying for me at least... Never got a chance to see if this is a problem with 6.0 or even 5.1.1.

I'm hoping there might be a way to tweak this green kernel maybe? Sorry if this is in the wrong thread... :(
[Xperia Z5 Compact Android Development] zacharias.maladroit:
Try disabling Android Logging (can be done via e.g. Kernel Adiutor/Mod - or via "Developer options"),

there usually are errors being shown quite frequently in the logs - so that causes an overhead, not sure if it's that high to cause 100-250 ms delays...

You have any sound mods installed ? that might explain things

If you're using Magisk - try uninstalling that and see if it helps - for me there always is/was a constant load on the CPU which would drain the battery - so I'm currently using the phone WITHOUT any root

and the battery significantly improved.

If you need specific options you can set up init scripts.

Other things could be that there's some issue with the GPU acceleration - so you could try testing out the options in "Develop options" and see if that changes things ...
[Xperia Z5 Compact Android Development] zacharias.maladroit:
[MENTION=8041676]GreyLeshy[/MENTION] are you currently using the in-built WiFi driver at all ?

from the resulting .config I'm getting it looks like you're most likely using the prebuilt driver in the ROM

# CONFIG_BCMDHD is not set
# CONFIG_BCMDHD_SUZURAN is not set

can you please share the .config file that you get when building your kernel ?

Thanks
[Xperia Z5 Compact Android Development] GreyLeshy:
Yes, I'm using the driver built-in.

If the driver is compiled in the kernel - wifi doesn't work.

config
[Xperia Z5 Compact Android Development] zacharias.maladroit:
thanks for the config,

yeah, just stumbled upon the bits,

I forgot that:

MODNAME needs to be changed back to wlan (for Stock ROMs),

for LineageOS, CarbonROM, etc. it can be left at bcmdhd

with that WiFi should work :)

edit:

https://github.com/zachariasmaladro...mmit/37779f593d60791b064b9f06efc10fc542ea77c0
[Xperia Z5 Compact Android Development] trax7:
Here's a couple more logs... The culprit seems opening a video thread (hence why it happens mostly when watching YouTube and using Messenger) and the PC is on _rcu_read_update (smth like that).

In the second case (Logs6.zip) its BUG: Scheduling while atomic repeatedly plus those:

[34703.752425] Unable to handle kernel paging request at virtual address f3b06968

[34703.764540] Unable to handle kernel NULL pointer dereference at virtual address 00000000 - here it seems like an invalid address coming from a nonexistent variable and/or a race condition

Which then leads to an Internal error: PREEMPT SMP and kernel panic.
[Xperia Z5 Compact Android Development] GreyLeshy:
[MENTION=222324]Trax[/MENTION] 7, thanks for logs, but as I spoke earlier support is closed and corrections won't be as I have no desire.
[Xperia Z5 Compact Android Development] zacharias.maladroit:
:)

that's how I treat certain branches as well - it's more of a collection place to have a reference for all the new things - for testing

to be used on new kernels or other branches
[Xperia Z5 Compact Android Development] GreyLeshy:
That's not so.

I have no desire to potter with the outdated platform!

And also loss of my time.
[Xperia Z5 Compact Android Development] BobbyRC:
Привет, Александр!

Телефон не заряжается и не подключается через usb, требуется перезапуск. Восстановился через TWRP, но в итоге проблема осталась. Звук подключения есть, в настройках телефона указано "USB подключение", но зарядку не принимает и к компу через USB не подключается, OTG также не подключается.

also E5823 Stock rom 32.4.A.1.54 + GreenKernel 1.12.70. Doesn't work USB, OTG, wallcharge. How I can fix it?
[Xperia Z5 Compact Android Development] trax7:
Иди в ОП, там есть линк к Дропбоксе. Найдёш последньi билд туда (папка nightly).

Проблема заряжения не создан из етого кернела. Я рекомендую идти на фабричньiх или использовать Flashtool если ето не сработило...

NB: I made this exception to talk in Russian because I want to help you but I see that you have trouble with English, from now on keep to English if possible (forum rules!). Thank you! :)
[Xperia Z5 Compact Android Development] Superrman:
Hey, 1 problem 1 question so far with the the kernel

phone turned off while play 3d game (or antutu benchmark)

can i install on this xposed? thanks
[Xperia Z5 Compact Android Development] GreyLeshy:
Problem not in kernel!
[Xperia Z5 Compact Android Development] Superrman:
thanks because it was working b4.. so maby ive install something that cause it (maybe its the supersu app)

what xposed? it im should work with this? i want use greenify

ps at the moment im using 5.5.18(nightly) ver not the latest

edit xpsoed ver 89 working perfect after 1 very long boot
[Xperia Z5 Compact Android Development] Superrman:
sorry for bugging so much>< but this support stereo speakers while in a call?
[Xperia Z5 Compact Android Development] zacharias.maladroit:
[MENTION=9180070]BobbyRC[/MENTION]

this issue is normally caused by non-matching KSCL & MHL drivers with the kernel

but since the modules ARE built freshly WITH the kernel this shouldn't be a problem.

So the cause could be recent changes - I however haven't seen anything pointing in that direction.

In short: ROM , device, battery or cable issue (most certainly not kernel)
[Xperia Z5 Compact Android Development] GreyLeshy:
No.

When hands-free is active, the upper speaker is disabled due to the active microphone and the lower speaker is active due to the disabled microphone.
[Xperia Z5 Compact Android Development] BobbyRC:
Thank You, Zach! LOL, i flashed your kernel Logos_I.2_8_7 and problem is solved.
[Xperia Z5 Compact Android Development] emosis:
Include MRom s kernel is working without reboot i tooked kernel and su both working.
[Xperia Z5 Compact Android Development] kokolino727:
https://xdaforums.com/z5-compact/development/rom-resurrection-remix-v5-8-5-sony-t3718429 this kernel work with RR Remix 7.1.2?
[Xperia Z5 Compact Android Development] GreyLeshy:
You don't need it.

Only stock ROM.
[Xperia Z5 Compact Android Development] :
What do you mean?

The kernel is working on the m-rom?
[Xperia Z5 Compact Android Development] emosis:
Yes the kernel include mrom .. It s stable and no error no reboot.
[Xperia Z5 Compact Android Development] :
What do you mean by "include mrom"?

Maybe you meant "compatible with mrom"
[Xperia Z5 Compact Android Development] trax7:
Hey, [MENTION=3037651]zacharias.maladroit[/MENTION] could you have a look here...? This is the only standing issue I have with the kernel - random reboots predominantly during YouTube, Messenger sessions. I really want to try not bothering GreyLeshy if I can because he said support is over :(

These are the last two versions on his Dropbox in the nightly folder 12 and 13th

Edit: I can see further work done for our device, I am really hoping hard right now :fingers-crossed::fingers-crossed::p
[Xperia Z5 Compact Android Development] Superrman:
i got average reboot per day (win intensive use)

but overall is even better then stock some how battery 50% better in standby mode over night

and with smrtheatmod less heat and faster then stock

i hope he will do last stable release but also if not im happy with that, thanks to greyleshy

rooting my phone save me from buying a new on , i extended my RAM over fast SD card

b4 that games like CSR 2 and pugb battle royal, close everything even whasapp ,

and when ive got meassge the game got closed and had to reload and i lost the game ,now when i got more ram its maybe slower then ram/zram(compress ram)

but still better then lose game progress

shame on sony that 2015 phone with 2GB ram all Z series only from X series 3GB

if the phone was 3GB i didnt had to root for more swapfile RAM

also update were lame and late, the dev here are better then sony's

thanks to them our device is usable

(same with my older sony device that gave him more 2 years (had my last sony 5 years)

but Z5C is my last phone, sony disapoint me also in hardware (over heating and bad speakers and more)

anyway thanks again to any devs
[Xperia Z5 Compact Android Development] trax7:
Here's a few more logs. This is literally the last problem that plagues this device and this otherwise perfect kernel...

I would be perfectly happy with how it is now if only it was stable w/out those reboots. :angel:
[Xperia Z5 Compact Android Development] ModyCZ:
I tried 13th kernels but got reboot during a call. Reverted back to 5.5. and all is fine now. Also after going back I felt the phone is slow and hot. I eventually formated system partition and flashed clean one. It's much better now. [MENTION=4644172]trax7[/MENTION] you should try that too.
[Xperia Z5 Compact Android Development] trax7:
I see... So you aren't suffering from the random reboots..? Could you please share 5.5 too??

It would be a shame to roll back cause I see many new general improvements and such targeting our model... ;(

The random reboots have been an issue for quite a while, are you sure 5.5 is free of them..? On that note, here's more logs...
[Xperia Z5 Compact Android Development] ModyCZ:
The 5.5. is in the GreyLeshys dropbox in the nightly folder. It's the most stable kernel for me.
[Xperia Z5 Compact Android Development] trax7:
There's a new 8.06 in there :victory:, have you tried it? :D
[Xperia Z5 Compact Android Development] trax7:
[MENTION=8041676]GreyLeshy[/MENTION] heres logs from latest 8.06 version... The issue is worse and happens regularly in YouTube - it's got connections to surfaceflinger and an inability to cope with an overlay (explaining why it also happens in Messenger or during calls - when the call overlay comes up...)

I think we are getting closer to it. For now I'll do like Mody and roll back to 5.05. This is the very last issue we have and it would be a fantastic bday present for me if there's a faint hope it can get fixed :fingers-crossed::D
[Xperia Z5 Compact Android Development] GreyLeshy:
[MENTION=4644172]trax7[/MENTION], in the attached files must be in English. (Your logs are unreadable.)

Therefore, I ask You to reload the attached files (1 and 2) that You downloaded earlier.
[Xperia Z5 Compact Android Development] trax7:
First of all, thank you for even looking at this thread after all this time! As for the logs:

My apologies :) Here they are. They opened just fine with me so maybe XDA uploads don't work with Cyrillic...? I just renamed them and should open fine now :fingers-crossed:
[Xperia Z5 Compact Android Development] frager45:
Kernel 16.06.2018 g0bdc1bb.zip online.

How is fixed?

And in-coming call screen late wake up problem now fixed?
[Xperia Z5 Compact Android Development] GreyLeshy:
See commits on github.

You can be more specific.
[Xperia Z5 Compact Android Development] frager45:
The screen is wakeup with a delay of two-three seconds during an incoming call.This problem has solved?
[Xperia Z5 Compact Android Development] GreyLeshy:
This bug was resolved on may 4.
[Xperia Z5 Compact Android Development] ModyCZ:
Got reboot during call on both 13.5. and 16.6. These reboots were fixed in the test 01 and 02 kernels. Now I'm back on 5.5. Anyway thanks for new kernels!
[Xperia Z5 Compact Android Development] GreyLeshy:
On my device, reboots are not observed, the kernel is stable.

FW: stock.
[Xperia Z5 Compact Android Development] ModyCZ:
That's really strange. It seems every device is different, yours, mine, [MENTION=4644172]trax7[/MENTION]. All with different problems. Unfortunately I've lost the logs.
[Xperia Z5 Compact Android Development] trax7:
I haven't had reboots with 16.06 yet - it seems like the stack protection fixes and the increased stack space did the job. :victory::victory::victory:

Thank you, [MENTION=8041676]GreyLeshy[/MENTION]! My hero! :D

[MENTION=3064306]ModyCZ[/MENTION] I cleared the caches after flashing, booted, then rebooted to flash Magisk 16 and booted to system again. I have had no problems the whole day yet :good::fingers-crossed:
[Xperia Z5 Compact Android Development] szkudlarek:
Unfortunatelly someone like me has the USB and notification led problems?

I've tried

- Kernel 16.06.2018 g0bdc1bb.zip

- Green_Kernel_v1.12.70
[Xperia Z5 Compact Android Development] trax7:
You're gonna need to be more specific. What are these problems? Which firmware version? Have you tried the other versions in the nightly folder? Have you tried wiping and clean installing? Keep in mind this 90% of the time solves your issues.

Also: No problem will be even noticed if you don't post logs. Dmesg (and logcat, if possible and asked).

Cheers :)
[Xperia Z5 Compact Android Development] szkudlarek:
Hi trax7, thank You for being so kind :)

I wanted to ask if anybody encountered such problems now (I've seen them in the topic months ago). Did not have so much time for logs etc., so my laziness just told me to ask a preliminary question in hope for any trace of easy fixing. Maybe I will have some time to redo everything from scratch once again, so then I could gather some logs.

Basically I've flashed 32.4.A.1.54 (full wipe), TWRP, and GreenKernel. Anyway without logs... nothing could be done.

Thanks!