yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Compact Android Development] Infy_AsiX:
For some reason my CPU frequency seemingly randomly unlocks itself to 2.7Ghz. I'm set using Kernel Auditor and also tried Trickster Mod with it's frequency lock function and neither work. I normally set the phone to 1.5Ghz auto after boot.

I'm on interactive governor with aggressive multicore power saving and schedule workqueues enabled.

I use this great app for keeping an eye on the CPU:

https://play.google.com/store/apps/details?id=flar2.floatingmonitors

update: I think I found the issue. Mpdecision was somehow reenabled on top of thunderplug

Also may I ask what the default frequency is for the kernel if unchanged? Reason I ask is I'm currently upgrading to MM with over 350 apps and whenever I wipe something or update Xposed the starting Android apps optimising process ends up overheating the phone. The phone decides to reboot mid process and continue the startup optimising repeatedly until completed. If I unplug the charger and keep the phone somewhere cooler the process will finish in one go. The heat can't be good for battery life.
[Xperia Z3 Compact Android Development] Robot76:
Ermm, I'm not getting this behaviour...

Mine is fine on SLiMM ROM 3.1...

I actually have much more apps than you, I wonder what's going on?

Maybe you could try flashing Advanced Stock Kernel, then flashing your Rom, then flashing EliteKernel afterwards...

[emoji7]

A.R.I.S.E.Numbers™ Z3C SLiMM3.1 EliteKernelV3 SU2.76 Xf86 Nova Substratum
[Xperia Z3 Compact Android Development] lexullde:
Good morning, have tried their kernel and I think it's great, thank you very much, all applications with root access I work perfectly except titanium backup, sometimes it works but most is "seeking root access" know what may be the problem, it will be by the kernel or to unlock the bootloader?
[Xperia Z3 Compact Android Development] lba810701:
Hi! I've got the same problem. I delete the TB permissions from supersu, then at TBs next start i enabled it again. After that, TB allways starts normal. Not hanging at seeking root access.
[Xperia Z3 Compact Android Development] fluffi444:
Have this also - From time to time...Also complete new installation won't help. And also not permisson resetting...

After forcing TB to close. It works... Found no real reproducing way to force this behavior.
[Xperia Z3 Compact Android Development] ShadowElite:
Try to make a clean installation, also the default max freq on boot and after boot is the max stock, 2457Mhz, so I don't force people to OC, so if you have problems it means that there is something wrong with your config or installation conditions
[Xperia Z3 Compact Android Development] Infy_AsiX:
People say turning off mount namespace separation in Supersu since the recent versions went systemless fixes that.

I've gone with the alternate system Supersu version you can find on a Xda thread. That also is a fix.
[Xperia Z3 Compact Android Development] lexullde:
I tried it from*turning off*mount*namespace separation in Supersu*and it does not work for me

I also tested several versions of SuperSU but I got it all, all applications work less titanium backup
[Xperia Z3 Compact Android Development] fluffi444:
Same. TB starts but sometimes or even mostly I need 2 to 3 tries...

Actually it's not that important...

And I still don't know what the reason is for that...
[Xperia Z3 Compact Android Development] gr8st:
Hope it can work with prerooted roms in the future. Magisk looks like it'll come with phh root manager included so it seems the way to go.
[Xperia Z3 Compact Android Development] Robot76:
I'm using Magisk, systemless phh supersu and systemless xposed, but I can't get Elitekernel to work with it [emoji23] [emoji7]

Were giving ShadowElite too many jobs and study, ?

***Had to factory reset, made a huge mess in data, Magisks fault, (probably me)...

A.R.I.S.E.Numbers™ Z3C SLiMM3.2 EliteKernelV3 Phh.Superuser Substratum
[Xperia Z3 Compact Android Development] fluffi444:
Exactly! Already written some pages before. EliteKernel does not work with Magisk. There must be some injections which root detection of most apps do not like...

[MENTION=6905152]Robot76[/MENTION]: No backup done? Before I make such bigger changes I make a FULL Nand backup of main partition (/dev/block/mmcblk0 - 14,7 GB its incl internal SD :)) - If something goes wrong really badly I can resume to 1:1 state as it was before...
[Xperia Z3 Compact Android Development] Robot76:
I hadn't realised how difficult it was, like normally only system is effected, only needing to wipe system, but wipe data? Wth..

Magisk overated, will I actually ever use it?

(I do not play Pokemo0n)

A.R.I.S.E.Numbers™ Z3C SLiMM3.2 EliteKernelV3 Phh.Superuser Substratum
[Xperia Z3 Compact Android Development] Robot76:
I think for my own personal usage, Elitekernel is too awesome...!!!

