yashsingh1/xdaforums huggingface dataset:
[Sony Xperia M4 Aqua] HRSE:
Yes. And I was so panic while the phone showed the blue wavy screen longer than usual, but then it showed "Optimising apps" and I was relieved. https://xdaforums.com/showpost.php?p=72784282&postcount=28
[Sony Xperia M4 Aqua] ivy.lally:
And have you managed to resize the partitions?

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] AndyPhoenix9879:
What did you do? The kernel panicked, but idk what caused it either.. :(

Was this during booting or what?
[Sony Xperia M4 Aqua] Obblet:
Hey I'm currently really loving this kernel. But can you please add OTG support? I really need that to work :)

Thanks.
[Sony Xperia M4 Aqua] HRSE:
no, this was long after boot, I was reading news on my phone, then the phone froze while scrolling then rebooted. The tricky part is that I have an AutoMagic flow that auto switches on/off WiFi in the background, so it is hard to tell which action triggers it. Also, I have installed SkyMelon 9 since 20/6 but this is the first time I encounter the problem (and first time since buying the phone), so it may not be because of the kernel (I made so many changes to the phone in the last few days)

---------- Post added at 09:26 PM ---------- Previous post was at 09:17 PM ----------

no, I didn't resize any partition, because I worried that doing so might make all my previous TWRP backups incompatible/unusable. My goal was to have more disk space in my phone, and to fix the "Optimising apps" problem.
[Sony Xperia M4 Aqua] ivy.lally:
And how will you use the free space in /system partition?

Even if you transfer several applications from data to system then anyway their data will stay in /data partition. And applications data occupy the most space usually.

And why are you afraid about TWRP backup not suit to new partitions layout, don't their data sizes matter?

Even if so you might archive them with a text command from TWRP:

cd <SD card>

tar -cvzf system.tgz /system

Aqua E2303, MM modded, SkyMelon

---------- Post added at 02:50 PM ---------- Previous post was at 02:35 PM ----------

It's just happened it on waking up in my phone with one min cpus =1 (so far it worked well).

As I can see the single core got stuck to the lowest frequency (100MHz).

As remedy, assuming you want to still have min cpus =1, you might consider changing this:

# Asmp
# path: /sys/kernel/autosmp/conf/max_cpus
...
write /sys/kernel/autosmp/conf/cpufreq_up 98 # previous 99 too high

As now it works for me, it still needs observing.

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] HRSE:
you are correct, app data takes more space than APKs, but after moving a few apps to system then I only have 170MB left in /system. Perhaps I still can squeeze a few APKs into it, but I want to leave at least 100MB free in /system for future APK updates.

A side note that if you integrate updates into /system for stock system apps (like what I did with Google Play Services) then very likely that you will have the "Optimising apps" on every boot, until you remove the respective odex file in odex.system.sqsh

Also, isn't it a good habit to move one step at a time? Is it possible to resize /cache partition?
[Sony Xperia M4 Aqua] valyo_bg:
With both cores work perfect, battery life is increased :). Now will try with new settings and one core how you suggest.
[Sony Xperia M4 Aqua] ivy.lally:
If you integrate bigger apps updates into system like Google Play framework etc then you need >200MB free space in system, but this you could overcome, if you integrate with e.g. Link2SD and get error "no space" then just delete app's the original subfolder from /system/app/ and also the similar one with *.t extension (temporary one for integrating). And then repeat integrating. At least it worked so far for me ;)

---------- Post added at 05:14 PM ---------- Previous post was at 05:08 PM ----------

Please, revisit this forum about resizing partitions and please explain precisely how you have proceeded in this deodexing? :)

Aqua E2303, MM modded, SkyMelon

---------- Post added at 05:20 PM ---------- Previous post was at 05:14 PM ----------

And have you corrected the max GPU frequency in the script:

write /sys/class/kgsl/kgsl-3d0/max_gpuclk 285000000 # or 385000000

if you want impressive power savings?

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] valyo_bg:
No, in fact GPU is not modified, I'm worry about UI performance. How is performance with lowed GPU frequency, should I try?

---------- Post added at 19:39 ---------- Previous post was at 19:25 ----------

