yashsingh1/xdaforums huggingface dataset:
[Sony Xperia M4 Aqua] mindyabiznis:
It seems that after about 6 hours of waiting for the phone to reboot and flash and first boot and work or not work and reflashing until it did just boot and have wifi working...

It's working fine now, managed to get skymelon which seems to be the ONLY kernel now that will allow wifi to work, and although the phone will not work with exfat I managed to use adoptable storage and it formatted to fat32 on its own and is working 100% like that.

Hopefully it doesn't permabreak the new sd card in there, this happened before on a LP rom, could not recover the sd card for love nor money.

So anyways thanks for the kernel, it looks and works lovely :D

Is there any kernel editor/modification app I should set up and use for the autosmp and general gov/core management? Last time I used anything like that I was using fauxkernel which worked very well but this was 2 years ago
[Sony Xperia M4 Aqua] AndyPhoenix9879:
The kernel doesn't support exfat and NTFS. Secondly the wifi problem is due to this kernel using an updated wlan module which would not work with older kernel. If you were to use stock again, I'd suggest you to re-install the module which I link in my 3rd post : https://xdaforums.com/showpost.php?p=70418577&postcount=3

Do note that that wlan I linked is for stock kernel... Do enjoy the kernel (and stay away from Melon 8a)

As for the kernel configuration - do as your heart desire :) and as always, be careful at it too.
[Sony Xperia M4 Aqua] valyo_bg:
Sorry to hear this Andy, hopefully your phone will start again after cooling.
[Sony Xperia M4 Aqua] AndyPhoenix9879:
It didn't... :crying:
[Sony Xperia M4 Aqua] AndyPhoenix9879:
You know the drill, : https://drive.google.com/file/d/0B4nj3MjAx2wITExISnoxMnlBMVU/view?usp=sharing
[Sony Xperia M4 Aqua] valyo_bg:
Should I try this kernel? What to expect during boot, if will boot only with small cores of cpu?

---------- Post added at 16:41 ---------- Previous post was at 16:05 ----------

New kernel start successfully, phone was not very hot during boot. Let see how will be battery life. Phone itself work very nice and smooth. Good work Andy :) . I wish to repair your phone soon, to test new kernel :).
[Sony Xperia M4 Aqua] armivzla:
Oh boy, we hope you can fix your phone soon Andy and that does not happen to be a more serious problem. :(

This afternoon I will use to install the latest version with the latest version of your kernel from a clean installation.

Thanks for the development of the kernel, greetings from venezuela
[Sony Xperia M4 Aqua] ivy.lally:
If someone explained how these values translate into practice, it'd be nice ;)

And what and how much to set to make cores far more reluctantly go online?

It is because bigger number of cores now are online and more often than with cluster_plug and it indeed consumes more energy as Ampere shows.

Aqua E2303, MM modded, SkyMelon

---------- Post added at 04:52 PM ---------- Previous post was at 04:05 PM ----------

And it would better to discuss Asmp parameters on this snippet to include into the executable text file I had provided earlier:

Spoiler content hidden.

We could apply Asmp this without running KernelAuditor, what it better for battery too (wakelocks).

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] Luumumba:
new kernel crashes all few minutes
[Sony Xperia M4 Aqua] ivy.lally:
As yet about Asmp, question:

fewer cores with higher frequency

or

numerous cores with lower frequencies,

which is better for power saving?

(People say, silicon properties are such the most power efficient (performance/energy) frequency is about 1GHz,

and configuration should oscillate around this frequency. Probably this general rule is inadequate for this CPU, as it exists mostly in lowest frequencies area, but to listen the rule better is fewer cores with bigger frequency i.e. not higher than 1GHz, but it needs take into consideration switching cores cost too.)

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] piumaldias:
I can't control the thermal settings using kermel editor. Is there a way to fix that or is there any other way to change them. Thanks
[Sony Xperia M4 Aqua] ivy.lally:
If anyone needed apply complete configuration without KernelAuditor please take this sh executable text file, which now is tailored for ASMP: http://cloud.tapatalk.com/s/5932f5f08479f/pkernelAsmp.sh.txt

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] valyo_bg:
Ivy, I just execute file with Root Explorer (no errors) but seems that nothing change - all cores work. I'm not sure that file is properly downloaded.

Do I need to change governor inside Kernel Adiutor to interactive first? My current governor is intelliactive and I do some tweaks inside cpu and gpu frequency with Kernel Adiitor.

