yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Compact Android Development] Superrman:
hey my video recorder in front camera dosnt work(get stuck)

anymore tried front camera recording with lastest kernel Kernel 25.02.2019 RC12 g5a9eacf.?

because this is the only problem beside that no problems

ps: even at 3rd party app front video recording get stuck

im not sure if this is kernel related

but even if it is, i prefer this on other roms\kernels combo
[Xperia Z5 Compact Android Development] kryosan:
[MENTION=8041676]GreyLeshy[/MENTION] lastest kernel 25.02.2019 RC12 g5a9eacf looks very good, but seems to lack KCAL driver. Was it removed on purpose?

[MENTION=5214758]Superrman[/MENTION] I can't find any issues with front or rear cameras.
[Xperia Z5 Compact Android Development] kryosan:
Default interactive governor is way too power-wasting. Now I'm trying electron governor, it looks much better in power terms.
[Xperia Z5 Compact Android Development] kryosan:
In terms of battery, version 1.10.28 IS the best for me, but video recording produces corrupted files.

---------- Post added at 10:48 PM ---------- Previous post was at 10:05 PM ----------

After using Dlinnoput 2, exFAT table became corrupt, so android mounted exFAT in r/o. Any tool couldn't fix that. I've tried:

1. windows chkdsk with keys /F /X /R — exits with reading structure error; /F /X — couldn't find any errors;

2. linux fsck.exfat — each time produces random errors;

3. android's exfatck -r -s /dev/block/mmcblk1p1 — fixed some FAT structure errors, but re-running previous two tools after this one, produced same results: r/o.

So, that was way too much struggle with this exFAT piece of $h1t. It hasn't any pros over FAT32. It's buggy. It couldn't be repaired if broken. Opensource exFAT driver, written by single guy can't be more stable, than good old FAT32 driver (stable, universal, could be fixed under almost any OS). I have reformatted my 64GB SD card's exFAT to FAT32 with this tool: https://xdaforums.com/tmobile-lg-g3/general/guiformat-fat32-simple-windows-sd-card-t2960190

If anyone bothered about wear leveling: all current SD cards have their own controller with FTL. We don't really need exFAT or f2fs on modern SD cards.

PS: I don't care about files larger than 4 GB.
[Xperia Z5 Compact Android Development] liringea:
Hello everyone, I do not quite understand, after removing the factory lock, root and flashing another kernel to the stock firmware, what will I lose? Screen enhancements, noise reduction, sound enhancements, etc. will stay?
[Xperia Z5 Compact Android Development] trax7:
[MENTION=8041676]GreyLeshy[/MENTION] if you are still sometimes looking at this thread, good sir, here are some logs from a random reboot mid-call

Thank you for making the best kernel for our Z5C! :highfive:
[Xperia Z5 Compact Android Development] trax7:
Sorry for double posting, forgot the logs xd
[Xperia Z5 Compact Android Development] Wenro:
It seems so random who is affected by this and not. I didn't have any issues to begin with, now it's pretty much every call unless I pump up the voltage to the point where my battery can't hold up. Massive heat increase. If I really need to use my phone I go through maybe 5+ reboots a day, and I just cba doing something about it so just went with it hoping the reason would unveil.

Waiting patiently.
[Xperia Z5 Compact Android Development] trax7:
Yeah, although I think the problem is somewhere else. You might have an undervoltage-induced error only because of one of the frequencies. So not all the voltage settings, just a particular one.

And only that one is giving you trouble. It was like that with my Z5C. Ofc, if you get more reboots then either your voltage for the problematic freq is too low or you have several problematic frequencies.

Apart from that, my Z5C is pretty stable. So if there is an error, it's from a race condition somewhere that's exacerbated from the inaccurate voltage tweaks. :)
[Xperia Z5 Compact Android Development] Wenro:
I think I tried setting all voltages individually, as GreyLeshy posted in a screenshot few posts back, but something made me unable to set it exactly like that, after changing a specific one, it automatically changed another. I will give it another try to explain this better.
[Xperia Z5 Compact Android Development] trax7:
That means your phone can't take it. Don't use his settings blindly. They don't work for you.
[Xperia Z5 Compact Android Development] Wenro:
Actually I managed to set it like that and haven't had a reboot yet. Didn't do any longer calls than like 30 minutes yet though, so I'm still to discover if it's gonna continue. Do you have any idea what's causing it, any hunch? You were one of those who didn't have this issue until quite a while after, right?

