yashsingh1/xdaforums huggingface dataset:
[Sony Xperia M4 Aqua] Thedalamsyh:
for me the performance drop is not noticeable. but the drain is. battery monitor shows constant >800mA use of battery.. I think AutoSM is a bit too aggressive on turning off cores so the cores that remain online ramped up too high and stays there for too long..

I got >25/hr screen on with moderate usage with AutoSM (messaging apps, xda, browse).

is it configurable? enlighten me please :eek:
[Sony Xperia M4 Aqua] phoenix295:
Yes its configurable

My configuration is like
[Sony Xperia M4 Aqua] valyo_bg:
Yes please, show your configuration I will try it.

To overcome problem with lag of interface I made some changes. First of all, from 4pda forum I found solution for lag interface of M4. People's from their forum make research how other manufactures with same GPU make configuration and have smooth interface without overclock of GPU. I test their solution for more than week and even with bad/stock kernel my phone work very nice if we talk for smooth interface. This file: init.qcom.post_boot.sh should be replaced at system/etc with corresponding permissions (rw-r--r--). So I replace this file again after yesterday's enabling of AutoSMP option and now my phone again work smooth. The only problem is that during writing this post my phone loose 12% of battery (approx 15 minutes activity). So when phone is in standby battery consumption is ok - 1% per hour, but when I use phone, even only to surf in internet it use big amount of power. Also from kernel 8, my phone goes very hot when outside temperature is high (because of beginning of summer) especially when I have conversation via WhatsApp/Viber or surf over internet.

Here below is file init.qcom.post_boot.sh that makes GPU to work smooth. [MENTION=5689354]AndyPhoenix9879[/MENTION] , please look on it, it really work like charm. Unfortunately forum 4pda is on russian language, there is a very good explanation of changes that are made inside this file.
[Sony Xperia M4 Aqua] Thedalamsyh:
somehow after replacing the file and reboot, AutoSM doesn't work anymore (?)
[Sony Xperia M4 Aqua] valyo_bg:
Work for me, check inside Kernel Adiutor if it's enabled?
[Sony Xperia M4 Aqua] AndyPhoenix9879:
AutoSMP somehow actually does indeed drain more battery lol. Can you guys see for the Cluster Plug? My phone kinda broke lol

I'll add this onto the release version soon. How well is this performing for everyone?

Also link?
[Sony Xperia M4 Aqua] valyo_bg:
Here below Andi you can find link with file and explanation, you need to open spoiler in post to see information: https://4pda.ru/forum/index.php?showtopic=678251&view=findpost&p=48988733
[Sony Xperia M4 Aqua] Thedalamsyh:
I did. but cpu monitor doesn't show activities indicating AutoSMP is active haha

cluster plug still works well.

using the modified post_boot.sh made my device fly lmao., apart from the malfunctioning AutoSMP though.
[Sony Xperia M4 Aqua] ivy.lally:
I use just cluster plug with descent kernel settings and my system behaves nicely, during writing this post in Tapatalk Ampere is showing up to 200mA (with daylight brightness). If with the Amplify trimming wakelocks and alarms thanks to this guide

then in sleep phone consumes 0 2%/h. Andy warmly please try to keep these advantages across following updates :)

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Okay :good:
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Hmm I see that it's for CPU though, you said GPU? or am I missing something
[Sony Xperia M4 Aqua] valyo_bg:
Idea of those peoples is to make phone to work smooth like other phones with similar chipset. They look on part of code of china's phone Xiaomi Redmi 3 that have similar cpu Snapdragon 616 and work perfect with low battery consumption. So almost same parameters for optimisation are used for our M4 Aqua and it really work fine on different kernels - GPU work good with changes of CPU parameters inside init.qcom.post_boot.sh file. Phone is stay cold during surfing over internet or using a ordinary apps for chat, call and etc. everything is open quickly, scrolling is smooth, no any delays in interface. I'm not familiar what all parameters do inside this file, so I think that some of them are for GPU, not only for CPU, that is a reason to say GPU instead of CPU, sorry if I'm wrong.
[Sony Xperia M4 Aqua] Thedalamsyh:
oh.. sorry I just made a discovery. the AutoSMP does work with the modified .sh script, but it won't function if the BIG cluster is on interactive governor. hmm strange?
[Sony Xperia M4 Aqua] tomkho12:
Sir, can you release a version without the buit-in SuperSu? I want to use magisk only, thank
[Sony Xperia M4 Aqua] valyo_bg:
[MENTION=5914395]Thedalamsyh[/MENTION] I think this is a proper way, it stop mainly little cores and only from time to time some of big cores. Check how is configured AutoSMP inside Kernel Adiutor - what is a minimum of cores, should be 2.

