yashsingh1/xdaforums huggingface dataset:
[Sony Xperia M4 Aqua] AndyPhoenix9879:
The reboot problem is probably caused by some modifications to the system before the flash of the kernel. However, the bootloop problem is fixed in the upcoming v5 - I'm re-enabling CRC to ensure no more bootloop (disabling CRC puts the phone in risk of having a corrupted data and system partition)

I'll have to Google what Assertive display is :silly:

I'll release v5 hopefully tomorrow. *Hopefully*
[Sony Xperia M4 Aqua] DaLioS Hellas:
Hello. What exactly i need to have to my E2303 to flash this?
[Sony Xperia M4 Aqua] AndyPhoenix9879:
An unlocked bootloader
[Sony Xperia M4 Aqua] DaLioS Hellas:
Thank you for answering. Can you provide me a guide to check and unlock it? Also, whats the difference between a kernel and a rom or a ftf file?
[Sony Xperia M4 Aqua] AndyPhoenix9879:
A quick Google Search would have do...

Bootloader unlocking : https://xdaforums.com/m4-aqua/general/guide-t3130092

A kernel is like the core of the operating system - handles the input output things, hardware communications etc...

The ROM is like the operating system as a whole

The .ftf file is technically a ROM with an extension. This extension is mainly for Sony though
[Sony Xperia M4 Aqua] DaLioS Hellas:
Thanks for the quick response. So that kernel will improve my original sony software? This doesnt need root to be done?
[Sony Xperia M4 Aqua] AndyPhoenix9879:
The original Sony software was the reason I made this kernel, it was total chaos for me.

No, like I said all you need is an unlocked bootloader.

There exists Google, do some research before diving into all this flashing (you seem very new to this, at least familiarize yourself with some terms)
[Sony Xperia M4 Aqua] valyo_bg:
Yes will root your phone, but you have to have unlocked bootloader and TWRP installed to be able to install this kernel.
[Sony Xperia M4 Aqua] dagger1:
That's impressive. Was that with Version 8.1 or 9? With or without the script?

EDIT: nvm, just saw in the full report that it was with 8.1

Are you using though the Kernel's default settings (governor, IO scheduler, etc...), or did you change anything from Kernel Auditor?
[Sony Xperia M4 Aqua] LilBlinx:
Nice kernel but the first error or bug I've encountered is that I can't update SuperSU, not matter what I do, by the normal app or flashing it wont work
[Sony Xperia M4 Aqua] ragnalamb01:
Its a bug to all xperia devices Staying on 2.79 is advised

Enviado desde mi Xperia M4 Aqua mediante Tapatalk
[Sony Xperia M4 Aqua] altmash mirza:
External loud speaker volume always goes off

Then i have to restart mobile

After a certain time it again goes off

And i have to restart mobile again

How to solve that problem??
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Provide a log. I can't know for sure but providing a log may give me an insight into your problem. Also, do you have any other mods installed?
[Sony Xperia M4 Aqua] altmash mirza:
No i dont have any other mod

Skymelon 9 in pexo rom 3.0

How much time it be for a log cat to be completed

As it is running without stop from past 30 minutes

---------- Post added at 12:43 AM ---------- Previous post was at 12:37 AM ----------

I am trying to get a logcat

It has taken 30 minutes without stop

How much it has to be taken

---------- Post added at 12:59 AM ---------- Previous post was at 12:43 AM ----------

Logcat

How much time it be taken by logcat to be completed

It is running from previous one hour
[Sony Xperia M4 Aqua] altmash mirza:
Here i send you one
[Sony Xperia M4 Aqua] LilBlinx:
I think this is kernel wise problem. There are quite a lot of logs from that PID. Almost every 2 seconds

07-16 12:19:17.383 1163 1163 I MSM-irqbalance: Decided to move IRQ130 from CPU0 [P:0] to CPU0 [P:0] (banned)

07-16 12:19:17.385 1163 1163 I MSM-irqbalance: Decided to move IRQ155 from CPU0 [P:0] to CPU0 [P:0] (banned)

07-16 12:19:17.387 1163 1163 I MSM-irqbalance: Decided to move IRQ131 from CPU0 [P:0] to CPU0 [P:0] (banned)