Regards,
[Xperia Z5 Compact Android Development] trax7:
Nah, i still have issues, albeit very rarely. With lower than current voltages I have many more restarts. Find stable voltages. Or stable enough that it isn't an issue.
[Xperia Z5 Compact Android Development] Wenro:
Still been working for me, I'm very surprised. When I had the issues I just used the global bump setting until it was stable but that was too much and noticed heat and battery life drastically decreasing.

I'm just WAITING FOR IT, and my tiny bit of happiness is gone again. ;)
[Xperia Z5 Compact Android Development] eVoLutionz88:
Doesnt support spectrum?
[Xperia Z5 Compact Android Development] Alefello:
Is it possible to have a version underclocked by default so we can have temp and battery life improvement? Like zombie kernel that was 1,344/1,536GHz by default.

Thank you
[Xperia Z5 Compact Android Development] trax7:
It's been months since the last reply. Also, it's something easily doable by yourself and it doesn't warrant another release. So definitely not.
[Xperia Z5 Compact Android Development] Alok Bajaj:
I'm running LOS 14.1 from Berni. Can I flash this kernel to this ROM? If not, then is there any other kernel for Custom ROMs?
[Xperia Z5 Compact Android Development] :
No to both questions.
[Xperia Z5 Compact Android Development] Boberoch:
Is it possible to pass SafetyNet with this Kernel? I am using E5823 on Android 7.1.1 firmware 32.4.A.1.54. Using Magisk v20.4.

However, SafetyNet check gives me:

ctsProfile: false

basicIntegrity: false

Where might I have gone wrong? I have the following Magisk modules installed:

Busybox for Android NDK

Custom Thermal Mod (FSC)

Debloater

Systemless Hosts

Xposed Framework

Youtube Vanced

And the following Xposed Modules:

Dimensions Editor

Greenify

I am very thankful for help :)

PS: Also I do not understand what OP root: magisk + module init.d means? I cannot find the init.d module anywhere :/
[Xperia Z5 Compact Android Development] trax7:
Magisk has an addon.d folder. Use that, it's better. Also, you won't pass CTS with Xposed installed. That's the whole point of Magisk, not modifying /system in order to help pass SafetyNet.
[Xperia Z5 Compact Android Development] threader:
Has anyone gotten DEV_rc13 booting?

Edit: this was a problem with the config I used
[Xperia Z5 Compact Android Development] threader:
Edit : that was a me problem
[Xperia Z5 Compact Android Development] RisingNoob:
I noticed the kernel has great performance but how is the temperature? This kernel does some undervolt? Has Aroma installer?
[Xperia Z5 Compact Android Development] trax7:
Oh, that happened to me too on your kernel... I forgot to tell you, sorry (clips from 28 july) :rolleyes:
[Xperia Z5 Compact Android Development] GreyLeshy:
Temperature is the same as on stock kernel.

Not yet, but in plans.

No.
[Xperia Z5 Compact Android Development] RisingNoob:
So high but with much better performance.

Good to know is a work in progress.
[Xperia Z5 Compact Android Development] ModyCZ:
I have to report sudden rebooot during a call. Happend at least twice since I flashed this kernel. Where can i find kernel logs?
[Xperia Z5 Compact Android Development] GreyLeshy:
Logs can be obtained only in this way

su
adb dmesg > dmesg.txt

Pstore is not yet activated.
[Xperia Z5 Compact Android Development] ModyCZ:
So there is no way to obtain previous kernel messages? It was possible with kernel from [MENTION=3037651]zacharias.maladroit[/MENTION]
[Xperia Z5 Compact Android Development] GreyLeshy:
At this stage, the logs are cleared after a reboot.
[Xperia Z5 Compact Android Development] zacharias.maladroit:
Friggin' cool !