---------- Post added at 09:44 ---------- Previous post was at 09:37 ----------

@AndyPhoenix9879 did you implement init.qcom.post_boot.sh file for UI improvement inside new kernel v.8x ?
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Alright then. Will do it later

No I didn't. Next release I will (too lazy to upload another one :p)

EDIT: Mah gawd, you guys aren't getting massive battery drain with that init.qcom sh file?
[Sony Xperia M4 Aqua] tomkho12:
Thank for your answer. Also I had a big miscellaneous bettery drain in the battery section :/
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Version? Ensure that you did wipe dalvik cache and cache when installing
[Sony Xperia M4 Aqua] tomkho12:
V8a and pretty sure i did that. Just installed 8x, i will check it later
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Ah Melon 8a is infamous for it's drain. Some users are unaffected, but a majority is affected. 8x shouldn't have any battery drain issues
[Sony Xperia M4 Aqua] AndyPhoenix9879:
As promised, https://drive.google.com/file/d/0B4nj3MjAx2wIRnlaSEtrdmJWX2s/view?usp=sharing

Tell me how this one performs :)
[Sony Xperia M4 Aqua] valyo_bg:
What is as better Magisk or SuperSU, it will be interesting to compare.
[Sony Xperia M4 Aqua] cirnocirno:
I have no idea what happened but my CPU is always running all cores at around 900MHz idle and I can't switch it with kernel adiutor. Also I can't seem to get the thermal limiter to work, I want the CPU to throttle as soon it goes above 60c. Since it idles at 50c.
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Which version? Also have you tried a reboot?
[Sony Xperia M4 Aqua] Thedalamsyh:
did you checked vdd restriction under thermal section in kernel aduitor?

---------- Post added at 02:44 PM ---------- Previous post was at 02:39 PM ----------

not quite. did you find something in that file that could cause huge drain?
[Sony Xperia M4 Aqua] Ahateon:
8x is more stable and better than 8a?
[Sony Xperia M4 Aqua] ivy.lally:
As can see it has well working 19MHz Adreno idling

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] tomkho12:
Thank :) . This one does work but magisk got rekt. Everytime i reset my phone, the root status would be lost. And MagiskSU can't be installed through flashing. I did some researchs in Magisk theard and the dev suggests that Sony_RIC should be disabled in the kernel for magisk to work. I tried messing with rootkernel tool but unable to build a proper one :/
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Tulip doesn't have Sony RIC apparently lol
[Sony Xperia M4 Aqua] tomkho12:
Yeah, I will just give up MagiskSU :'(
[Sony Xperia M4 Aqua] cirnocirno:
I had v8a and went back to v8 but both seem to have this problem and it appears randomly. A reboot does fix it but only until the phone fires up doing something.

Yeah I did, anytime I am doing something else than listening to music and browsing web. So for example, if I open youtube and watched a video, the phone would heat itself up to 65c and the idle would switch to 900MHz and won't go back. Same happens if I play a game, or twitch or anything more or less demanding.
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Mind sharing the kernel configuration you did? The phone shouldn't heat up to that temperature during video playback.
[Sony Xperia M4 Aqua] cirnocirno:
Didn't do anything but install the app and apply it on boot, so it's all default values.
[Sony Xperia M4 Aqua] ivy.lally:
People, please listen, if you want to have perfectly optimized kernel use minimal frequency of 58MHz and tune carefully 'interactive' governor. Especially there is extensively wasteful now when frequency springs up under teen-something CPU load, there's no need of this behavior. If you want take a look into my tuning, feel free to make any amendments if you know better ;)

Spoiler content hidden.

(Its little cores are often offline thanks to CPU hot plug, it is really excellent!)

It behaves nicely how it sticks to the lowest frequency as long as possible. Interface is quite snappy and power consumption remarkable (<200mA while writing this post in Tapatalk)
[Sony Xperia M4 Aqua] Thedalamsyh:
I see only big cluster that u modified. are you using cluster_plug?

I still am not sure which is more effective, to keep the little cluster on or let the big cluster handles all the work, since on paper those little cpus are more power friendly (or is it?)
[Sony Xperia M4 Aqua] valyo_bg:
[MENTION=7837559]ivy.lally[/MENTION] where and how to apply this configuration to test and which kernel you use?

