yashsingh1/xdaforums huggingface dataset:
[Sony Xperia M4 Aqua] AndyPhoenix9879:
I will revert the 1.65GHz overclock. Toning it down to 1.63GHz :/

Back all your contents into the PC via adb pull (go Google this, I recommend using adb to copy your sdcard content instead of via MTP cuz MTP caused too much frustration for me). That doesn't look good
[Sony Xperia M4 Aqua] AndyPhoenix9879:
This should hopefully bring back some stability : https://drive.google.com/file/d/0B4nj3MjAx2wIWGJBdUVPU1liVFk/view?usp=sharing

1.63GHz and Interactive_Pro as default governor
[Sony Xperia M4 Aqua] cirnocirno:
I updated from 8a to 8x and I still can't set the minimum frequency of the CPU, it always jumps to 998MHz.

Max CPU frequency can be set as low as 998MHz but the lowest won't change no matter what.

What's going on?
[Sony Xperia M4 Aqua] Luumumba:
New Kernel 9 no boot on my phone.
[Sony Xperia M4 Aqua] valyo_bg:
My phone boot successfully with new kernel, big cores stay on 40MHz when phone is not on task, but small cores change continuously his frequency from minimum to maximum. Let see how will be battery life. Performance is very good.

With old kernel 9 I found that if min frequency for big cores is 345MHz and for small cores are on 249MHz then phone stay stable on this configuration and battery consumption is lowest as possible.

I will try first battery life with stock parameters and then will change up min frequency (249MHz/345MHz) of cores to compare consumption.
[Sony Xperia M4 Aqua] valyo_bg:
My tests shows that intelliactive governor is little bit more efficient than interactive_pro.

During browsing over internet on LTE connection there is almost 5% difference:

Intelliactive: 25%/h

Interactive_pro: 30%/h

During sleep consumption is less than 1%/h for both governors.

When only screen is active:

in stock configuration of SkyMelon (interactive_pro, min frequency 40/55MHz) current is going around 240-290ma

With intelliactive governor 220-270ma

With intelliactive governor and min frequency set at 200/249MHz current is 210-250ma

With intelliactive governor and min frequency set at 200/604MHz current is 190-240ma

Unfortunately there is no 345MHz frequency for small cores to test.

Seems that when bigger minimum frequency is applied for cpu cores then phone is more efficient on working screen with some app started, because cpu frequency stay "still" for more time.

The only "problem" that I see is missing 25% inside report of battery widget. I mean if current inside original battery widget is calculated for all reported apps, SOT and etc. value is small then expected. For example, if my battery have 40% capacity, after calculation of current inside battery manager it should be 60+%. So more than 20% are not inside battery log. Maybe missing% are consumed from CPU, because of not very good optimization? For example with SkyMelon 7/7e report of battery widget correspond on current % of battery status.

All measurements are made with pro version of Ampere in same conditions of phone and used apps.

If instead of LTE data connection WiFi is used, battery life increase around 10-15%. Seems that using of WiFi is better for battery life than LTE.

Unfortunately most consuming part of our phone is data connection and internet browsing. During browsing on LTE data connection, current is going at 750-1200ma for ordinary pages. All other is OK.

Last version of SkyMelon 9 is stable, fast and smooth, no problems found during testing :) .
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Beautiful report. :good:

As for the "problem" I'm not sure on that.
[Sony Xperia M4 Aqua] valyo_bg:
I'm also not sure about "problem", just guess.

Will test again calculation of battery current and showing % :) .

It will be good Andy if you can enable 345MHz for small cores in next release of SkyMelon if it is supported of course.
[Sony Xperia M4 Aqua] inzaghi21:
Hello!

I'm trying to install v.9 ... With Wipe and without Wipe,Phone does not load. What to do? Sorry for my English.
[Sony Xperia M4 Aqua] pawwaap:
It seems the bigger lowest frequency the current is lower, it is very cumbersome observation and it needs confirmation before introducing hard wired changes to karnel. And it needs tools with bigger reliability than Ampere.

In fact still your DeepSleep power intake is far too big, yuo should reach about 0.3% to get satisfy, maybe too high minimal frequency is responsible (when wakelocks wake phone for minutes it must carry out with bigger frequencies)?
[Sony Xperia M4 Aqua] valyo_bg:
I did measurement on screen on, and this is more common use of phone, because even when you browse internet, website is loaded and then only screen is used to read contents. Especially in this scenario using of biggest lower frequency for cpu cores have better efficiency. Ampere shows 30-50ma less consumption on battery and this can be seen on overall life of battery. Of course, you are right that better tool must be used if we need to test consumption of CPU for all different scenarios. Changing of frequency is easy, so everybody can test and report.

