yashsingh1/xdaforums huggingface dataset:
[Sony Xperia M4 Aqua] valyo_bg:
Unfortunately Xposed Framework fail my Bluetooth connection with car's hands-free and was uninstalled. This mean that I won't be able to test Amplify and to use all features inside Greenify related to Xposed. I will test experimental options inside Greenify, hopefully will resolve successfully battery drain. Also I did already battery calibration, so let see ...
[Sony Xperia M4 Aqua] Thedalamsyh:
strange.. mine is only a few megs and it's last modified at April 3rd
[Sony Xperia M4 Aqua] ivy.lally:
And which SkyMelon kernel version?

And maybe have you set it up something, even involuntarily?

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] Thedalamsyh:
I'm on 8x. not sure.. I don't think I've ever mess around with the kernel other than modifying cpu gov and thermal settings in kernel aduitor
[Sony Xperia M4 Aqua] ivy.lally:
Probably you use WiFi very seldom.

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Delete the wlan logs, I'll find a solution to it. Thanks though for reporting on it
[Sony Xperia M4 Aqua] Alexir1:
I check the date of wlan_logs - this last write was on v5a - v6 melon kernel.
[Sony Xperia M4 Aqua] ivy.lally:
And mine is quite fresh, from several hours ago

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] phoenix295:
I flashed this, charged my phone to 100% and left it idle for 5-6hrs with a active wifi connection and there was 1.2%/hr :fingers-crossed:
[Sony Xperia M4 Aqua] valyo_bg:
With enabled Aggressive Doze (experimental feature) inside Greenify for 6:30 hours during night my phone loose only 2%, this mean around 0.3%/h. I think this is a perfect result :) . My phone is with kernel v.8x, intelliactive governor, without any additional settings - Kernel Adiutor is even not started, no enabled settings during boot.

Now I'm starting to test SOT and average time of phone use. On first look Ampere can't show consumption less than 280ma and this is not very good. I'm waiting now my battery to be complete empty and after charging will continue with tests.

First test will be with stock configuration of kernel (intelliactive governor) and then second test with ily's script file with interactive governor and kernel tweaks. Hopefully will be able to have consumption less 200ma when screen is ON.
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Use cpufloat https://play.google.com/store/apps/details?id=com.waterdaaan.cpufloat , it measures the ampere at a faster rate and shows some other information on the CPU/GPU as well. I'm getting 160ma < drain < 250ma drain when the phone isn't doing anything and screen on with my latest kernel build (linked somewhere above)

That's bad... 1.2% per hour, so total of around 7.2% drain in 6hours of idle time?!
[Sony Xperia M4 Aqua] phoenix295:
Well that was with WiFi enabled :| I have sync on too so

¯\_(ツ)_/¯
[Sony Xperia M4 Aqua] valyo_bg:
[MENTION=5798655]phoenix295[/MENTION] My WiFi is always enabled and I have push sync on 2 emails, many messengers and etc. Of course Greenify helps a lot to reach 0.3%/h in standby mode :) .
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Wifi enabled and sync on too for me - almost always < 3% drain over a period of 8hours. Something's not right with yours :confused: Is it entering deep sleep?
[Sony Xperia M4 Aqua] phoenix295:
Yes it entered deep sleep and cluster plug was on too :|

Also I have greenify with gcm push

What else should I do to get less drain?
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Show what's draining the battery? idk I'm using GSAM battery monitor and it can give me some insights into what's draining sometimes
[Sony Xperia M4 Aqua] phoenix295:
Okay I will post screenshots when battery hits <5%
[Sony Xperia M4 Aqua] valyo_bg:
My results are not good. During ordinary use of phone - open menus, file manager, read a mail, browsing over internet or typing on messenger my battery loose 1% on every few minutes. BetterBatteryStats show 15.6%/h consumption from battery per hour. In top of used current inside battery manager widget is Android system and Screen, but if I manually calculate current from all processes inside - still big amount battery capacity is missing or is not shown inside statistics. Lowest Ampere readings of current is 230ma, but mostly stay around 300ma even if nothing except screen is turned on. So definitely I have problem with battery drain . Only when phone is not in use (locked) consumption is normal 0.3%/h. So I'm gonna to try different kernel to compare battery consumption and to see if I have problem with battery or there is problem with kernel v.8x.
[Sony Xperia M4 Aqua] EHSAN™:
Download V3 of E2333 Variant. No You cant, kernel Installing just with ADB or FlashTools.
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Actually I'm not really sure on this. According to one user, it worked. I'll give that a shot next time. For now, just enjoy the kernel.