What is consumption % per hour when phone is locked? What SOT you have with this configuration? I have massive drain with kernel v.8a. If v.8 is used then phone's CPU won't deep sleep ... I'm waiting for some update of kernel to be able to use.
[Sony Xperia M4 Aqua] Thedalamsyh:
you can use kernel auditor to apply those edits. and its is only for interactive governor. so basically it's applicable on any kernel that supports interactive gov.
[Sony Xperia M4 Aqua] valyo_bg:
I have Kernel Adiutor, but where to copy/paste this configuration?
[Sony Xperia M4 Aqua] Thedalamsyh:
I think you are supposed to apply the values in CPU Governor Tunables under CPU section.. or at least that's how I do it.
[Sony Xperia M4 Aqua] valyo_bg:
I will try later, but can't see such format of configuration at CPU section - to be able to copy/paste.
[Sony Xperia M4 Aqua] ivy.lally:
Yes, cluster_plug.

I've consumption in idling 0.2-0.3%/h with Amplify and this guide: https://xdaforums.com/showthread.php?p=57507852

And I run a file of *.sh extension with chmod 755 just after the boot, if you want this is the complete file: http://cloud.tapatalk.com/s/592c5b1bc80f8/pkernelZola.sh.txt

It is very drafty please tidy it up if you can, since it works its ok for me ;)

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] valyo_bg:
Thank you for the information, which kernel you use? Seems that you have very good battery life ?.
[Sony Xperia M4 Aqua] ivy.lally:
About kernel, these power savings I have with the versions 8a, 8x Please look at apps like CoolTool and Ampere readings at top of the screen.

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] valyo_bg:
[MENTION=7837559]ivy.lally[/MENTION]

I can't execute file properly - this error received: "newline expected"

First I rename file extension without .txt at the end. Then start it with Root Browser, but error at the top received and then exit with status 1.

Did I miss something?

Do I need to apply your configuration from previous page before executing of file?

Sorry it was my fault, file is started successfully, thank you for sharing :) . I will test to see battery and performance.

Unfortunately I can't install Amplify, because of Exposed. With Exposed I have problem connecting Bluetooth with my car's hands-free - audio is not routed properly and it always goes for via phone speaker instead of car speaker. This happen 10-15 minutes after phone is connected with hands-free of car and only if Xposed is installed. So for now I will use Greenify instead of Amplify, hopefully will have good battery life .

What program you use to autostart script automatically at boot? Sorry for too many questions :) .
[Sony Xperia M4 Aqua] ivy.lally:
If you try running this file please take care to do it without running Kernel Auditor first. It is because KernelAuditor accesses cores exclusively and after it another program/utilities/files.sh can't access them fully.

As you can see in the file provided there is everything needed, the complete settings so no need to run KernelAuditor at all, if so maybe just to check everything is set as should.

And yet about Xposed I must say it is absolutely a must! ;) It is why people prefer e.g. MarshMallow, or even LP, KK over Nougat, in spite Nougat is said as power efficient and more efficient :)

Xposed together with its modules gives better efficiency and possibilities.

About yet starting it at boot, Automagic does it (it cooperates neatly with Amplify too), and many many other programs. And why to start it automatically, e.g. you can create a shortcut on the homescreen with e.g. FX file manager and tap it after boot. You boot your phone so often? ;)

Professionally it should start as init.d component but Xperia MM hasn't init.d. Is there any mod to create init.d in our system? Anybody knows please?

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] ivy.lally:
And still have yet 10%

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] HRSE:
deleted
[Sony Xperia M4 Aqua] ivy.lally:
It must influence power usage.

And is there any control somewhere in /sys/devices/?

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] valyo_bg:
[MENTION=7837559]ivy.lally[/MENTION] I do some testing and here is the results - at locked phone consumption is 2% per hour. I use BetterBatteryStats app (as you suggest earlier) to collect statistics. When I check Alarms inside BetterBatteryStats menu, process com.google.android.gms wake phone 20 times per hour - it's too much. It can't be disabled inside battery optimization, because this option is greyed out.

With this configuration (after starting of script file) phone work very smooth and fast, some of CPU cores frequently are off, also it goes to deep sleep. I'm with kernel v.8x. Still SOT is not tested, because I'm trying first to minimize battery consumption when phone is locked - 2% per hour is too high. I'm little bit surprised why paid version of Greenify wont do the trick.