Also I have difficulties to download file, when hit button Download it's open like text file instead of downloading. So every time I need to copy text inside browser's window and paste to RE-text editor and save with new name. Maybe if file is zipped then can be downloaded directly. I use Opera for browsing. I'm not sure if file is properly created when copy and paste of text is used.

Could you please share file as zip file?
[Sony Xperia M4 Aqua] ivy.lally:
http://cloud.tapatalk.com/s/59331ca41a89e/pkernelAsmp.zip

And please try running this file without running KernelAuditor first (after boot) as KernelAuditor locks some system controls for its exclusive use so another entity can't change anything after KernelAuditor.

And don't know how about changing governor with this file, it's better to set it in KernelAuditor, then freeze or uninstall KernelAuditor and reboot. And after reboot run this file, and only afterwards you can run KernelAuditor to see what happens and maybe do some fine grain tuning of you want experimenting.

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] mindyabiznis:
Yeah which kernel editor do you recommend? like I said the last I used was fauxkernel lol

I understand about the wan module but I flashed the one that was required, also Foy kernel is compatible with the pexo rom as people are using Foy and pexo, or skymelon and pexo.

Either way it's working now and skymelon is good, my Mrs did say she experienced battery drain today using the phone much more than what is normal.

Is there a fix for that? Is it the need to install a kernel auditor and switch off the autosmp?
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Hmm, I assumed you've wipe cache and dalvik cache. If so, then I guess my initial assumption that all M4 Aqua has the same PVS setting is wrong then.. Gonna reduce the LITTLE clusters to 1.21GHz again I guess

1. Ensure you're not using Melon 8a.

2. Turn off AutoSMP (it seems to be draining battery than helping it)

3. Kernel Adiutor
[Sony Xperia M4 Aqua] ivy.lally:
It depends on its settings, doesn't it?

I use these:

Spoiler content hidden.

and the results are interesting.

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] F4JL0:
I flashed 8x and camera app doesn't work its always crashing

Also my flashlight doesn't work too

Does somebody same problem?
[Sony Xperia M4 Aqua] phoenix295:
Andy why do I have so much drain?
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Honestly, I really don't know. For me on 8x, the battery was the best I've ever gotten... 5hours+ SOT and less than 1% drain per hour... Please put what version of the kernel you used

Looks like you're the only one
[Sony Xperia M4 Aqua] AndyPhoenix9879:
1.21GHz now. Lowered some bandwidths and current. https://drive.google.com/file/d/0B4nj3MjAx2wIN0xBaDdEWlBaZjA/view?usp=sharing
[Sony Xperia M4 Aqua] phoenix295:
Skymelon 9 the one named like "9-31052017-01.zip"

Is xposed causing this?
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Likely. I'm not using xposed, the only stuff I have for battery optimization is Greenify. Some other modification includes the thermal-engine and the stereo speaker mod.
[Sony Xperia M4 Aqua] phoenix295:
So you use greenify without xposed?
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Yes. Honestly I actually forgot I even had greenify lol
[Sony Xperia M4 Aqua] HRSE:
I realize most of the time big CPUs stay at 58MHz while little CPUs stay at 800MHz. How to make the little CPUs to stay at 79MHz also?

SkyMelon 8x, cluster-plug disabled, both autosmp enabled or disabled have the same behaviour , interactive with messed up parameters
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Powersave governor.
[Sony Xperia M4 Aqua] phoenix295:
If little cores stay at 79MHz you will experience lag in UI like when scrolling or opening an app :confused:
[Sony Xperia M4 Aqua] HRSE:
Not really. I have autosmp enabled and most of the time only one big CPU is active, and the UI does not have noticeable lag. Of course the only active CPU remaining cannot stay at 58MHz though
[Sony Xperia M4 Aqua] valyo_bg:
Kernel Adiutor is uninstalled. I just start script successfully with Root browser and now work correct correct. Will test battery drain now.

Thanks, now is easy to download script :) .
[Sony Xperia M4 Aqua] valyo_bg:
Ivy, battery consumption is almost the same, even bigger from time to time. Phone work slow with applied script file. Maybe is better don't stop cpu cores, seems that m4 hardware is not compatible with that.

[MENTION=5689354]AndyPhoenix9879[/MENTION] last kernel work smooth and stable, let see battery life. All other is OK :) .
[Sony Xperia M4 Aqua] HRSE:
did you turn on Aggressive Doze in Greenify? i can only get <1%/hr if i turn on that option
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Thank you so much for reporting

I don't know, and I can't check. Phone is practically broken now.
[Sony Xperia M4 Aqua] F4JL0:
Guys help me

I got problems with camera and flashlight so i decided to fľašu my backup byť it didnt help