P.S I really recommend a clean install i.e wipe system and dalvik cache before installing the kernel because quite some users reported a bunch sort of problems which I could not even replicate - so clean wipe the system just for the sake of proper functionality.
[Sony Xperia M4 Aqua] valyo_bg:
Thank you both for answers :) .

Clean/wipe of System what actually will delete? I will try kernel installation with ADB, but what was commands in terminal for this?
[Sony Xperia M4 Aqua] EHSAN™:
For install Kernel Not need to Do Wipes, just Flash via ADB with this code:

adb flash boot bootE2333-v3.img

(Instead bootE2333-v3.img write your boot file)
[Sony Xperia M4 Aqua] valyo_bg:
Thanks again.

All Done :) , new kernel is installed. I have some problems to connect my phone with ADB, so instead of this Flashtool was used for kernel installation. Phone boot normally (faster than before).
[Sony Xperia M4 Aqua] dagger1:
Sorry, I noticed that brightness, would go from either too bright or too low (on auto) if at the slider for the manual adjustment wasn't set on medium.
[Sony Xperia M4 Aqua] beastfren:
hello. how to select/change governors? thanks

gotit. i used kernel auditor
[Sony Xperia M4 Aqua] makysssdroid:
Yes flash via twrp select img option and flash work greats

---------- Post added at 03:50 AM ---------- Previous post was at 03:46 AM ----------

Optional mode copy img in sd card in twrp select install and select flash img or zip.... Use img search in sd thats kernel and flash....

---------- Post added at 03:53 AM ---------- Previous post was at 03:50 AM ----------

I installed it via recovery in the image option instead of zip easier and without commands checked in e2306 great job
[Sony Xperia M4 Aqua] EHSAN™:
Go on Kernel Auditor, Swip to right and Select CPU, then Select CPU Govenors. i offer Intelliactive Governor.

i installed it from recovery and not working, Anyway Thanks for your help :o
[Sony Xperia M4 Aqua] Madnightkid422:
What is the best governors and i/o scheldur and gpu
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Intelliactive will easily be your favourite. Avoid ElementalX governor for now (battery drain)

IO scheduler, I'd recommend FIOPS. Zen should give a better battery life.

The best GPU is the latest Adreno GPU found in the S835 :silly:
[Sony Xperia M4 Aqua] Madnightkid422:
I did like u told me i set

Cpu on intelliactive

I/O on Fiops

It made very much diffrence it's awesome but still didn't know the gpu governor what's s835 adreno ?!!
[Sony Xperia M4 Aqua] AndyPhoenix9879:
O nvm, I meant that the best GPU is found in the latest Qualcomm Snapdragon chipset. For the GPU governor, just stick with stock (it's tweaked anyway).
[Sony Xperia M4 Aqua] Madnightkid422:
Aha thank you very much u r awesome
[Sony Xperia M4 Aqua] EHSAN™:
New Version Installed! This is very good :)
[Sony Xperia M4 Aqua] Madnightkid422:
I have e2333 model can i install that nav bar u r using i'm using right nw your odex theme
[Sony Xperia M4 Aqua] EHSAN™:
You must Be Install Superuse Mod X Medule From Xpossed. it can give you a themable device :)
[Sony Xperia M4 Aqua] Madnightkid422:
I installed it and superuse mode x now where can i find themeable things ??
[Sony Xperia M4 Aqua] EHSAN™:
Yes install it: https://xdaforums.com/attachment.php?attachmentid=3383776&d=1435601440

And From Recovery flash it: http://dl-xda.xposed.info/framework/sdk23/arm64/xposed-v87-sdk23-arm64.zip
[Sony Xperia M4 Aqua] Madnightkid422:
Yes did that thanks now where can i find themeable things like u do and link me the superuse mod x
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Try again but this time wipe cache and dalvik cache.
[Sony Xperia M4 Aqua] valyo_bg:
I do already wipe cache and dalvik on each changing of kernel. This not helps unfortunately.
[Sony Xperia M4 Aqua] valyo_bg:
To test my phone I install first last version of foykernel - destiny4. Unfortunately WiFi is was not working, so I downgrade to foykernel_r2. With this kernel my battery is back to life, BetterBatteryStats shows 4.8%/h and this is 3 times less than with kernel SkyMelon 8x. So I did some additional tests:

1. Foykernel with stopped little cores, only with screen ON gives 260-280ma measured with Ampere, so middle value for consumption is around 270ma. Work only 4 cores with frequency between 200MHz and 499MHz on screen on without additional activity.

2. Foykernel with all working cores, only with screen ON gives 210-240ma measured with Ampere, so middle value for consumption is around 230ma. All 8 cores work with stable frequency of 200MHz on screen ON without additional activity.

This mean that with 8 working cores Foykernel use less current from battery than with 4 big cores. Difference is more than 40ma with screen ON and as soon phone is loaded with heavy apps this difference increase.

If we make little calculation, 8 cores with 200MHz frequency give total of 1.6GHz and if compare with 4 cores working on 533+ MHz that gave more than 2.1GHz. If we add that when cpu core is in process of stopping and starting need more current this clearly shows why it's not good idea to stop little cores.

My SOT is 5 hours with Foykernel with all working cores.

Then I compare current and frequency stepping behaviour between Foykernel and SkyMelon v.8x. In SkyMelon frequency "jump" continuously between 59MHz and more than 1GHz all the time, cores are continuously stopped and started and this happen even if only screen is ON. Ampere show continuously changing current between 280-320-340ma so the middle value is more than 300ma all the time. This is a big difference in cpu behaviour.

I think that reason for big battery drain with SkyMelon 8x is because of continuously step up and down of cpu frequency and random stopping and starting of all cores. This also explain why phone becomes more hot if compared with Foykernel at same use.

From my point of view to lower battery drain, SkyMelon 8x need to be optimised how it change frequency and even lowest frequency should be increased around 200MHz to assure minimum need of cpu power without changing of frequency. Also changing of frequency should be more "slowly" from up to down to assure stable work of cpu. Disabling of quick change of cpu frequency will make phone smooth and cold with predictive behaviour. Same with stopping of cores, no need to continuously disable and enable different cores, maybe is good to disable dynamically one or two of big cores from time to time, depend of phone load and not to touch little cores that consume less power.

It's a clear that SkyMelon will need more current because is overclocked and optimised for better performance but changing frequency scenario of cores will make it more efficient and this will spare a lot of battery capacity, especially when phone is not 100% on load with heavy apps or games.

Of course this is a only my ideas for possible optimization of SkyMelon.
[Sony Xperia M4 Aqua] wlad3761:
TA partition into kernel

Can we do this: "https://4pda.ru/forum/index.php?showtopic=789632&st=220#entry58503113" with Sky-Melon Kernel ?
[Sony Xperia M4 Aqua] AndyPhoenix9879:
[MENTION=6829223]valyo_bg[/MENTION] is this happening to you also in Melon 8?

And is anyone other than valyo experiencing this problem? Also have any other more report on the test build of Melon 9?
[Sony Xperia M4 Aqua] AndyPhoenix9879:
But you've already unlocked the bootloader thus losing the TA partition already. I can't see the point of this though

https://drive.google.com/file/d/0B4nj3MjAx2wIVERGamI2bENHWVU/view?usp=sharing <-- try this build also. [MENTION=6829223]valyo_bg[/MENTION] I'm getting an average of around 170ma with this build on idle load.. Tell me how it goes for you
[Sony Xperia M4 Aqua] HRSE:
i have applied your script using Tasker (upon every boot), thanks!

I do not see "autoSMP" in your script. Also, CPU max freq and GPU max freq was set to some mid-high values, is there any reason for it?

Edit: Tasker seems to have a lot of wakelocks & alarms *sigh*

---------- Post added at 11:29 AM ---------- Previous post was at 11:17 AM ----------

after deleting wlan log, it doesn't come back (SkyMelon 8a & 8x)
[Sony Xperia M4 Aqua] valyo_bg:
I did not test with SkyMelon 8 again because last time it wont do deep sleep and this affect battery life when phone is locked - not in use. Because of this all previous tests was made with SkyMelon 8x.