Where did you find the jitterentropy for 3.10 kernel ? :D
[Xperia Z5 Compact Android Development] zacharias.maladroit:
Friggin' cool !

Where did you find the jitterentropy for 3.10 kernel ? :D

Does it work ?
[Xperia Z5 Compact Android Development] GreyLeshy:
Unfortunately, when compiling, errors come. :(
[Xperia Z5 Compact Android Development] GreyLeshy:
Updated the kernel to version 0.6.5

Kernel based on 32.4.A.0.160

Downloads

List of changes:

The transition to opensource driver core_ctl

CPU voltage control

Updated WLAN driver to 1.141.67.29 and Firmware 7.45.59.17

Increased ZRam size to 768 MB

Fingerprint Boost Driver

Adreno minimum frequency to 180MHz

Adreno idler

KCAL Driver

Qnovo QNS

Pstore

Remove SafetyNet checks

Enable State Notifier

Gentle Fair Sleepers Interface

Arch Power

Disabled CRC check in MMC for 30% extra performance with IO

Activated TCP Westwood

Available CPU governors: performance, interactive, ondemand, elementalx, smartmax_eps, bioshock, powersave

IO switcher enabled (auto switched io sched to NOOP when suspended for power saving)

Available I/O schedulers: deadline, row, cfq, bfq, noop, fifo, fiops, sio, sioplus, maple

DRM-Fix

Sony RIC disabled

DM-Verity disabled

Built with Linaro Toolchain 6.4.1

Other minor improvements
[Xperia Z5 Compact Android Development] zacharias.maladroit:
yeah, when backporting drbg and other stuff is needed,

not sure what error you ran into but at least there's a different variant I can try now :)

Thanks

With what tool are you changing the ramdisk contents and repackaging ?

Just a heads up: https://github.com/GreyLeshy/androi...mmit/7c6a0f05e60539d32ae782f834ca21a3123b66f1 this commit has caused trouble with several different kernel releases for me in the past,

in case you run into instabilities, etc. - take a look at that first :)
[Xperia Z5 Compact Android Development] GreyLeshy:
If you succeed, it will be excellent.

Thank you, I'll know.

From the beginning I tried to do using the "Build tools for Xperia kernel", but kernel is not loading. Attempts were many.

Then I changed runme_2repack_mod64.sh to the desired parameters. The following patch rootkernel.

On the output, I have a ready ramdisk for further action.
[Xperia Z5 Compact Android Development] zacharias.maladroit:
Thank you !

Another approach besides making zram bigger is to make zram actually way smaller (e.g. 100 MB) and add vnswap & enable it, zswap, frontswap and zbud,

so that instead of swapping out the data, the data is compressed in RAM transparently to the apps which should cause

less

trouble than zram,

and perhaps might even work better than KSM,

I'm however not sure if it will boot since at least on the Z5 there are limitations on mm, kernel/sched, MHL, etc. related changes that will break booting on stock kernels + stock ROMs,

(I already tried out zswap, frontswap, etc. in the past and it did NOT boot)

perhaps on Z5 compact, Z5 Premium, Z4/Z3+, etc. these limitations do not apply ...

On LineageOS, etc. that's an entirely different story - everything's possible ^^
[Xperia Z5 Compact Android Development] blue4you:
Greate work! The kernel is very fast, especally the data reading is more faster than stock kernel.

But I have a big problem. I could not get supersu to work.

Every time I try to flash supersu, I get bootloop with a red status led.
[Xperia Z5 Compact Android Development] GreyLeshy:
I'm not using SuperSU for a long time and therefore don't know how he shows himself.

Use Magisk, he has a great future and there is no problem.
[Xperia Z5 Compact Android Development] blue4you:
Magisk is no option for me.

I'm using foldermount for my WhatsApp datas and it only work with supersu.

Since suhide 0.8 my phone passed the safetynet check completly.

With Magisk I need a aditional modul that is not compatible with magisk hide.

Also I feel that Magisk make my phone a little bit laggy. I try serveral versions on my two phones.