07-16 12:19:17.388 1163 1163 I MSM-irqbalance: Decided to move IRQ65 from CPU0 [P:0] to CPU0 [P:0] (banned)

07-16 12:19:17.389 1163 1163 I MSM-irqbalance: Decided to move IRQ166 from CPU0 [P:0] to CPU0 [P:0] (banned)

07-16 12:19:17.390 1163 1163 I MSM-irqbalance: Decided to move IRQ128 from CPU0 [P:0] to CPU0 [P:0] (banned)

07-16 12:19:17.390 1163 1163 I MSM-irqbalance: Decided to move IRQ104 from CPU0 [P:0] to CPU0 [P:0] (banned)

07-16 12:19:17.392 1163 1163 I MSM-irqbalance: Decided to move IRQ240 from CPU0 [P:0] to CPU0 [P:0] (banned)

07-16 12:19:17.392 1163 1163 I MSM-irqbalance: Decided to move IRQ177 from CPU0 [P:0] to CPU0 [P:0] (banned)

07-16 12:19:17.393 1163 1163 I MSM-irqbalance: Decided to move IRQ178 from CPU0 [P:0] to CPU0 [P:0] (banned)

07-16 12:19:17.394 1163 1163 I MSM-irqbalance: Decided to move IRQ174 from CPU0 [P:0] to CPU0 [P:0] (banned)

07-16 12:19:17.395 1163 1163 I MSM-irqbalance: Decided to move IRQ215 from CPU0 [P:0] to CPU0 [P:0] (banned)

07-16 12:19:17.396 1163 1163 I MSM-irqbalance: Decided to move IRQ57 from CPU0 [P:0] to CPU0 [P:0] (banned)

07-16 12:19:17.397 1163 1163 I MSM-irqbalance: Decided to move IRQ216 from CPU0 [P:0] to CPU0 [P:0] (banned)

07-16 12:19:17.398 1163 1163 I MSM-irqbalance: Decided to move IRQ270 from CPU0 [P:0] to CPU0 [P:0] (banned)

07-16 12:19:17.402 1163 1163 I MSM-irqbalance: Decided to move IRQ47 from CPU0 [P:0] to CPU0 [P:0] (banned)

07-16 12:19:17.402 1163 1163 I MSM-irqbalance: Decided to move IRQ170 from CPU0 [P:0] to CPU0 [P:0] (banned)
[Sony Xperia M4 Aqua] Thedalamsyh:
umm guys quick question here.

any idea why my phone isn't recognized by my pc even though I set force_fast_charge to 0?

even adb is showing nothing
[Sony Xperia M4 Aqua] HRSE:
sorry i misread your question.

i haven't tried fast charge yet, but there is a chance that when fast charge is turned on, the phone draws more than 500mA (USB2.0 limit) from the USB port and the PC auto cuts off the power to that USB port. this is more likely to happen on laptop than desktop PC.

you can try on another USB3.0 port, or another PC.
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Fast charge shouldn't cause the phone to be undetectable...

That's a log spam :v

Nothing harmful (it might slow down the phone tho). I'll see through it when I have the time
[Sony Xperia M4 Aqua] AndyPhoenix9879:
I'm doubting my kernel caused this. Can you try Melon 8 and see if it persists? There's a chance that pexorom caused this.
[Sony Xperia M4 Aqua] Thedalamsyh:
but somehow it did happen.. anyway a reboot fixed it. thanks
[Sony Xperia M4 Aqua] Vedran Vuk:
Sup guise.

For everyone that has weak WIFI signal issues after flasing v9 kernel:

1. Open data/misc/wifi/WCNSS_qcom_cfg.ini

2. Change value of gEnableBmps from 1 to 0.

You'll need root.

What this does is disables WIFI powersave.
[Sony Xperia M4 Aqua] valyo_bg:
I have perfect WiFi coverage with SkyMelon 9 with value 1 (WiFi powersafe enabled). It's a strange that you have such problem with coverage of WiFi and need to disable powersafe - this change will consume more battery.
[Sony Xperia M4 Aqua] Vedran Vuk:
Not sure if it's even an issue TBH. I noticed right after flashing the SM kernel (last night for the first time) that the wifi was weak where it shouldn't have been and gradually lost connectivity. After changing this setting the wifi behaviour went back to "normal".

