[Kernel][9.0] Extended kernel v1.5

darkness

Senior Member
Feb 28, 2015
152
200
0
casablanca
Extended kernel, for Android 9.0 ROM's (ks01lte).

Disclaimer:
use this kernel at your own risk. Flashing it without any knowledge of what you're doing may brick your device. I'm not responsible for any software/hardware damage.
only Pie is supported.

Features/Changelog:
v1
built with 4.9.x-sabermod GCC toolchain
* Custom CPU governors: Nightmare, Alucard, and Intelliactive.
* GPU: Adreno idler by arter97 disabled by default for better responsiveness, Simple GPU governor by faux123.
* Sound Control V3.
* Screen: KCAL support for post processing control [v2].
* Custom Schedulers: Fiops, Fifo, VR, SIOPlus, Tripndroid, ZEN.
* USB/AC Fastcharge V1.3.
* Optimizations: reducing the amount of debug logs!!, add clean Ramdisk files.

v1.5
* Built with the Bleeding edge GNU GCC 8.2.1
* BACKPORT: Power Efficient Workqueues from Kernel 3.10
* Add Link Time Optimization support v3
* CPU Underclock and Overclock: 268MHz to 2496MHz
* GPU Underclock and Overclock: 100MHz to 600M
* Add New Custom CPU governors: Elemental-X and zzmoove.
* Enable KSM and and support for UKSM

Downloads
MEGA

Thanks to:
@kyasu
@jprimero15 aka Lolz-Kernel
and all the authors of commits in Extended kernel github repo!

XDA:DevDB Information
Extended kernel, Kernel for the Samsung Galaxy S4

Contributors
darkness
Source Code: https://github.com/1bdellatiF/platform_kernel_samsung_msm8974
Version Information
Status: Beta
Current Beta Version: v1.5
Beta Release Date: 2019-07-20

Created 2019-07-20
Last Updated 2019-08-01
 

Attachments

Last edited:

XerusKunZE

Member
Jun 25, 2014
24
8
0
Will test for week with intelliactive governor and NFS magisk module. Will update again after a week. Thanks for the kernel!

AOD fixed by wiping cache and dalvik-cache
 
Last edited:

DiamondJohn

Recognized Contributor
Aug 31, 2013
4,498
3,557
243
Sydney
@darkness I just found this thread. If you are interested in adding more govs, I have the source to add the following (the below list includes default ones as well) to the Havoc-OS kernel, ie @kyasu LOS Kernel
==================CPU==================
abyssplugv2
arteractive
badass
bioshock
conservative
conservativex
dancedance
darkness
dyna-interactive
electroactive
impulse
intelliactive
intellimm
interactive
interactivex2
lazy
lionheart
nightmare
ondemand
ondemandplus
optimax
pegasusq
performance
powersave
slim
smartassH3
smartmax
tripndroid
uberdemand
userspace
wave

==================IO==================
bfq-iosched
cfq-iosched
deadline-iosched
fifo-iosched
fiops-iosched
noop-iosched
row-iosched
sio-iosched
sioplus-iosched
tripndroid-iosched
vr-iosched
zen-iosched
Is there a zzmoove governor in this kernel?
I have seen a lot of people get excited about ZZMove. I think it is a LOT of effort to configure correctly, and if not configured correctly its really bad. And on top of that, I think the true battery saving advantages are over rated as compared to if you get Doze working correctly.
 
Last edited:

darkness

Senior Member
Feb 28, 2015
152
200
0
casablanca
@darkness I just found this thread. If you are interested in adding more govs, I have the source to add the following (the below list includes default ones as well) to the Havoc-OS kernel, ie @kyasu LOS Kernel


I have seen a lot of people get excited about ZZMove. I think it is a LOT of effort to configure correctly, and if not configured correctly its really bad. And on top of that, I think the true battery saving advantages are over rated as compared to if you get Doze working correctly.
Which CPU governor has the minimum battery consumption
 

DiamondJohn

Recognized Contributor
Aug 31, 2013
4,498
3,557
243
Sydney
Which CPU governor has the minimum battery consumption
If you want the ABSOLUTE min battery consumption without compromise, then the Gov does not really matter. Simply set your max CPU to the lowest frequency available.:p

The real practicality is about selecting a gov that provides YOU the best compromise for how YOU personally use your phone. eg I don't use my phone for gaming, while others might.

My personal experience is that there are two main paths for battery consumption. Screen on and screen off. Screen on is heavily affected by Gov, so the most conservative you can bear. And if you are really committed for small gains, adjust the ramp-up etc
see:
https://forum.xda-developers.com/general/general/ref-to-date-guide-cpu-governors-o-t3048957
https://forum.xda-developers.com/showthread.php?t=1767797
https://forum.xda-developers.com/nexus-4/general/guide-android-governors-explained-t2017715

For screen off, then Doze becomes the controlling factor, BIG TIME! I got my phone into doze in 30 sec of screen off, and the battery consumption is brilliant!

To investigate your current state, see:
https://forum.xda-developers.com/showpost.php?p=79135309&postcount=74

That post and the following one shows the difference how my phone is either screen on or in Doze. As compared to a LOS device which sits in maintenance (a higher battery state) for some time after the screen is off.

Doze's deep-idle is your batteries lowest power state, apart from off

PS, not that it means anything, I personally run Tripndroid CPU Gov (and sched) based on how it is described and from personal checks where it appears to like the lower frequencies while still staying very responsive. It jumps around a bit which to me means it is attempting to find the the lowest appropriate freq, while some act more like a min-max, ie not the lowest appropriate, but min when not in use and max when in even the lowest use. I don't notice any lag.
 
  • Like
Reactions: aelfinn

XerusKunZE

Member
Jun 25, 2014
24
8
0
I tried version 1.5, but it got stucked on splash screen and goes to download mode. Sometimes the system boots fine, but as soon as I shutdown my phone the problem persist again... I tried to reflash my rom and reflash the kernel but the same thing happens. I tried to wipe dalvik cache and cache, still the problem is the same. I'm using Havoc 2.7
 

DiamondJohn

Recognized Contributor
Aug 31, 2013
4,498
3,557
243
Sydney
I tried version 1.5, but it got stucked on splash screen and goes to download mode. Sometimes the system boots fine, but as soon as I shutdown my phone the problem persist again... I tried to reflash my rom and reflash the kernel but the same thing happens. I tried to wipe dalvik cache and cache, still the problem is the same. I'm using Havoc 2.7
A last_kmsg may help the dev decipher where its failing.
 

DiamondJohn

Recognized Contributor
Aug 31, 2013
4,498
3,557
243
Sydney
PS, not that it means anything, I personally run Tripndroid CPU Gov (and sched)
I've switched to the Impulse CPU Gov, as it appears to quickly scale down and like the lower frequencies and switch off (hotplug) other cores, while still being very responsive ie I haven't noticed any lags. It was created by the main dev who worked Oreo crDroid.

I *may* of also noticed that when plating music with the screen off, sometimes there was a stutter when using Tripndroid and switching songs, and I haven't had this occur with Impulse, as yet. I also have an app that momentarily switches the screen on between songs, to display the cover art, which I am sure wouldn't help.

It could be a random thing, but it looks good thus far.
 
  • Like
Reactions: aelfinn