yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Android Development] sirdoha:
Okay. Thanks for your tips.

---------- Post added at 01:57 PM ---------- Previous post was at 01:55 PM ----------

Thanks both for your tips. I have tried RyTekk's Method but It still not working. The SeLinux is always at EnForce. Not sure if it's an error of Android N-IFY
[Xperia Z5 Android Development] Ptamigi:
hey guys

i flash this dual sim kernel on moonwalker rom but now Usb otg not work

what am i do ????
[Xperia Z5 Android Development] zacharias.maladroit:
Download, AndroidFileHost :

253 Kernel

https://www.androidfilehost.com/?w=files&flid=98048 SunKernel_for_Z5 253_I_VI.1_2_45_4_13

<-- this should work BOTH on .224 and .253 ROMs (it DOES for me)

Notes

This is an EMERGENCY kernel release to address most issues,

FM Radio

is still leading to lockups

Feedback

How is camera video recording working ?

How is startup of camera app working (faster) ?

How is stability ?

How is smoothness ?

How is performance ?

How is battery ?

How is temperature ?

How is charging LED and disconnecting working (cyan color) ?

.

.

When did the FM radio app STOP working ?

Kudos

to [MENTION=5627933]androidexpert35[/MENTION] , [MENTION=6791680]_LLJY[/MENTION] , the BETA Testing team, [MENTION=4798704]RyTekk[/MENTION]

Sauce

https://github.com/zachariasmaladro...its/Sun-Kernel_32.2.A.0.253_vI_VI.1_2_45_4_13
[Xperia Z5 Android Development] zacharias.maladroit:
Long version of the bootloops (explanation):

there was one hotplug "fix", that caused the phone to kernel panic when setting (via init scripts or else) a different governor than interactive, this got reverted

there was another hotplug "fix" that caused heating up of the CPU & possibly instability

the overclock implementation might have caused issues (the SoC not liking it, etc.)

kexec could have also caused any of the behavior, there were stability problems in the past with it

there was a commit that claimed to increase smoothness and decrease latency but in fact caused thermal throttling to function less efficiently (more heating, later throttling, potential instability)

there was a commit that changed the threshold value of the BCL (battery current limit device) that also leads to hotplug, throttling - which might have interfered and not worked properly

there was an issue with the scheduler that didn't recognize when a CPU was hot(plug) added - leaving it idle, wasting energy and performance; or potentially spurious behavior (stability)

several other stability and lockup/reboot issues in different, other areas

Additional candidates:

- undervolt/voltage modfication interface (revert)

- the different hotplug drivers that interface with the kernel in a deep manner, not minding their own business
[Xperia Z5 Android Development] zacharias.maladroit:
Take a look at:

http://xdaforums.com/xperia-z5/general/discussion-best-soundmod-z5-t3408111

it really depends, what you want,

[MENTION=5627933]androidexpert35[/MENTION] 's Mod is pretty great,

also you can try Project DiVA (very balanced and specifically for the Z5/Kitakami family), and AcoustiX (actually for the HTC M9 but it also works on the Z5/Kitakami; sound is also nicely balanced, much less white noise and distortion compared to even Project DiVA, using High Performance Mode for Headsets by default and other nice tweaks)

of course V4A cannot be left out ;)

BioHazard Mod also works on the Z5 (earlier versions, haven't tested newest ones, since these seem to have issues with the app not working properly)

well, the kernels have tons of changes, so it's natural that some of these commits can cause regressions (functions stopping to work, instabilties, etc.),

therefore I'm dependent on an active user-base and feedback,

can't do this on my own ;)

[MENTION=5231789]nreuge[/MENTION] Please give the new bump Kernel a test-drive, not that FM Radio app DOES NOT WORK, in case you need it,

besides that it should be much more reliable and battery-friendly (less heat, better throttling, etc.)
[Xperia Z5 Android Development] zacharias.maladroit:
Careful testing and adjusting of the sound changes to get the best result,

I had to revert several of them again otherwise the sound would have gotten worse ;)

Glad that you like it :)