@ivy.lally with one core still phone is lag when unlock screen. It work very slow first 10-15 seconds after unlocking and then work fine. Seems that when one core is used is difficult to be properly wake after deep sleep. What to do? With 2 cores no problem at all, but if you say that more battery will be saved with one core I'm ready to test :) .

I'm not a gamer and use phone mainly for browsing, chat, mail and etc., but really prefer my phone to work as smooth as possible and with more battery life of course.

Edit: I just see that in already used script file GPU frequency was set to 220MHz, so UI performance is OK in this frequency :) . Now I change it to 285MHz as you suggest. The only problem that I see is unlocking of phone after deep sleep - it work very slow few seconds after unlocking and then work fine, this with changed values "98" how you suggest.
[Sony Xperia M4 Aqua] ivy.lally:
And please could you try yourself how ui performance is with lowered GPU max freq?

Please try many of them: 285000000, 385000000, 435000000 etc

And report results ;)

If you still observe lags then use min_cpus=2

and return to

/sys/kernel/autosmp/conf/cpufreq_up 99

In my phone system is running well with =1 but I have frozen Google and IM messengers.

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] valyo_bg:
It work good with 285 and 385MHz GPU frequency and 1 core, but still from time to time lag during unlocking of screen.

I'm gonna to use 2 core configuration and 285MHz GPU - there is no lag and phone work smooth and fast.
[Sony Xperia M4 Aqua] ivy.lally:
Indeed, I've got lags again on wake-up (still with min_cpus=1), so the culprit is something different than

cpufreq_up=99

Probably

/sys/kernel/autosmp/conf/cycle_up 5

and/or

/sys/kernel/autosmp/conf/delay 200

need lowering (with min_cpus=1, because with =2 the present values work well)

Anybody knows what accurately these parameters mean and how they influence Asmp cores switching?

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] HRSE:
done. post#30. It's 4:50am now.

I think this is just cleaning up, not deodexing.
[Sony Xperia M4 Aqua] HRSE:
how about checking with mrg666, the author of autoSMP?
[Sony Xperia M4 Aqua] valyo_bg:
Some results from testing with 2 cpu cores:

1. Good things:

If phone is used rarely - browsing from time to time, checking of email, some conversations via WhatsApp/Viber and chatting, ordinary calls, phone is with better battery life than before. Phone is cold and smooth.

At night, with WiFi and Bluetooth enabled loose approx 1.2%/h (because of messengers and email replication). This is acceptable.

2. Bad things:

During last 24 hours phone lag little bit during unlocking of screen 2-3 times, but not so bad like with one CPU core enabled.

Recording of video clip with original Sony app results drop of frames, so video is not so good (this should be confirmed from somebody else). With Best Camera app there is no such problem, video clips are OK.

If browse over internet continuously for more than 40 minutes via LTE data connection, phone become very hot, start to lag, every page is loaded slowly, scrolling of page is also bad and battery drain increases a lot. It's difficult to work, must wait phone to cool down. I try to browse over internet continuously for 1 hour and last 20 minutes was terrible - phone was very hot from boot sides and battery loses approx 1% per minute (forgot to check cpu temperature, sorry).

The reason maybe is lowered frequency of CPU's because of overheating.

With stock SkyMelon 9 (without changes, no scripts applied or configurations via Kernel Adiutor) there is no such problems with lag and temperature when do continuously browsing over internet even from more than 1 hour, but battery life is decreased if compare with same kernel but with applied scripts (have approx 15% more battery at the end of the day with same usage of phone).

I think the bottle neck of our phones is data connection and browsing internet. Maybe LTE/3G modem is not efficient at all and this is a reason for bad battery life. If there is a way to make data modem to be more efficient via different kernel module/driver? This will improve battery life a lot.
[Sony Xperia M4 Aqua] ivy.lally:
It's widely said LTE is energy far inefficient and is suggested to use it just temporarily for burst downloading.

It contradicts the power save scheme, if you decide to use LTE constantly it means you give up battery saving (in this situation you may create a shortcut, or e.g. Automagic flow, to switch quickly between kernel configurations i.e. run *.sh files with appropriate settings).