I have tis problém since i flashed my backup for 1. Time

Backup is broken or something

Can someone send me his backup?

Or can i flash it via flashtool?

I got root. Will i love it IF i Will flash ftf?
[Sony Xperia M4 Aqua] mindyabiznis:
Ok awesome thanks Andy, I've not flashed 8a, I only tried 8 which didn't work for me, broke the wifi, and then 8x which works just fine.

What has changed in v9? Could we get a link on the original post? Saying experimental or a quick break down of what's working or not working?

Keep up the good work, I love well tuned kernels reminds me of the insane performance I used to get out of my z1c, what a glorious phone that was
[Sony Xperia M4 Aqua] Thedalamsyh:
try lowering the cpufreq_down to reduce the asmp aggressiveness on turning down cores.

---------- Post added at 11:39 AM ---------- Previous post was at 11:30 AM ----------

as for others I'd like to share my settings too,

Spoiler content hidden.

sorry if I quoted your post ivy, :eek:
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Well this kernel is based off stock. So... practically everything works. I've just tuned down some settings that helped with performance a lot but seemed to cause some instability. Hence I re-release another test build of Melon 9 in the form of 9-04062017.zip I forgot what I changed lol (it's in my github, go check some out)

What did you do!!! Yes you'll lose it when you flash ftf. You can't flash backup.

Thank you all so much for sharing your settings. Linking this to the main post :good:
[Sony Xperia M4 Aqua] valyo_bg:
In fact I did many tests last month regarding battery life and performance of phone. Many frequencies and different governors was tried with monitoring of battery current. Here below what I find:

1. Regarding battery life:

Stopping of cores even drain more current of battery. I try different kernels (not only SkyMelon), different frequencies for small and big cores, try to stop only one or two or more of big or small cores. Try to stop all small cores - in every test current was bigger than of all cores work. Then increase lowest frequency of small cores and lower frequency for big cores - result same or bigger consumption or phone become slow with same consumption from battery.

So, from my experience, after testing of almost all scenarios with different frequency and governors I found that stopping of cores do phone slow and use more battery.

The only way to lower battery consumption is possible only for standby mode (locked phone) when Greenify is used. Here is possible two configurations: one with enabled experimental feature "Aggressive Doze" when consumption is 0.3%/h but notifications are not received in time and second configuration of Greenify (without experimental features) where consumption is approx. 1%/h and every notification arrive I time. So I choose to use second configuration, 1%/h with all notification arrived on-time.

2. Regarding performance. Best performance is with again all working cores with disabled AutoSMP option and intelliactive governor. All other configurations make phone slow with more drain of battery. I try also with uninstalled Kernel Adiutor, with different startup scripts.

Generally what is my conclusions:

Our phone M4 Aqua is with hardware that not support well efficiency and performance. Beside of our efforts, and what we do, battery life will be not so good. So better is to have performance, that we don't receive with stock kernel.

Thanks to [MENTION=5689354]AndyPhoenix9879[/MENTION] SkyMelon kernels, we have opportunity to have completely new phone with very good performance. Phone become smooth, fast and comfortable for use. I think this is a maximum that we can get from phone, with ability to change kernel configuration that suits our needs. Good news is that with SkyMelon we receive kernel updates and improvements that make our phones to work better and better. Thank you [MENTION=5689354]AndyPhoenix9879[/MENTION] for your efforts :) .

I prefer to have good working phone, and when need will charge battery. Also my phone is 2 years old and battery is not like new, so decreased battery life is expected even with stock kernel.

Hopefully new version of SkyMelon will continue to bring life for our not very good developed midrange phone from Sony.
[Sony Xperia M4 Aqua] HRSE:
This reminds me of the days back in 2008 when I was still using the Intel core 2 duo laptop and I had a lot of fun to overclock, under voltage and tweak the governor. Then the Intel i3, i5, i7 comes out and then gen 2 gen 3... Now the Intel built-in power management is really effective that there is no point to do manual tweaking.

I guess the future of ARM will also head that path.

So for now let's have fun till it lasts. :)

Edit: Sorry is it the motherboard BIOS that decides the CPU voltage and the OS that triggers frequency switching? Anyway there was not much room for adjusting like it was before
[Sony Xperia M4 Aqua] cirnocirno:
I have a small question to all who is working with the kernel and such.

Is there no possibility to add the option to lower the voltage on our own.

Many other phones have custom kernels that allow them to input their own "lowered" voltage.