This morning I install SkyMelon 9, do wipe of cache and dalvik when prompted and after booting (it take long time, optimizing apps and etc.) on first look seems that everything is OK. I wait 10 minutes after boot to be sure that every app and service is started and begin with testing. Ampere shows 210-240ma stable at screen ON, little cores are working all the time, from time to time some of big cores are stopped and this is OK. Frequency changing is not so nervous I think (or maybe I'm wrong, placebo effect) and everything look very promising ... but:

I decide to do one reboot of phone. Unfortunately after reboot phone stuck on boot animation forever - more than 20 minutes. Then I switch OFF phone via volume up and power button and leave phone for 15 minutes to cold it down. Then start again and phone again stuck on boot animation. So I re-flash SkyMelon 9 again, do wipe of cache and dalvik, leave it powered off for 10 minutes and then start again. After starting it go again to "Optimizing Applications" , and then freeze on middle of the counter, then do self reboot, then again start to optimize and again freeze. This happen again and again and phone cannot go further. So I switch OFF phone and leave it again for 15 minutes to cold down. After starting of phone same happen again and again - freeze on counter during optimizing of apps, every time on different app ...

The only way to overcome this problem was to restore last backup with old kernel.

Seems that frequency of cpu cores is not managed very well during boot of phone and result is big overheating and self reboot - maybe cpu cores stay on full speed during boot? Is it possible to stop big cores during boot of phone - this will improve starting process and will make it very stable. It's better to boot little be slowly but successful instead of freezing of phone and even make him impossible to start.

One more question - is it possible to install SkyMelon 9 without Kernel Adiutor? I'm thinking to uninstall temporary Kernel Adiutor before installing of new kernel to see how will work.
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Thanks. I can disable the big cores. But it's interesting how it can't boot-up for you. Maybe it's the overclocking. I'll tune it down later.

And yes you can install the kernel without the app.
[Sony Xperia M4 Aqua] wlad3761:
No. I saved my TA partition by this guide "https://4pda.ru/forum/index.php?showtopic=789632&st=0#entry55887043".

If i flash Incompatible kernel, flash mode will work?
[Sony Xperia M4 Aqua] HRSE:
I flash SkyMelon 8x and use [MENTION=7837559]ivy.lally[/MENTION] config and make some quick tweaks with Amplify, now BBS shows 1%/hr (WiFi & sync on).

Still a looong way to reach 0.2-0.3% as yours, but this is a good start for me :D

Guys let's push our phone's battery life to the limit!

[MENTION=7837559]ivy.lally[/MENTION] I saw you mentioned init.d/99kerneltweaks in your previous post. Can you please share more about it?
[Sony Xperia M4 Aqua] HRSE:
I had to CHMOD each config file to 664 before I could modify successfully
[Sony Xperia M4 Aqua] ivy.lally:
AutoSMP has issues, people here say, and cluster plug works much better so far. And GPU configuration you say is far sufficient, and battery friendly, unless you want to play some games.

It is much better to use Automagic, it is exceptionally optimized for battery and still has awesome possibilities :)

It is just proposition, our system hasn't init.d support and needs some third party supplementation.

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] HRSE:
i see. i will give it a try and also follow up with [MENTION=5689354]AndyPhoenix9879[/MENTION]