Dunno, if that is normal wifi powersave behaviour then I prefer it off. In any case, hth.
[Sony Xperia M4 Aqua] ragnalamb01:
I resolved the WiFi and bluetooth issue, its not actually kernel dependant, ive found out a bug in NFC functions in pexo rom, crashes when synching devices (speakers and and xperia Z5 is what ive tested), using NFC. I disabled it and ive had no issues for now.

Enviado desde mi Xperia M4 Aqua mediante Tapatalk
[Sony Xperia M4 Aqua] GamingAori:
I had my phone connected with my pc then I shutdown my phone after few minutes I wanted to boot it, but it didn't work so I connected it for charging, but it also didn't work. so I disconnected it but the front LED still show orange. I'm sure that this is a bug with the kernel, how can I fix it so that I boot my phone again?
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Force reset it - there's a pin hole at I think the sdcard slot there. Place a pin in that hold and hold it in until the phone vibrates. Should boot.
[Sony Xperia M4 Aqua] GamingAori:
that didn't work, but pressing vol+ , vol- and the powerbutton together worked.
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Oh, glad to hear that then (the pin method usually is like a last resort for hard reset)
[Sony Xperia M4 Aqua] Vedran Vuk:
I like the kernel, managed to have it idle on a single core at 40MHz and is quick enough to spool up and for the phone to have no lag.

But the phone can go into a random reboot, and only when it's idle. AndyPhoenix9879 do you think this might be due to undervolting?

Anyone got a quick nix command I can run in a shell to filter out reason for the reboots?
[Sony Xperia M4 Aqua] Thedalamsyh:
I also notice the random reboot. but it happens very rarely in my case, so I don't really put attention to that. I'm setting min cpu to 100mhz
[Sony Xperia M4 Aqua] cirnocirno:
I know this isn't the right place to ask but I really want to have help with storage problem. Using this device with 8GB only is a pain and I did the adaptive thing with SDcard to expand but it seems like the OS isn't catching up on it and always complain about my storage being low and won't update apps.
[Sony Xperia M4 Aqua] AndyPhoenix9879:
I barely got the warning with adoptable storage if and only if I did that adoptable storage after a factory reset. Otherwise I get the same thing as what you're experiencing. Idk anything else on bypassing that, sorry :c

Maybe. It could also be the low clock frequency (likely). Set it to 100MHz for both clusters
[Sony Xperia M4 Aqua] Vedran Vuk:
I can confirm that the 100 MHz low limit doesn't help with stability. Still reboots.
[Sony Xperia M4 Aqua] cirnocirno:
I see thanks for the reply.

It's very frustrating I can't update any apps now since the stockrom takes about 7.5GB and the Prexo rom takes 7.7GB.
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Ah crap, try 8.1
[Sony Xperia M4 Aqua] valyo_bg:
I don't have problems, no self reboots, SkyMelon 9 work stable for me.

I'm using interactive governor with Asmp enabled.
[Sony Xperia M4 Aqua] kaikeo:
I'm so thanks... AndyPhoenix9879 you're super go ahead ☝☝ sorry for my bad English.
[Sony Xperia M4 Aqua] LilBlinx:
Which cluster is better to be online battery life wise, I don't care about performance? Little or Big?
[Sony Xperia M4 Aqua] ivy.lally:
As you can see in earlier posts of course LITTLE cluster is the most battery efficient. You can disable big cluster entirely with script, KernelAuditor can't do it.

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] LilBlinx:
Done, and tested and it's true. I've checked your script and you have deadline as I/O scheduler, my recommendation is to switch it to noop on mmcblk0 and mmcblk1. It saves a lot more power than deadline and it suits my needs (not for gaming, only browsering and chatting). Another thing is governor on GPU, it was simple_ondemand, switching to msm-adreno-tz gave me a lot more battery life than the one in the script. This is on 8.1 no root version. The most retarded thing is that if the script is ran automatically on boot the big cores are activated and the little ones are off. If it's ran after several minutes MANUALLY the script works fine and big cores are offline
[Sony Xperia M4 Aqua] ivy.lally:
And how do you run the script on boot, any automation software?

