yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Android Development] zacharias.maladroit:
hm, even the creator of BFQ said, that it's not really tailored towards phones,

but I saw someone mention that it improved latency (responsiveness) for him/her on the phone during heavy load ?

I wonder what kind of load causes that ...

Thanks !

GPU will be addressed, thank you :)

in fact it idles between 180 and 305 MHz, but there always seems to be load, so it's hardly getting to 180
[Xperia Z5 Android Development] RyTekk:
305MHz when idle and ramp down to 180 MHz when touch detected. Can you rebuild a new version which is removed CPU restricted? I want the maximum performance, the old is not support for dsds, 1_2_3 works fine, just play with it around a quarter of hour.
[Xperia Z5 Android Development] zacharias.maladroit:
sure, will do on the next one,

so you finally took the plunge ?

Welcome to the unlimited modding possibilities ;)
[Xperia Z5 Android Development] RyTekk:
Haha, actually I did on Z2, but on Z5 there's nothing to make me do UB (CM no, AOSP no for DSDS). I've waited a bit time since 185 firmware out, you didn't update your kernel at that time, I feel a lot of "bug" in kernel so I decided I would UB my device asa you update your kernel, and you've done.

Btw, I have a report for you to look at the kernel, I notice that since MM update, the current charge is not stable. In LP, I got 1555mA during the charging and device got charged in 2 hours. But since MM, the current usually come down to below ~1000-1100mA, so the charging gets longer to charged ~2.5 hours. I hope you would take a look on it, make the current charge to be stable and maybe unlock it (Sony has locked it at 1500mA). Sorry if my words make you to be confuse, I've just failed my English exams :laugh:
[Xperia Z5 Android Development] zacharias.maladroit:
Alright guys - another weekend, another kernel ;)

Source is at:

Sun-Kernel_32.1.A.1.xxx_185_vI.1_2_4_new

For best measure - combine it with

Wakelock Detector, Greenify, (+/- Amplify), AppOpsXposed (XPosed; or other that e.g. also allows control of system apps), Disable Service/My Android Tools (by WangQi)

with Wakelock Detector it's rather easy to greenify Google Play Store which is one major culprit of wakelocks,

with AppOpsXposed (or other App Ops via root) you can control what apps or services keep awake (wakelock) the phone and thus occasionally or more often drains the battery (Wifi Scan, "Location" is one possible drainer; note that there are 2 Location options)

with Disable Service/My Android Tools you get pretty powerful tools that allow you to disable service on a fine-grained basis, and e.g. specifically turn off Google's Analytics; which as a side-effect also might save battery

