yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Compact Android Development] Horst the Animal:
I'm running this kernel for some days now and little was never use less than all 4 cores, the frequency now it's fine but it's wasting battery life when all ways all of the 4 cores are running.
[Xperia Z5 Compact Android Development] zacharias.maladroit:
no, it's not, when in idle the cores are using close to little energy

besides that scheduling of threads is utilizing all 4 little cores (rather than little + big cores) for most thread,

that's perhaps the reason there's more activity to be seen on the little ones.

Also the 1st core (number 0, zero) is being somewhat over-utilized a bit but that (supposedly) with the scheduler changes should also save some energy.

Standard policy is that all 4 little cores are active all the time (core_ctl +/- helper),

also trying to change behavior of big cores is rather pointless.

A short little while the big cores are disabled but then they are get activated again (been there, done that)

there are way too much knobs to handle it autonomously and that's for a reason: to take care to keep the hardware healthy (turning off cores in case of overheating), that's somewhat specific to Sony's hotplug handling from what I understood

via e.g. BCL (essential for "health"), core_ctl, msm_performance (essential for "health") and other places
[Xperia Z5 Compact Android Development] trax7:
Happy New Year, guys!! :D:D:D
[Xperia Z5 Compact Android Development] GreyLeshy:
test

You must have a clean firmware.

Here I will not help You. To solve the problem, move the topic M-ROM and try to solve the problem with the author of the ROM.

edit:
[MENTION=6921550]CyanWangJ[/MENTION]

Change in build.config "androidboot.selinux=enforcing enforcing=1" to "androidboot.selinux=permissive enforcing=0"

Add to common_diffconfig the settings from post 10.
[Xperia Z5 Compact Android Development] GreyLeshy:
Updated SoundMod

post 171

* Fix configs and add missing library.
[Xperia Z5 Compact Android Development] frager45:
Not work, my rom is stock and clean.Waiting your new work :rolleyes:

And i tired Safetynet_Universal_fixer.zip but already same error...
[Xperia Z5 Compact Android Development] GreyLeshy:
Well, it means this is the end, I'm not going to fix SafetyNet for E5803...
[Xperia Z5 Compact Android Development] frager45:
Ok, Maybe u make Latest Stock e5823's rom flashable rooted version? And your kernel. It's a green rom maybe?

You can do it?Need this rom :'(.I'm not using my bank app.Because not work safetynet fix for e5803.Maybe u flashing e5823 rom it's working...

I try flashable root rom but i dont know.
[Xperia Z5 Compact Android Development] GreyLeshy:
I do not advise to flash a ROM from E5823!

Try to pass the test SafetyNet without rooting. You have to hide root from apps.
[Xperia Z5 Compact Android Development] frager45:
i flashed e5823 ftf rom at my e5803 phone.

Now my phone model is e5823 :). Safetynet passed :D

But again, my bank app is not working (crashing) :silly:
[Xperia Z5 Compact Android Development] trax7:
Rebooted while low battery (~15%) while chatting in Messenger. Latest beta.
[Xperia Z5 Compact Android Development] GreyLeshy:
This bug has already manifested, at the moment I don't know how to solve it.
[Xperia Z5 Compact Android Development] Superrman:
Hey, this support with .54? ( i just want root, to tweak my flashlight\,speakers, maybe greenfly \zram

it need twrp? ,where i can the right twrp ? (that working with this kernel)

do i need flash the superuser?

thanks alot!
[Xperia Z5 Compact Android Development] trax7:
All the information you want is in the OP.
[Xperia Z5 Compact Android Development] Superrman:
OP? ididnt see it on first post (if this what you meant)
[Xperia Z5 Compact Android Development] trax7:
Root, TWRP and what version is supported are all there. As far as I can see, that's what you were asking, right?
[Xperia Z5 Compact Android Development] GreyLeshy:
Release Kernel v1.6.28

Change log:

- Use power efficient work queues

- Update z3fold

- Fix loading of the cryptographic module QTI HW (version 1.3 violated the module loading)

- Various fixes for energy efficiency and stability

Downloads
[Xperia Z5 Compact Android Development] Superrman:
sry my english is bad is look like it got root with magstik but i wanst sure

if i dont goning back i dont need backup of TA right?

i just need unlock BT > flash Twrp 3.X and the kernel via adb terminal or flashtool

i saw there version without magstik i guess i can use super user app instead there?

sry and thank you

---------- Post added at 11:25 PM ---------- Previous post was at 11:02 PM ----------

PS

i saw in the zip file beside the "boot_E5823_Enf.img" another folders how install them? (also twrp?)

just want to make sure not to break my phone
[Xperia Z5 Compact Android Development] GreyLeshy:
Install the kernel using twrp and do not suffer!
[Xperia Z5 Compact Android Development] Superrman:
Thanks alot!!! im new to this (twrp) i didnt know you can use flash kernel as zip (my older device used cyanogenmod)

thank you :)!
[Xperia Z5 Compact Android Development] GreyLeshy:
Updated SoundMod