If it's not possible lowering of battery consumption without using of Amplify, I will give another try and will install Xposed again. But faulty connection between bluetooth and car's hands-free when Xposed is installed is very annoying - I use this connection every day.

On my phone I have several messengers and emails installed - hopefully they will not stop to work properly if Amplify is installed and configured to save battery?
[Sony Xperia M4 Aqua] Thedalamsyh:
I doubt that any messenger app could be tamed without having some delayed sync/notifications. but it's all good if you're okay with it tho
[Sony Xperia M4 Aqua] valyo_bg:
From where you download Xposed Framework, I'm receiving a message that my version of processor architecture is not compatible? It's strange, because I install it several times at the past.
[Sony Xperia M4 Aqua] ivy.lally:
I've deleted anything Google from phone and installed microG instead combined with Yalp. It adds big chunk of free space on storage.

In fact Yalp works well without even microG, so if you need Google just for PlayStore you will find it self efficient. It even works, installs and updates programs without having Google account! :)

It is critical how you configure Greenify, and also with Xposed Greenify has bigger potential!

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] valyo_bg:
[MENTION=7837559]ivy.lally[/MENTION] thank you for the information, you did big changes inside your phone and they also helps a lot for battery life :) . I will try Amplify to see what will be result with battery life, but have difficulty to find proper version of Xposed Framework that mach on my phone. I have already somewhere downloaded old version of it, but want to find newest Xposed Framework to test with bluetooth connection and car's handsfree. So if you have link from where to download will save me a lot of time for testing :) .

Off topic: I also think about removing of google, but also want to be sure that my contacts, photos, documents and etc. will have proper automated backup. I had some bad experience at the past when Nokia (I'm still big nokia fan and miss Symbian) was sold to Microsoft and at later stage some of my data on the cloud was gone. So this is a major reason for me to be careful choosing cloud services. Project microG look very promising but what will happen if for some reason stop to be developed. I still look for an alternative for google that will have at least secure way for automated backup of my data...
[Sony Xperia M4 Aqua] ivy.lally:
Install older version first and inside it update Xposed itself.

And for backups better using third party programs, TitaniumBackup and others, but it's just a matter of taste.

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] valyo_bg:
Amplify is installed, but should I disable everything inside Greenify before configuration of Amplify? I'm not sure if will be conflict between those 2 programs.
[Sony Xperia M4 Aqua] AndyPhoenix9879:
What surprises me is that you guys are getting 2% per hour drain lol. Melon 8x and 1% to 2% drain overnight (8hours). Stock with greenify that I haven't touched since like last yr. (and no Xposed)
[Sony Xperia M4 Aqua] valyo_bg:
Yes, unfortunately 2% per hour when Data connection is ON (in fact I never turn it off). Did you have push mail, how many messengers and mailboxes are configured. I really don't understand why it eat battery so much.
[Sony Xperia M4 Aqua] ivy.lally:
Amplify needs be configured first carefully unless it does little, please follow the guide. And Greenify you need configure (less) carefully too, to avoid clashes between the two don't greenify Amplify and don't limit any Greenify components in Amplify.

(And maybe it's needed to exclude the two programs in system's battery optimization, not sure but I excluded them.)

It means your phone drains in deep sleep about 1.5%/8h=0.19%/h without any tweaks.

It is hard to believe, please measure it accurately with BetterBatteryStats, as in the guide.

I have 0.2-0.3%/h and it would improve with further optimization in Amplify probably.

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] HRSE:
Both of you are truly impressive! Can you share with us your configurations?

I switch from C3 to M4 recently, and i realize M4 is really hot when screen is on.

Currently I do not really have issue with M4 battery life, but I wish to be able to push it to the limit.

Edit: I'm using SkyMelon 8a with CPU Tuner. Kernel Adiutor is more powerful but I don't have time to fully explore it yet.
[Sony Xperia M4 Aqua] ivy.lally:
Anybody knows how2 introduce init.d to the stock MarshMallow in Xperia Aqua? If it succeed it'll be easy to answer to people like [MENTION=5141454]HRSE[/MENTION] :

just copy the file to /etc/init.d and apply:

chmod 755 /etc/init.d/99kerneltweaks

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] valyo_bg:
Next my tests.

First of all temporary uninstall Amplify and leave only Greenify with enabled Xposed module. Then reboot phone and start script.

1. With version 8x of kernel my battery again loose minimum 2%/h on locked phone