Regarding Deep Sleep power, less than 1%/h is OK if you want to receive all push mails and messages just on-time without any delays. If I enable "Aggressive Doze" inside Greenify (if you go back several pages back on this topic, this was tested already), my consumption become 0.3%/h, but all messages are coming with big delays or when phone is unlocked and this is not acceptable for me. When phone is on deep sleep it's not very important what is a min frequency. Also when phone's cpu is with lowest min values there's are not enough speed and governor increase values much more (even several times more) and this need more power than if we use higher min frequency that stay still, not jumping up/down. So testing continue :) .
[Sony Xperia M4 Aqua] AndyPhoenix9879:
So hmm, the repair shop told me the phone's motherboard is the culprit, not the LCD. And we all pretty much know that replacing the motherboard is pretty dam expensive (at least in this region, costs like 2 third the price of this phone like fk). I'll released SkyMelon 9 soon, and that might as well be the last one :/ . This has been one hell of a ride lifting this device off it's lackluster performance on stock, and my desire of getting even more kinda ended my own device. It was a joy nevertheless. Thank to all of you for the support!
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Try this https://drive.google.com/file/d/0B4nj3MjAx2wIXy1tRXJ0Y05UR3M/view?usp=sharing

I underclocked it back to 1.61GHz again..
[Sony Xperia M4 Aqua] jimakhs:
I have some version of 9 and my phone cant connect to the pc but charges fine and that was the way i was flashing the kernels cuz i dont have recovery installed So is there a fix to the usb problem that i can make from the phone ?
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Wat. How did you even thought installing mods into your phone without a recovery is a GREAT idea?! The golden rule of modding - make a nandroid backup (i.e backup phone's content via recovery)

So can't connect to the pc? Does that also mean entering fastboot? Have you tried that hole beside the sdcard slot, insert a pin into it and press on it for awhile till it vibrates if you haven't
[Sony Xperia M4 Aqua] Thedalamsyh:
dang man that's obviously not a good news for us both sides.. since this thread is the only active development thread that I know. it's pain to know that's it's going to eol soon :silly:

well anyway I'd like to thank you very much sir for your support and kind responses within the forum. ;)

any thoughts on replacement device to work with? :laugh:
[Sony Xperia M4 Aqua] AndyPhoenix9879:
AOSP is pretty active too, they are doing a hell lot in tryna get it to be stable (if you joined the Telegram group you can kinda see the progress)

I didn't catch what you meant in the last sentence, but I'm getting a new device next month probably. Still haven't decide which device :silly: I'm just using a Samsung Galaxy SII plus, can't stand it honestly, gonna find a nano to micro sim adapter and use my old trusty Xperia M instead. The Samsung stops responding quite often than not.
[Sony Xperia M4 Aqua] phoenix295:
I am sorry to hear about your device andy :/ thanks for your efforts on making this device more smooth :fingers-crossed:

v8 is most stale version for me :)

And i hope you get another sony device :p i have my eyes on XA1 :eek: seems best bang for bucks for me, but again its Nougat and i cant live with xposed so i am confused

Anyways wish you luck :fingers-crossed: :good:
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Use whichever version is the most stable for you. I'm not getting another Sony device, too much Sonys, gotta try a different brand. I'm eye-ing on Huawei and OnePlus.

Btw, if I recall, the only kernel version I actually gamed on was on Melon 8, was getting quite some consistent 20+fps on Asphalt 8 :) Was really surprised. Then I screwed up something somewhere along the line and had to reflash stock ROM and got lazy to redownload Asphalt 8 again. So how's gaming on the Melon 8x and Melon 9 test builds for those using them?
[Sony Xperia M4 Aqua] valyo_bg:
Sorry to hear that for your M4 device and you are right, changing of motherboard is very expensive and no reason to spend money on repair. It's better to buy new phone.

Thank you very much for your efforts to make stable, fast and smooth kernel. Your SkyMelon kernel did happy many users and give new life of our M4. We are looking forward for last version of SkyMelon 9 :) .
[Sony Xperia M4 Aqua] HRSE:
i have bought a brandnew 16GB sd card and the problem persists (SkyMelon 8x)

some other issues with TWRP: TWRP Backup or restore with compression with make the phone auto restarts.

Backup with compression: phone auto restarts half-way

Backup without compression: success without error (5GB)

Restore compressed backup: phone auto restarts half-way

(all cases are with the same SD card)