[emoji7]

A.R.I.S.E. Z3C SLiMM EliteKernel Phh.Superuser Nova Substratum
[Xperia Z3 Compact Android Development] ShadowElite:
thank you robot, I want that you test this, my personal interactive tuned governor and more stuff config, pleaste test it and report, also other people feel free of try it.

It is a profile for kernel adiutor, first extract it on /internal storage/android/data/(kernel adiutor folder, I dont remember exactly the name)/profiles/(here) and after apply the config.

For I/O sheduler try to tune sd config to your best value, I have it on 2048 because I have a UHS-1 Micro SD.
[Xperia Z3 Compact Android Development] ssceddie:
Do I understand it right, unlock BL flash this Kernel and all DRM -and camerafeatures still alive?
[Xperia Z3 Compact Android Development] king960:
Yes, but make DRM (TA partition) backup, so you will be able to restore it if needed in future.
[Xperia Z3 Compact Android Development] alenbernardis:
Thanks!

But I don't have the donate version to import profiles. Can you go to the profile details a paste here the text?
[Xperia Z3 Compact Android Development] fluffi444:
[MENTION=5900960]ShadowElite[/MENTION]

Maybe you or also anybody else using this nice Kernel (and kernel adiutor) can take a short look into this...

Don't even know if this is a bug or a feature :)

For me it looks like that the CPU Hotplug reacts a bit strange somehow. Its noticible in tab CPU (in kernel adiutor).

It seams that the Cores 3 and 4 are not shut down as they should actually.

Core 1: Online everytime (OK)

Core 2: Online if needed - And shutdown as it should if not needed

Core 3: Online if needed - BUT it stays online once activated for unneeded long time

Core 4: Online if needed - BUT it stays online once activated for unneeded long time - but only if not Core 3 is already on

You can reprocude this by manual activate each core (especially 3 and 4) it kernel adiutor CPU tab.

Thanks for your great work! :good:

Info: I'm unsing Kernel Adiutor Mod - But original version reacts the same - Just to let you know.
[Xperia Z3 Compact Android Development] :
Is this a battery friendly profile?
[Xperia Z3 Compact Android Development] Robot76:
Woops, been away, trying right away Shadow Elite!!!

Thanks..

A.R.I.S.E. Z3C SLiMM EliteKernel Phh.Superuser Nova Substratum
[Xperia Z3 Compact Android Development] gr8st:
What files and method are you using to get normal phh supersu to work with elite kernel?

What I did was flash latest superuser.zip from https://superuser.phh.me/ and install phh's SuperUser .apk from play store then went to Chainfire's supersu and then performed "switch superuser app" from settings. Is that wrong? Thanks
[Xperia Z3 Compact Android Development] Robot76:
-Updated-

I use 'full unroot' via SuperSU first,

Then flash latest phh.superuser zip,

Then install phh superuser app

[emoji7]

**Coming from SLiMM's SuperSU of course

A.R.I.S.E. Z3C SLiMM EliteKernel Phh.Superuser Nova Substratum
[Xperia Z3 Compact Android Development] marshalpear:
Phone gets too hot and shutsdown on boot.

I've just flashed Stock .291 PreRooted ROM and I wanted this Kernel. So after flashing the ROM, I simply flashed the Kernel thru recovery, but phone got too hot on the boot and shut itself down, am I doing anything wrong?
[Xperia Z3 Compact Android Development] Robot76:
You have an unlocked bootloader of course?