with Amplify you can disable wakelocks, alarms and services in a general sense and helps quite to some degree to cut down battery consumption (but you CAN NOT greenify Google Play Store, otherwise you'll miss out on features, which kind of defeats the purpose; luckily you can disable the "Keep Awake" functionality via App Ops Xposed :D )

Power Nap for XPosed is similar to Greenify, but can serve as an additional safety net to catch wakelocks that you forgot (add Greenify and Amplify to the apps, that are allowed; otherwise you'll miss out on their function)

Features:

(will add more later if I forgot anything)

Changelog:

Download:

Z5_Sunkernel_Permissive_v185_I.1_2_4_sum.zip

Z5-DSDS_Sunkernel_Permissive_v185_I.1_2_4_sum_dsds.zip

or attached here in the thread

Enjoy :)
[Xperia Z5 Android Development] _LLJY:
Great job man, hey is it possible to change the kernel boot splash screen so that our faces don't get blasted at night by the white Sony logo?
[Xperia Z5 Android Development] RyTekk:
Did you add new drmfix?

You added it, thanks.
[Xperia Z5 Android Development] RyTekk:
Playing with ElementalX; zzmoove acts like lagfree, cpu clock ramp up to max and step by step to ramp down (just play with zzmoove for 30 secs and I don't like its acts :D). Maybe report after some days or a cycle of charged.
[Xperia Z5 Android Development] Ashray_Vk:
You should try with interactive governor along with some interactive governor tweaks posted in the themes and apps section of your device. It works good :)
[Xperia Z5 Android Development] RyTekk:
Actually I have my own interactive tweak in Sony Cross Device section, but it's for quad-cores only, and I'm too bored with stock so I want something new like elementalx and zzmoove that I've not tried ever.

Btw, I got blank pages when switch to CPU page in Kernel Adiutor, it just happen sometimes on interactive governor selected, when I change to elementalx or zzmoove, it's always a blank page on CPU tab. Have you guys got these issue ever?
[Xperia Z5 Android Development] Ashray_Vk:
Hey, I've got the same. Just give it some time to load ( I had given two minutes ) and then close the app from recents and open up again . Try this multiple times and it'll appear
[Xperia Z5 Android Development] RyTekk:
Yeah, try and try again until it loads success, damn.
[Xperia Z5 Android Development] _LLJY:
Could you install SuperSU SR3 or not install it at all?

It makes the safety net patch you added redundant as I can't install SUhide
[Xperia Z5 Android Development] nabeelrazanaqvi:
Dear brother i wanted to know that will i be able to boot into TWRP if i flash via TWRP recovery or if you are kind enough to help me and guide me how to integrate TWRP in this kernel as this in ZIP format and i can rootkernel the ELF image only so your help is highly valuable

thanks in advance
[Xperia Z5 Android Development] XpRoPhEtX2015:
In updat_script after:

package_extract_file("boot.img", "/dev/block/bootdevice/by-name/boot");

add this line:

package_extract_file("recovery.img", "/dev/block/bootdevice/by-name/FOTAKernel");

Rename TWRP.img to Recovery.img

Put Recovery.img in Zip

Install zip via TWRP. Enjoy
[Xperia Z5 Android Development] Wess.a:
[MENTION=1729195]zacharias[/MENTION].maladorit do i have to wipe cache after changing from .305 to .253 kernel? And will you support .253 until 7 is here?
[Xperia Z5 Android Development] HaoZeke:
Hi, so I'm a bit confused about the way the kernel is built.... I synced the latest repo into an aosp source code and built a boot image from it, it seems to be running more smoothly, but the features like the maple io scheduler are missing... Any idea about what's going on?
[Xperia Z5 Android Development] zacharias.maladroit:
simple: give me a kernel of the 305 firmware with ramdisk repackaged that only has DRM , dmverity and sonyRIC disabled ;)

This is a community project/effort and I believe it's not too much to ask for that :)

nope, wiping /cache should NOT be necessary,

those 305 kernels support 253 firmware, too - I left out the wifi driver changes that break wifi on 253 ROMs

is the order [like written in the build-scripts]

so if it's not included in the latter 2 or enabled by default in code (Kconfig or Makefile) it will NOT be built into the kernel :)

This seems to be the best Kernel so far in terms of battery runtime (Airplane Mode)
[Xperia Z5 Android Development] sirdoha:
Which ROM do you use with?
[Xperia Z5 Android Development] Wess.a:
[MENTION=3037651]zacharias.maladroit[/MENTION] suspend_backoff is consuming a lot of battery 45%
[Xperia Z5 Android Development] HaoZeke:
Sorry I'm being dense but, running cat common_diffconfig .config and cat sumire_diffconfig followed by make msm8994-perf_defconfig doesn't seem to be adding the relevant options to the .config
[Xperia Z5 Android Development] zacharias.maladroit:
Xperia X 2.6R (still :o ),

with aggressive Amplify, Greenify, PowerNap, AppOpsXPosed, Naptime + XPosed

yeah, well - that's userspace

if Chrome or other apps keep your phone busy it's actually job of the Android OS to manage it

google for that (suspend_backoff) and you get explanations what it does

Use Greenify (hibernating apps), Naptime for aggressive Doze, etc.

Is it so hard to actually READ the built-scripts ?

build_it4_sumire

export KBUILD_DIFFCONFIG=sumire_diffconfig
make msm8994-perf_defconfig
make -j8

README_Xperia