If so then you could schedule it's execution for some time after boot. Alternatively you can set in the beginning of the script some 'sleep 3m' to suspend its execution for several minutes.

Personally speaking I prefer running it manually, I have several scripts shortcuts on the homescreen, and run a one as needed :) It is so rarely to boot the phone it is ok.

About GPU governor and IO scheduler I can't see any difference honestly speaking after applying your suggestions, but will observe it further, thank you!

And please take into consideration GPU already has frequencies extremely limited with this script.

Also I use AdoptedStorage partition formatted with F2FS, it might influence how IO scheduler contributes to power use.

Aqua E2303, MM modded, SkyMelon
[Sony Xperia M4 Aqua] LilBlinx:
Tried by usual init.d, didn't work, ran with KernelAuditor only big cores were online, ran with Script Manager, same thing, then I ran via shell and it worked fine. I even set sleep to 6 mins but no luck, seems like manual is my only option.

If you use AdoptedStorage you will for sure get performance hit with this config compared to deadline. Leave it with deadline then.

[MENTION=5689354]AndyPhoenix9879[/MENTION] Can you upload a no root version of V9?
[Sony Xperia M4 Aqua] Vedran Vuk:
It's a great kernel with lots of tuning controls and I squeezed a lot more battery life from it, but it's unstable on my E2303. Version 9 and 8.1 reboot the phone seemingly out of the blue. Some sort of core lockup occurs according to kmesg.
[Sony Xperia M4 Aqua] HRSE:
some info for who needs more details about the CPU

Source

: https://community.arm.com/processors/b/blog/posts/ten-things-to-know-about-big-little
[Sony Xperia M4 Aqua] LilBlinx:
Random reboots here also, no matter the min frequency set is. On both 8.1 and 9
[Sony Xperia M4 Aqua] LilBlinx:
PART 1:

(The Update)

Since many of you waited for a SuperSU update from dev, I've decided to take matter in my own hands if OP is fine with it. It's the same latest version 9 but with updated SuperSU and another version with updated supersu and systemless xposed (no bluetooth issues now)

SkyMelon 9 SuperSU 2.82

Thanks to [MENTION=357342]tobias.waldvogel[/MENTION] for help

PART 2:

(The Fix)

Those that have a random reboot which is a cause of a core lockdown disable asmp since cluster plug with asmp enabled is no sense.

Create a new script and add these lines

write /sys/module/autosmp/parameters/enabled "N"
write /sys/module/cluster_plug/parameters/active 0
echo 40 > /sys/module/cluster_plug/parameters/load_threshold_down
echo 80 > /sys/module/cluster_plug/parameters/load_threshold_up
echo 6 > /sys/module/cluster_plug/parameters/vote_threshold_down
echo 2 > /sys/module/cluster_plug/parameters/vote_threshold_up
echo 80 > /sys/module/cluster_plug/parameters/sampling_time
write /sys/module/cluster_plug/parameters/active 1
[Sony Xperia M4 Aqua] HRSE:
thanks! backup & install now!

Edit: installed, wiped cache & booted up sucessfully
[Sony Xperia M4 Aqua] valyo_bg:
Kernel Xposed systemless can't boot - only white Sony logo appear then phone do self reboot and again white Sony logo appear.

If new SkyMelon 9 with updated SuperSu is with disabled ASMP by default or I need to start script every time or use install Kernel Adiutor to disable it manually?
[Sony Xperia M4 Aqua] LilBlinx:
I was expecting to not boot. The kernel is untouched so yes, you need to enable the script everytime you start or put it in /etc/init.d/

EDIT: I think the default config is with AutoSMP off, to turn it on execute this

write /sys/module/autosmp/parameters/enabled "Y"
[Sony Xperia M4 Aqua] valyo_bg:
If you find that problem with self reboot is Asmp then I don't need to enable it. It's correct that by default SkyMelon 9 is booted with disabled Asmp. So if I understand right, installing of pure SkyMelon 9 without any changes will work stable?

Just install updated SkyMelon 9 with SuperSu 2.82 and it boot successfully, thanks for sharing it.
[Sony Xperia M4 Aqua] cirnocirno:
Got a minor question and this is really the only thread that is active.

