[KERNEL] CoolKernel 1.0 with system patches

cyclon1978

Senior Member
Nov 27, 2008
529
337
0
Hello,

this is a kernel tuned on battery life. It is supposed for stock M4 Aqua Android 5.0 version. Should work on all stock based rom, on all 23xx devices if bootloader is unlocked.

Please be careful and make a backup.


Tested devices
- Sony Xperia M4 Aqua E2306 OS: Sony Stock 5.0 26.1.A.3.111 :good:
- Sony Xperia M4 Aqua E2306 OS: Sony Stock 5.0 26.1.A.3.120 :good:
- Sony Xperia M4 Aqua E2333 OS: Sony Stock 5.0 26.1.B.3.109 :good:

Install instructions:
- boot into recovery
- backup full system (boot and system to restore previous version; data to avoid data loss)
- flash the zip file (see second post attachment)

Revert instructions
- restore boot, system

Additional instructions:
- for low power mode (only use little cluster, long battery life, but poor performance, ok for browsing, etc. to survive a desert holiday):
-- echo 1 > /sys/module/cluster_plug/parameters/low_power_mode
- for normal mode:
-- echo 0 > /sys/module/cluster_plug/parameters/low_power_mode
- reboot will restore normal mode (you can use script tools from market to make buttons to switch easily)
- the following script can be used with $cripter app (run as root) so you can make a toggle icon to change between modes:
Code:
#!/system/bin/sh

echo 1 > /sys/module/cluster_plug/parameters/active

STATE=$(cat /sys/module/cluster_plug/parameters/low_power_mode)

if [ $STATE -eq 1 ]
then
  echo 0 > /sys/module/cluster_plug/parameters/low_power_mode
else
  echo 1 > /sys/module/cluster_plug/parameters/low_power_mode
fi

echo "low power consumption"
cat /sys/module/cluster_plug/parameters/low_power_mode
init.d support:
- this kernel brings you init.d support, so no need to use other scripts to enable it
-- busybox needs to be installed in /system/xbin
Code:
mkdir /system/etc/init.d
chmod 755 /system/etc/init.d
(put a script there)
chmod 755 /system/etc/init.d/00_myscript
Please report back if it works or not with your device info.

Credits:
@kaiiori: thanks for your "xperia M4 high temperature Decrease"; i based my scripts on your idea (but took them from another device)
@vinay: thanks for help with kernel assembly
for cluster_plug: all guys which worked on it in CM development

Kernel sources:
https://github.com/cyclon1978/m4aqua

Greetings,
Andreas
 
Last edited:

cyclon1978

Senior Member
Nov 27, 2008
529
337
0
Changelog:

1.001 [Attachment ckp-1.001.zip]
- undervolt to reduce heat

1.000 [Attachment ckp-1.000.zip]
- added cluster_plug
- msm_performance.c updated to avoid problems with cluster cache
- modified system scripts to make ondemand work (as default), enable cluster cache (also as default)
 

Attachments

Last edited:

cyclon1978

Senior Member
Nov 27, 2008
529
337
0
Let me see if i understand: this kernel works on locked bootloader too?? I've just flash it with recovery??
I don't know... locked bootloader checks kernel signature on some xperia devices. You have to try it ;)

The recovery image is definitely not checked, so why should they check the kernel partition... please report back if it works.

To revert if you get bootloop just enter recovery and restore kernel (plus system to revert all changes).

Thanks for testing!
 
  • Like
Reactions: romeo_charly

vyrussu

Senior Member
Aug 10, 2012
102
24
0
Cluj-Napoca
I tried installing it on E2303 and now my phone it doesn't start anymore...it keep restarting after xperia logo...
What can i do? i have bootloader locked and No at allow unlock status...
Is my phone dead?
 

vyrussu

Senior Member
Aug 10, 2012
102
24
0
Cluj-Napoca
or just enter recovery and restore kernel / boot from the backup you made.
I can't enter recovery, the phone restarts before led turn on ...

What i did not mention, is that when i have made my backup and flash the kernel, i have received some messages with red text, something about "firmware..."
And after flashing, i made a cache and dalvik cache clean... should be something related to this?
 

cyclon1978

Senior Member
Nov 27, 2008
529
337
0
I can't enter recovery, the phone restarts before led turn on ...

What i did not mention, is that when i have made my backup and flash the kernel, i have received some messages with red text, something about "firmware..."
And after flashing, i made a cache and dalvik cache clean... should be something related to this?
If bootloader is locked you can use sony software to repair it. After that you can install recovery and restore your backup / data.

The cache/dalvik cache clean is not required, but wont break anything. The red text... i dont know...
 
  • Like
Reactions: vyrussu

vyrussu

Senior Member
Aug 10, 2012
102
24
0
Cluj-Napoca
I'll try later to reinstal original software with Sony Companion or by flashtool and let you know if i succeeded, now i'm at work...
The message in red was something like: cannot access firmware partition ... maybe because i have locked BL
 
  • Like
Reactions: cyclon1978

lazarusxd

New member
Apr 1, 2015
4
0
0
using with rooted, bl unlocked version of e2303 (26.1.A.3.111). i don't have any problems right now. overall performance seems to be improved, so thank you sir.

what i want to ask is this, i am a link2sd user and i want to improve app opening speeds, how can i do this with this kernel installed?
(i am using a korean company's micro sd with r/w speeds of 95/90 by the way)
 

cyclon1978

Senior Member
Nov 27, 2008
529
337
0
using with rooted, bl unlocked version of e2303 (26.1.A.3.111). i don't have any problems right now. overall performance seems to be improved, so thank you sir.

what i want to ask is this, i am a link2sd user and i want to improve app opening speeds, how can i do this with this kernel installed?
(i am using a korean company's micro sd with r/w speeds of 95/90 by the way)
sdcard speed tweaks are possible, it's a question of time and priorities...
 

vyrussu

Senior Member
Aug 10, 2012
102
24
0
Cluj-Napoca
Ok, so i managed to flash my phone with Sony Companion and now everything is ok... so it seems that this kernel is not compatible with phones who have locked boot-loader... unlucky me...
Anyway, keep the good job!

Off:
Anybody knows a way to unlock boot-loader if it has status: Unlock bootloader allowed: No ??
Only the carrier from witch the phone is bought can unlock this?