2. Downgrade version of kernel to version 7e and with same configuration my battery loose 1.1%/h on locked phone

Result: with same configuration, kernel v.7e have almost half battery consumption if compared with v.8x at locked phone. In both tests [MENTION=7837559]ivy.lally[/MENTION] configuration script is applied, Kernel Adiutor is not used.

My target is to have not more than 0.5%/h on locked phone. If it's not possible with Greenify (I know it quite well) I will install Amplify to try. The problem is that I'm not familiar with Amplify.

Every suggestion will be greatly appreciated :) .
[Sony Xperia M4 Aqua] ivy.lally:
A little modified settings to stick to the lowest frequency even closer:

Spoiler content hidden.

And about Amplify, follow the guide, post #2, what's the problem with it?

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] valyo_bg:
I don't have problem with Amplify, just is not enough familiar with their interface :) . This is the reason to try to have better configuration with Greenify that I use for long time. Installing of Xposed helps a lot to spare of battery capacity via Greenify, thank you for suggestion.

Also I do some research over internet regarding problem with process com.google.android.gms that eat a lot of battery. In my case problem is gmail app that wake this process more than 20 times per hour. So seems that gmail app is buggy and to resolve problem was uninstalled. After uninstalling gmail my battery loose 0.5%/h :) . This with kernel v.7e.

Next that I'm planning is to fix if it's possible to lower consumption when phone is in use. During writing of this post my battery loose 5% and this is to much also.
[Sony Xperia M4 Aqua] ivy.lally:
You can use Amplify and Greenify together, they complement each other but their configuration is everything! It seems you're doing something wrong with Greenify based on what you have written previously. Please try to learn from Greenify forum etc.

Previously yet without Amplify my system used to consume less energy than you say.

And yes, gmail better to replace with e.g. AquaMail, so as the whole Google stuff with microG and Yalp.

If you use also TitaniumBackup you can create homescreen shortcuts to quickly toggle freeze/unfreeze particular applications, and even the whole sets of applications. In this way you can freeze problematic apps to avoid their wakelocks and alarms in sleep. And when you need such frozen application you just tap on shortcut and it unfreezes and starts normally, after using it then again tap freezing it and so on.

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] valyo_bg:
You don't have Google services installed and this decrease a lot battery consumption. I will try Amplifier also, but will disable Greenify to assure that all online replications, backups, messengers and etc will work correct.

I still can't find where to apply cpu configuration from your previous post.
[Sony Xperia M4 Aqua] ivy.lally:
It is just fragment, if you wish the whole file then voila: http://cloud.tapatalk.com/s/592ddf832a748/pkernel.sh.txt

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] valyo_bg:
[MENTION=7837559]ivy.lally[/MENTION] new script not work with kernel v.8x - write errors are received after starting. With v.7e work but interface is slightly slower than before - for example menu and applications window are not open so smooth. So first script received from you is applied now on kernel v.8x.

I did some tweaks inside Greenify, also exclude app from battery optimization like you suggested. Next will make battery calibration with Root Essentials app and then will test again battery life.
[Sony Xperia M4 Aqua] TheRealEagleman:
Im experiencing some lags with the 8x mostly when typing. Im using stock keyboard. Will revert back to 8a
[Sony Xperia M4 Aqua] ivy.lally:
Valyo, if you find it too laggy return to the previous (but it works for me). Errors sometimes could arrive if you apply it after running KernelAuditor first, as KernelAuditor locks access to cores interface.

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Tell me how this performs [MENTION=6829223]valyo_bg[/MENTION] and [MENTION=7907166]TheRealEagleman[/MENTION]

https://drive.google.com/file/d/0B4nj3MjAx2wIS2ExUHVndUpwSnM/view?usp=drivesdk
[Sony Xperia M4 Aqua] valyo_bg:
Almost same situation with me [MENTION=5689354]AndyPhoenix9879[/MENTION] , with kernel v.7e and first script from [MENTION=7837559]ivy.lally[/MENTION] I have 1%/h on locked phone, with v.8x (current) 2%/h . In both cases phone work smooth. I'm still testing kernel v.8x to see SOT and eventually to try to lower battery consumption. In both cases interactive governor is used. Should I try intelliactive governor?
[Sony Xperia M4 Aqua] ivy.lally:
Andy, what about wlan log, how to disable it since there is over hundred MBs in the folder wlan_logs on my phone internal storage?

Aqua E2303, MM modded, SkyMelon