Is there anyway to really debloat this device from all the garbage stuff installed on stock or the "pexo" rom. Having only 8GB model is a pain, I can't do anything.
[Sony Xperia M4 Aqua] Vedran Vuk:
This worked for me. Flashed it back, created a new init.d script, put this in and set init.d to emulated. No random reboots.

The author even states not to use more than 1 core manager and I played with the switches and scripts and got lost in nomenclature probably enabling eeeverything ?.

This worked, thanks!
[Sony Xperia M4 Aqua] zacharias.maladroit:
I'm currently too busy with the Z5 to take care of the M4 Aqua (haven't even backed up TA partition or unlocked bootloader yet),

but if you guys want to improve upon zram's features:

https://github.com/zachariasmaladro..._Flares_II.3_t5/drivers/block/zram/zram_drv.c

I've ported over Sony's (backported, bleeding edge) z3fold allocator for zram from Nougat to Marshmallow for the Z5 kernel.

z3fold compared to zsmalloc probably has less overhead (with the already not too powerful SoC) and (similar to zbud) zero internal fragmentation.

The less fragmentation (or less gradually failing allocation success over time) - the better,

the phone can work longer with swap in RAM at better performance with less power consumption: win-win

Alternatively zswap could be fixed up to work with z3fold [https://en.wikipedia.org/wiki/Zswap], it relies on swap, so zram is still needed but zram would hardly be used,

not sure which approach would be better

Anyway - throwing around ideas (which might help or not) :)
[Sony Xperia M4 Aqua] dani020110:
Here's the port mate

Please give it a check to tell me if I did it well:)

https://github.com/dani020110/destiny/commits/ram/drivers/block/zram/zram_drv.c
[Sony Xperia M4 Aqua] valyo_bg:
Could you please update SuperSu on kernel SkyMelon 8.0? With SkyMelon 9 I have twice random reboots, but worst thing was that phone stay on boot animation forever. Phone was connected to wall charger and this happen both time at night, so my clock alarm at morning not start - phone was on boot animation. To resolve problem phone was turned off with volume up and power button. Then reinstall SkyMelon and do clear of cache and dalvic. After this phone boot successfully. So I want to try pure SkyMelon 8.0 and will be good if SuperSu

is updated to 2.82.
[Sony Xperia M4 Aqua] zacharias.maladroit:
Wow - you're quick :cool:

I have only taken a quick look - but:

the base looks similar enough (or even same from the commit history) - so there's little room for error & should be fine :confused:

Great work !

Make sure to also include the zsmalloc bits from the 32.2.A.0.224 snapshot [watch out for the double occurrences in drivers/block and drivers/staging/]

(https://github.com/zachariasmaladro...d9cf2a936bd43c426d9c99576628acfb5314d382.diff)

search for zsmalloc & zram,

then there's the CONFIG_ANDROID_LOW_MEMORY_KILLER_CONSIDER_SWAP which makes the mm system/LMK aware of zram so that e.g. stuff isn't accounted several times, it behaves normally during memory pressure and other things.

Luckily SODP has an own implementation:

https://github.com/sonyxperiadev/kernel/commit/93dcf0335a1fa2e949d691575e13109764fbbba9

Also make sure that you include "zram: do not use copy_page with non-page aligned address" [53b02d036c55df30ed046f92c0dce91558aebcd4]

Easiest way to see if it works is to

compile it - if all compiles fine, it's a good start

if the initramfs or the Android init scripts initializes zram - you'll see if there are any errors in dmesg output

to see if the basic functionality (e.g. filesystem handling, etc.) works - you can swapoff the swap partition from zram and create a filesystem (e.g. mkfs.ext4) & mount then "touch file.txt" , cat stuff into it or copy over a few test files from the internal storage to that test mount-point and see if file size, etc. match (not sure if there are any md5sum or sha1sum executables on board)

Hope that helps :)
[Sony Xperia M4 Aqua] zacharias.maladroit:
It's really more of an off-topic question but:

https://xdaforums.com/m4-aqua/accessories/headphones-using-t3538920

I've asked in that thread already & got no answer so far - so not sure if it's of a deeper nature:

Does sound (volume) control work for you guys ?

I tried 2 different headphone sets [Xiaomi Piston V2, Xiaomi Pro HD [Hybrid, HiRes Audio]] and the volume buttons and the mic buttons don't do anything,