This would be good overall for each of one of us.
[Sony Xperia M4 Aqua] pawwaap:
Is it for performance or power saving?
[Sony Xperia M4 Aqua] Thedalamsyh:
it's more of a battery and stability than performance.
[Sony Xperia M4 Aqua] HRSE:
I used to install f.lux or cf.lumen to reduce blue light during night time. Now with built-in kcal support in SkyMelon, i no longer need those apps! this is the script i use to adjust blue light:

Set RGB to 256 256 1: (only red & green, no blue)

echo 1 > /sys/devices/platform/kcal_ctrl.0/kcal_min
echo '256 256 1' > /sys/devices/platform/kcal_ctrl.0/kcal
echo 1 > /sys/devices/platform/kcal_ctrl.0/kcal_enable

To disable:

echo 0 > /sys/devices/platform/kcal_ctrl.0/kcal_enable

I use it with Tasker to set to night mode automatically at 7pm.

Other parameters are described at KCAL thread https://xdaforums.com/android/software-hacking/dev-kcal-advanced-color-control-t3032080
[Sony Xperia M4 Aqua] pawwaap:
Please, could you explain why have you used just these values, what is their meaning, to encourage followers experimenting just a little bit?
[Sony Xperia M4 Aqua] phoenix295:
Andy do you have any idea why Android os is keeping device awake?
[Sony Xperia M4 Aqua] Thedalamsyh:
I believe details are attached in description in kernel aduitor. as for min_freq_boost, I think that's the minimal frequency of cpu when the other cores shut down.

edit : sorry I didn't read your comment well. I set delay to 200 and setting it with cycle up/down so asmp won't turn on/off cores aggressively. therefore increasing stability and reduce current usage as we expect. the same goes with cpufreq_down/up. I reduced cpufreq_down to 10 so when the core usage is <10% it'll trigger the cycle_down, and if the cycle completed it'll turn off cores.

corrections by anyone are greatly appreciated :o:angel:
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Go back to SkyMelon 8 and test that kernel again for me. Report on whether this happened with Melon 8.
[Sony Xperia M4 Aqua] phoenix295:
I just downloaded stock ftf with XperiaFirm

shall I flash it first and then SM8 or just flash it rn?

Edit: also is this kernel prerooted? (idk if it is :confused: )
[Sony Xperia M4 Aqua] pawwaap:
And need you have cores online running just about 10%? Isn't it an energy waste?
[Sony Xperia M4 Aqua] AndyPhoenix9879:
If you want to, yea sure. It's not necessary though, you can just flash Melon 8 over whatever Melon kernel you have now. All my kernels are pre-rooted.
[Sony Xperia M4 Aqua] phoenix295:
Flashing v8 stopped that kernel wakelock :fingers-crossed::victory:
[Sony Xperia M4 Aqua] F4JL0:
I repaired it. Now work everything fine I think it was some problem with my backup. Now I got new one and works well.

I also flashed 8x and its awesome man. UI is fast and without lag also games are much smoother Keep it up.

You are giving this phone second breath.
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Good to know that the performance side is good. How's the battery performance for you?

Looks like I'm going to need to revert many things back to Melon 8.
[Sony Xperia M4 Aqua] F4JL0:
Battery is good I dont have any wakelock and I think it doesnt drain battery like 8a

This version is much better than 8a
[Sony Xperia M4 Aqua] phoenix295:
But many people get good battery with 8x and 9

It's just me who's having problems :|
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Brilliant! :D

Wait... people are getting GOOD battery life on Melon 9 (the 9-04062017.zip one)?! I need confirmations!!! All I've heard are bad... as for you, if you are really the only one with the drain issue on 8x and 9, something you installed into the phone looooooooooong ago must've interfered. Otherwise, idk :silly:
[Sony Xperia M4 Aqua] valyo_bg:
I try kernel v.8, it's really work good, goes to deep sleep, no problem with battery. Somehow in past I test directly v.8a instead of v.8 first and have wrong mention for battery drain. In fact kernel v.8 is very good :) .

---------- Post added at 15:22 ---------- Previous post was at 15:18 ----------