There is also a README_Xperia file, follow the absolute basics and you'll at least get somewhere ...
[Xperia Z5 Android Development] gjhwssg:
Using the .305 Stock unmodified ROM + Stock Kernel still having the same Bluetooth problem.
[Xperia Z5 Android Development] DeathStroke:
My device is going crazy. Don't know what's wrong.
[Xperia Z5 Android Development] astalavista66:
I still have some undefined reboots on my E6683, too. Many times after using bluetooth. Sometimes without any BT usage. Really scary. I see it only because the PIN is asked for and not only for fingerprint.

But that seems to be a stock 305 problem corresponding to the answer some posts before?
[Xperia Z5 Android Development] DeathStroke:
No actually that was continously, for hours, so i flashed the rom again and now using 30Oct Kernel.

My phon was hot whole day. And gpu always 70+
[Xperia Z5 Android Development] _LLJY:
GPU 70+ is normal, what are the CPU temps?
[Xperia Z5 Android Development] nabeelrazanaqvi:
Same here a lot of battery consumption after flashing latest kernel for E6633
[Xperia Z5 Android Development] DeathStroke:
Check below. It was going like this, gpu 70 is normal, ok but when idle then it shouldn't be like that.I was using the latest kernel. Can't figure out what was causing this. So I flashed 30 Oct build and clean flashed rom too.

And now it's
[Xperia Z5 Android Development] DeathStroke:
[MENTION=3037651]zacharias.maladroit[/MENTION] mate, is it possible to lower the min. cpu frequency to zero. If you can built a kernel with that. Years back i had that on Xperia Arc S, that helps to save a lot of battery.
[Xperia Z5 Android Development] LMcR92:
That's up to the hotplug, a good few versions back we had different versions but most where buggy with the big.little setup. I liked the thunderplug one but it was taken away.
[Xperia Z5 Android Development] koekoek91:
You could use LPLUG from [MENTION=6791680]_LLJY[/MENTION] to turn of 3 big cores when they are not used.
[Xperia Z5 Android Development] _LLJY:
Remove the .txt and run this as a script on every boot
[Xperia Z5 Android Development] _LLJY:
Thunder plug is broken as well

Oops I thought this was SlimX rom thread
[Xperia Z5 Android Development] DeathStroke:
I want to set min cpu frequency for each core to zero, doesn't matter if it's big or small.

Any help on that would be much appreciated.

Thanks.
[Xperia Z5 Android Development] _LLJY:
That's impossible, your CPU won't even be functional and that doesn't make sense

Unless you are talking about plugging cores which is completely turning them off. In that case,LPLUG WILL help you
[Xperia Z5 Android Development] DeathStroke:
I don't have core knowledge about these things, but on my Arc S, there was a kernel, where we can set min cpu freq. to zero, so when system is idle, only cores which is needed will serve and rest will just sleep until you knock them by running some apps.

But that device was single core only. :p

So that's what I'm asking, is it possible to set min. CPU freq. to zero or something more less like 50 rather the default value 384.
[Xperia Z5 Android Development] _LLJY:
You are talking about plugging cores(turning them off)

LPLUG will help you. Also having them function at a lower frequency can also make battery life worse, they have to be active more frequently to complete tasks that they have to do. Might as well leave it at 384(CPUs will go into DeepSleep by themselves)

Imagine this, if you do your work slower, you'll complete it in a much longer time, same thing with CPUs, the right behavior is that the CPU will ramp up and finish the job as fast as possible before going back to sleep.
[Xperia Z5 Android Development] Hamidreza2010:
[MENTION=3037651]zacharias.maladroit[/MENTION] bro how can i remove supersu from your kernel?
[Xperia Z5 Android Development] koekoek91:
LPLUG will turn off 3 big cores when they're not needed. Turning off more cores will result in a significant performance loss so I would stick with just turning off 3 big cores. You can't change core speed to lower than 384mhz. It's either turn them completely off with LPLUG ( which is essentially the same as if you would turn them to 0) or run them at their lowest clock speed which is 384mhz.
[Xperia Z5 Android Development] flis94:
Z5 is to hot when I wach videos from web or using in vr mod 1080p not in 4k temps on gpu is 85-92c , sorry I am bad in english I hope you understand :p
[Xperia Z5 Android Development] DeathStroke:
Thanks to both of you for the clarification. I'll try LPLUG.
[Xperia Z5 Android Development] _LLJY:
That's normal for VR..
[Xperia Z5 Android Development] sirdoha:
Bro [MENTION=7328701]koekoek91[/MENTION], [MENTION=3037651]zacharias.maladroit[/MENTION] what's the best kernel in relation to battery life at the moment? :confused:

Lastest version is too overheating and battery is too bad :(
[Xperia Z5 Android Development] koekoek91:
Im using the latest 1_9_12_5_2 at the moment.

Either 1_9_12_4_8 or the latest I would pick ;)
[Xperia Z5 Android Development] HaoZeke:
Hey, I had a question regarding the role of the kernel and rom in thermal control..

Basically, I notice a lot of blame on the kernel for overheating but isn't the roms thermal engine at fault too? How exactly do the two interact?

Like the Sony thermanager and the msm kernel parameters.?
[Xperia Z5 Android Development] _LLJY:
The thermal management on the rom controls the thermal management in kernel, that's the only way I can explain it XD
[Xperia Z5 Android Development] HaoZeke:
So, I'm guessing the kernel controls the quantum of change which the Rom engine requests?

That's a very lucid explanation.. :)
[Xperia Z5 Android Development] teddan:
Hi.

Anyone got a link to the latest version in a zip file.

I'm a lite confused about the download section for this kernel.

Atm im running the October 30th version and slimx.

Cheers..
[Xperia Z5 Android Development] KbaB.BroS:
just sort the files by date and pick the latest one for your device.
[Xperia Z5 Android Development] teddan:
Hi, ye that i manage but there are not in zip format to flash in twrp: https://github.com/zachariasmaladroit/android_kernel_sony_msm8994_kitakami_r2/branches/active

Do i just download the version i want and zip'it?

Best regards
[Xperia Z5 Android Development] goRt:
That's the [required] software repository at the end of the first POST, you need to go backwards from here to find the zips
[Xperia Z5 Android Development] KbaB.BroS:
no lol look around for his Google drive link, you can find it on the latest kernel release post somewhere around this thread. I only have the Z5 Premium link.
[Xperia Z5 Android Development] teddan:
Thx, did find it on page 103.

Was little confused, normally the download section is in the description :)

Cheers
[Xperia Z5 Android Development] sirdoha:
[MENTION=7328701]koekoek91[/MENTION] [MENTION=3037651]zacharias.maladroit[/MENTION] Do you have the link for this version: 1_9_12_4_8
[Xperia Z5 Android Development] koekoek91:
Don't have a direct link but you can look on page 103 of this thread and click the Google Drive link. The version you're looking for should be there ;)
[Xperia Z5 Android Development] HaoZeke:
Hey could anyone tell me which version has the slow charging bug fixes?
[Xperia Z5 Android Development] Anatoxy:
I'm using 1_9_12_3_8_ctl_X_sum_dual - charging is ok.
[Xperia Z5 Android Development] koekoek91:
[MENTION=1964056]HaoZeke[/MENTION]

Latest version charges fine too. 1_9_12_5_2
[Xperia Z5 Android Development] HaoZeke:
Also, has anyone tested F2FS on this?
[Xperia Z5 Android Development] _LLJY:
Not me, you can try formatting a small SD card with F2FS and try
[Xperia Z5 Android Development] HaoZeke:
It's mostly for the data partition... I'll test and tell
[Xperia Z5 Android Development] HaoZeke:
Well I tried on my data partition, and lost my internal sd card. Plus it refused to boot and autoformatted back to ext4.

Definitely broken.
[Xperia Z5 Android Development] koekoek91:
What's F2FS and why would you want to have F2FS?

I've never heard of it before so that's why I ask :silly:
[Xperia Z5 Android Development] HaoZeke:
Basically, off the top of my head without google, it's a filesystem developed by samsung for faster and better performance on the /data partition, some poeple claim it helps performance on the /cache partition too, basically anything with a lot of read/write operations.