post 171

* Fixed configs as some formats are not play.
[Xperia Z5 Compact Android Development] srdempster:
This is a great kernel for my Z5 seem to be getting an extra 2-3hr before I need to charge it. No weird crashes or freezing either.

:good:
[Xperia Z5 Compact Android Development] torben5247:
My widgets are missing after reboot.

I flash the greenkernel on my stock .154.

I flashed supersu for root.

Anyone else have missing widgets after reboot?
[Xperia Z5 Compact Android Development] trax7:
Most likely not kernel related.
[Xperia Z5 Compact Android Development] torben5247:
It is strange because on stock kernel i don't have the issue. First After i flashed the green kernel the widgets dissapiered. After i have switched the Phone off and on.....
[Xperia Z5 Compact Android Development] Superrman:
in this kernel you hear in 2 speakers the callers? (voice call and ringtone)?

cause i saw few posts back something with sound mod.

i ll wait for another update just in case i want stable kernel with stock camera\rom
[Xperia Z5 Compact Android Development] rommo_911:
I was woundering about cpu governors, I try all of them, they all cause device to reboot even during a phone call or sleep, and the only stable governor is the stock interactive, which actual doesn't sufficiently reduce frequency when idling.
[Xperia Z5 Compact Android Development] torben5247:
Do you have to clean install before flashing the green kernel? I am a bit unsecure how to install this kernel. I have flashed the kernel on top of my Rom with apps installed. Maybe that is the reason for the missing widgets issue?
[Xperia Z5 Compact Android Development] ViciousDiplomat:
Hi your latest kernel works well now. I flashed this kernel since yesterday with SuperSu and Xposed, no random reboots or bugs until now.

Your vulkan mod works great in PPSSPP without lag and i also flashed your other mods.

Thanks :good:
[Xperia Z5 Compact Android Development] emosis:
After playing some games it gets too Hot and reboots.. IT happened 2-3 Times while playing game.

I didnt change kernel options and dont have su.