Thats all let my stay by supersu.
[Xperia Z5 Compact Android Development] GreyLeshy:
I tried it and unfortunately the firmware is not loaded.
[Xperia Z5 Compact Android Development] neorejalist:
I'm using this with supersu 2.82, working great.
[Xperia Z5 Compact Android Development] blue4you:
With the .160 kernel?

2.82 or 2.82 SRx ?
[Xperia Z5 Compact Android Development] neorejalist:
I still have the zip on my harddisk, this is the name:

SuperSU-v2.82-20170528234214-TEST-1

My firmware is

32.4.A.0.160

, and the kernel is the

3.10.84-green_kernel-v0.6_beta

.

Good luck
[Xperia Z5 Compact Android Development] blue4you:
Thanks!

I will try it :)
[Xperia Z5 Compact Android Development] blue4you:
Thanks for your post. It gave me the right idea!

I deleted the supersu folder befor flashing the kernel.

If I do that, I can flash supersu and suhide without any bootloops :D
[Xperia Z5 Compact Android Development] GreyLeshy:
Updated the kernel to version 0.8

List of changes:

* Update to LA.BF64.1.2.3_rb1.16

* Minor enhancements and performance improvements

Downloads
[Xperia Z5 Compact Android Development] kachroet:
I instaled your new 0.8 kernel but in kernel information still in 0.6.5 version this normal?

Note: twrp saying installed success
[Xperia Z5 Compact Android Development] ModyCZ:
Thanks for the kernel! Ever since I upgraded to .160 + your kernel I loose GPS position after not using the phone for a few minutes. With both 0.6 beta and 0.8 too. Instead of my location, it shows center of my country. Looking at logcat I can't see any obvious cause, just following lines are suspicious to me:

09-26 08:19:20.494 3147 4488 I ActivityManager: Killing 1175:com.eclipsim.gpsstatus2/u0a317 (adj 906): empty #13
...
09-26 08:20:29.047 3147 7036 I ActivityManager: Start proc 5365:com.eclipsim.gpsstatus2/u0a317 for broadcast com.eclipsim.gpsstatus2/.notification.GpsBroadcastReceiver
...
09-26 08:21:05.476 3147 4134 I ActivityManager: Killing 5365:com.eclipsim.gpsstatus2/u0a317 (adj 906): empty #13
...
09-26 08:24:59.343 3147 24738 I ActivityManager: Start proc 7381:com.eclipsim.gpsstatus2/u0a317 for broadcast com.eclipsim.gpsstatus2/.notification.GpsBroadcastReceiver
...
09-26 08:30:55.194 3147 4118 I ActivityManager: Killing 7381:com.eclipsim.gpsstatus2/u0a317 (adj 906): empty #13
...
09-26 08:36:30.689 3147 3175 I ActivityManager: Start proc 8407:com.eclipsim.gpsstatus2/u0a317 for broadcast com.eclipsim.gpsstatus2/.notification.GpsBroadcastReceiver

...
09-26 08:20:29.099 5365 5365 W System : ClassLoader referenced unknown path: /data/app/com.eclipsim.gpsstatus2-2/lib/arm64
09-26 08:20:29.436 5365 5365 I FA : adb shell setprop debug.firebase.analytics.app com.eclipsim.gpsstatus2
...
09-26 08:24:59.397 7381 7381 W System : ClassLoader referenced unknown path: /data/app/com.eclipsim.gpsstatus2-2/lib/arm64
09-26 08:24:59.780 7381 7381 I FA : adb shell setprop debug.firebase.analytics.app com.eclipsim.gpsstatus2
...
09-26 08:36:30.736 8407 8407 W System : ClassLoader referenced unknown path: /data/app/com.eclipsim.gpsstatus2-2/lib/arm64
09-26 08:36:31.098 8407 8407 I FA : adb shell setprop debug.firebase.analytics.app com.eclipsim.gpsstatus2
...
[Xperia Z5 Compact Android Development] GreyLeshy:
Corrected, now there is exactly the kernel version 0.8.
[Xperia Z5 Compact Android Development] GreyLeshy:
Unfortunately in this matter I can't help.
[Xperia Z5 Compact Android Development] kachroet:
Thanks for update sir i like this kernel very stable for daily use and fast better battery consumption can i request volume gain control in next update? :o
[Xperia Z5 Compact Android Development] GreyLeshy:
Has not been noticed increased consumption.