You may consider using GSM 2g or 3g/WCDMA on the regular basis (in fact 2g should suffice for IM without a voice, 3g/WCDMA for e.g. Skype etc)

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] Thedalamsyh:
I can't confirm performance problems with LTE connection since I use mobile data daily.. heating temp (under heavy use, in this case hard browsing, messaging and several instagram) is just around 70C tops. but recently I installed wifi and the device is indeed a little cooler than when it was on LTE mobile data.
[Sony Xperia M4 Aqua] ivy.lally:
Please, again read it, about settings:

Settings - More - Mobile networks - Preferred network type ->

and, instead of LTE, choose WCDMA or even GSM (in many situations GSM is ok, but the faster connection the bigger current draining battery).

Indeed, do you need LTE constantly (doubt it)?

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] ivy.lally:
And have you checked what is responsible for this heating of the phone, have you monitored CPU load during LTE connection when phones such heats?

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] valyo_bg:
CPU cores first stay constantly to 1GHz, then after overheating jump to lower frequency and again to 1GHz and this was continuously. I just forgot to see current core temperature, but phone become very hot. I normally use LTE when there is no WiFi, because of speed of loading of pages and downloading a files. Also for voice communication via messengers, quality of call is better when LTE is used. So, I prefer to use LTE instead of 3G, but I don't expect such big battery improvement if 3G is used.

Using of edge/2G for data is not acceptable for me - low speed, no voice calls via messengers, mail arrive slow, attachments are download very slow.
[Sony Xperia M4 Aqua] ivy.lally:
Personally speaking, used to talk via Skype using 3g and the voice quality was best one.

People say LTE is draining battery quickly.

And what is exactly going on, you have normal, mild CPU load before you switch LTE, and after switching it processor's load goes to maximum for hours, just because of LTE itself? It's strange.

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] CactusPie:
I've been testing v9 for the past few days, and LTE doesn't drain my battery much. However, WiFi does, to the point that the phone couldn't even fully charge overnight. Aside from that issue, the kernel is very stable.
[Sony Xperia M4 Aqua] valyo_bg:
No, my LTE is always switched ON and if do basic tasks, checking of email, browsing over internet from time to time there is no problem at all. Phone work smooth (except some lag when unlocking), battery life is good.

But, if I start to browse over internet for more than 30-40 minutes CONTINUOUSLY, then phone become very hot, pages start to lag and huge battery drain appear. This happen ONLY when script for 2 cores is stated and if I do CONTINUOUSLY browsing for more than 30-40 minutes.
[Sony Xperia M4 Aqua] ivy.lally:
It is strange, it looks like everybody has different issues.

E.g. [MENTION=8097182]CactusPie[/MENTION], have you applied any configuration from this forum? As my phone runs well with WiFi.

And [MENTION=234115]Valyo_big[/MENTION], does processor work on full load after these 30 minutes? And have you found which applications run this full load, with any task manager? (Personally using 3C-ToolBox, it has many functions and is excellent)

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] AndyPhoenix9879:
I didn't did anything to wifi for a very long time already lol... I never understood the wifi drain problem either :c (as in idk what's causing it)

Don't use the 2 cores when browsing then? Use 4 (or 8)?
[Sony Xperia M4 Aqua] pawwaap:
And how would you explain this dependency? It seems weird.
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Correct me if I'm wrong (cuz I might be wrong), but I think Chrome does support the utilization of more than 1 or 2 cores... (i.e 4 or more). This reduces the load on just two cores, instead distributing the load to more cores so less heating.
[Sony Xperia M4 Aqua] pawwaap:
Is he running Chrome? And why, there are many better browsers, what about opera, Firefox, Iron, Yandex, Maxthon, UCWeb, Habit - do they cause processor heating too?
[Sony Xperia M4 Aqua] ivy.lally:
In fact it's Asmp and bigger amount of cores are available if needed automatically.

[MENTION=234115]Valyo[/MENTION]_big, have you found which applications utilize this full load of CPU, please?

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] valyo_bg:
[MENTION=7837559]ivy.lally[/MENTION] I use only Opera for browsing, Chrome is disabled. So on top of the apps that used battery was: Screen, Opera, Android OS and Android System. Maybe you can't reproduce my results because your Android is with reduced resources - without Google services, backups, background replication and etc. Also you use Xposed and Amplify and this made big difference on phone behaviour regarding performance and battery life