it's tricky, adding some changes can make sound worse with distortion
[Xperia Z5 Android Development] nreuge:
For sure I'll try!

I didn't want to be rude, it was to spur you ;)

[MENTION=5627933]androidexpert35[/MENTION]

Is your thermal mod consistent with Zach kernel thermal management ?
[Xperia Z5 Android Development] albertobom:
Thanks [MENTION=3037651]zacharias.maladroit[/MENTION]. :D
[Xperia Z5 Android Development] sirdoha:
OMG. So much great! Which kernel, ROM and mods do you use?
[Xperia Z5 Android Development] albertobom:
Rom: X Rom or Amaluna well debloted (I get similar results on both, both are excellent Roms so it's your choice.

Kernel (Here is the trick) : Zach's latest V44 thunderplug.

Mods (The usual): Xposed, Call recording, Xperia Camera Mod, nabvar overlay 32, etc.

Tips: to get your phone running fast always keep it well debloted. Don't install "crap". For example, I only have 4 games installed (Lara Croft Go, Deus Ex Go, Hitman Go and Uncharted when finished the game, if you are not using it for long time, months, perform a backup titanium and uninstall the games you have finished)

This are my Kernel Auditor Settings :

1. CPU

Big cluster

Max: 2200 Mhz

Min: 480 Mhz

Little cluster

Max: 1632

Min: 460

Governor (both) :interactive (for antutu performance)

Cpu boost: 10 ms

2. Cpu Hotplug

Thunderplug

Minimun cores online screen off : 1

3. Thermal

Temperature regulator: check the last option

4. Gpu

Max: 630 Mhz

Min: 305 Mhz

Governor : msm-adreno-tz (antutu cpufreq or performance)

5. I/O

fios - 8192 kbps both internal and external storage

RQ Affinity : 2

6. Memory killer

Set to aggressive

7. Virtual Memory

Swappiness set to: 85

Those are my settings. And one more thing to play antutu always run it on full charge and with the device cold as possible (I put it on freezer for 5/8 min to cool down) the run test.

Also don't expect a good battery life on Zach's kernel. This kernel eat a lot of juice. :D
[Xperia Z5 Android Development] toncheee:
Hi, .45_4 is first one after .12 that booted without problem on my device

Just flashed it few minutes ago, will test it and report back it's behavior.

Thanks Zach :)
[Xperia Z5 Android Development] sirdoha:
[MENTION=3923492]albertobom[/MENTION] Thanks a lot for your great tips! :o

BTW, could you (or any other bro) help me with this problem:

When I factory reset my phone, I'll start with the "Starting Guide" on which I can restore my app from previous Google backup.

However, I have skipped all. So now, what can I do to restore apps from my Google backup without factory reset again? :confused:
[Xperia Z5 Android Development] albertobom:
I use titanium backup app so... Here I can't help you. But I think there's another way to do that. Let me check if I came across with some solution I will inform you.
[Xperia Z5 Android Development] nreuge:
About v45_4_13:

- battery -1%/h on idle (radio mobile)

- some glitches when listening music / screen on-off
[Xperia Z5 Android Development] sirdoha:
Hi [MENTION=3923492]albertobom[/MENTION], do you use SmarTemperatureX by [MENTION=5627933]androidexpert35[/MENTION]. :D

If you use it, please let me know which version do you use to obtain that Antutu Scores. I use V1.5 but my device is very slow, always lags. :crying:
[Xperia Z5 Android Development] zacharias.maladroit:
Alright guys, I need some

Feedback

What was the last Kernel version where you used video recording and it worked without issues ?