you may be correct. probably my SD card is spoilt (which i haven't seen in my life time) or my phone SD card slot is spoilt when using TWRP backup/restore with compression (i don't know if i should blame TWRP or Sony for this).

Just share my philosophy as a firmware/hardware engineer: if something works once doesn't mean it will work for millions other devices out there. if something fails once then it will fail again regardless your eyes are open or not.
[Sony Xperia M4 Aqua] Alexir1:
Are you shure it's SD card ? May be overheat - do you see a cpu temperature grouth due backup? May be leave the phone in the fridge for a while and try again (it's not a joke).
[Sony Xperia M4 Aqua] HRSE:
He got

I have no idea what could be the cause, but someone suggested it could be the SD card, so I had no choice but to accept it.

I didn't put my phone into the fridge, but I did put it directly under the air con, and the phone still auto restarted while restoring the compressed backup.

There can be so many reasons, but for us normal users it is easier to collect data from the software side than to buy a bunch of measurement devices and open up the phone to verify the hardware.
[Sony Xperia M4 Aqua] valyo_bg:
Maybe your backup is faulty and this is a reason for selfreboot. I do regular backup with TWRP with enabled checksum to be sure that is properly created. In your case only solution is wipe of all and installing of ROM via flashtool.

I have several cases when phone was overheating during creation of backup and stopped on 90% and phone do self power off. So I delete backup and did it again.
[Sony Xperia M4 Aqua] Alexir1:
The idea of this action is to start backup, when the cpu temperature as low as possible. So sequence of actions should be - power off the phone - stay it in fridge for a while - power on to TWRP and start backup as quickly as possible.
[Sony Xperia M4 Aqua] HRSE:
certainly there is some other reason than just a corrupted backup, because the auto reset problem occurred during creating a new backup also. And as mentioned before, it only reset when compression is enabled.

I have created around 7 backups with the same TWRP and same SD card, but the problem only occurs recently. Just now I loaded Foy_kernel r4 (wiped cache& art) and the problem still occurred with that kernel during backup

At the moment I'm so lazy to test again with SkyMelon 8. Seems like this only happens to me
[Sony Xperia M4 Aqua] valyo_bg:
Try with version 2 of foy_kernel or with last SkyMelon 9 (it work only on small cores during boot).