(Not sure of your unlocked bootloader status, please visit post #213)

And if you were coming from a Concept ROM, you must flash stock ftf first before flashing a stock based one?

I suppose you've checked all your Xposed modules for compatibility...

If you're already using a kernel manager, you've disabled on boot settings? Hhhhhmmm

Ermmm[emoji15]

[emoji7]

Sorry for not being more helpful...

I hope you get things sorted, as this kernels amazing...

Also ShadowElite has expressed this too:

A.R.I.S.E. Z3C SLiMM EliteKernel Phh.Superuser Nova Substratum
[Xperia Z3 Compact Android Development] gr8st:
Do we have to perform that every time we flash an OTA/full rom or elite kernel update? During superuser-r242 zip flash it claims to generate new boot.img in TWRP which is on a different partition from system, but I thought you need magisk for systemless setup (which currently doesn't work with this kernel).
[Xperia Z3 Compact Android Development] Robot76:
**You must always flash the EliteKernel after flashing SLiMM... (Also for DRM restore, purposes)

Oops, no, the Magisk systemless Phh.superuser one is 'phh-superuser-17-magisk.zip'

The 'superuser-r242.zip' is the normal one...

Our superior kernel is not Magisk compatible at the present time...

The Full SLiMM rom automatically wipes /system/ and flashes SuperSU,

So you will have to -Updated- 'full unroot' supersu menu and then flash EliteKernel, Then Phh.superuser zip and phh's app everytime...[emoji15]

The OTA however, maybe does not effect root or Phh.superuser... (I can't remember exactly, have myself only started using Phh.superuser but if you saw SuperSU app in your drawer or saw a supersu installer output in the TWRP window, then you know[emoji23])

[emoji7]

**I've kept using the Material Xposed by dvdandroid, that was mentioned at the Magisk thread, it's cool, but of course installing the official Xposed Framework (system) with it...

A.R.I.S.E. Z3C SLiMM EliteKernel Phh.Superuser Nova Substratum
[Xperia Z3 Compact Android Development] gr8st:
I think 'switch apps' in supersu is necessary as full slimm flashes Supersu, but other users claim that Phh superuser is in fact systemless as it only modifies the boot image (but fails SafetyNet check as su exists in /sbin) so I'm not sure that re-flashing superuser-r242 is necessary at all.

Also have you tried r242 Magisk version to see if it works any better with elite kernel?
[Xperia Z3 Compact Android Development] Robot76:
No I haven't tried that...

OMG, just realised what you're saying...

I personally would do this everytime, as I don't trust SuperSU:

Now I fully unroot via SuperSU,

Then EliteKernel,

Then Phh.superuser.zip,

Then Phh app...

Now my root is systemless...

[emoji7] [emoji7] [emoji7]

***Now I understand why EliteKernel doesn't come with root now, and also why ShadowElite mentioned possibly doing a systemless Xposed...

*Thankyou for your posts, made me examine the zips and also re-evaluate what I was doing, awesome...

Thread highjacking almost[emoji23]

**Hmm, will edit my posts above

A.R.I.S.E. Z3C SLiMM EliteKernel Phh.Superuser Nova Substratum
[Xperia Z3 Compact Android Development] marshalpear:
Yes I have an unlocked bootloader, Yes I was coming from Concept and had flashed stock ftf and the stock ROM thru recovery before I flashed the Kernel.

I didn't have Xposed because I was installing from scratch. Therefore I didn't have a kernel manager either. Don't know what went wrong :eek:
[Xperia Z3 Compact Android Development] Robot76:
You probably know this already, but, never do any wipes after flashing stuff...

[emoji23]

Just yesterday I had a bad install (Not EliteKernel related) but I had to factory reset twice, my mood was pretty bad...

A.R.I.S.E. Z3C SLiMM EliteKernel Phh.Superuser Nova Substratum
[Xperia Z3 Compact Android Development] marshalpear:
I know, no worries, thing is I tried it today with SliMM too, phone did boot up but after I set the CPU Thermal to ThunderPlug and I/O Scheduler to sioplus, phone became sluggish and CPU didn't go down 58 C. It's too hot for me to use, and yes I did disable intellithermal after enabling thunderplug due to conflictions that might cause an issue. Anyways, I think I'll stick to the stock kernel, this one doesn't have IntelliMM CPU Governor which I love either.
[Xperia Z3 Compact Android Development] fluffi444:
OK - if there is no information from you all I reply to myself ;) Some new finding over last few days...

This all must be because of Thunderplug Hotplug. For me it reacts really stange. Maybe it's not well optimized for our 4-Core CPU. MPDecision alone works also not that good. But both together are doing the job quite good! :silly:

I know that this is actually not recomended nor even usefull to activate 2 hotplug govs...

But only this combination seams to elimiante this problem that Core 3 or 4 are not switching off themself after a while...

Maybe we can get IntellPlug Hotplug as well? (I know that some like and some dont like it....)

or/and MSM-MPDecision Hotpulg? Only if its not to much hassle.... ;)

Thanks anyway.
[Xperia Z3 Compact Android Development] Cirra92:
I had similar issue, I forgot to reply here :) Apart from cores going online, which was unpredictable, I also had one core locked at 1190mhz even with no interactions on screen. Changing to MPDecision did not help, as that one wouldn't go to lowest freq, and would run on one core most of the time. Turning both on made things even worse.

I always used IntelliPlug, which worked for me quite well, that should be implemented in Elite :) But I never tried MSM.