In fact main target for SkyMelon 9 is best performance - and it did very well.

It will be very good if via script we can switch kernel to best battery saving without lags and other problems (like video, unlocking lag and etc.) and when need more performance to switch via script back to native settings. This will be the best scenario - easy switching with few clicks between full performance and battery saving depending of what we need. [MENTION=7837559]ivy.lally[/MENTION] it will be very nice if you made such script (to bring back original kernel settings).

As I do many measurements, I think that enabling of ASMP always result in decrease of battery life, if compare with all cores running all the time at low frequency 100 or 345MHz.

[MENTION=5689354]AndyPhoenix9879[/MENTION] - is it possible for you to make SkyMelon 9a for example with all cores permanently working (ASMP disabled) and intelliactive governor used? I don't want to use Kernel Adiutor to change settings inside. It work more stable for me if SkyMelon is started native. I always have best results with intelliactive governor and all cores enabled. For example low frequency of small cores at 345MHz and big cores at 100MHz or less?
[Sony Xperia M4 Aqua] ivy.lally:
Yes, I'll try it, it's simple. And please explain, is Asmp really battery hungry with this settings? And which configuration do you want to run for battery?

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] valyo_bg:
From my tests, Asmp is battery hungry when phone do heavy tasks for long time or continuously internet browsing for long period. Recording of video is also heavy task.

For battery saving:

We should find best settings, wit ENABLED Asmp, at least to be able to record video clip without loose of frames (I don't know how GPU is used on this task) and little to improve unlocking of screen (to avoid lag). This will be enough I for script think.

For best performance:

Script that will switch back to original kernel settings.

I personally prefer variant of SkyMelon with Asmp OFF and 345MHz for small cores and 100 or less MHz for big cores. If intelliactive governor is used this will be full happiness for me :) .
[Sony Xperia M4 Aqua] ragnalamb01:
Speaking for myself, I dont have that particular issue, however every now and then I have to restart my phone WiFi and bluetooth stop connection suddenly, and reboot is the fastest way to make them work again.

I modified something vía kernel adiutor. Set lowest cpu freq to 345, 40 caused lots of lag for unlock, I set governor to intelliactive on small cores and interactive_pro for big ones, turned ASMP on. I use stock rom with stock apps for everything, and battery life is acceptable, and performance is good. I think its an acceptable config.

Enviado desde mi E2306 mediante Tapatalk
[Sony Xperia M4 Aqua] ivy.lally:
And what about cluster_hotplug? Personally speaking used it before Asmp with good battery results.

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] valyo_bg:
Regarding hot plug there was something not right. It was implemented in earlier versions of SkyMelon and then was removed. If I'm not wrong one of issues was that cores was unable to deep sleep and some battery drain. We need to check back on this topic to have more information.
[Sony Xperia M4 Aqua] ivy.lally:
And cluster_hotplug still is in the kernel, I used it well with phone entering deep sleep normally.

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] valyo_bg:
I'm wrong, removed was Hima and Alucard hotplug on old version of SkyMelon and reintroduced Cluster plug. It's a good idea to test with Cluster plug.

I have one Z5 in family and it's very battery efficient. It use interactive governor with Cluster plug enabled. Normally work only with big cores with low frequency at 345MHz and small cores are almost all the time OFF. Small cores are started on heavy tasks. Of course Z5 is on Android 7, but is fully stock, not rooted. It loose approx 0.2%/h when phone is locked. It have installed many messengers and 2 emails, almost same apps like my M4.
[Sony Xperia M4 Aqua] ivy.lally:
And who said enabling just LITTLE cluster is impossible? If you run something like this http://cloud.tapatalk.com/s/595564d6c7f64/justLITTLE.zip

then big cluster is switched OFF and the LITTLE cluster is ON as the only. Question if also big cluster cache is switched OFF?

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] AndyPhoenix9879:
What. You're saying that all the cores does not activate on boot? I can change the governor to intelliactive though.