Also dont have log :(
[Xperia Z5 Compact Android Development] zacharias.maladroit:
well, that SoC is known to get pretty hot

If you're playing demanding games it might throttle, not sure if that's "standard procedure" to reboot though.

Logs would be helpful to decide if it's a stability issue or intended (wanted and "normal").

Do you run any mods, a modded ROM or have any thermal changes applied ?
[Xperia Z5 Compact Android Development] emosis:
Anything.. Clean rom and flash greenkernel

. No mod no superuser or any other thing.. My Phone is 5803 not 5823 can it be A cause?
[Xperia Z5 Compact Android Development] zacharias.maladroit:
no, most likely not - 5803 vs. 5823 is only fewer supported LTE bands from what I know (it's similar for the Z5) and that shouldn't be a reason
[Xperia Z5 Compact Android Development] nestromc:
How do I know my drm keys are OK?
[Xperia Z5 Compact Android Development] Superrman:
do i need backuped DRM\TA for this kernel?

( the only reason im afrarid root
[Xperia Z5 Compact Android Development] GreyLeshy:
*#*#7378423#*#* > Service test > Security

???
[Xperia Z5 Compact Android Development] Superrman:
i meant if you need go back to lolipop to backup TA and patch it

or i can just use this kernel and it will work fine without the original DRM

thanks
[Xperia Z5 Compact Android Development] nestromc:
Are they ok?
[Xperia Z5 Compact Android Development] Superrman:
><so i just need to unlock boot loader? and flash recovery and the kernel? and that it ( without backup TA?)
[Xperia Z5 Compact Android Development] GreyLeshy:
You have everything in order, no errors!

With this kernel You do not have to have the original TA as it is emulated, but if You use the camera, it is better to have the original TA (I may be wrong).
[Xperia Z5 Compact Android Development] nestromc:
In my case I have copared my z5c vs my old z1c, and the z1c (camera) loo better. I have the original TA backup, can I restore in nougat with this kernel?
[Xperia Z5 Compact Android Development] rommo_911:
I think my battery life got little poor since the last version, the previous had greater life time.

But I just discovered something: MY DEVICE DOESNT FIND ANY 4G NETWORK, I tried forcing only 4g mode, search manual for network

And above of that, in same time now it's doesn't connect to DATA unless I activate flight mode once and reconnect

Edit :

Also since the first boot when I flashed it I got " crashmonitor " crashing

And "rchandler" as well.
[Xperia Z5 Compact Android Development] GreyLeshy:
Your problem is in the firmware, not the kernel.

Need confirmation from other users about battery consumption.
[Xperia Z5 Compact Android Development] frager45:
Need update, or stock kernel pls :/

I flashed kernel, after call screen too late wake up.

My phone is ring ring (2x) after, screen light on :( sometimes i pressed lock button because not wake up screen...
[Xperia Z5 Compact Android Development] GreyLeshy:
Yes, I confirm there is a delay of ~ 2 seconds.

I will fix it.
[Xperia Z5 Compact Android Development] rommo_911:
confirm the screen wake up on call

me three i confirm, i have it even worse, because my smartwatch rings for 1 second, then the phone rings for 2 second and then the screen lights up

and regarding my problem of 4G and data, it turns out its not kernel nor firmware, actually its just when i flashed the new kernel there is a problem in the network operator ! i never thought of this, i try other sim card and all is good.

but still, i flashed the earlier version 1.4 and i got straight lines in battery life when screen is off, the new version for 3 days has been giving me slightly decreasing lines in battery life, reducing overall battery with more 2-4 hours.
[Xperia Z5 Compact Android Development] trax7:
Weird, I don't get any of that. I don't know about the 2 second delay, never looked for it, maybe it's there but battery is fine. Did you let the device settle in after flashing? Usually the first two charges won't be that accurate but after that everything should be fine.
[Xperia Z5 Compact Android Development] rommo_911:
I'll just wait the next version when the 2 seconds delay is fixed (because it's confirmed by [MENTION=8041676]GreyLeshy[/MENTION]

Then I'll try again the battery ? life.
[Xperia Z5 Compact Android Development] GreyLeshy:
I'm going to stop posting new releases, but the source code will be updated for a long time.

I'm just too lazy.
[Xperia Z5 Compact Android Development] ModyCZ:
Hi, compiled the latest (as of today) kernel from [MENTION=8041676]GreyLeshy[/MENTION]'s sources. It's version 1.8.75. I'm using it ATM, so it works for me. I didn't touch the sources and I can't fix any bugs you may find. The zip is not the same as [MENTION=8041676]GreyLeshy[/MENTION], there are some differences but seems like they are not important. Please excuse the quality, it's my first time. ;)

All credits goes to our hero [MENTION=8041676]GreyLeshy[/MENTION] for this fine kernel! Thank him!
[Xperia Z5 Compact Android Development] GreyLeshy:
Unfortunately in the near time corrections are not expected, but next month I will try to fix.
[Xperia Z5 Compact Android Development] rommo_911:
Thanks mate !

You have done fantastic job for everyone, thanks to you I am not actually putting my z5 in the garbage,

Also I was a programmer before and l am familiar with developing, I wish I can go back to programming again, but I never wrote a script since more than 6 years. otherwise, I would happy to help you with this work too.
[Xperia Z5 Compact Android Development] ModyCZ:
[MENTION=8041676]GreyLeshy[/MENTION] tagged new version of the kernel. I'm using it for a whole day now without any problems, to here it is.
[Xperia Z5 Compact Android Development] trax7:
Rebooted during YouTube clip with latest 1.9.48 version (from prev post). Here are logs.
[Xperia Z5 Compact Android Development] ModyCZ:
Well, had reboot during a call on version 1.9.48. To be fair, older versions did this occasionaly too.
[Xperia Z5 Compact Android Development] trax7:
Had a reboot again while browsing Tapatalk. Logs are quite full this time. All
[Xperia Z5 Compact Android Development] GreyLeshy:
Lay out the files from the kernel: System.map, vmlinux, vmlinux.o
[Xperia Z5 Compact Android Development] ModyCZ:
Hmm, I don't have them, I did cleanup after the build.
[Xperia Z5 Compact Android Development] ModyCZ:
I don't recommend the Green_Kernel_Mody_v1.9.48 because it's quite unstable. I did build it again and save the debugging files. If anyone would be brave enough to test it again?

Kernel + DEBUG files
[Xperia Z5 Compact Android Development] trax7:
More logs. Rebooted while trying to flash a zip file with Flashfire.
[Xperia Z5 Compact Android Development] GreyLeshy:
[ 99.218475] QSEECOM: qseecom_unload_app: App id 28 now unloaded
[ 100.763258] SELinux: Class can_socket not defined in policy.
[ 100.763583] SELinux: the above unknown classes and permissions will be denied
[ 101.110998] FAT-fs (mmcblk0p3): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 101.111931] EXT4-fs (mmcblk0p2): warning: maximal mount count reached, running e2fsck is recommended
[ 101.112760] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
...
[ 111.025364] EXT4-fs (mmcblk0p43): mounted filesystem with ordered data mode. Opts: discard,data=ordered
[ 112.682689] EXT4-fs (mmcblk0p42): re-mounted. Opts: (null)
...
[ 114.205490] EXT4-fs (mmcblk0p42): re-mounted. Opts: (null)
[ 114.690192] SysRq : Trigger a crash
[ 114.690735] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[ 114.691136] pgd = ffffffc035643000
[ 114.691347] [00000000] *pgd=0000000000000000
[ 114.691936] Internal error: Oops: 96000045 [#1] PREEMPT SMP

A bug in the lock access, the fix will not.
[Xperia Z5 Compact Android Development] trax7:
More logs, rebooted while talking on the phone, after waking screen...
[Xperia Z5 Compact Android Development] GreyLeshy:
The solution to this bug will take longer than previously expected.

Were tested the fixes (drivers/devfreq , drivers/gpu/msm), but they didn't give proper result.

If anyone has any ideas for solving this bug, then please inform.
[Xperia Z5 Compact Android Development] ModyCZ:
So, here goes another build. Can't say for sure all is fixed, but I didn't have any reboots for a whole day.
[Xperia Z5 Compact Android Development] Tingles:
I want to thank both GreyLeshy, and you ModyCZ for your recent builds.......Thank You.

Just installed your latest build ModyCZ last night and so far so good, no problems to report yet. Will be playing on it all day today, so we will see.

Great Work you guys!
[Xperia Z5 Compact Android Development] GreyLeshy:
If you began to spread kernels without the permission, then write the list of changes.
[Xperia Z5 Compact Android Development] ModyCZ:
I don't think I understand what you mean by "list of changes" and "permission". Since you wrote this:

I tried to help and built your kernel three times. The 1st time you didn't object, the 2nd time you didn't object, now you have objections.

I declare that I made no chages to your source code, just compiled it using your script. My name is not anywhere in the source or kernel image, just in the ZIP name to make it clear that you didn't build it. I didn't build any work-in-progress kernels, every time I used the "bump" commit which you use to tag new versions.

I respect your work but I expect you to respect the community. You clearly announced we have to build the kernel ourselves. Not everyone can do it so I stood up and helped. If you don't want my help or help from the community, say it.

Sorry to everyone but until this is sorted out, I'm not posting any new builds.
[Xperia Z5 Compact Android Development] GreyLeshy:
[MENTION=3064306]ModyCZ[/MENTION], just write a list of changes and no problems!

Change log (1.6.28 ->> 1.10.23):

- Updated BCMDHD driver

- Minor update network protocol

- swap: Fix value of SWP_FAST

- A lot of changes to eMMC

-- Added Command Queue Support on eMMC (similar to NCQ for SSD / hard drives)

- Updated Binder driver

- Updated TUN network driver

- Fix all compiler warnings

- Built with Linaro Toolchain 7.2.1

- Various fixes for stability

- Lots of different subsystem changes
[Xperia Z5 Compact Android Development] emosis:
:)

Waiting for link..
[Xperia Z5 Compact Android Development] trax7:
It's already posted several comments behind.
[Xperia Z5 Compact Android Development] trax7:
[MENTION=8041676]GreyLeshy[/MENTION] rebooted when clicking on YouTube video, just after ad. I have NightLight (KCAL) on (if it's connected to display). The reboot took me from 18% to 7% battery.
[Xperia Z5 Compact Android Development] ModyCZ:
DEBUG/build files are on my Dropbox https://www.dropbox.com/sh/8bso020n2xqyd28/AAAs1-gF-W71ZKokSCNbXPdka?dl=0&lst=

Sorry [MENTION=8041676]GreyLeshy[/MENTION] I'm not going to parse hundreds of commits, I'm no kernel developer.
[Xperia Z5 Compact Android Development] trax7:
Guys, it's fine... I believe if there are any problems people would just post the logs here, like always.

If [MENTION=8041676]GreyLeshy[/MENTION] wants people to have a summary of the changes build to build this much, I can do it. I read all the commits anyways lol, I'm not gonna do as good a job as you, but I can try :)

I don't think we are in a dire need to know the changes tho, we have a stable kernel. If someone *really* wants that they can look at commits themselves imo (like I do, because I'm interested) :p

Edit: [MENTION=3064306]ModyCZ[/MENTION] theres a new build :D:angel:
[Xperia Z5 Compact Android Development] ModyCZ:
Thanks. I've just built the v1.10.28, it's in my Dropbox (link's somewhere on this page). It booted fine but I didn't test it more, as I usualy do before announcing new versions. Please [MENTION=4644172]trax7[/MENTION] can you do the list of changes and upload the kernel here?
[Xperia Z5 Compact Android Development] trax7:
Kernel version 1.10.28 (up from 1.10.23):

- Sound: Force open adm in 24-bit for SOMC HP (fixes poasible quantizantion error)

- Disable iosched_switcher

- Various other fixes
[Xperia Z5 Compact Android Development] emosis:
Latest 1.10.28..

Used it al lot of days

Didnt Rebooted randomly..

Didnt get any error..

i think it s the one which doesnt have any problem in daily use.. Thx bro..
[Xperia Z5 Compact Android Development] svekke01:
Does this kernel support OTG , like an usb stick or something ?
[Xperia Z5 Compact Android Development] GreyLeshy:
OTG supported.

mouse, HDD, storage...
[Xperia Z5 Compact Android Development] gavranpero:
Hello. I know what the kernel is for, but I wonder what the benefits are from flashing this one?
[Xperia Z5 Compact Android Development] trax7:
Look at first post.
[Xperia Z5 Compact Android Development] torben5247:
Thank you for this kernel, keep up the good work!

I have used the kernel for a week it is running very fine.

But i don´t see much (if any) difference in power consumption compared to stock.

I am running debloated, rooted (with supersu) version .154

But maybe i am wrong thinking green kernel is has lower power consumption than stock.

Kind regards

Torben5247
[Xperia Z5 Compact Android Development] ViciousDiplomat:
Hi do i need to flash all sound mod or i just pick one then flash?
[Xperia Z5 Compact Android Development] trax7:
Battery was spent overnight, plugged charger and turned on phone, it froze before the PIN entering screen and rebooted itself. (edit: for 1.10.28 version)
[Xperia Z5 Compact Android Development] trax7:
NEW KERNEL VERSION 1.11.90 (built by [MENTION=3064306]ModyCZ[/MENTION]):

-- Videocam fix provided ON NEXT PAGE :)

DL LINK: https://www.dropbox.com/sh/8bso020n2xqyd28/AAAs1-gF-W71ZKokSCNbXPdka?dl=0&lst=

Changelog (1.10.28 -> 1.11.90):

- bump upstream version to 3.10.108

- bcmdhd_suzuran: Update to 1.141.67.32

- arm64: disable some debugging code

- sched: remove redundancies and optimization

- lowmemorykiller: Import TNG + LMK Statistics + OOM score notifier

- tick/time: fix kernel timekeeping

- usb (host, gadget, xsci, f_fs, composite...): redone whole system

= Notable improvements:

= Bring back MTP Extended Configuration Descriptor

= Increase RX transfer length to 1M (increase throughput)

= Draw 900mA correctly in super speed mode

= mass_storage: Fix Null pointer access during disconnect

= Don't call USB3 specific APIs for USB2 controller

= Correctly unbind and close files

= audio: Fix realtime voice quality issues

= audio: Add support for IAD Descriptor

= ci13xxx_udc: Override param to draw more current

- bitmap: optimizations

- zswap: activate and use zswap

- enable Sony Mobile FIPS Driver

- enable encryption filtering for eCryptFS

- driver: android: Add ANDROID_INTF_ALARM_DEV - Provides non-wakeup and rtc backed wakeup alarms based on rtc

- readahead: fix sequential read cache miss detection

- seemp: improve malware detection and remove redundant logging

- mm: process reclaim: vmpressure based process reclaim + varios fixes

- some code cleanup

- security fixes (SELinux)

- RCU improvements

- various race conditions and bugs fixed
[Xperia Z5 Compact Android Development] trax7:
It works here, afaik.

I'm having a different camera problem though. Notice the length of the video... Every time I capture a video this happens: the video length while playing is always that 6 hours 37 minutes, it does not play correctly and you cant jump on the timeline - it just resets to 00:00 if you try. That happens with any combination of video settings. If I go to details tho, it correctly says the size and length - 5 seconds, 11MB...

Issue persists after clearing data of Album and Video apps. Have not tried clearing Media Storage yet. Edit: tried, did not work :(

Edit 2: after clearing Media Storage problem isn't as big, for example I get 16 seconds playback for a 10 second video, first 6 seconds are still garbage, then the actual video from the 6th - 16th second. Going to details shows 10 seconds correctly but when trying to play it in Album it turns to 16 seconds on the timeline.

Other apps like Google Photos show correct times but exhibit the same behavior - first 6 seconds are garbage and cant navigate using the timeline, then its the video but its faster than it was supposed to be because it has to fit in the remaining seconds... I can give example videos to illustrate my point if needed.
[Xperia Z5 Compact Android Development] trax7:
Deleted media storage and rebooted, phone rebooted by itself after that once. Here are logs...
[Xperia Z5 Compact Android Development] ModyCZ:
I have soft reboots during calls. :( I'll try to get the logs when I'm near PC.
[Xperia Z5 Compact Android Development] trax7:
[MENTION=8041676]GreyLeshy[/MENTION] me too, I had a reboot just now after trying to call and then I hung up, then the phone rebooted with the LED flashing red... Here's the logs :)