I'm on someone755's kernel right now because it has IntelliPlug, however missing fiops scheduler here :)
[Xperia Z3 Compact Android Development] Robot76:
[MENTION=4962787]fluffi444[/MENTION] [MENTION=7229882]marshalpear[/MENTION]

I went to the Kernel settings thread for information regarding thunderplug, this is what I found:

Thunderplug: A matured load-based hotplug driver with many tunables written from ground up by varun.chitre15. This hotplug is optimized for octa-core devices and also has support for 64bit CPUs. - gsstudios

Me too, I also love the fact there's fiops, for me that's real important.[emoji7]

[MENTION=5900960]ShadowElite[/MENTION], I've tested the awesome ShadowElite profile you gave me, at first I didn't know what to expect, mixed views for a couple of days... but todays usage was awesome, my battery after a while hadn't even used 1%, 86%, later looked and was still at 86%, cool...

(I hope this was what was to be expected, I would also like to hear your review of it too, otherwise chill, and thank you for letting us try it out, added to my little collection)[emoji7]

[emoji23]

A.R.I.S.E. Z3C SLiMM EliteKernel Phh.Superuser Nova Substratum
[Xperia Z3 Compact Android Development] Infy_AsiX:
For me I had to disable mpdecision using Kernel Adiutors emulate init.d to stop freq hitting 2.7Ghz and odd hotplugging with thunderplug.

Found the commands on Google by Androplus here:

https://github.com/AndroPlus-org/build_tools_xperia/blob/master/tools/stop_mpdec.sh

Depending on where your root and busybox is edit the top lines respectively. Mine's like this:

---------- Post added at 08:27 PM ---------- Previous post was at 07:44 PM ----------

I think my battery may be old and heats up easily. Using floating monitors I mentioned in a previous post, I notice my battery likes to charge up around 40C on AC with light use. Which is already at the maximum range of charging and a little higher results in the current draw dropping. Ideally for battery life the temperature should be half of that! Also with moderate and above usage the phone will simply lose charge slowly rather than gaining.

I've managed to counter the issue. Set all the various aggressive power saving features, boosts off. I've custom configured Interactive governor for power saving. Undervolted, set max freq at 1.7Ghz and chosen thermal freq at 65C with core control ignored by setting extra high at 85C. This all seems to keep the phone as fast and responsive with as little heat as possible. The effect is the battery can charge properly better, drain less and last into the future longer.

Also note that if Zram is changed from the default setting in a Kernel app it takes a few minutes of CPU load to decompress. In Kernel Adiutor I've noticed that if set together in a profile like with boot, other changes like CPU don't take effect until the decompression is complete. This creates a lot of heat for me, affecting the battery and for charging to work again takes several minutes if in use. I've gotten around this by setting swappiness to 0 in init.d which still compresses a small few MBs but that's ok. Then using Kernel Adiutor-Mod app extra just to set the preferred swappiness and Zram size instead so the main KA app can set settings without delay.

I wonder if recent modern multi-core phones' frequencies, governor's and hotplugging aren't optimised at all for real usage. Rather the benchmark, spec sheet list and fast as possible features sell to consumers' minds better. Harming battery life can play as part of the sooner obsolete, profit manufacturing cycle. There's at least a degree of truth in that, looking at the Snapdragon 810 scenario.

p.s. The initialising apps boot overheat issue I posted about recently was on another old phone with a swollen battery. It's also relevant to my topic about stock heat management, immediate effects on battery and the likely evident damage caused.
[Xperia Z3 Compact Android Development] gr8st:
My CPU hovers around 40C when woken up/brought out of doze, you're saying that's high and will prematurely shorten battery life? And this warrants under volting it?

When I just changed the cpu/gpu governor to power save, the device starts acting weird. Double tap to wake stops working, screen takes a while to turn on, etc. Can you share the profile backup from kernel auditor mod that you say works well?
[Xperia Z3 Compact Android Development] fluffi444:
This was already tested by me without sucsess - I made my own script to deactivate mpdecision (since LP times) as AndroPlus has written in change logs of AP Kernel...

#!/system/bin/sh -x
busybox mount -o remount,rw /system
mv /system/vendor/lib/hw/power.qcom.so /system/vendor/lib/hw/power.qcom.so.bak
mv /system/bin/mpdecision /system/bin/mpdecision.bak
[Xperia Z3 Compact Android Development] Infy_AsiX:
Sorry if it's not clear. Battery temperature has a range of like 15-45C typically.

CPU runs around 40C for light use and can go double that ok.

I'm tuning CPU to limit it's heat which helps the battery also sitting inside to stay a little cooler. I can share it if you want but I haven't tested it gaming to see if throttling is too severe. Could just be a matter of increasing throttle from 65C to 70/75 or whatever.