With what apps is the laggy recording happening ? (Sony's app, other ?)

Does it also work/not work for you with non-Sony apps ? (the latest kernel and the one where video recording still was working properly) ?

can't currently track down the root cause and it's still not working smoothly (might be in part CPUQUIET but I doubt it),

also there are error messages in logcat ...

Thank you !
[Xperia Z5 Android Development] albertobom:
For me everything works OK on v44 thunderplug.
[Xperia Z5 Android Development] nreuge:
But you said it, v44 is a juice sucker...

Thanks a lot Zach for your work!
[Xperia Z5 Android Development] GryTEcHoG:
I would say better to stick to few features for a stable kernel that are worth than throwing everything. For me its .12 which was stable overall and above versions had something not good.
[Xperia Z5 Android Development] toncheee:
I'll second that. .12 was stable, very good for battery. Best overall !!

I would love if you could stick to .12 and implement security patches to it.
[Xperia Z5 Android Development] zacharias.maladroit:
Download, AndroidFileHost :

253 Kernel

https://www.androidfilehost.com/?w=files&flid=99351 SunKernel_for_Z5 253_I_VI.1_2_45_6_15_QC

<-- this should work BOTH on .224 and .253 ROMs (it DOES for me)

Notes

This is an EMERGENCY kernel release to address most issues,

Attention

The FM radio app leads to device lockup on launch (most probably incompatible with recent security changes)

so disable it or freeze it via Titanium Backup

Kudos

to [MENTION=5627933]androidexpert35[/MENTION] , [MENTION=6791680]_LLJY[/MENTION] , the BETA Testing team, [MENTION=4798704]RyTekk[/MENTION]

Sauce

https://github.com/zachariasmaladro.../Sun-Kernel_32.2.A.0.253_vI_VI.1_2_45_6_15_QC
[Xperia Z5 Android Development] zacharias.maladroit:
name it :confused:

also: every succeeding kernel is based on .12 - your argument is invalid :D

(jk)
[Xperia Z5 Android Development] H.Khanh:
zacharias.maladroit, anytime upadte a kernel,should I do a clean flash or just flash that kernel ?
[Xperia Z5 Android Development] RyTekk:
Just flash it, sometime may need a wiping for cache/dalvik, and rarely need to wipe data.
[Xperia Z5 Android Development] zacharias.maladroit:
Download, AndroidFileHost :

253 Kernel

https://www.androidfilehost.com/?w=files&flid=100681 SunKernel_for_Z5 253_I_VI.1_2_46_2_TP

<-- this should work BOTH on .224 and .253 ROMs (it DOES for me)

Notes

This is an EMERGENCY kernel release to address most issues.

Also this will be

the LAST Kernel build for the Stock ROM for some time

since I'm migrating over to AOSP/CM13-based ROMs again,

and taking more (much needed) personal time,

so NO new Kernel updates for some time

Attention

The FM radio app leads to device lockup on launch (most probably incompatible with recent security changes)

so disable it or freeze it via Titanium Backup

Kudos

to [MENTION=5627933]androidexpert35[/MENTION] , [MENTION=6791680]_LLJY[/MENTION] , the BETA Testing team, [MENTION=4798704]RyTekk[/MENTION]

Sauce

https://github.com/zachariasmaladro...ommits/Sun-Kernel_32.2.A.0.253_vI_VI.1_2_46_2
[Xperia Z5 Android Development] nreuge:
Big cores max frequency stuck at 480 MHz

Little cores max frequency stuck at 1248 MHz

(Impossible to change in kernel adiutor even after some time)

This is all screwed up...
[Xperia Z5 Android Development] toncheee:
Mine is working fine Little cores 1248MHZ, big cores 1536MHz, just like i put them in Kernel auditor
[Xperia Z5 Android Development] nreuge:
Well, actually the issue comes from the last version of SmarTemperatureX v1.6.1. It works fine with v1.5.0.
[Xperia Z5 Android Development] LMcR92:
I'm using latest kernel with 1.61 thermal. But I cleared the data of ka mod before I installed and no issues in core clock.
[Xperia Z5 Android Development] nreuge:
v45_6_15 works fine, but unfortunately there's still this damn idle battery drain...
[Xperia Z5 Android Development] zacharias.maladroit:
haha - pretty strong wording my friend :p

well, the kernel needs a complete overhaul, start from scratch,

but I'm currently fed up enough with Sony's Stock ROM + Kernel since several things simply are NOT fixable (the device or Kernel will not finish booting)

I simply need a break from all this frustration (and also need to focus on personal affairs) :cowboy:
[Xperia Z5 Android Development] albertobom:
I have no drains on v44 thunderplug
[Xperia Z5 Android Development] albertobom:
Also v44 is the most powerful kernel for Z5 yet from you or any other kernel developer :D Is the MOST POWERFUL. WITH LOVE ;)
[Xperia Z5 Android Development] nreuge:
You've done a lot, I'm sure that one day you'll find the magic formula :cool:

Have a good rest!
[Xperia Z5 Android Development] s.hossein:
Which version of the kernel most stable to use for e6633 with MWA v1.6 rom?
[Xperia Z5 Android Development] Pandemic:
.12
[Xperia Z5 Android Development] zacharias.maladroit:
Feedback / Comments ?

Please give the following Kernel a test and let me know how it works

it's a reworked 1_2_12 Kernel (SunKernel "reborn")

with some modifications, pretty plain actually

some general improvements

only a few security fixes are included, will be merged later

sound improvements (at an early stage) [make sure to select "Headset High Performance Mode" via e.g. Kernel Adiutor Mod]

backlight lowered close to power-saving mode ("dim") during boot,

additional governors: smartmax, alucard, darkness, elementalx, zzmoove

wakelocks: can be disabled (for wlan, modem, sensors)

FauxSound

BCL: battery percentage can be set when big cores will be shutdown to save battery (once it's e.g. pretty low)

GPU currently idling at 180 MHz

Thermal: if your device tends to get really hot (it shouldn't), enable BOTH Core Control + Temperature Throttle [seems to work fine on the AOSP Kernel]

Core Control (core_ctl): here you can set the minimum and maximum little + big cores active

Download, AndroidFileHost :

253 Kernel

https://www.androidfilehost.com/?w=files&flid=102487

should work BOTH on .224 based, and .253 ROMs
[Xperia Z5 Android Development] toncheee:
Just flashed it, booted like .12 without any problems.

I have two questions for now:

1. how could I set profile for zzmoove governor?

2. why disabling sensor or wlan wakelock in kernel auditor triggers kernel panic and reboot instantly

Thanks for your answers!
[Xperia Z5 Android Development] zacharias.maladroit:
1. there are no profiles with WIP zzmoove for big.LITTLE

2. works for me :confused:
[Xperia Z5 Android Development] the_brad:
Just tried disabling sensor wakelock today (I'm on .44) and kernel panicked a few seconds later...

[MENTION=3037651]zacharias.maladroit[/MENTION] did you use the ramdisk, I gave you or are you back to your own here?
[Xperia Z5 Android Development] zacharias.maladroit:
using the same ramdisk,

strange, just strange :confused:

thanks for the feedback & testing [MENTION=302350]toncheee[/MENTION], thanks for the interest [MENTION=817586]the_brad[/MENTION]

edit:

it's probably neither the ramdisk or the kernel itself,

rather the way how and when the wakelocks are disabled:

if you do not do it shortly after boot (or via init scripts ?) and while the phone accesses it, the phone might crash

I usually always disable it immediately after booting up via applying a profile from Kernel Adiutor (Mod)
[Xperia Z5 Android Development] zacharias.maladroit:
Feedback / Comments ?

Please give the following Kernel a test and let me know how it works

it's a reworked 1_2_12 Kernel (SunKernel "reborn")

with some modifications, pretty plain actually

253_II.1 [initial build]

some general improvements

only a few security fixes are included, will be merged later

sound improvements (at an early stage) [make sure to select "Headset High Performance Mode" via e.g. Kernel Adiutor Mod]

backlight lowered close to power-saving mode ("dim") during boot,

additional governors: smartmax, alucard, darkness, elementalx, zzmoove

wakelocks: can be disabled (for wlan, modem, sensors)

FauxSound

BCL: battery percentage can be set when big cores will be shutdown to save battery (once it's e.g. pretty low)

GPU currently idling at 180 MHz

Thermal: if your device tends to get really hot (it shouldn't), enable BOTH Core Control + Temperature Throttle [seems to work fine on the AOSP Kernel]

Core Control (core_ctl): here you can set the minimum and maximum little + big cores active

.

.

253_II.2, 253_II.3 [2nd test build]

ported over zram + zsmalloc changes from Motorola Kenzi repo (thanks to [MENTION=4798704]RyTekk[/MENTION] for the hint)

lz4 compression efficiency and reliably improvements (speedup, etc.)

addressed QuadRooter kernel-side vulnerabilities (CVE-2016-5340 , CVE-2016-2059), still waiting for Sony or Qualcomm driver updates [ROM chefs, please take a look at Nexus 5, 5X, 6, 6P if those updates can be used]

addressed CVE-2016-5696

added frandom, add random32 support (prerequisite for the fix for CVE-2016-5696 to work) + fix frandom

make cpuset handling more reliable around hotplugging

[NOT added - thanks Sony (stock ROM breakage) !] zswap, cleancache, frontswap ["Zswap is a Linux kernel feature providing a compressed write-back cache for swapped pages. Instead of moving memory pages to a swap device when they are to be swapped out, zswap performs their compression and then stores them into a memory pool dynamically allocated inside system's RAM"]

Download, AndroidFileHost :

253 Kernel

https://www.androidfilehost.com/?w=files&flid=102543

should work BOTH on .224 based, and .253 ROMs

Notes

Source:

https://github.com/zachariasmaladro...mi_r2/commits/Sun-Kernel_32.2.A.0.253_vII.1_3

Notes

- FM Radio App is broken (with recent security updates)

- so either disable it or Freeze it via Titanium Backup

That's enough changes for one week, August, or some more

Happy testing :)
[Xperia Z5 Android Development] toncheee:
I did it just like that, and it rebooted immediately. Put it in kernel auditor boot sequence and 2 seconds after they apply --> reboot.

Downloading latest build, will test tonight and tommorow.

Thanks for your work and time Zach, I'm using your .12 kernel as daily driver, but will test all from your kitchen I know you can make it great!
[Xperia Z5 Android Development] nreuge:
My first impressions on 253_II.1 [initial build] are very good!! :)

No drain at all on idle
[Xperia Z5 Android Development] toncheee:
253_II.2, 253_II.3 [2nd test build]

7 hours of sleeping only mobile radio on --> 98% deep sleep, discharged 9%
[Xperia Z5 Android Development] nreuge:
So, something added in the 2nd test build is harmful....
[Xperia Z5 Android Development] nreuge:
I'll test 2nd test build on my side
[Xperia Z5 Android Development] EDGN:
I can agree with this :)

As I experienced difficult Problems with Smartemperature 1.7 (Big Cores always offline, charging speed very slow) I decided to flash X Rom again without the Mod. Problems were gone but the Phone was heating up like hell. With this Kernel its finally cool again. Battery seems to be improved. Nice!
[Xperia Z5 Android Development] nreuge:
Yes, I had issues with SmarTemperatureX too, and I'll test the new version 1.8 later (it's not rigorous to test new kernels and system tweaks all together).

I'm very satisfied with 253_II.1 [initial build], this kernel is very good !! Zach :good:

I'll test 253_II.3 [2nd test build] tomorrow.
[Xperia Z5 Android Development] nreuge:
No idle battery drain on my side
[Xperia Z5 Android Development] toncheee:
Well I think I will have to test my phone with full stock ROM and in airplain mode.

My first Z5 was defective, had awful idle drain (airplane mode lost 60% over night) so service exchanged it for new one, and last few weeks it is happening again (no meter which kernel I put on it, I always have that idle drain :(
[Xperia Z5 Android Development] goRt:
Boot into safe mode and see if the issue persists.
[Xperia Z5 Android Development] toncheee:
Will test tonight, report tomorrow.
[Xperia Z5 Android Development] toncheee:
Same thing lost 8% of battery in 7 and half hours with no screen on...
[Xperia Z5 Android Development] goRt:
You lost 60% previously.
[Xperia Z5 Android Development] toncheee:
That was on airplain mode on defective device, which was replaced in service by this one I now use
[Xperia Z5 Android Development] goRt:
"...and last few weeks is happening again..."
[Xperia Z5 Android Development] toncheee:
Yes I was unclear with that sentence, I meant to say that drain is happening again but it is like 8-9% per night.

Anyways, today after all night on SafeMode I rebooted the phone and it is much better on daily use than last few days, so it could help some how...

Thanks for your advice!
[Xperia Z5 Android Development] ninestarkoko:
May i ask you which was the problem with increased ZRAM size (1GB) ?

Or was it simply worsening the performance?
[Xperia Z5 Android Development] nreuge:
[MENTION=3037651]zacharias.maladroit[/MENTION]

253_II.3 [2nd test build] is working super fine too :)

Just a bit unfortunate that FM radio doesn't work (I don't ususally use it, but having a fully operational device is always a satisfaction). This can't be fixed ?
[Xperia Z5 Android Development] zacharias.maladroit:
There's the fundamental issue with modified ramdisks:

the do not boot for me :o

Second issue: AndroPlus' ramdisks tended to cause the bootloops for me and on occasion it also only would boot into TWRP (recovery) for me,

without the "stock" ramdisk from tobias.waldvogel these kind of issue would not occur (which I couldn't explain or backtrack after taking a look at the ramdisks)

Tl;dr:

it was not about modified ZRAM, it was about the ramdisk,

if anyone can provide a modified ramdisk with zram size doubled [or even disabled] (so that we can choose size on the fly via e.g. Kernel Adiutor, which perhaps might be even better),

that would be great :)

But I fear for the worst that e.g. Sony's ROM depends on zram being enabled by default and would not even boot :eek:

[MENTION=5231789]nreuge[/MENTION] what ROM base are you using ? (country)

what modifications do you use ?

I asked the guys on the Z5 Premium and they reported that with stock ROM FM Radio works,

but some face the issue that e.g. XReality and/or DRM doesn't work

Afaik last time FM Radio tended to work for me was when I was using a .224 based ROM (X ROM and RomAur),

this recently flashed Stock ROM (russian customized) leads to the phone locking up & rebooting once FM Radio is launched + headphones attached

This also happens with AndroPlus for others, so it would be interesting to know if it's a ROM or Kernel thing and if it's only started with e.g. .253

Thanks
[Xperia Z5 Android Development] goRt:
FM radio works fine for me on .253 with .12
[Xperia Z5 Android Development] nreuge:
Actually Radio FM does work !

I hadn't even tried...

I believe what you write ! ;)
[Xperia Z5 Android Development] korom42:
Clean install of X ROM V2.6: Performance update 3 ( which comes with this kernel i guess )