can this be fixed via ROM changes or Kernel changes ?
[Sony Xperia M4 Aqua] dani020110:
Yeah there is 2 fully working sound controls

Faux one, first implemented by me

https://github.com/dani020110/destiny/commit/a67395a25782155cabbbb616a0ca1ac5887885cb

And flar2's one, which was also ported by me

https://github.com/dani020110/destiny/commit/8fbb9e9190ecb6713cbf0b6a625b23b9aea35ffa

I use it because it has less code bloat and I've added support for it in kernel adiutor

https://github.com/Grarak/KernelAdiutor/pull/536
[Sony Xperia M4 Aqua] zacharias.maladroit:
That's reassuring - thank you :)

(that would have been a question later :cowboy: )

So I get what I asked for (unclear question - assumed question & answer) :o

sorry - should have clarified, that the volume down, volume up buttons, mic button

on the headset

(wired) does NOT do anything :confused:
[Sony Xperia M4 Aqua] LilBlinx:
MDR-XB950BT sound control works on other Xperia phones but not on M4. The weird thing is sound control works in Spotify but not on the official Music app. Mic button for answering and music track switch works.

EDIT: MDR-XB50AP Mic button works

PS. Please, unlock the bootloader already, we need you :)

---------- Post added at 01:02 AM ---------- Previous post was at 12:57 AM ----------

SkyMelon 8 SuperSU 2.82
[Sony Xperia M4 Aqua] valyo_bg:
Thank you, installed and working good.
[Sony Xperia M4 Aqua] jhen138:
hi. sorry for this noob question but, how and where do i write a new script and add those lines? tia.
[Sony Xperia M4 Aqua] LilBlinx:
.sh script in your /system/etc/init.d folder. If you don't have that folder, search google for init.d enabler
[Sony Xperia M4 Aqua] zacharias.maladroit:
[MENTION=5689354]AndyPhoenix9879[/MENTION] can you please share your build-script and how you build your wlan.ko module ?

edit

probably by building the kernel - no fancy out of kernel separate wlan module necessary - okay.

Does the kernel fail booting when the wlan module is built IN the kernel ?

Or does WiFi stop working when it is being built IN the kernel ?

edit.

Also can [MENTION=4694376]DavidMKD[/MENTION] , [MENTION=5689354]AndyPhoenix9879[/MENTION] and [MENTION=6548273]dani020110[/MENTION]

can you guys please share, if you know of any pitfalls while buildling a custom kernel for the M4 Aqua ?

e.g. do you know of any optimization flags or commits/kernel changes that reliably let the kernel FAIL to boot ?

any toolchains that can NOT be used ? (e.g. only 4.9 is possible, or only Google Toolchain, etc.)

Brace yourselves - I'll probably post more questions, preparing to collect as much information as possible to get an understanding how this device, etc. works

[MENTION=4694376]DavidMKD[/MENTION]

Strangely sound control worked 100% okay after a long uptime (several days), then connecting a headset (Xiaomi Piston V2),

pressing the mic button continued/launched playback, continuing and stopping it via pushing mic button again and volume up/down worked fine -

ONCE

:silly:

After that I turned on the screen and it kept on working for a few seconds - then again back to the same old messy behavior (like with Lollipop - afaik on Lollipop it was even worse :o )

All buttons seem to map/cause MAX volume to be registered/triggered, so it almost instantly jumps to MAX volume,

not entirely sure if it's a ROM-side issue that something is interfering with button registration,

or a kernel-side issue, that the ohm values, button calls, etc. are messily being registered

In any case [MENTION=5689354]AndyPhoenix9879[/MENTION] looks like the M4 Aqua also seems to be affected by custom kernel modification limitations:

modifying too much causes exfat module to fail - thus "corrupted microSD" (only fat32/vfat is possible)

also I'm seeing no single module being loaded - so the kernel got quite modified :)

The policy of using a reset/off button behind the microSD lid is a bit weird and might affect waterproofness in the long run (most probably several built kernels won't boot or the device be saved from bootloops, etc.),

I prefer the approach of the Z5 where you press Volume up + Power,

but that seems to easily possible to be pressed - so it makes somewhat sense ...