[KERNEL][MM] SkyMelon 9 [UV][OC][CPU/GPU]

Which version was the most stable overall?

  • SkyMelon 7 series

    Votes: 6 10.7%
  • SkyMelon 8

    Votes: 18 32.1%
  • SkyMelon 8x

    Votes: 7 12.5%
  • SkyMelon 9-04062017

    Votes: 27 48.2%

  • Total voters
    56

AndyPhoenix9879

Senior Member
Jan 26, 2014
441
298
0

Uplifting​

Code:
*** Disclaimer ***
/*
*I am not responsible for anything that might happen to your device
*You are choosing to install this, not me.
*I'm merely just sharing what I've modified to the Android Kernel
*Don't even think about pointing your fingers at me for messing up your device,
*and if you do, it's your own fault not mine. 
*/
Features :
  • Compiled with UBER-TC 4.9.4. (2017's one)
    Link for other potential kernel developers : https://bitbucket.org/DespairFactor/aarch64-linux-android-4.9
  • Cluster Plug
  • AutoSMP
  • Updated kernel to v3.10.74
  • Reduced Minimum Brightness.
  • KCAL - an advanced colour control for Qualcomm devices by savoca.
  • Faux's Sound Control v3.5
  • Overclocked to 1.61GHz for big clusters. (Somehow can't get it to 1.7GHz)
  • Overclocked to 1.21GHz for LITTLE clusters. Special thanks to @AnoopKumar
  • Overclocked GPU to 700MHz
  • Intelliactive, Interactive_Pro, Nightmare, Ironactive, HyperX, and Electroactive Governor
  • FIOPS, ZEN, SIO, Tripndroid and Maple I/O Schedulers
  • Interactive_pro as default CPU governor.
  • Faster bootup time
  • Undervolted
  • GPU idles at 19MHz (although 19MHz doesn't show up, it's being used)
  • CPU idles at 40MHz for big cores and 55MHz for LITTLE cores.
  • USB Fast Charge (This is not Qualcomm's Quick Charge. It's for USB port Charging.)
  • PowerSuspend for better standby time.
  • Adreno Idler by @arter97
  • Dynamic FSync
  • Frandom
  • LZ4 compression and cryptography and LZ4 for ZRAM
  • Toggleable ARCH power and Gentle Fair Sleepers (battery saving options)
Check the change log for more.
Always BACKUP YOUR DATA before flashing anything, ensure that you're in the latest firmware version and of course, you need an UNLOCKED BOOTLOADER.

Installation

For v5a and versions before it, follow this (Flashtool Method) :
  • Download the .img
  • Open up Flashtool (from Androxyde) : http://www.flashtool.net/downloads.php
  • Turn off your phone
  • Hold the volume up button while also connecting your phone and pc via the usb cable
  • A blue LED should light up - you're in fastboot mode now
  • Click the ThunderBolt button in Flashtool
  • Fastboot Mode
  • Under the "By DoomLord", select the "Select Kernel to Flash"
  • Find the downloaded .img
  • Done.
For v6 and anything after it, follow this one (TWRP method) :
  • Download .zip file
  • Remember where you placed that .zip file
  • Turn off phone
  • Boot to TWRP : press and hold both Volume down and Power buttons; when the phone vibrates press the Volume down button repeatedly
  • Navigate to the 'Install' button in TWRP
  • Search for wherever you placed the downloaded .zip in TWRP
  • Flash it
  • Reboot and enjoy.
Credits :
@dani020110 for his generous help and superb guidance. None of this would've exist without his time and generous effort in helping me with my build problems. You da real MVP!
@vinay for the build tools and the dtbTool commands and also the one who pointed out the defconfig (which is msm-perf_defconfig)
@EHSAN™for the ramdisks (prerooted)
@squid2 and also @cyclon1978 for the cluster plug (I referred to both, the original creator is squid2)
Sony for the kernel sources (and this phone)
@paulobrien for his build guide (the boot.img compiling process is very convenient with his build guide)
His build tutorial : https://forum.xda-developers.com/p9/development/how-to-build-kernel-huawei-p9-t3373617
@Eliminator79 for the build guide (which is still relevant btw, and the most comprehensive one too)
His build guide (followed this mainly) : https://forum.xda-developers.com/android/software/ultimate-guide-compile-android-kernel-t2871276

Downloads :
SkyMelon 9 大龙 12/06/17
https://goo.gl/WWyCGw
https://goo.gl/sIIRrT <-- just in case. Use the one on the top, if it doesn't work use this one
With updated SuperSU (2.82)
https://forum.xda-developers.com/showpost.php?p=73268465&postcount=1224
SkyMelon 8.1 (without-root) 小龙 21/07/17
https://goo.gl/xKQ4Uz
SkyMelon 8.1 (with-root) 小龙 21/07/17
https://goo.gl/qPQu3H
SkyMelon 8 (with-root SuperSU v2.82) 小龙 (thx @valyo_bg)
https://drive.google.com/file/d/1mhTpTWErF-l2h5Z7uVqNBclODUy1N9hb/view
======================================

SkyMelon 8x 小龙 27/05/17
https://goo.gl/YbA0Kx
SkyMelon 8a 小龙 19/04/17
https://goo.gl/bcKrdu ...if battery drains, revert back to SkyMelon8.
SkyMelon 8 小龙 28/03/17
https://goo.gl/OTHOnb
======================================
SkyMelon 7e 小龙 23/03/17
https://goo.gl/fBC21c

SkyMelon 7a 小龙 23/03/17 (test build)
https://goo.gl/2UgAes

SkyMelon 7 小龙 22/03/17
https://goo.gl/M1I74b
======================================
Sky Melon v6 --小龙 11/03/17 (buggy)
https://drive.google.com/file/d/0B4nj3MjAx2wISHI1UGhveGhzNnc/view?usp=sharing
======================================
Sky Melon v5a --小龙 19/02/17 (video recording bug)
https://drive.google.com/drive/folders/0B4nj3MjAx2wIbzBOSloyRnhGTTQ?usp=sharing

Sky Melon v5 --小龙(XiaoLong) 12/02/17 (some M4 aqua may not be able to boot v5)
https://drive.google.com/drive/folders/0B4nj3MjAx2wIWHJhSzAzT0lQVG8?usp=sharing
======================================
Sky Melon v4a --凤凰 28/01/17
https://drive.google.com/drive/folders/0B4nj3MjAx2wIX1NrcGJDQUVheTQ?usp=sharing not recommended - microphone can't pick up so much sound

Sky Melon v4 --凤凰 27/01/17
https://drive.google.com/drive/folders/0B4nj3MjAx2wIT0Q5WG1BdEN2NXM?usp=sharing not recommended - microphone can't pick up so much sound
======================================
v3 --凤凰(FengHuang)-build 11/01/17
https://drive.google.com/drive/folders/0B4nj3MjAx2wIS0RDUHIwYmZuNU0?usp=sharing
Enjoy.
======================================
v1.05 --phoenix
https://drive.google.com/drive/folders/0B4nj3MjAx2wIRW1oZjFLVWN5Y1E?usp=sharing

v1.0 --phoenix
https://drive.google.com/drive/folders/0B4nj3MjAx2wIQVNVUG1DOFpURVk?usp=sharing
======================================

XDA:DevDB Information
Sky Melon, Kernel for the Sony Xperia M4 Aqua

Contributors
AndyPhoenix9879, dani020110
Source Code: https://github.com/AndyPhoenix9879/SkyMelon-msm8939

Kernel Special Features: A lot.

Version Information
Status: Stable
Current Stable Version: 9
Stable Release Date: 2017-01-11
Beta Release Date: 2017-01-06

Created 2017-01-06
Last Updated 2017-06-11
 
Last edited:

AndyPhoenix9879

Senior Member
Jan 26, 2014
441
298
0
======================================
Changelog :
Sky Melon 9 大龙 build 12/06/17
  • Boots up with Interactive_Pro governor
  • Thermal throttling relaxed
  • Adreno Idler tweaks from the community
  • Power Saving tweaks
  • Updated toolchain
  • Lowered mdss bandwidth a bit
  • Lowered current to CPU during thermal throttling
  • Added 345MHz clock speed option in LITTLE clusters
Sky Melon 8.1 小龙 build 21/07/17
  • Everything from Melon 8
  • Added BFQ I/O Scheduler
  • Added F2FS
  • Added underclock CPU frequencies of Melon 9
  • Added underclock GPU frequencies of Melon 9
  • Enters deepsleep faster than stock
  • Relaxed thermal throttling
  • An updated toolchain
  • Removed AutoSMP

Sky Melon 8x 小龙 build 27/05/17
  • Boots up with Intelliactive governor
  • GPU idles at 19MHz
  • Maple I/O Scheduler as default
  • Smoother UI
  • Downgraded kernel to v3.10.74 again
  • CPU idles at 58MHz (big) and 79MHz (LITTLE)
  • Faster entry to deep sleep
  • BFQ scheduler
Sky Melon 8a 小龙 build 19/04/17
  • Boots up with Interactive_Pro governor
  • GPU utilizes 650MHz for 3D graphics rendering
  • ZEN I/O Scheduler as default
  • Overall performance improvements
  • Updated kernel to v3.10.94
  • Improve UI responsiveness
  • Optimization to vma-caching
  • Electroactive Governor
  • HyperX Governor
  • F2FS Support (experimental)
Sky Melon 8 小龙 build 28/03/17
  • Updated kernel to v3.10.74
  • Updated and improved ext4 filesystem
  • Updated and improved FUSE filesystem
  • More GPU frequency (415MHz and 435MHz)
  • GPU scales more readily to 415MHz
  • Higher bus frequency for the 415MHz GPU frequency
  • GPU idles at 200MHz
  • Improved standby battery life
  • Added Ironactive governor (which I recommend to all)
  • More optimization flags!
  • Re-introduced wlan prima modules (and updated it of course)
Sky Melon 7e 小龙 build 24/03/17
  • Updated cluster plug
  • Optimization flags fixup
  • More brighter display at mid level
  • More utilization of GPU's 550MHz (for the sake of smoothness)
  • Vibrator intensity control fix (from 55% onwards) <-- thanks @dani020110
Sky Melon 7a 小龙 build 23/03/17 (experimental build)
  • ZRAM updated & improved
  • ZRAM's default compressor = LZ4
  • GPU tweak
  • Optimization flags
  • Kernel's timer optimization
  • Performance tweaks
  • {UNCONFIRMED}USB OTG?
  • {UNCONFIRMED}Battery improvement?
Sky Melon 7 小龙 build 22/03/17
  • SELinux set to Enforcing
  • Added Nightmare Governor
  • KCAL support
  • Faux's Sound Control v3.5
  • Less aggressive throttling for GPU
  • GPU overclocked to 700MHz
  • Reverted kernel version back to .49
  • Removed Hima hotplug
  • Removed Lazyplug
  • Removed Alucard Hotplug
  • Re-introduced Cluster Plug
  • Removed Touchboost
  • Removed LionFish and Bioshock governors
  • Removed control over CRC and enabled CRC
  • Tweaked mount points
Sky Melon v6 --小龙 build 11/03/17 (please confirm with me that wifi works)
  • Kernel version 3.10.55
  • Video recording crash fixed
  • Touchboost
  • SELinux set to Permissive
  • Conservative governor re-added back
  • Load balancing improvements (when idle CPUs are present)
  • LZ4 fixes
  • Cryptography improvements
  • Other general improvements
Sky Melon v5a --小龙 build 19/02/17
  • Kernel version 3.10.52 (I need some help to get this beyond .52 - .53 and beyond would cause the wifi to be unable to be activated)
  • Some interactive governor tweaks
  • RAM overclocked to 420MHz
  • Lazyplug added (Default hotplug)
  • Sched improvements
  • Hopefully everyone who couldn't boot on v5 should be able to boot on v5a now
Sky Melon v5 --小龙(XiaoLong) build 8/02/17 (released on 12/02/17)
  • Overclocked big cores to 1.61GHz, LITTLE cores to 1.21GHz. Oh, and not much if any additional heat gain at all! You're soooo welcome
  • GPU Overclocked to 650MHz. Just click on the Thanks icon
  • RAM Overclocked to 406MHz. Was 398.4MHz, not much ik, was testing. You're still welcome
  • EXT4 filesystem improvement
  • Alucard Hotplug
  • Hima Hotplug (replaces Cluster Plug, they were conflicting)
  • BioShock Governor
  • LionFish Governor
  • Less overall throttling
  • I/O improvements
  • Optimization to ARM platforms
  • Enhanced multi-core decision making
  • Removed Sound Control
  • Disabled F-Sync by Default (you can still enable it in Kernel Adiutor)
Sky Melon v4a --凤凰(FengHuang) build 28/01/17
  • Re-tweaked Intelliactive and Interactive governor (should speed things up now)
  • ZRAM tweaked
  • Tweaked ROW I/O Scheduler
  • I/O improvement
  • Sound Control v3.4 by @faux123
  • Slight performance improvements
  • ARM64 CRC32 - basically a hash function (one aspect determining the performance of a hash table - which is like an array.. on steroids in the sense that it searches the array faster in a non-linear fashion which is achieved with the hash function - now, even faster [or at least improved])
  • Added support to toggle ARCH power and Gentle Fair Sleepers (both are power saving options)
  • Battery improvements
  • Faster camera launch time
Sky Melon v4 --凤凰(FengHuang) build 27/01/17
  • Removed ElementalX governor (battery drain during standby)
  • TripNDroid IO Scheduler added (and set to default - you'll love this one)
  • Frandom added (Fast random number generator)
  • Tweaks to Random number generator
  • Deadline IO tweaked
  • Interactive governor slightly tweaked
  • Brightness tweaks
  • Huge memory optimizations
  • Huge IO improvements
  • Performance improvements (not huge, but not mild either)
  • QuickWakeup
  • LZ4 compression added (fast decompression and compression operations) and LZ4 Cryptography added
  • LZ4 compression for ZRAM too
  • NVIDIA power efficiency tweaks (better power utilization)
  • Toggleable CRC (enabled - safer when Stamina modes are enabled i.e less likely to get bootloops when battery dies out with Stamina mode and UltraStamina mode, disabled - 30% IO boost)
  • Some slight undervolting
  • Updated FSync
  • Improvements were also made (other than from NVIDIA's) for better efficiency i.e great performance whilst maintaining a better power usage.
  • SuperSU updated to v2.79 (latest version as of 27/01/17)
Happy Chinese New Year!
Sky Melon v3 Stable --凤凰(FengHuang) build 11/01/17
  • ElementalX governor added! -by @flar2
  • ZEN IO Scheduler
  • Dynamic FSYNC
  • PowerSuspend
  • Adreno idler by @arter97
  • Intelli-thermal by @faux123
  • Added a whole bunch lot of TCP congestion algorithms, westwood is set to default.
  • Big performance gain (significantly smoother!)
  • Super I/O performance improvements - thanks to @vinay
  • GPU improvements (smoother and less jitter)
  • Some memory optimizations
  • More optimization towards the Cortex A53
  • Should experience better battery altogether as well.
Antutu Benchmarks shows 38K to 40K for me. Highest record with this kernel was 44226.
Sky Melon v1.05beta --phoenix (can't remember date)
  • USB Fast Charge (Not Qualcomm's Quick Charge.. It's for faster USB port charging)
  • Tuned Optimization on Graphite and O3
  • Brightness Slider fixed
  • More I/O boosts

======================================
 
Last edited:

AndyPhoenix9879

Senior Member
Jan 26, 2014
441
298
0
Cluster Plug
Cluster Plug is a hotplug, and like any other hotplug, it controls which cores should be turned on and off based against rules defined by it's algorithm. Cluster plug deactivate the small clusters (the LITTLE cores) and utilize only the big clusters (the big cores), which should lead to better smoothness (and even performance, especially single threaded as it utilizes only the big cores which has better single thread performance due to it having a higher clock speed - and single threaded performance are usually more important to what most people do). This, however, does not mean the LITTLE cores are never activated, they do, and they do only when the load & tasks the CPU is handling requires it i.e intensive multi-threaded performance maybe like image editing and maybe heavy multitasking where many cores will affect performance. As such, it should do a great job balancing performance and battery life, because the performance comes from the big cores, and the battery savings from the LITTLE cores being deactivated, not drawing much, if any, power at all.

I disabled this by default though, but you can control it via a file explorer in the directory
/sys/module/cluster_plug/parameters/active/
... and changing the value from 0 to 1

If you want convenient control ie on/off of Cluster plug right off Kernel Adiutor, you can create one in the Custom Controls tab in Kernel Adiutor :
1) Create the control as a switch (click on the + icon first)
2) Under the "Enabled" part, write :
#!/system/bin/sh
if [ "`cat /sys/module/cluster_plug/parameters/active`" == "0" ]; then
echo 0
else
echo 1
fi
3) Under the "Applying" part, write :
#!/system/bin/sh
if [ "`cat /sys/module/cluster_plug/parameters/active`" == "0" ]; then
echo "1" > /sys/module/cluster_plug/parameters/active
else
echo "0" > /sys/module/cluster_plug/parameters/active
fi
4) Hit that "TEST" button
5) A tick floating button appears, click it
..and you're done