so sad to hear about this :( i have quite a lot of profiles & tasks and it is really discouraging to abandon Tasker and start again with Automagic (and need to buy also)
[Sony Xperia M4 Aqua] HRSE:
Previously i used a terminal emulator to run the script that your provided, there was no error, and i verified that it was effective (the config file content was changed). Next, I run the same code in Tasker shell (with root) on boot, and it is working also.

Therefore, i guess as long as i can run the script everytime the phone starts up then it will serve the purpose, am i correct?

(sorry i'm not familiar with Linux & Android)
[Sony Xperia M4 Aqua] Thedalamsyh:
I wouldn't say AutoSMP has issues, it's just a bit too aggressive on turning down cores and pump up the cpu. I might have tamed it a little bit, and came up with what I thought efficient power usage.. I lowered the min_boist_freq to 200000 (idk if it make any change but yeah) in /sys/kernel/autosmp/conf

here's my configuration under kernel adiutor.
[Sony Xperia M4 Aqua] HRSE:
I installed Greenify and turned on a bunch of settings, after 7 hours the battery dropped 2% only. (BBS logs are attached in case anyone needs to study)

However, it seems like I couldn't receive email and Facebook notifications and WhatsApp messages until I turned on the screen. Still a long way to reach the optimal balance between battery life and usability.

Another things to note is the battery loses 5% after composing this post.
[Sony Xperia M4 Aqua] HRSE:
thanks I will give it a try.

Previously I couldn't access the conf folder: no conf folder and I received and error while trying to manually create the conf folder, even Kernel Adiutor was unable to create the folder on boot. Is there any additional step needed before I can see the conf folder?

EDIT

: my phone was unable to get past the boot animation after applying the same autosmp setting in Kernel Adiutor. Let me cool down my phone first and I will try again

(yes, again, i didn't perform a nandroid backup. My last nandroid backup was last week or so)

EDIT2

: After trying a few times, it still cannot get past the boot animation. Reinstall SkyMelon 8x and wipe cache doesn't help.

I haven't resorted to my nandroid backup last week. Is there any suggestion?

EDIT3

: after restoring nandroid backup, i tried auto smp again with the same settings as [MENTION=5914395]Thedalamsyh[/MENTION] and so far so good. i still don't know what made my phone stuck at the boot animation this morning, though.
[Sony Xperia M4 Aqua] mindyabiznis:
Could anyone tel me why when flashing skymelon, it breaks androids ability to see any micro SD cards above 32gb? i.e. formatted with ntfs/ext4

it keeps telling me the disk is corrupt and to repair it but as soon as i do it gives me the same error?
[Sony Xperia M4 Aqua] Thedalamsyh:
hmm no AutoSMP folder? strange.. have you checked your file Explorer to be in internal memory?

aw sorry to hear that fam. I'm afraid I'm not much of a help. try restoring /system and /boot
[Sony Xperia M4 Aqua] HRSE:
sorry i didn't make it clear. actually there is autosmp folder but no conf folder. I used Total Commander with root to browse, and when i create conf folder it gives error

Somehow the phone auto reboot while restoring with TWRP, let me cool it down first
[Sony Xperia M4 Aqua] Thedalamsyh:
mine is all there. I'm using solid Explorer. maybe Andy and the other guys have any thoughts?
[Sony Xperia M4 Aqua] HRSE:
i'm not sure if this relates to kernel, but while restoring nandroid backup, the cpu heats up very fast, until it reaches 70C or more then the restore process is slowed down noticeably (even the progress bar animation stops), and very frequently the phone resets

my nandroid backup has compression enabled
[Sony Xperia M4 Aqua] phoenix295:
yes it heats up in twrp or when optimizing apps screen coz kernel uses cpu at its max frequency

SkyMelon is oc to 1.6 so it gets heat up and then throttles cpu which reduces restoring speed and resetting phone
[Sony Xperia M4 Aqua] HRSE:
DUring boot up and twrp, is the thermal throttle setting configurable by user, or it is set by the CPU itself?

i remember there is a setting here /sys/module/msm_thermal/parameters/core_limit_temp_degC
[Sony Xperia M4 Aqua] phoenix295:
yes theres setting but idk if its used during boot :confused: maybe andy can answer this
[Sony Xperia M4 Aqua] HRSE:
sorry i looked in the wrong folder, it should be sys/kernel not sys/module
[Sony Xperia M4 Aqua] HRSE:
when i turn on both autosmp and cluter-plug, most of big CPUs are offline while most of the little CPUs are online @ 800MHz.

Does it mean autosmp & cluster-plug are not compatible with each other, or i do something wrong with the parameters?
[Sony Xperia M4 Aqua] AndyPhoenix9879:
It's not recommended to use 2 hotplugs lol

Whatever the hell you guys did to your phones prior to installing the kernel, that might've contributed to the problem. I'm using 8x again and the battery is FAR better than any of you are getting! (except ivy_lally)

Use. FAT32. Somehow exfat and NTFS isn't supported (I didn't even changed a shyt from the stock regarding any of this two format)

Thermal throttling doesn't kick in in recovery. During boot, I think it does.
[Sony Xperia M4 Aqua] HRSE:
i have turned off cluster-plug and turned on autosmp, everthing seems good now, let me see if it can improve my battery life
[Sony Xperia M4 Aqua] ivy.lally:
Yes, better check it as probably switching cores on and off consumes extra energy itself.

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] AndyPhoenix9879:
How's the battery life doing for you though?
[Sony Xperia M4 Aqua] valyo_bg:
[MENTION=5689354]AndyPhoenix9879[/MENTION] did you improve SkyMelon 9 - I mean stopping of big cores during boot and little lowering of overclock that you suggest? If you have new version of kernel I can test.

---------- Post added at 14:19 ---------- Previous post was at 14:15 ----------

Just add inside Greenify - emails and messengers that you use frequently in White list - this in case that you enable experimental function "Aggressive Doze" and all options inside. After this you will receive all notifications in-time. "While list" is inside "Aggressive Doze" option and open directly original Android battery widget.
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Well I think I hardbricked my phone when I was testing higher voltages. Gray screen on bootup with vignettes around the corners. No Sony boot splash logo.

I will however revert some of the latest commits I made and start doing those things you've suggested.