---------- Post added at 09:31 PM ---------- Previous post was at 09:27 PM ----------

I did try that method from changelog and didn't seem to work for me either. Tried init.d method? Else I don't know.
[Xperia Z3 Compact Android Development] gr8st:
I don't game, go ahead share it. KA mod saves it's profile.json at /data/data/com.kerneladiutor.mod/files

Any time I try to make a decent power saving profile by undervolting/altering governor settings, device acts up. Would ask appreciate any functioning combo you've discovered for this kernel, thanks!
[Xperia Z3 Compact Android Development] Infy_AsiX:
Be sure to use the init.d instructions in the previous post. I never got Hotplugging and frequencies working properly without it.

Of course I'm not responsible for you using these it's at your own risk. The KA minimal heat profile. It's only setting the tabs CPU, CPU Hotplug, Thermal and I/O Scheduler. The reason other settings aren't included are that Voltage depends on your device's PVS Bin. I haven't modified GPU from default as it worked well on 5.1.1 Adreno Idler and so far without gaming at least, idles often and ramps down effectively. Memory related settings preferences are personal in my opinion.

The interactive governor tunables are just my best attempt at understanding the values from a guide and trying to find a power savings setting. If anyone can improve them or perhaps the undervolt values, please do. Perhaps if a governor like intelliactive is added that could be better.

https://drive.google.com/file/d/0B0X2Xrhm-Hj5MHFqZzRzQ0F0ejQ/view?usp=drivesdk

Just import in Kernel Adiutor's (not mod version) profiles and apply. No delay in settings, apply on boot is ok I think. Device will be slow when first applied at boot as thermal throttle brings CPU back down. It's fine otherwise, the throttling doesn't slow much. Though I also haven't tested in a hot environment in the sun yet. Perhaps setting to 70 instead of 65C is a suitable compromise.

Undervolting amount depends on your PVS bin. This OP first step has how to get your PVS bin via root browser. I followed this post and took the percentage undervolts they used for each freq and applied to stock voltages. I slightly scaled the range better and added the missing top and bottom freqs. You can check the table of data attached in the xda link first post to see for yourself. Our values match the GS5 in blue. It's very low in the low ranges but ok for me so far on PVS bin 6. The reddit link above instead also has some slightly safer PVS bin 6 values.

Otherwise just applying these percentages I've derived to your stock voltages should work:

268mhz: 82%

300mhz: 82.4%

422mhz: 84%

652mhz: 85.6%

729mhz: 86.9%

883mhz: 88%

960mhz: 89%

1036mhz: 90%

1190mhz: 91%

1267mhz: 92%

1497mhz: 94%

1574mhz: 95%

1728mhz: 96%

1958mhz: 97%

2265mhz: 98%

2456mhz: 98.5%

2572mhz: 99%

2762mhz: 99.5%

---------- Post added at 05:35 PM ---------- Previous post was at 04:55 PM ----------

Is it suitable for our quad-core then? Do all octa-cores have Big and Little's that have a different dynamic? We don't have access to many tunables either at least on Kernel Adiutor. Alucard, Intelliplug and Mako Hotplug seem commonly referenced
[Xperia Z3 Compact Android Development] gr8st:
Thanks for info and references. I didn't have that directory so i manually created it, but it didn't recognize .json file when I dropped it in there. Any ideas?

If you have the profile created in kernel auditor mod instead, I seem to be able to import/export the.json found at /data/data/com.kerneladiutor.mod/files If you'd like to share that version instead.

At any rate, the info on undervolting is great help, thanks so much!
[Xperia Z3 Compact Android Development] Infy_AsiX:
Perhaps the profiles from normal KA aren't transferable to KA-mod. Seems you don't need to place into directory either it's import can choose the file.

I've just tried to make a profile using KA-mod but can't seem to get it working.

Also I've just noticed core control in thermal doesn't want to apply from the profile for some reason. It doesn't matter in this profile's case as throttling will keep heat low. However if you use a limit of say 75C instead if it's overheating, it won't cool as fast without core control enabled too.

Oh and I/O Scheduler, external storage read-ahead should be set according to your sdcard size and speed or something. It's been mentioned here before, the info's around somewhere.
[Xperia Z3 Compact Android Development] Robot76:
[emoji23] I know nothing, seriously, just had a big read, without any common or general knowledge...

A.R.I.S.E. Z3C SLiMM EliteKernel Phh.Superuser Rr.Xposed Substratum Systemless