First boot fine, did one reboot and got stuck on bootloops and kernel panics

EDIT 1: latest version Z5_Sunkernel_Permissive_v253_I_VI.1_2_45_6_15_QC_sum.zip worked fine for me :D
[Xperia Z5 Android Development] toncheee:
For me Fm radio works too (Xrom + 253_II.3 [2nd test build]
[Xperia Z5 Android Development] -DM-:
You can get the split view back which fix the xreality etc settings by deleting credmgr.db in data/credmgr

the phone recreates it after a reboot...credmgr.db can get corrupted if you boot a different kernel sometime...so if you're coming from an older kernel that uses an older repack script from Tobias rootkernel and updating to a newer kernel with an updated script it can happen...

But I already told you about it in pm, just letting other people here know about it as well in case they encounter that problem ;)
[Xperia Z5 Android Development] KbaB.BroS:
Same here on the lag issue.

Can't really say anything about the Style Cover because I don't have it.
[Xperia Z5 Android Development] zacharias.maladroit:
I just flashed XZ ROM V2.6R yesterday,

and saw no such issues,

but after having installed XPosed, the first time getting into the "XPosed Installer" the Kernel would panic and red LED flashing,

seems like I need to get my hands on a stock thermal config ;)

This is some weird phone platform (stability and battery consumption wise)

It would be good to know if this also occured with II.1 ,

if yes it's pretty clear something on the ROM side - OR it's caused by some memory leak, load raising, etc. due to loading core_ctl kernel module