But TWRP has own kernel (if I'm not wrong) and creating of backup should be not related to previously installed kernel. When compression is used cpu is heavy loaded and this can be reason for overheating and selfreboot. Also if SD card is with low speed on writing of data this also can be reason for selfreboots. SD card should be class 10 with read/right speed at least 50Mbps, more it's better.
[Sony Xperia M4 Aqua] HRSE:
Backup or restore will take ~7min if I remember correctly, so it may get hot before the process is completed. Also when temperature changes fast there is a chance that condensed water will damage the electronic components or make the glued casing not water-proof anymore. But I will still put it in the fridge when I'm frustrated enough.

Isn't it the job of the kernel to perform thermal throttling to avoid overheat shutdown?
[Sony Xperia M4 Aqua] valyo_bg:
When phone boot in TWRP kernel work not as good temperature optimized if compare with working Android. So overheating can be expected in this native mode. When I do backup I leave phone on cold place (glass table for example) and change his place from time to time to assure proper cooling during backup creation.
[Sony Xperia M4 Aqua] HRSE:
now this is interesting insight.

Is there any other TWRP version that I can try? I'm using 3.0 now but I remember that I have used 3.2 before, maybe from a different XDA m4 guide
[Sony Xperia M4 Aqua] valyo_bg:
I'm also with TWRP 3.0, there is a new version, but I don't know if it good.
[Sony Xperia M4 Aqua] Alexir1:
Do not need to cool below 0 degrees Celsius. This can affect the battery. Optimal temperature, in my opinion +10 degrees.

TWRP does not have a thermal throttling and it is a main problem.
[Sony Xperia M4 Aqua] AndyPhoenix9879:
There is a 3.0.2 : https://drive.google.com/file/d/0Bwfkh9Wew36kem9wdDQ1enJkUmc/edit <-- I use this

The latest one is 3.1 I think... 3.2 doesn't exist.

Also, I underclocked the CPU to 1.61GHz again : https://drive.google.com/file/d/0B4nj3MjAx2wIXy1tRXJ0Y05UR3M/view?usp=sharing

^ test this for awhile and report back. That will be your Melon 9
[Sony Xperia M4 Aqua] ragnalamb01:
Im having trouble with media stream to ANY bluetooth device. Is it xposed the cause?? Did you manage to make it work? Im using skymelon 8.x and pexo rom with latest pexopatch.

Enviado desde mi Xperia M4 Aqua mediante Tapatalk
[Sony Xperia M4 Aqua] valyo_bg:
No, when Xposed is installed my Bluetooth don't work properly. I try with several versions of Xposed but when installed every time my Bluetooth stop work properly, especially audio part. So I decide to uninstall and don't use Xposed any more.

This is not related to the used kernel, even with stock rooted kernel I have problems with Bluetooth when Xposed is installed.
[Sony Xperia M4 Aqua] pecuna:
Hi all!

I installed this kernel and mods on my E2303 but after a day or so I got strange lag and vicious battery drain... :(

Now I have to restore from backup. Too sad it isn't working well, I had so strong believes that it will boost the battery and performance.
[Sony Xperia M4 Aqua] valyo_bg:
Which kernel you install? SkyMelon 9 don't have problem with battery drain, only 8a have such problem. Did you check what drain battery so fast?
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Now that's a first
[Sony Xperia M4 Aqua] cirnocirno:
I just wanted to give a heads up on my previous matter with overheating issues.

I still can't change the minimum frequency to go below 998MHz, however when changing the max to 1.5GHz and GPU down to 550MHz it changed the temps from 64C to 46C while gaming, the performance hit is so-so.

Also I am using 8x
[Sony Xperia M4 Aqua] AndyPhoenix9879:
When you change it to 1.5GHz, it still didn't change the min frequency? Also do you have any other mods in your phone... idk like those "PERFORMANCE SCRIPTS" and stuffs. Those stuffs interferes wayyy too much. Also do u have xposed? This seems to be happening to you only :c

Well the option for you to change the max frequency as you like is there for a reason, use whichever configuration best suited for you :)
[Sony Xperia M4 Aqua] cirnocirno:
Nope, it's just stock MM and using your kernel.
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Try going back to Stock kernel and see if the problem exists. Then maybe reflash my kernel and wipe cache and dalvik cache? After that go into Kernel Adiutor and send me the dmesg. Lemme see what I can find
[Sony Xperia M4 Aqua] cirnocirno:
Does the stock kernel allow kernel adiutor to do changes?

I will do this then when I am at my pc.
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Yes you can change stuffs on the stock kernel with kernel adiutor
[Sony Xperia M4 Aqua] cirnocirno:
Alright, I will report back once I am back.
[Sony Xperia M4 Aqua] phoenix295:
Andy I clean flashed stock rom and V8 with Xposed and now I get 0.3% drain per hour ??
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Beautiful :good:
[Sony Xperia M4 Aqua] julian20:
Hey, i flashed your kernel via TWRP and now i am stuck in a bootloop.

Any idea what went wrong? ^^

EDIT: gonna flash stock rom again, maybe it failed, because i used android 5 (i couldn't update it to 6 somehow)
[Sony Xperia M4 Aqua] valyo_bg:
I just install final version of SkyMelon 9 - thank you Andy :) !

Edit: Also you add 345MHz frequency for small cores, very nice, now kernel can be tuned even better :) .
[Sony Xperia M4 Aqua] ivy.lally:
I have 9-09062017 installed from the very release, experimenting with its Asmp parameters and must say it works well. And the 9 version, official one now, does it have many differences than 9-09062017?

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] HRSE:
thanks for the link. i have created a few compressed backups with TWRP 3.0.2 and there is no problem so far, so i guess it is really the TWRP 3.0.0x that has issue.

on another topic, i have read from somewhere that you also include SuperSU in your kernel, is it correct?
[Sony Xperia M4 Aqua] AndyPhoenix9879:
MM - MarshMallow

To update to Android 6 (MarshMallow), you can use Flashtool. Go Google that one :good:

I can't remember lol. Probably some more battery tweaks

Yes
[Sony Xperia M4 Aqua] Mark.05:
Andy thank you for nice work

but can you add "screen off frequency" please

Through testing puting the little cores at 604mhz

Will improve battery consumption but if the phone is running and the is screen off (downloading something for example) it will not be efficiency

Slowing dow the cpu will help alot with that
[Sony Xperia M4 Aqua] dagger1:
V9 working stable here. Thanks so much for your work Andy!

Might try to see how it works with Pexo Rom this weekend.
[Sony Xperia M4 Aqua] valyo_bg:
I can confirm also - SkyMelon 9 work just perfect. I'm using it with intelliactive governor :) .
[Sony Xperia M4 Aqua] AndyPhoenix9879:
What? Screen off frequency? You mean deep sleep? It's already there!
[Sony Xperia M4 Aqua] ivy.lally:
Probably he wants activities working still on screen OFF, e.g. playing music or downloading, can you play music with screen OFF having the minimum frequencies as the lowest set?

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] phoenix295:
Maybe that can be done with Tasker
[Sony Xperia M4 Aqua] ivy.lally:
Automagic does it better in respect of power savings. Personally saying, have separate settings for playing music (Asmp with two cores online, 200MHz minimum frequency, interactive_pro) and for usual work (minimal frequencies, one core online, interactive, and still experimenting ;) ). Apply them with homescreen shortcuts to the *.sh files, but of course it may be done using KernelAuditor profiles and any automation application e.g. Automagic.

---------- Post added at 10:59 AM ---------- Previous post was at 10:40 AM ----------

And guys, maybe good to sort it out what settings are really power saving, from other forums learned the facts:

- the most efficient frequency (frequency/energy_consumed) in general is 1GHz, it is universal physical property of silicon semiconductors, it is efficiency in the physical meaning, in the sense of energy leaks, and the function is nonlinear.

- switching cores costs energy too.

If this confirms it is most efficient to have two cores always online with such parameters any other cores come online very reluctantly, first to utilize the two cores to their 1GHz (and possibly not above it).

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] F4JL0:
HI guys

Now I have ver. 8x, I see that ver. 9 is out

Whats new in 9?
[Sony Xperia M4 Aqua] Mark.05:
I meant Max screen off frequency (my bad)

when the device turn off the screen but its doing something it will lower the cpu frequency to selected value and stay like that till the screen turn on again
[Sony Xperia M4 Aqua] ivy.lally:
Anybody knows which variables to set to have two cores always online but in the same cluster?

As now if Asmp variable is set:

echo '2' > /sys/kernel/autosmp/conf/min_cpus

then two cores are always online indeed but one is from the big cluster and one is from LITTLE cluster.

It is inefficient, cores use different caches what:

- costs energy for extra cache, and

- prevents second core to use cache data of the first core.

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] wlad3761:
binfmt_misc support

AndyPhoenix9879, can you add binfmt_misc support? I need it for Linux deploy.
[Sony Xperia M4 Aqua] Mark.05:
If possible will be better

Shutdown the 4 little cores will be more power efficient and only using them with heavy loads and using minimum frequency around 533mhz for the big ones and 200mhz as max screen off frequency when the screen is off incase no deepsleep happens
[Sony Xperia M4 Aqua] ivy.lally:
You probably mean Asmp is less power efficient than cluster_plug, don't you? Any knowledge back up for it?

And why so high minimal frequency for big cluster, is it really power efficient and why?

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] ragnalamb01:
Man, I uninstalled every xposed module, removed framework and installer app and wiped dalvik/cache, still bluetooth media transfer is not working, how did you fix it??

Im on pexo rom 3.0 an skymelon 9.

Enviado desde mi Xperia M4 Aqua mediante Tapatalk
[Sony Xperia M4 Aqua] valyo_bg:
I'm using standard ROM and uninstalling of Xposed do the trick every time - Bluetooth work perfect.
[Sony Xperia M4 Aqua] ragnalamb01:
Well, I guess Ill go back to stock. Thanks!

Enviado desde mi Xperia M4 Aqua mediante Tapatalk
[Sony Xperia M4 Aqua] ivy.lally:
And using the newest kernel and cluster_hotplug with min freq 40MHz, Amplify etc energy consumption in idle is 0%/h (BetterBatteryStats for 5h)

Spoiler content hidden.

Please take a look into the full log: http://cloud.tapatalk.com/s/594451010bbb2/BetterBatteryStats-2017-06-16_231826946.txt

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] Mark.05:
not exactly

I tested it using the big cores alone have almost the same power consumption about 10% difference less or he same depending on the load

and the high minimal frequency for the performance and it will consume approximately the same amount of power because of Qualcomm's dynamic voltage scaling

try it maybe maybe my test method is not that perfect

only the 4 big cores

no autosmp

governor : on demand

minimum frequency : 533 and try 200

maximum frequency : 1113

gpu maximum frequency :385
[Sony Xperia M4 Aqua] cirnocirno:
I totally forgot to do this stuff, was very busy with exams and such.

Where can I grab the stock kernel?
[Sony Xperia M4 Aqua] ivy.lally:
It means you have cluster_plug set, how in other way to set it?

And why on-demand exactly, have you tried interactive_pro or intellactive?

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] Mark.05:
just turn the little cores off in kernel adiutor

on-demand cause it more to power saving side then interactive