Since it's a filesystem based performance boost the battery life is increased too.

I noticed a bunch of f2fs commits kernel side and even built it with the correct make flag but; it doesn't seem to want recognize it.
[Xperia Z5 Android Development] RyTekk:
Have to do more with fstab, and something in the ROM too.
[Xperia Z5 Android Development] HaoZeke:
Yeah I read up and saw there's some sort of fstab change required to not force the system to only accept ext4 formatted file systems... Will look into this further...

Beyond the fstab I can't seem to think of how the rom would need changes though, any ideas?
[Xperia Z5 Android Development] _LLJY:
I'm interested in what changes are needed, perhaps [MENTION=5169444]AndroPlus[/MENTION] and [MENTION=3037651]zacharias.maladroit[/MENTION] can implement F2FS in the kernel. But I need to know which ROM changes are needed so maybe I could make F2FS default for both my ROMs
[Xperia Z5 Android Development] HaoZeke:
The kernel support is there already, I'm not sure if they're compiling it with the flag to make the f2fs system, but that's a trivial change... I'll be testing fstab configurations for this soon.
[Xperia Z5 Android Development] _LLJY:
So no rom changes are needed?
[Xperia Z5 Android Development] enjelpuspa:
305_corona_III.1_9_12_5_2_ctl_X cannot detect external memory on my E6683 :(

ROM: Existenz 1.6.0
[Xperia Z5 Android Development] HaoZeke:
Well I found another rom dependency...

The system vold needs to be edited to recognize how to deal with the file system...

I can't think of anything else, apart from that and the device fstab...

Though it still doesn't work yet.

Will test more later.
[Xperia Z5 Android Development] DeathStroke:
It's working mate.

Sent from my E6683
[Xperia Z5 Android Development] enjelpuspa:
Which ROM you are currently using?
[Xperia Z5 Android Development] DeathStroke:
Check my screenshot mate.

Sent from my E6683
[Xperia Z5 Android Development] enjelpuspa:
Oh yes, I am sorry, it didn't load before.

Then why it's not working on me. Wonder why :confused:
[Xperia Z5 Android Development] _LLJY:
Flash the dsds version..
[Xperia Z5 Android Development] nabeelrazanaqvi:
Hi guys any one having firmware update 32.2.A.5.11 on E6633 Xperia Z5 dual? What's new in this firmware?
[Xperia Z5 Android Development] DeathStroke:
I do, but I'm on ExistenZ 1.6 rom, so I'm not going to update. Btw that was released few days back.

Sent from my E6683
[Xperia Z5 Android Development] nabeelrazanaqvi:
What's new in this any idea?
[Xperia Z5 Android Development] whalesplaho:
thinking of flashing kernel.... do i need to setup any configuration after flashing & whats tha review about tha kernel?

thanks
[Xperia Z5 Android Development] DeathStroke:
Security patch.

Sent from my E6683
[Xperia Z5 Android Development] _LLJY:
Its very good, that's all I can say haha
[Xperia Z5 Android Development] koekoek91:
I think it's the best kernel so far. No issues at all here.

You might need to reflash supersu zip after flashing the kernel to be rooted. That's what I do atleast.

But that's all ;)
[Xperia Z5 Android Development] whalesplaho:
thanks for tha fast response..... so much love here!

but cant find tha download link at tha end of tha page.....:good:
[Xperia Z5 Android Development] koekoek91:
http://xdaforums.com/xperia-z5/deve...ernel-playground-z5-wip-t3340725/post69606167
[Xperia Z5 Android Development] zacharias.maladroit:
Stats so far for 305_corona_III.1_9_12_5_2_ctl_X

Now I need YOUR help:

the new source is nearly ready,

I've however no time to compile dozens of kernels right now due to lack of time + priorities for troubleshooting

thus please take a look at the Source:

Sun-Kernel_Eclipse_32.2.A.0.305_corona_III.1_9_12_6_ctl_X

Perhaps you have an idea what causes breakage of the kernel (still for 305 ROMs, since 5.11 Kernel base also doesn't boot into the ROM ["starting apps"]),

possible candidates (commits) are possible.

All commits since today (December 14th are possible, some more - some less)

Your reward:

an even more secure and power saving kernel in a shorter time :D

+ saving me some time and work ;)

Thank you :)
[Xperia Z5 Android Development] zacharias.maladroit:
Ah, that's actually a good one:

does the 305 kernel work with 32.2.A.5.11 ROMs ?

Thanks
[Xperia Z5 Android Development] _LLJY:
[MENTION=6126659]PDesire[/MENTION]

Compile this

Thanks
[Xperia Z5 Android Development] RyTekk:
Xperia devices is ****ing weird, I got broken video after the recording is done, but I can't reproduce the issue, and those security patches are on Nougat kernel, so it may break the booting or functions. Anyway, Sony has their clue to not apply even CAF commits to their kernel, the more commits the more problem we get, the improvement is hidden so deeply.
[Xperia Z5 Android Development] CTCaer:
Just revert commit cf769e9.

This commit may fix a lot of problems, but breaks all external modules.

As a core header change, it makes the whole symbol version layout to change and especially module_layout ( 0xbed7458f).

Thus all external modules fail to load because they have a version mismatch.

You can't change it at all, not even to 41, if you depend to closed source modules.

I think we don't have a power supply driver with more than 40 entries (biggest is "battery" with 31 entries). So probably no need to change, if yes please correct me.

On the other hand, I didn't check other drivers.

Lastly, 1_9_12_5_2 with 5.11 changes works on 305 rom.

Tomorrow I will test 1_9_12_6 commits to my kernel on 5.11 rom.

To what I've seen you didn't merge any change that breaks how functions works for sony libraries, so probably works in 305 also.

EDIT:

Works quite well within the last couple of hours (5.11 rom).

Some insight:

From experience, hacking the module.c to force load the modules inside ramdisk and rom will not work.

It will load them but most will not work because of changed init and exit module addresses.

I tried this when I was playing with UKSM. In the end, UKSM was a big change that forced many (UEVENT_NUM_ENVP forced almost all) symbol versions to change.
[Xperia Z5 Android Development] jufece:
Does someone know how to fix the binaries issues? Flashed many SU zips but always keep the notification about update binaries after updating app

Enviado desde mi E6653 mediante Tapatalk
[Xperia Z5 Android Development] HaoZeke:
Just go the magisk way. Nowadays it's the best way to su
[Xperia Z5 Android Development] _LLJY:
Or su system mode
[Xperia Z5 Android Development] whalesplaho:
Im having dis issue too... Please explain how to solve.
[Xperia Z5 Android Development] _LLJY:
Just ignore it, no harm really
[Xperia Z5 Android Development] -DM-:
Extract the apk from the zip located in the "common" folder...install it manually...reboot into recovery...flash the zip...that's about it, you should have systemless root no binary nag
[Xperia Z5 Android Development] whalesplaho:
Its just annoying and i flashed systemless root SR1!
[Xperia Z5 Android Development] _LLJY:
SR5 is the latest..
[Xperia Z5 Android Development] whalesplaho:
Can yhu help with download link please...
[Xperia Z5 Android Development] koekoek91:
http://xdaforums.com/apps/supersu/2014-09-02-supersu-v2-05-t2868133/page846
[Xperia Z5 Android Development] zacharias.maladroit:
Short notice

New Kernels are UP ! (5.11_corona_III.1_9_12_7_ctl_X)

full changelog will be posted later

Z5, Z5 dual: https://drive.google.com/open?id=0BykGGWB96CBQQy05VURLbzJTZlU

Z5P, Z5P dual: https://drive.google.com/open?id=0BykGGWB96CBQaVZTdnF5QnVTMU0

Z5 compact: https://drive.google.com/open?id=0BykGGWB96CBQVE0tb2dieTZMXzg

Z4/Z3+ https://drive.google.com/open?id=0BykGGWB96CBQa2xBdHR5TzlrNUE
[Xperia Z5 Android Development] Wess.a:
Am using slimx 1.6, is it compatible wirh it? And do I have to wipe cache before flashing it?

Welcome back man