*Thanks to @ivy.lally for pointing out the previous problems with the above code :highfive:

AutoSMP
A hotplug driver that works in-sync with the CPU governor to enable off-line cpu cores when the the CPU frequency reaches a high threshold and still more compute power is needed. Below is some tunings made by others :
By @ivy.lally
https://forum.xda-developers.com/showpost.php?p=72539199&postcount=835
By @Thedalamsyh
https://forum.xda-developers.com/showpost.php?p=72543572&postcount=854
wlan.ko
The Prima WLAN module used by the phone in order for wireless networking (wifi) to function at all. This module is compiled together with the compilation of the kernel - so the WLAN module used in, let say version 8, would not work with, let say again, version 6. Within the .zip file already contained the required wlan module (wlan.ko).

If you so happen to want to revert back to a version of SkyMelon where the wlan.ko is not included i.e the versions that is installed without a .zip file, then this should help : https://drive.google.com/file/d/0B4nj3MjAx2wIVTFOX0p6Vk9IaWs/view?usp=sharing

Instructions:
1) Download that wlan.ko in the link above
2) Copy and place it at /system/lib/modules/
3) Set permission to rw r r
4) Reboot
5) Wifi should be working now.
 
Last edited:

AndyPhoenix9879

Senior Member
Jan 26, 2014
441
298
0
WoW! Its Great
Your Tested it Bro? it information is Amazing...
i will Test it in E2333 And Thanks For Your Work, Keep it up :eek:
Works well on my E2353. The brightness slider is the only problem I need to fix for this version (it's still funky, I actually made it more funky x-x. Adaptive brightness seems to counter the problem). If adaptive brightness isn't turned on, the brightness slider can be funky as said in the post.
 

EHSAN™

Senior Member
Feb 26, 2015
543
469
93
Dezful
Works well on my E2353. The brightness slider is the only problem I need to fix for this version (it's still funky, I actually made it more funky x-x. Adaptive brightness seems to counter the problem). If adaptive brightness isn't turned on, the brightness slider can be funky as said in the post.
Ok Bro i test it but cant see any changes in kernel, IO Scheduler is ROW And Read Ahead is 128!!
And Apdative Brights Work good, i think Kernel not Flashed on My Device :D
And For Fastboot need to press Volume + or UP bro
 

kpbs92

Senior Member
Sep 22, 2014
80
10
0
Yeah except for the Adaptive brightness issue. it's good so far. good work man, If you will be updating this kernal we will test this. We should optimize all 8 cores in order to get most out of this device. Keep it up guys. :good::good::good::good::good:
 
  • Like
Reactions: m.Sony Xperia S

EHSAN™

Senior Member
Feb 26, 2015
543
469
93
Dezful
Works well on my E2353. The brightness slider is the only problem I need to fix for this version (it's still funky, I actually made it more funky x-x. Adaptive brightness seems to counter the problem). If adaptive brightness isn't turned on, the brightness slider can be funky as said in the post.
This Working on E2312 And New Scheduler And Gernover added, But in E2333 nothing
----------------
Updated

i Download New Link And its Woking Perfectly in E2333, And All of Variants
thanks BRo :highfive:
 
Last edited:

lPatriciaNl

Member
Mar 27, 2009
18
1
0
Hello,
With the time will be there an option to flash kernel to MM with locked bootloader?
And if it will, is there any option to get root on MM for E2312 with this kernel in future?
Thank you.
 

AndyPhoenix9879

Senior Member
Jan 26, 2014
441
298
0
Hello,
With the time will be there an option to flash kernel to MM with locked bootloader?
And if it will, is there any option to get root on MM for E2312 with this kernel in future?
Thank you.
Unfortunately, no... I really doubt any of this development projects would work on locked bootloader...

I heard there's an universal TA backup for the Xperia devices - with that you can relock your bootloader so your warranty might still be valid.
If your bootloader unlock says no, maybe try going into developer option and check OEM Unlocking (worth a shot, may not work but worth a shot - safe anyway in case you're wondering)

This kernel is prerooted already btw.
 

tomcis147

Senior Member
Oct 14, 2013
170
41
0
Rokiskis
Unfortunately, no... I really doubt any of this development projects would work on locked bootloader...

I heard there's an universal TA backup for the Xperia devices - with that you can relock your bootloader so your warranty might still be valid.
If your bootloader unlock says no, maybe try going into developer option and check OEM Unlocking (worth a shot, may not work but worth a shot - safe anyway in case you're wondering)

This kernel is prerooted already btw.
Warranty is not void no matter what in europe