It would be nice if someone would have been adjusted the CPU voltage, I don't have time to do it.

You should at least give a link to the patch to understand what changes will be made.
[Xperia Z5 Compact Android Development] kachroet:
I mean battery consumption is good just spend 3% overnight with connection lte active (use 0.6.5version),about voltage control I have tried but i don't know the difference before and after undervolt using KA now i using exkm for sett this kernel in my phone but exkm cant set voltage (maybe exkm not support)
[Xperia Z5 Compact Android Development] zacharias.maladroit:
Thanks for testing, it was at least worth a try :)

https://github.com/zachariasmaladro...i_r2/commits/Sun-Kernel_Facula_I.1/sound/soc/

commits

63a374010da44980fb4c86020f41b85c86443277..7158ee250b97f54961b17b747d3b12a503da7e5c

(including [additional] toggle for high performance mode, disabled by default)

There's also franciscofranco's sound control but that didn't work properly,

control didn't stick, had no effect, etc. [I only did a quick port & test so perhaps that was the reason of it, anyway FauxSound seems to work better for now]

[MENTION=8041676]GreyLeshy[/MENTION]

are you fine if I build the kernel for the Z5 and see if it works on the device ?

(you've probably already read about the issues I had with getting stock kernels to work with .160 firmware and Z5)

Thanks
[Xperia Z5 Compact Android Development] GreyLeshy:
FauxSound I wanted to try but have not yet got to it.

There is no problem, you can compile the kernel.

I read your problems briefly and I know that you have bootloop.
[Xperia Z5 Compact Android Development] zacharias.maladroit:
Please take a look at the bluetooth-related changes:

https://github.com/GreyLeshy/androi...s/GreenKernel_32.4.A.0.160/drivers/bluetooth/

potentially eff74d3c11fd4792f394c029f864a2fb80bfb1a8

just found out recently that the bluetooth/ldisc driver also seems to handle GPS
[Xperia Z5 Compact Android Development] GreyLeshy:
Thanks for the tip-off!

(I'm using the built-in driver BT.)
[Xperia Z5 Compact Android Development] trax7:
Feedback time:

After changing the little cluster's governor to smartmax_eps (or bioshock) there is higher battery drain during screen-off. Could be just a coincidence with Android acting weird but that is the only change I made and I have no way to test it further as this is my main device...

Undervolting just a bit helps a lot. It could undervolt more in my case but haven't tried yet. I undrervolted mainly the frequencies that were most used and then everything else. However the lowest frequencies (that are used a lot) can't be undervolted (I see this as intentional maybe, stability reasons?). Still had to report it. In combination with the FSC thermal engine here from XDA now my phone doesn't heat up and works very well :D:svetius:

Battery drain is definitely higher than my 7.0 installation with zach's kernel both screen-on and off but performance-wise it's very good (or it's just because it charges quicker so it loses charge quicker too due to Qnovo).
[Xperia Z5 Compact Android Development] GreyLeshy:
Thanks for the feedback.

The governor smartmax_eps and bioshock have not been completed yet, because for them it is necessary to make a fix, which will be on deactivation of the display, to reduce the frequency.

As for Qnovo, this module seems to work, but for now it's a test feature, since it's not clear whether it functions or not.
[Xperia Z5 Compact Android Development] TinoQ:
Kernel Version / compatible with lineagos

What version of Linux kernel is used (3.10.84?)

Is this version compatible with the lineagos version of nzzane? (Https://xdaforums.com/z5-compact/development/rom-lineageos-t3552242)
[Xperia Z5 Compact Android Development] GreyLeshy:
Kernel is not compatible with LineageOS (this is written in the first message).

Kernel version: 3.10.84 + last patches LA.BF64.1.2.3_rb1.16.

Unfortunately, I have not found an explicit driver, which is responsible for GPS.
[Xperia Z5 Compact Android Development] trax7:
Some more feedback: the kernel is stable - can't see any place where it fails to work. Performance is very good (as expected of the settings) and the device is cool even while charging quickly but there are lots of places where there are hiccups - for example opening Youtube from recent apps can take 2-3 seconds. Other places, like closing messenger heads, pushing the home button on the homescreen even. It is very responsive when it doesn't experience a hiccup but it happens quite often. I know Zram is increased and opening from it is slower but still increased CPU performance should have offsetted that.

Zach's latency fixes seem to have fixed this issue on his part and his build is very responsive even though frequencies were lower with my settings so it doesn't overheat. They just made a night and day difference in usage in all scenarios. :):good:
[Xperia Z5 Compact Android Development] GreyLeshy:
Updated the kernel to version 0.8.6

Downloads

List of changes:

* Update to LA.BF64.1.2.3_rb1.17

* Driver update wlan to 1.141.67.30 and FW 7.45.59.18 (r718509)

* Added exfat file system driver (rejection of the built-in module). Thanks [MENTION=3037651]zacharias.maladroit[/MENTION]

* Other fixes for stability
[Xperia Z5 Compact Android Development] trax7:
Feedback: I see the max clock for the big cores has been raised to 2.2GHz. That's nice to have but the new frequencies don't follow the voltage curve (by default now they have the same voltage as 2.0GHz, should consume a bit more tho) which made my device reboot. Maxing out at 2GHz fixes the issue or giving it more voltage does so too :)

Other than that, wow, it's fast. Memory usage is in check and is as low as 1GB after booting with clean caches. For now there aren't any major slowdowns. Apps like Messenger and YouTube still open just a biiiit slower than with latency fixes but it's almost not noticeable :fingers-crossed::o

Battery is good for now, I like that. I saw some F2FS commits going in, does that mean support for it? :D

(i know the ROM needs support too but that's the easy part)

Note to ppl: The higher frequencies almost mandate using FSC Thermal Engine from here on XDA, else it heats up. That thermal mod is very good with this kernel - be sure to try it :)
[Xperia Z5 Compact Android Development] GreyLeshy:
At the moment, the frequency cannot be increased. The maximum frequency 1555200000 and 1958400000.

When the frequency increases, it is reset to the default frequency, I do not understand what the problem is.

When turning on the device, there is an incorrect voltage correction, especially on A57 cores.

I'm a little adjusted the voltage in the initialization script, but for A57 cores it did not help much (at 1.8 GHz + it gets messy).

A53:
qcom,cpr-voltage-ceiling-override =
<0xFFFFFFFF 0 900000 900000 900000 900000
1000000 1000000 1000000 1115000
1115000 1180000 1180000 1180000
1180000 1180000 1180000 1200000>;
qcom,cpr-voltage-floor-override =
<0xFFFFFFFF 0 700000 700000 700000 725000
780000 800000 825000 835000
850000 915000 970000 980000
1000000 1000000 1000000 1100000>;

A57:
qcom,cpr-voltage-ceiling-override =
<0 0 900000 900000 900000 900000 900000
1000000 1000000 1000000 1160000 1160000
1160000 1160000 1160000 1225000 1225000
1225000 1225000 1225000 1230000 1235000
1250000 1300000 1330000>,
<1 0 900000 900000 900000 900000 900000
1000000 1000000 1000000 1160000 1160000
1160000 1160000 1160000 1225000 1225000
1225000 1225000 1225000 1230000 1235000
1250000 1300000 1330000>;
qcom,cpr-voltage-floor-override =
<0 0 700000 700000 700000 700000 725000
750000 775000 795000 835000 860000
880000 895000 915000 935000 945000
950000 980000 980000 985000 1000000
1010000 1025000 1030000>,
<1 0 700000 700000 700000 700000 725000
750000 775000 795000 835000 860000
880000 895000 915000 935000 945000
950000 980000 980000 985000 1000000
1010000 1025000 1030000>;

About ZRam, long-term testing, were seen delays as You have. I also noticed that ZRam is not completely filled (~60%). Now I think how to solve the problem with the lag.

About F2FS, maybe this filesystem is working, but looking at the patches applied [MENTION=3037651]zacharias.maladroit[/MENTION] for Sun-Kernel_Facula_I.2 I think not.

FSC Thermal Engine me have not tried.