Anyone else having this issue? Btw do you have xposed installed? I need some logs to see what's happening
[Sony Xperia M4 Aqua] ragnalamb01:
No, I used to have pexo rom installed, bluetooth wasnt working no matter what, it has xposed preinstalled, tried uninstalling but wasnt working anyway. So i flashed a prerooted stock rom AND skymelon 9, and issue was gone.

I had no issues at all, and this started to happen suddenly, trying hard to remember, I installed busybox before the issue started, im not sure it could be the problem, as pexo rom does have busybox.

Enviado desde mi E2306 mediante Tapatalk
[Sony Xperia M4 Aqua] ivy.lally:
Andy, after the boot applying the script which have:

write /sys/devices/system/cpu/cpu0/online 0
...
write /sys/devices/system/cpu/cpu3/online 0

yields the big cluster (cores 0-3) shut offline and just LITTLE cluster working online (cores 4-7).

And LITTLE cluster is very energy efficient so if it confirms (big cluster's cache offline too) it would be a breakthrough! :)

As I can see in various tools like KernelAuditor, CoolTool, 3C-ToolBox, the big cluster cores are indeed offline (including cpu0), but how to check if big cluster's cache is offline too?

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] valyo_bg:
[MENTION=7837559]ivy.lally[/MENTION] , big cores are stopped, but kernel governor is "unknown" and no way to change it?
[Sony Xperia M4 Aqua] HRSE:
when cpu is off, the settings related to that cpu cannot be changed.

personally i don't think there is any governor out there that can best fit all usage scenarios. Sometimes we can accept a bit of lagging so that the CPU can stay at low frequencies for power saving, but sometimes we want the best perfomance for photo taking, video recording or gaming.

When I have free time, I will make an Automagic flow for that purpose: when camera app or game app is started then the ondemand or performance governor is loaded, but in other times the interactive governor is loaded.
[Sony Xperia M4 Aqua] valyo_bg:
Yesterday I apply new script that enable working of only small cores and here the results:

If I do continuous browsing more than hour using LTE data connection, phone is not so hot (cpu temperature is around 58C), there is no lag at all and phone battery loose almost 20%/h. I do this test on same page like before. Also there is no lag during screen unlock, it work fine. Generally small cores work better than big one in same configuration when phone is in USE.

But, if my phone is locked and not in use, battery loose almost 5%/h. Deep sleep work, but still phone use a lot of battery capacity. There is no additional processes shown inside battery widget that consume battery - it's just drain without any reason. So this is too much.

That mean small cpu cores are more efficient than big cores at same frequency 1GHz, but only when phone is in use. If phone is locked (not in use), then big cores are more efficient.

I think it will be very complicated to switch from big to small cores in every unlock screen and this also will need additional power from battery. Maybe for big cores 1GHz frequency is not efficient as expected and it's a good to test big cores at maximum frequency 1.6GHz, do not limit them at 1GHz. First with Asmp enabled, then disabled and Core hotpug enabled. Of course with minimum of 2 cpu online to prevent unlock lag and very important - video recording and other potential problems that are not seen or tested yet.

Of course, in this case I still prefer all cores working (Asmp and Core hotplug OFF) with different governor (intelliactive). So will reboot my phone to revert to original kernel configuration.
[Sony Xperia M4 Aqua] ivy.lally:
It is strange, again, my phone enters DeepSleep without a problem. Your issue is about wakelocks instead of kernel settings.

Yet going to do further checking but please you also make sure your sleep issue is purely kernel thing :)

But, if my phone is locked and not in use, battery loose almost 5%/h. Deep sleep work, but still phone use a lot of battery capacity

You yourself are admitting your phone enters DeepSleep and on spite of it "something" drains the battery. It means wakelocks do it, and wakelocks are from somewhere else.

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] valyo_bg:
I don't have problem with deep sleep, it shows that cpu's are going to deep sleep, just battery drain is more than before at idle time (locked phone).
[Sony Xperia M4 Aqua] ivy.lally:
Please run BetterBatteryStats with Watchdog option to read stats from Screen OFF to Screen ON, and send here BBS log dump (instead of screenshots), and we'll see what's the source of your sleep drain :)

Aqua E2303, MM modded, SkyMelon