I can confirm version for SkyMelon 9 (the 9-04062017.zip one) - good battery life. [MENTION=5798655]phoenix295[/MENTION] check if some app or service is not draining your battery.
[Sony Xperia M4 Aqua] AndyPhoenix9879:
PERFECT. Thanks! :)
[Sony Xperia M4 Aqua] valyo_bg:
[MENTION=5689354]AndyPhoenix9879[/MENTION] did you manage to repair your M4 Aqua?
[Sony Xperia M4 Aqua] AndyPhoenix9879:
In repair. I'd know if it was really just the LCD on Thursday/Friday (at this point I'm doubting it.. :/ )
[Sony Xperia M4 Aqua] valyo_bg:
Good luck, when phone is ready, please tell what was broken.
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Thanks. Will do :good:
[Sony Xperia M4 Aqua] dagger1:
I know you're currently testing V9, but I've been using V8X for about 4 days and I've experienced random lags or total freezes on the phone (happened both on Ironactive and with Intelliactive governors). Also, bluetooth isn't working properly. Usually the 2nd time I use it (that means, I connect and use it succesfully, then the next time bluettoth simply wont turn on and I have to restart the phone for it to work again).

Never had any problem with V8
[Sony Xperia M4 Aqua] phoenix295:
V9 drains my battery even after flashing stock via flashtool :eek: so I can confirm that there is no app that's causing trouble
[Sony Xperia M4 Aqua] valyo_bg:
When battery drain occur - during sleep of phone or when in use? What is consumption %/h for locked phone, what is your SOT? I test kernel v.9 in stock variant - without any tweaks inside Kernel Adiutor, only intelliactive governor. I found that Kernel Adiutor is little bit buggy when some tweaks are made inside frequency - my phone won't reboot properly and stay on boot animation. Power off itself work fine - phone start successfully. I use EX Kernel Manager instead of Kernel Adiutor now and my phone reboots successfully. So try to use Kernel Adiutor only for changing of governor, not to do any tweaks inside or starting of additional scripts. Also AutoSMP should be disabled. Then check how is battery life.
[Sony Xperia M4 Aqua] phoenix295:
During sleep drain is 1.6%/hr didn't test when using phone and it was in intellective governer with cluster plug on :confused: but as I said my phone was clean wiped and I had drain from android os
[Sony Xperia M4 Aqua] Luumumba:
I too have this bluetooth problem but also on stock kernel seems the sony bluetooth app is broken.
[Sony Xperia M4 Aqua] valyo_bg:
Just stop AutoSMP and use intelliactive governor. To have consumption less than 1%/h you need to use Greenify (or similar) properly configured.

I even do test with stock (original Sony) kernel and battery drain was almost 2%/h without using of Greenify. If you do research over internet on most reviews for M4, battery drain is very big when browsing internet - almost 1% on every 2 minutes? So our phone is very greedy on battery when data connection is used (during we browsing). The only good battery behavior we have on watching movies, listen music or when phone is locked (sleep). This reviews are made on brand new phones. In this case we can't expect big improvement on battery life only rely on new kernel. Our goal is to have good performance with same or better battery :) . I think SkyMelon do this difficult task :) .

P.S. I don't have any problem with Bluetooth during my daily use with SkyMelon kernels. Work just perfect.
[Sony Xperia M4 Aqua] dagger1:
Did you try Bluetooth specifically with V8X ? It might be solved in V9.

Also, never had any issues with bluetooth before installing V8X, so doubtfull an issue from Sony. But anyway, I'll wait for V9 to be stable and will report if I keep experiencing the issue on it.
[Sony Xperia M4 Aqua] valyo_bg:
Yes, I use my Bluetooth daily, with kernel 8x work as expected.
[Sony Xperia M4 Aqua] Alexir1:
My first bug on v9-04062017: Max CPU frequences (1651 for big and 1209 for little) + intelliactive CPU governor in adiutor crushes phone in few seconds (overheat or overclocking ?). I Check it twice and don't want any more. Interactive_pro governor worked well. There may be a reason only intelliactive.
[Sony Xperia M4 Aqua] phoenix295:
Tried everything that you mentioned :silly: still get drain

On v8 I get 5.45 hrs of sot in 12 hrs with browsing, messaging and light gaming.

I am gonna test 8x again
[Sony Xperia M4 Aqua] HRSE:
SkyMelon 8x: there is some abnormal behaviour with External SD card: the name of the card is not shown properly (some random characters, see attached screenshot). The contents are still intact (I didn't do any checksum verification but the files are there and some APKs are still installable)

On the first time it happened, I unmounted the card and re mounted (without physically ejecting the card), after that the name was shown normally. I thought it was because of my full nandriod restore so I ignored it.

This morning I checked back the name and it happened again: the SD card name became some random characters (different from the 1st time). I unmounted the card (it took longer than usual) after that I was unable to re mount, with error message 'corrupted card'. After reboot, the card is working again
[Sony Xperia M4 Aqua] phoenix295:
I had previously flashed v8x and had no problems with SD card and today morning i again flashed v8x and have no problems with my SD card :confused: