[Kernel][STOCK/PORT][N910P] [08-25-17] DtuxKernel W07F - 710N - DR4G0N v2.8 (EOL) - Sprint Galaxy Note 4 Android Development

MM SPRINT DTUX KERNEL W07F v1.7 / 710N v2.6RE / DR4G0N v2.8 (EOL)
[STOCK/PORT] [ENFORCING/PERMISSIVE] [STABILITY] [BALANCE] [SAFETYNET] ​
*** Disclaimer***
You are the solely responsible if something goes wrong. It's Recommended to be on MM PK1 BASEBAND. AND READ CAREFULLY FOR THE INSTALL AND DETAILS.
This is the beginning, DTUX KERNEL, there will be 3 tiers:
-Wolf Tier: Stock alike, no fanciness but with some security patches and Enhancement in the performance and battery department.
-Lion tier: A good volume of tweaks will be available beside what the Wolf tier offers.
Dragon tier AKA 3DDYB022 3D1T10N! : Emotion alike, all the bells and whistles a la Dtux
Install instructions
-Just Flash
-Magisk v13.3 will also be installed
-Get Magisk Manager 5.1.1 HERE if you are using this root method for the first time
-Settings will be reset to default for Kernel Adiutor to prevent boot issues.
-W07F 3D1T10N Has been configured to work with a profiles system with Spectrum Kernel App -(DOWNLOAD HERE)
-710N & DR4G0N 3D1T10N Comes with Dtux Adiutor!!!
Steps for proper Gain Changes with Faux Sound
1-Turn OFF the gain locks if its on (default is OFF)
2-Change the gains to your liking
3-Turn back ON the gain locks to ensure they won't be changed by any other app and to survive reboots if the sound tab applies on boot.
NOTE THAT SPECTRUM IF YOU JUST REBOOTED IT MAY TAKE UP TO 2MIN TO OPEN AS IT APPLIES LAST CHOSEN PROFILE AT BOOT
-KERNEL STARTS IN ENFORCING MODE BY DEFAULT, BREAKING VIPER4ANDROID (IT NEEDS PERMISSIVE), INTALL THIS: The SELinux Toggler
AND GIVE KUDOS TO THE DEV. THE APP WILL TAKE CARE ON EVERY BOOT TO PUT IT AS YOU LAST LEFT IT, WITH AN OPTIONAL NOTIFICATION
Downloads
ON 2ND POST FOR W07F, 3RD FOR 710N, 4TH FOR DR4G0N aka 3DDY_B002 3D1T10N
Credits
@Ram121 (Thanks for the help and commits!)
@Freeza (Thanks for the source and great advices!)
@Pafcholini (Thanks for the commits!!)
@kevintm78 (Thanks for the Head start on this bumpy road, Kudos!)
OPEN TO FEATURES REQUEST FOR KERNEL :laugh:
XDA:DevDB Information
DtuxKernel, Kernel for the Sprint Samsung Galaxy Note 4
Contributors
carlosggb
Kernel Special Features:
Version Information
Status: Stable
Current Stable Version: v2.6
Stable Release Date: 2017-08-14
Current Beta Version: v2.8
Beta Release Date: 2017-08-25
Created 2017-07-14
Last Updated 2017-08-30

Reserved
DtuxKernel W07F 3D1T10N​
Initial Changelog for W07F 3D1T10N V1.1.
-Based on PK1 Kernel Sources
-Built using the Reliable arm-eabi-4.9 Toolchain
-Fixed DirtyCow vulnerability
-Added to the interactive Governor (default) the commit cf0fad49d17cb8273ce555dd5b7afab67d7923bf for increased performance and battery
-Added PM / sleep: Fix memory leak in pm_vt_switch_unregister(). For better ram management.
-Kernel Switches Permissive/Enforcing (making it compatible with Android Auto / SELinuxToggler and more!)
-tcp: tweak for speed
-power: quickwakeup: initial driver
-USB: android: Fix memory leak in mass_storage_function_init()
-Added HAVE_EFFICIENT_UNALIGNED_ACCESS & Added KSM
-ZeroLemon Commit added!
v1.2 W07F 3D1T10N Changelog
dm-crypt: run in a WQ_HIGHPRI workqueue
dm-verity: run in a WQ_HIGHPRI workqueue
arch: sec_bsp: silence annoying messages
binfmt_elf.c: use get_random_int() to fix entropy depleting (Jeff Liu )
android: binder: use GPF_HIGHUSER flag since binder is designed for userspace
Optimize copy_page for modern ARM platforms
arm/kernel/irq.c: remove irq affinity warnings
ASoC: msm: qdsp6v2: Add FLAC in compress offload path
kgsl_pwrscale: fix simple_ondemand GPU Governor Crash
asoc: wcd9xxx: Improve headset detection
tick: don't update idle time if cpu offline
qdsp6v2: Stereo Call Recording Support
Expose the option to user - CRC Checking (if disabled performance could increase up to 30%)
A couple of ramdisk tweaks.
v1.3 W07F 3D1T10N Changelog
Native init.d support
Spectrum Kernel App support (GET APP HERE!)
The 4 profiles have been configured to comply with Dtux Standards, please test them and report your observations/suggestions
v1.4 W07F 3D1T10N Changelog
STILL PASS SAFETYNET!!! THANKS @Nattrammar !!!!
Sysfs interface for Gentle_Fair_Sleepers [neobuddy89]
thermal-core: Fix to send correct trip type to get trip temperature
arm: smp: Update the topology masks before calling CPU_STARTING notif
fs: sync: Asynchronous Fsync from HTC
Further tweaking Kernel profiles, specially the Battery Saving one.
Reworked the ramdisk again.
v1.5 W07F 3D1T10N Changelog
WE LOST THE ENFORCING/PERMISSIVE SWITCHING HABILITY NEED USERS TO TEST THIS KERNEL ON ANDROID AUTO
Updated Magisk to 13.3 (link to the NEW Magisk Manager updated too, go get it!)
Added Busybox-YDS 1.26.2 to kernel ramdisk
Added a temperature reducer commit
Misc tweaks
v1.6 W07F 3D1T10N Changelog
WE LOST THE ENFORCING/PERMISSIVE SWITCHING HABILITY NEED USERS TO TEST THIS KERNEL ON ANDROID AUTO
Added Busybox-YDS 1.27.1 to kernel ramdisk
PROFILES HAVE BEEN OPTIMIZED, YOU WONT NEED KERNEL ADIUTOR FOR THIS EDITION AT ALL, TRY AND YOU WILL SEE :laugh:
msm_hsic_host wakelock adjustable (recommended between 50% - 20%)
rmnet usb fix
bcmdhd reduced rx wakelock
bcmdhd reduced ctrl wakelock
bluesleep - reduce wakelock timeout the dtux way
SensorHub, Proximity and Humidity wakelocks in check!
Significant motion sensors wakelock in check! (Experimental)
Bluetooth: Fix L2CAP deadlock
Added many TCP protocols
Improved Extended battery support (better Calculations)
msm_serial_hs: release dma wakelock properly
Decrease BT/FM TX timeouts to improve deep sleep ratio.
bluetooth: bluesleep: Remove IRQF_DISABLED noop flag
Added User Configurable Spectrum Profiles (via Spectrum folder, for advanced users)
v1.7 W07F 3D1T10N Changelog
ENFORCING / PERMISSIVE SWITCH IS BACK!!!!
Added ZL4 compression support to kernel including the following commits:
PM / sleep: Fix memory leak in pm_vt_switch_unregister()
decompressor: add LZ4 decompressor module
lib: add support for LZ4-compressed kernel
lib: add lz4 compressor module
lib/lz4: correct the LZ4 license
lz4: fix compression/decompression signedness mismatch
Apply CFLAGS, -Os to decompress.o to improve decompress performance
lz4: ensure length does not wrap
lz4: fix another possible overrun
lz4: add overrun checks to lz4_uncompress_unknownoutputsize()
arm: add support for LZ4-compressed kernel
Downloads
DtuxKernel-W07F_3D1T10N_v1.7-Unified_Build SAFETYNET COMPLIANT VERSION!
Older Snapshots
DtuxKernel-W07F_3D1T10N_v1.6-Unified_Build SAFETYNET COMPLIANT VERSION!
DtuxKernel-W07F_3D1T10N_v1.5-Unified_Build SAFETYNET COMPLIANT VERSION!
DtuxKernel-W07F_3D1T10N_v1.4-Unified_Build SAFETYNET COMPLIANT VERSION!

DtuxKernel 710N 3D1T10N​
Initial Changelog for 710N 3D1T10N V1.8
-Based on DtuxKernel W07F ED1T10N v1.7
***Prevent on interactive governor changes to IO_IS_BUSY
ramdisk: limit boot speed to 2.27ghz (for a cooler reboot!)
drivers: Add state notifier driver
msm: Add Intelli Hotplug Driver
msm: Add MSM Hotplug driver
msm: add Alucard Hotplug Driver
msm: Add Bricked Hotplug
msm: Add Mako Hotplug
sound/soc/codecs: Faux Sound control for WCD9330 TomTom codec driver (PARTIALLY WORKING)
intelli_thermal v1 by Faux123 added
IntelliThermal finally
CPU OVERCLOCK-UNDERCLOCK ENABLED removed in R2 for the moment
GPU OVERCLOCK-UNDERCLOCK ENABLED removed in R2 for the moment
Voltage Control: generic voltage control for DTS based kernels
Add Led control [Twistedumbrella & Ktoonsez]
Added LED Control & Fading Control
Added Display Kcal Controls
Added Adreno Idler GPU Hotplug
Added the following I/O Schedulers:
bfq
fifo
fiops
noop
row
sioplus
sio
tripndroid
vr
zen
Added the following CPU Governors:
Alucard
Barry_Allen
Impulse
InteractiveX
Lionheart
Pegasusq
SmartassV2
zzmoove 1.0 Beta7
V1.9 Changelog
clock-krait-8974: fix cpu voltage table
Revert faux Sound (I personally found some volume inconsistencies )
Fixed two critical bugs on Alucard Hotplug
Force Fast Charge v1.2 added
added usb-gadget: support USB keyboard (use this https://play.google.com/store/apps/details?id=remote.hid.keyboard.client)
Added Spectrum data cleaning script (Spectrum is still necessary to configure a profile for wakelock control)
Reverted ramdisk: limit boot speed to 2.27ghz
V2.0 Changelog
FULL Faux Sound Engine Implemented v3.6
cpufreq: boot a little slower, don't accept a target freq of 0
Decrease time to enter sleep
Increase io performance
Added Governors: Bluactive, Bioshock, Hyper and Nightmare
V2.1 Changelog
DTUX ADIUTOR APP (FIRST RELEASE, BASED ON CSK ADIUTOR APP) THANKS @CrazyGamerGR !!!)
GO HIT THANKS HERE, AS IS THE SAME CHIPSET OF HIS AWESOME KERNEL I JUST NEEDED TO ADD THE EXTRA WAKELOCK CONTROLS SO PLEASE THANK HIM CAUSE HE MADE IT EASY FOR ME AND ALL OF YOU
ASoC: wcd9xxx-mbhc: fix codec power leakage during suspend
ASoC: wcd9330: Update EAR power down sequence
Updated Alucard Hotplug
Added Msm_Sleeper and AutoSMP Hotplugs (Msm_Sleeper only visible on Kernel Adiutor MOD)
Intellithermal Minor fix (Still v1)
Reverted wakelock experiment on sig motion back to version v1.9
Added Powersuspend Lcd/Hybrid/Auto and Userspace modes (preparing for an efficient Wake Gestures )
Forced User Cpu Freq via Commit (cpu freq change will stick better now!)
Added Adreno low screen off freq suspend state (preparing for an efficient Wake Gestures )
Updated ZZmoove Gov to v1.0 b8 + Zzmoove hotplug enabled!!!!! (must turn off all hotplugs and set a zzmoove profile!)
Add GPU underclock/overclock (166 Mhz-800 MHz) (also preparing for an efficient Wake Gestures ) OVERCLOCK RESPONSABILITY IS ON YOUR OWN!!!
Minor fixes here and there
V2.2 Changelog
DTUX ADIUTOR APP CORRECTED, STILL UGLY BUT ALL WORKS LOL
DOWNGRADED MAX GPU FREQ TO 700MHZ (DONT WANT TO RISK YOUT DEVICES)
SLIGHTLY UNDERVOLTED THE GPU
UPGRADED ALUCARD GOVERNOR FROM V1 TO V2.1 WOOOO HOOOO
V2.3 Changelog
Updated powersuspend from v1.7 to v2 and added multiple hooks and code cleaned up! - it probably wasnt working properly
Minor fix on Smartass2 governor (better battery)
added experimental toggle to disable ssp sensors wakelock on screen off state (THIS IS TOP SECRET LOL)
Eliminated sig motion wakelock EXPERIMENT
V2.4 Changelog
FIXED SPEN DETECTION! (BROKEN ON V2.2 & V2.3 )
ADDED INITIAL WAKE GESTURES SUPPORT, PLEASE REPORT FUNCTIONALITY AND BATTERY RESULTS
UPDATED DTUX ADIUTOR TO SUPPORT WAKE CONTROLS
V2.5 Changelog
UPDATED DTUX ADIUTOR WITH AMOLED THEME AND RECOMMENDED SETTINGS!
ADDED ADDITIONAL HOOKS TO SUSPEND FOR BETTER SLEEP
UPGRADED SENSORHUB WAKELOCK CONTROL, FEELS BETTER NOW
V2.6 Changelog
Downgraded powersuspend from v2.0 (unofficial) to v1.7 (Official) + fixes
cpufreq: cpu-boost: Multiple optimizations
ADDED TOGGLE FOR CPU BOOST!!!!
arm: make return_address available for ARM_UNWIND
minor fix to Adreno driver
Cleanup interactiveX governor code
add UMS function to kernel (External Memory Mass Storage Mount) DOWNLOAD THE APP HERE!!!
Added Cafactive, LionFish and Yankactive governors
Added Maple I/O Scheduler. Yeeeeee Haaaaaaa!!!
Now you can control the custom AC and USB Charge levels!
Added toggle to bypass Samsung Screen On Charging limits!
minor fixes on DtuxAdiutor
Screen Mirrorring fix included on the ramdisk
enabled adb via ramdisk
enabled kernel logging for debbuging purposes (LOG located in /proc/last_kmsg <-- upload this if you get a reboot or any other type of problem that YOU understand is kernel related).
V2.6 RELOADED Changelog
REWORKED THE FAUX AUDIO MOD TO WORK AS IT SHOULD! (READ POST #1)
Downgraded Alucard Hotplug in hopes to stop reboots on it
Fixed LOG TAB!!!!
Fixed CRC and Logs Switch
Fixed Custom fast charge values!!!
ENJOY!
Downloads
DtuxKernel-710N_3D1T10N_v2.6RE-Unified_Build
Older Snapshots
DtuxKernel-710N_3D1T10N_v2.5-Unified_Build
DtuxKernel-710N_3D1T10N_v2.4-Unified_Build
DtuxKernel-710N_3D1T10N_v2.3-Unified_Build
DtuxKernel-710N_3D1T10N_v2.2-Unified_Build

DtuxKernel DR4GON a.k.a 3DDY_B022 3D1T10N​
V2.8 Changelog
Based on 710N v2.6RE
Removed Intellithermal
ADDED DTUX THERMAL ENGINE!! (Based on the excellent work by Francisco Franco!)
FULL FAUX SOUND ENGINE WORKING!!!! (READ POST #1)
Negative Gains added to Faux Sound Engine!!!
Enabled NetHunter (For Wireless Auditoring)
Added Blu_Plug Hotplug Driver
Added Wireless Fast Charging custom controls support
Upgraded Alucard governor from v2.1 to v3.0
Downgraded Alucard Hotplug in hopes to stop reboots on it
EVERYTHING SHOULD WORK ON DTUX ADIUTOR
 @bigbabo , this is for you bro
ENJOY!
Downloads
DtuxKernel-DR4G0N_3D1T10N_v2.8-Unified_Build

Reserved
Preliminar Guide for Kernel usage
Thanks to @Saber and other relevant posts i'm going to give you a quick resume of what i understood and my personal findings. i'm open to any changes on this.
Take a moment to thank Saber for the wonderful research he has done.
THREAD HERE!!!
The I/O Schedulers are ranked and categorized as it follows:
bfq (#1 MULTITASKING)
cfq (ANDROID DEFAULT) (#2 MULTITASKING)
zen (tied #1 BALANCED) (#2 GAMING)
tripndroid (tied #1 BALANCED)
row (#2 BALANCED)
deadline (#1 GAMING)
noop (#1 BATTERY)
fiops (#2 BATTERY)
sioplus (Under Evaluation)
sio (Under Evaluation)
fifo (Under Evaluation)
vr (Under Evaluation)
CONCLUSION: ZEN and TRIPNDROID are the best
Recommended I/O Read Ahead: 768kb to 1024kb Internal
: 384kb to 512kb External
The newly added CPU Schedulers are ranked and categorized as it follows:
INTERACTIVE (DEFAULT) (Overall = 13)
Performance: ***** (5)
Battery: *** (3)
Compact/stability: ***** (5)
ALUCARD (Overall = 11)
Performance: *** (3)
Battery: ***** (5)
Compact/stability: *** (3)
BARRY_ALLEN (Overall = 11)
Performance: ***** (5)
Battery: *** (3)
Compact/stability: *** (3)
IMPULSE (Overall = 13)
Performance: ***** (5)
Battery: **** (4)
Compact/stability: **** (4)
INTERACTIVEX (Overall = 13)
Performance: ***** (5)
Battery: *** (3)
Compact/stability: *** (5)
LIONHEART (Overall = 10)
Performance: **** (4)
Battery: *** (3)
Compact/stability: *** (3)
PEGASUSQ (Overall = 12)
Performance: **** (4)
Battery: **** (4)
Compact/stability: **** (4)
SMARTASSV2 (Overall = 10)
Performance: **** (4)
Battery: *** (3)
Compact/stability: *** (3)
ZZMOOVE 1.0 BETA7 (Overall = 11)
Performance: **** (4)
Battery: *** (3)
Compact/stability: **** (4)
CONCLUSION: The default Interactive, Impulse and Pegasusq are hard to beat overall, Alucard is the best on Battery without losing noticeable performance and of course Zzmoove which could become the best if fine tuned.
Recommended Hotplug for Balanced/Battery: Alucard then Intelliplug
Recommended Hotplug for Balanced/Performance: MSM Hotplug then MPDecision
Most Stable: MPDecision
Recommended GPU Drivers: msm-adreno-tz with Adreno Idler.
So there you have it!!! Post your recommendations and conclusion too!!!!

Any chance of a ZL version as well?

wineguy said:
Any chance of a ZL version as well?
Click to expand...
Click to collapse
Definitely. In all ears for what features you guys want

carlosggb said:
Definitely. In all ears for what features you guys want
Click to expand...
Click to collapse
Im not sure if its kernel related probably is on un7 rom after charging to 100% and unplugging i used to go 4-5 hpurs before it drops 1% can something like that be intergrated to this kernel "if" its the part of the kernel , battery life really is all important specially to those with stock battery

bigbabo said:
Im not sure if its kernel related probably is on un7 rom after charging to 100% and unplugging i used to go 4-5 hpurs before it drops 1% can something like that be intergrated to this kernel "if" its the part of the kernel , battery life really is all important specially to those with stock battery
Click to expand...
Click to collapse
Adding ZL to the kernel helps stock batteries that sre starting to give trouble but not too much, this is unfortunately a battery problem.
We the note 4 users need to find a battery of another device that fits, like cameras other mainstream phones, etc, to have a fresher battery with us.
Whoever finds one that fit, please share it with us:good:

Wow, Making New Kernels!! Awesome Bro! Keep up the Great Work!!

OP - Will this work with the Ultimate Note 7 ROM?
I'm running the Ultimate Note 7 ROM on a PK1 base flash.

Does_It_Matter said:
OP - Will this work with the Ultimate Note 7 ROM?
I'm running the Ultimate Note 7 ROM on a PK1 base flash.
Click to expand...
Click to collapse
Please try it, it should, download the stock kernel from the un7 thread just in case you get into trouble

carlosggb said:
Please try it, it should, download the stock kernel from the un7 thread just in case you get into trouble
Click to expand...
Click to collapse
Yeah, I re-read the first post about testing on UN7
Unfortunately it did not work.
I flashed the new kernel, wiped cache/dalvik - rebooted, waited, waited some more, took a break, came back - still nothing - sat at the Darth Vader boot screen.
Pulled the battery, re-flashed the Beastmode Zerolemon r61 kernel, wiped cache/dalvik, rebooted, and then after a few it came back up with Android is Starting / optimizing.
Looks like a no-go for this on UN7 (and running the PK1 stock pre-flashed before installing UN7)

Does_It_Matter said:
Yeah, I re-read the first post about testing on UN7
Unfortunately it did not work.
I flashed the new kernel, wiped cache/dalvik - rebooted, waited, waited some more, took a break, came back - still nothing - sat at the Darth Vader boot screen.
Pulled the battery, re-flashed the Beastmode Zerolemon r61 kernel, wiped cache/dalvik, rebooted, and then after a few it came back up with Android is Starting / optimizing.
Looks like a no-go for this on UN7 (and running the PK1 stock pre-flashed before installing UN7)
Click to expand...
Click to collapse
Thanks for reporting, i will look for the commit missing and add it to it. Stay tuned.
UPDATE! COMPILING NEW VERSION, ADDING THE FOLLOWING COMMITS
-tcp: tweak for speed
-power: quickwakeup: initial driver
-USB: android: Fix memory leak in mass_storage_function_init()
-Added HAVE_EFFICIENT_UNALIGNED_ACCESS & Added KSM

V1.1, is a snapshot kernel but stable, help me guys to improve it!

OK - Flashed the 1.1 fix and UN7 booted up fine!
Here are a couple of screenshots.
One thing of interest, when I booted up with this after flashing from Recovery, it stated SELinux is not enforcing.
Doesn't matter to me but just wondering as first post said it is SELinux Enforcing by default? (Whoops - shows Enforcing in screenshots - ignore!)
Also, my reported battery shows 3220 mah, but it is an 8000mah battery, but it also reported this for Beastmode r61 kernel as well.

carlosggb said:
Definitely. In all ears for what features you guys want
Click to expand...
Click to collapse
Voltage control, Sound option like Beastmode kernel, Hotplug options (mp decision, intelliplug...) for starters...lol

IT'S LIVE!!!
FIRST UNIFIED BUILD!!!! FOR PORTS OR STOCK KERNEL!!!
v1.2 Changelog
dm-crypt: run in a WQ_HIGHPRI workqueue
dm-verity: run in a WQ_HIGHPRI workqueue
arch: sec_bsp: silence annoying messages
binfmt_elf.c: use get_random_int() to fix entropy depleting (Jeff Liu )
android: binder: use GPF_HIGHUSER flag since binder is designed for userspace
Optimize copy_page for modern ARM platforms
arm/kernel/irq.c: remove irq affinity warnings
ASoC: msm: qdsp6v2: Add FLAC in compress offload path
kgsl_pwrscale: fix simple_ondemand GPU Governor Crash
asoc: wcd9xxx: Improve headset detection
tick: don't update idle time if cpu offline
qdsp6v2: Stereo Call Recording Support
Expose the option to user - CRC Checking (if disabled performance could increase up to 30%)
A couple of ramdisk tweaks

Booted right up UN7. Quick question...all 4 cores stay online all the time, is that supposed to be that way? Last kernel I was running the cores would go offline/online depending on "usage"

It shouldn't, clear cache of kernel Adiutor, im adding support to a better app for this kernel. Will upload later.
Please let me know if the cpu cores goes back to nornal

Related

[KERNEL][Z1C][5.0-5.1][F2FS] Advanced-Kernel v19.0[2017/03/25]

Overview:
I’m a newbie to rebuild and compile a custom kernel. I like to learn new things and share with you my modified version of 14.5.A.0.242-Kernel
It is basically a mixture between some developers kernel source like e.g.,cocafe,DooMLoRD,alnikki25k.
I'm not a developer so I cannot answer your question about any bugs for this kernel immediately. I will try to ask other developer how to
resolve bugs. Experts, please correct me if I am wrong, this stuff is still new to me also.
2015/07/25
I started to port AndroPlusKernel most of feature for z1 compact
Please to visit the AndroPlusKernel's Original Thread in the Z2 forum, and make sure you read all the instructions there
http://forum.xda-developers.com/xperia-z2/development/kernel-andropluskernel-v10-t2974841
2015/07/31
Click here to see how to control vibrator & WCD9320 Taiko Audio Codec
http://forum.xda-developers.com/showpost.php?p=62125592&postcount=24
Requirements:
HTML:
Xperia Z1 Compact
Unlocked Bootloader
DO NOT use this kernel with CM or CM based ROM.
This kernel is only for stock or stock based ROM.
v1~v4 for 14.5.A.0.242
v5~v12 for 14.5.A.0.270/14.5.A.0.283
v13~v15 for 14.6.A.0.368
v16~ for 14.6.A.1.216
v17~ for 14.6.A.1.236
Installation instructions:
HTML:
Backup your system
Download the ZIP file below, and flash it in recovery
Download Links:
http://goo.gl/qCiTOA
If the kernel crashed (freezed and rebooted), please fetch last_kmsg file after the crash reboot and post in the thread.
Code:
su -c cat /proc/last_kmsg > /sdcard/last_kmsg
Source Code:
https://github.com/charles1018/kernel_sony_msm8974/tree/lollipop_mr3-dev
Credits:
Code:
sony: (Open source archive for 14.5.A.0.242/270/283)
cocafe: (helping me learn all of build my own kernel from source)
[NUT]: (for all recoveries & 14.5.A.0.242 kernel ramdisk & NDRUtils)
dosomder: (Android kernel module to bypass SELinux at boot)
DooMLoRD & alnikki25k & Faux123 & AndroPlus (for theirs awesome job and great sources to rhine devices)
OmarEinea: (for his great script of build tools letting me easy way to compile kernel)
And for everyone who had a hand in making this kernel better
ChangeLog :
2015-04-29 v1.0 :
init.d
Governor:wheatley,SmartAssv2,pegasusq,LionHeart,LagFree,intellidemand,intelliactive,preservative,blu_active
I/O Scheduler:SIO,VR,ZEN,SIO-Plus,FIOPS
support for kernel mode NEON
fastcharge
support for exfat
2015-05-08 v2.0 :
kexec-hardboot: still not fully work as Primary ROM(MultiROM v30x), i am waiting Garcia98's or other developer update MultiROM to v32
enable additional TCP congestion algorithms(westwood,bic,htcp,vegas,veno,yeah)
Simple GPU Algorithm
change wireless expire time about each entry of scan results(3 * HZ)
net: rps: fix cpu unplug
Sync SSR with disconnect/reconnect
overall_stats
With Kernel Adiutor application you can more tweak and monitor features
2015-05-18 v4.0 :
fix loading stops at the boot screen
multirom TWRP 2.8.6
upgraded LZO (de)compression drivers
added per-core overall stats - now you can see the time spent by each core in a particular frequency state!
added LZ4 compression/decompression support
generic voltage control
added intelli-thermal_v2 kernel thermal driver with optimizations for 8974 SOC
intelli-plug
powersuspend PM kernel driver
kernel samepage merging
2015-05-24 v5.0 :
merge 14.5.A.0.270 kernel sources
Updated ramdisk to 14.5.A.0.270
Fixed simple_ondemand GPU governor crashing
CPU OverClock upto 2.42 GHz
turbo boost on MSM architectures-allows overclocking of 2 cores to higher clock rate than stock maximum
Added some optimizations for cpufreq (less spam log, delete deprecated code)
CPU Undervolting
2015-07-25 v6.0 :
port AndroPlusKernel most of feature for z1 compact
merge 14.5.A.0.283 kernel sources
Built with UBER toolchains 4.9.4
Updated TWRP to 2.8.7.0
Added new CPU governor: alcurd,zzmove, ElementalX, nightmare, darkness, smartmax, HYPER, ondemandplus, intelliminmax, smartassH3, adaptive, intellidemand
Added new I/O: bfq, sioplus, tripndroid
Added optimization I/O, power_efficient workqueue, GPU
Updated Zen IO scheduler and set as default
Added new GPU governor: conservative
Added Adreno idler (addon for adreno-tz)
Reduced logging spam (qmi_qmux)
Updated KCAL
Added some optimization from CM/unified kernel
Removed blu_active,Lagfree,wheatley,lionheart
Added alcurd hotplug
Added sysfs interface to Enable / Disable Android Logger
Updated patch for memory
Added patch for encryption
Added power_efficient workqueues
Added dynamic fsync
Added Dynamic management of dirty page writeback
Integrated frandom in kernel and support frandom module
Added fast_hotplug by pec0ra 2
Supports notifier for start&end of LCD power on&off
2015-07-31 v7.0 :
update some codes from codeaurora
Added WCD9320 Taiko Audio Codec Control v3 from cocafe
Increase default speaker volume
qpnp-vibrator intensity control
enabling two-way call recording directly from the phone line
Click here to see how to control vibrator & WCD9320 Taiko Audio Codec
http://forum.xda-developers.com/showpost.php?p=62125592&postcount=24
2015-08-15 v8.0 :
kernel with kexec-hardboot(thanks to venkat kamesh's ramdisk & OmarEinea's kexec-hardboot patch)
fix Darkness governor random reboots when heavy memory use(we need more tests)
fix KCAL Color Control is not working
The vibration strength can be controlled by Kernel Adiutor application
fix lowmemorykiller being overly aggressive
increase the total number of GFP flags
fix waking up sync thread recursively for same CPU causes deadlock
enable ZRAM features(from Linaro Stable Kernel 3.10)
zram: add lz4 algorithm backend
CPU hotplug: Provide lockless versions of callback registration functions
powersuspend: cumulative update to version 1.6
intelli_plug:update to version 4.0
msm: kgsl: Make global memory statistics atomic
Click my github commits to view changeLog details
2015-08-21 v9.0 :
Added toggles for wlan wakelocks (for advanced user only, path for sysfs is here Y=non block, N=block)
Changed wakelock blocker sysfs name to one in Kernel Adiutor
Added interactive_proconservative Governor
Added mac80211 injection patch and HID patch for keyboard support
Updated zzmove to 1.0-beta8
Added CPU hotplug Zen Decision
2015-08-28 v10.0 :
back to the regular default speaker volume
added mako hotplug
added new GPU governor: cache-hwmon
msm: memutils: memcpy, memmove, copy_page optimization
scm-mpu: Add additional memory protection options
Click here to see how to add support for a scm call to protect a contiguous physical address range.
http://forum.xda-developers.com/showpost.php?p=62550061&postcount=49
2015-09-08 v11.0 :
fix sometimes have freezed or crashed problems
updated kernel to 3.4.1
updated UBER toolchains to 4.9.4 20150901
Enhance power efficiency: Series of patches from NVIDIA
fix last_kmsg not working
changed default dirty_writeback_active_centisecs to 3000
changed intelli_thermal poll default value
updated kcal and added some patches
removed scm-mpu(unstable)
If the kernel crashed (freezed and rebooted), please fetch last_kmsg file after the crash reboot and post in the thread.
Code:
su -c cat /proc/last_kmsg > /sdcard/last_kmsg
2015-09-14 v12.0 :
Updated kernel to 3.4.10
Disabled dynamic fsync by default
Patched random reboot caused by dynamic fsync panic
V12 is the final version of the 14.5.A.0.270/283
The next version is the 14.6.A.0.368
2015-09-26 v13.0 :
v13 supports 5.1.1, most features from my 5.0.2 version.
Main Features :
Merge 14.6.A.0.368 kernel sources
Updated ramdisk to 14.6.A.0.368
Updated kernel to 3.4.10
TWRP 2.8.7 from xNUTx
Built with UBER toolchains 4.9.4 20150920
busybox v1.23.2
init.d support
port AndroPlusKernel most of feature for z1/z1 compact
CPU OverClock upto 2.42 GHz
Added some optimizations for cpufreq (less spam log, delete deprecated code)
Added WCD9320 Taiko Audio Codec Control v3 from cocafe
Add a backlight brightness hack to allow a lower minimum backlight brightness in v13(thank to Tommy-Geenexus)
Added new CPU governor:alcurd,zzmove,ElementalX,nightmare,darkness,smartmax,HYPER,ondemandplus,
intelliminmax,smartassH3,adaptive,intellidemand,interactive_proconservative,SmartAssv2,pegasusq,
intellidemand,intelliactive,preservative
Added new I/O Scheduler:bfq,tripndroid,sio,vr,zen,sio-plus,fiops,test-iosched
Updated Zen IO scheduler and set as default
Simple GPU Algorithm
Added new GPU governor: conservative,cache-hwmon
Added optimization I/O, power_efficient workqueue, GPU
Added Adreno idler (addon for adreno-tz)
KCAL – Advanced Color Control for Qualcomm Devices
Added CPU hotplug:intelli,Alucard,Zen Decision,mako hotplug
Added sysfs interface to Enable / Disable Android Logger
Updated patch for memory
Added patch for encryption
Added power_efficient workqueues
Added dynamic fsync
Supports notifier for start&end of LCD power on&off
qpnp-vibrator intensity control
enabling two-way call recording directly from the phone line
Added toggles for wlan wakelocks (for advanced user only, path for sysfs is here Y=non block, N=block)
Added mac80211 injection patch and HID patch for keyboard support
msm: memutils: memcpy, memmove, copy_page optimization
Enhance power efficiency: Series of patches from NVIDIA
last_kmsg
support for kernel mode NEON
fastcharge
enable additional TCP congestion algorithms:westwood,bic,htcp,vegas,veno,yeah
upgraded LZO (de)compression drivers
added per-core overall stats - now you can see the time spent by each core in a particular frequency state!
added LZ4 compression/decompression support
generic voltage control
added intelli-thermal_v2 kernel thermal driver with optimizations for 8974 SOC
powersuspend PM kernel driver
2015-10-08 v14.0 :
Updated kernel to 3.4.14
Support F2FS filesystem(from linux kernel 4.2)
Updated ZRAM (from Linaro Stable Kernel 3.10)
ZRAM: enable lz4 algorithm backend
Built with UBER toolchains 4.9.4 20151001
Add custom logo
leds-qpnp:Blink interpolation; fix qpnp-pwm driver
notifier:it's going slowly on and slowly off
Re-updated bfq I/O gov to v7r8
tcp_output: set initial TCP window size to 64K (speed improvement)
PM: Enable asynchronous noirq resume threads to save the resuming time
tcp_cubic: better follow cubic curve after idle period
Click here to see how to Change File System.
http://forum.xda-developers.com/showpost.php?p=63198366&postcount=111
2015-10-17 v15.0 :
fix the random reboot issues
f2fs: getting the latest code from upstream
f2fs: system partition support
zram: fix merge errors & bring up to date with Cl3Kener's branch
zram: set lz4 algorithm as default
lz4: update some codes from upstream
zsmalloc: fix merge errors
removed intelli thermal
thermal: add 3-phase msm_thermal(thanks to showp1984)
memory.c: fix show_mem_removable() to handle missing sections
2015-11-16 v16.0 :
Merge 14.6.A.1.216 kernel sources
Updated ramdisk to 14.6.A.1.216
updated kernel to 3.4.20
updated UBER toolchains to 4.9.4 20151101
f2fs: getting the latest code from upstream
enable higher eMMC speed modes(thanks to Tommy-Geenexus)
2016-02-29 v17.0 :
Merge 14.6.A.1.236 kernel sources
Updated ramdisk to 14.6.A.1.236
Updated UBER toolchains to 4.9.4 20160201
Updated zzmoove governor
f2fs: catch up to linux kernel 4.5-rc1 & backport support(removed system partition support, only data & cache partition support)
binfmt_elf.c: use get_random_int() to fix entropy depleting
leds: leds-qpnp: Add API for RGB led
fix last_kmsg that isn't working
2016-04-03 v18.0 :
Updated kernel to 3.4.25
Updated TWRP to 3.0.1
build with UBER toolchains 5.3 20160401
f2fs: catch up to linux kernel 4.5 & backport support
fixes some minor bugs
2016-04-10 v18.1 :
Updated TWRP to 3.0.2
Updated busybox to 1.24.2
2017-03-25 v19.0 :
updated twrp to 3.1.0
build with gcc-linaro toolchains 5.4.1-2017.01(stable) and gcc-linaro toolchains 6.3.1-2017.02(testing)
update busybox to 1.26.2
update some codes from codeaurora
minor bug fixes and improvements f2fs
If the kernel crashed (freezed and rebooted), please fetch last_kmsg file after the crash reboot and post in the thread.
Code:
su -c cat /proc/last_kmsg > /sdcard/last_kmsg
nice start
Seems to be working fine so far.... good job :good:
I'd like to suggest some features :
Intellimm
Intelliplug
more tcp congestions algorithms (e.g. westwood)
gpu governors
etc etc
i flashed it but it wont start after boot
I installed a based rom [Advanced]RockZ1l_v1.1
repelsteel82 said:
i flashed it but it wont start after boot
I installed a based rom [Advanced]RockZ1l_v1.1
Click to expand...
Click to collapse
Yup, doesnt boot after flashing kernel
I installed it on stock sony rom, not-deodexed
BUT after i reinstalled xposed (instruction for odex), and wipe cahce, phone is booted...infinitely loaded and can not run (
Yep confirmed doesnt work on RockZ1l_v1.1 also !
No boot and no acces to recovery (blocked before)
Had to flash boot.img via fastboot and restored my backup...
i will try to see what i can do, but i need time to learn first
Cresqo said:
Seems to be working fine so far.... good job :good:
I'd like to suggest some features :
Intellimm
Intelliplug
more tcp congestions algorithms (e.g. westwood)
gpu governors
etc etc
Click to expand...
Click to collapse
lots of 4.x kernel source codes do not work 5.0.2
i will try if i can when i have free time
Doesn't work on Stock Sony Lollipop firmware 14.5.A.0.242.
ssdog27 said:
Doesn't work on Stock Sony Lollipop firmware 14.5.A.0.242.
Click to expand...
Click to collapse
Do you have to unlock bootloader?
I used PRFCreator to make D5503-pre-rooted-firmware-14.5.A.0.242 zip. For me this kernel to be working fine so far.
try to:
- fastboot flash boot boot.img (from kernel zip)
- fastboot reboot
- enter recovery, and flash kernel zip
- flash SuperSU installable ZIP (option)
to be included in next changeLog:
kexec-hardboot: still not fully work as Primary ROM(MultiROM v30x), i am waiting Garcia98's or other developer update MultiROM to v32
enable additional TCP congestion algorithms(westwood,bic,htcp,vegas,veno,yeah)
Simple GPU Algorithm
change wireless expire time about each entry of scan results(3 * HZ)
net: rps: fix cpu unplug
Sync SSR with disconnect/reconnect
overall_stats
With Kernel Adiutor application you can more tweak and monitor features
I have just one simple question really, F2FS?
sharonliu said:
Do you have to unlock bootloader?
I used PRFCreator to make D5503-pre-rooted-firmware-14.5.A.0.242 zip. For me this kernel to be working fine so far.
try to:
- fastboot flash boot boot.img (from kernel zip)
- fastboot reboot
- enter recovery, and flash kernel zip
- flash SuperSU installable ZIP (option)
Click to expand...
Click to collapse
I dont understand.. I did it all, but kernel doesnt work..(
Stock LP, RUS, Odex, All the loading stops at the boot screen
I have just one simple question really, F2FS?
Click to expand...
Click to collapse
i will try to see what i can do
John.D.. said:
I dont understand.. I did it all, but kernel doesnt work..(
Stock LP, RUS, Odex, All the loading stops at the boot screen
Click to expand...
Click to collapse
try v4.0, it should work now
sharonliu said:
try v4.0, it should work now
Click to expand...
Click to collapse
Wow, all earned in the fourth version
If there are any bugs, I will certainly write about it
If you changed blu_active governor, or simple_ondemand gpu governor, after some time phone rebooted
sharonliu said:
i will try to see what i can do
Click to expand...
Click to collapse
John.D.. said:
Wow, all earned in the fourth version
If there are any bugs, I will certainly write about it
If you changed blu_active governor, or simple_ondemand gpu governor, after some time phone rebooted
Click to expand...
Click to collapse
I will try to fix it in next releases.
I started to port AndroPlusKernel most of feature for z1 compact
v6.0 will release this weekend
sharonliu said:
I started to port AndroPlusKernel most of feature for z1 compact
v6.0 will release this weekend
Click to expand...
Click to collapse
OMG Thank you!)
to be included in v6.0 changeLog:
I started to port AndroPlusKernel most of feature for z1 compact
Please to visit the AndroPlusKernel's Original Thread in the Z2 forum, and make sure you read all the instructions there
http://forum.xda-developers.com/xperia-z2/development/kernel-andropluskernel-v10-t2974841
changeLog:
port AndroPlusKernel most of feature for z1 compact
merge 14.5.A.0.283 kernel sources
Built with UBER toolchains 4.9.4
Updated TWRP to 2.8.7.0
Added new CPU governor: alcurd,zzmove, ElementalX, nightmare, darkness, smartmax, HYPER, ondemandplus, intelliminmax, smartassH3, adaptive, intellidemand
Added new I/O: bfq, sioplus, tripndroid
Added optimization I/O, power_efficient workqueue, GPU
Updated Zen IO scheduler and set as default
Added new GPU governor: conservative
Added Adreno idler (addon for adreno-tz)
Reduced logging spam (qmi_qmux)
Updated KCAL
Added some optimization from CM/unified kernel
Removed blu_active,Lagfree,wheatley,lionheart
Added alcurd hotplug
Added sysfs interface to Enable / Disable Android Logger
Updated patch for memory
Added patch for encryption
Added power_efficient workqueues
Added dynamic fsync
Added Dynamic management of dirty page writeback
Integrated frandom in kernel and support frandom module
Added fast_hotplug by pec0ra 2
Supports notifier for start&end of LCD power on&off

KERNEL | Nougat CM / AOSP | 7th Jan | HalogenKernel R31 | UBER | 3.4.42

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
EXPERIENCE HALOGEN | EXPERIENCE AWESOMENESS​
For Changelogs please see POST #2.
For FAQ please see POST #3.
DISCLAIMER :-​
Code:
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this KERNEL
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will simply laugh at you.
*/
NOTE :-​This kernel is ONLY meant for AOSP/CM ROMs.
This IS NOT MEANT for STOCK ROMs.
Upto R14 Kernel supports Lollipop.
From R15 onwards Kernel supports ONLY Marshmallow.
From R18 onwards Kernel supports Doze + Marshmallow.
From R30 onwards Kernel supports ONLY Nougat.
WHAT IS THIS KERNEL ?​This kernel is built especially for these 3 things :- 1. Audio, 2. Performance, 3. Battery Life.
The main aim of halogen is to bring performance without compromising stability & battery. And that is what I intend to do. Go ahead and try this kernel, and it should make your device much better.
FEATURES :-​(features of ONLY the latest version is mentioned)​
Based on Linux Kernel 3.4.42
Updated with the latest CM14.1 sources
Built with UBER Toolchain GCC-4.9
Any Kernel 2 script used
Kexc Hardboot patched
Built with optimization flags for enhanced performance
GPU OC to 533 MHz & UC to 100 MHz
Disabled PowerHal log spam (thanks to @attack11)
Faux Sound Control v3.5
Headset in high performance profile
Slimbus overclocking for superior audio quality
Enabled CPU boost
Add Frandom
Power effecient work queues enabled by default
Reclaim RAM from loggers
Disable gentle_fair_sleepers for increased I/O
Enable advanced unaligned_access
Enable arch_power
Use power efficient workqueues for bam_dmux
Optimize square root algorithm
intelliactive, intellidemand, zzmoove cpu governors
intelliplug v4.0 cpu hotplug
enabled advanced tcp congestions
Ability to use your device as USB Keyboard / Mouse
Stereo call record support
psx2usb
KCAL v2 by Savoca
Dynamic FSync
Added optimized square root algorithm
Added optimized ARM_RWSEM algorithm
NEON kernel mode
Ex-FAT support
LONG TERM SUPPORT :-​
This kernel will be supported for a long time with updates directly streamed from CM kernel sources i . e . as long as CM keeps publishing updates to its base, this kernel will also be updated.
DOWNLOADS :-​(do not mirror my links)​[ Latest Version ]​[ Older Versions ]​
INSTALLATION INSTRUCTIONS :-​
Reboot into recovery.
Make a nandroid BackUp.
Select Install zip from SD Card.
Select the Downloaded zip.
Then Reboot to System.
Leave your phone untouched for 2-3 minutes after first reboot to allow the kernel to spread it's wings.
RECOMMENDED APPS FOR KERNEL TWEAKING :-​
Kernel Adiutor
Faux123 Kernel Enhancement Pro
I do not support any other apps.
CREDITS:-​~~Google
~~Motorola for kernel sources
~~Flashhhh
~~hurtsky
~~Luk & Luca -for various fixes
~~Thecrazyskull, DC07 -for cherry-picks
~~Faux123
~~Savoca
~~YoshiShaPow
~~attack11
~~many more.......
Please don't start a war here if I forgot to mention someone. PM me and I will add him / her.
XDA:DevDB Information
HalogenKernel, Kernel for the Moto G 2014
Contributors
zakee94
Source Code: https://github.com/zakee94/halogen_kernel/
Kernel Special Features: Faux sound, Kexec, KCAL, Intelliplug
Version Information
Status: Stable
Current Stable Version: R31
Stable Release Date: 2017-01-07
Created 2015-06-11
Last Updated 2017-01-07
Changelog
CHANGELOG​(simplified changelog, for full changelog please look at my GitHub commits.)​​​
R31 --> 07/01/2017​
Merged CM Updates
For older changelogs :-​
R30 --> 30/10/2016​
First Nougat release
For changes please see post #670
R29 --> 24/07/2016​
Merged CM Updates
R28 --> 08/06/2016​
Merged CM Updates
AROMA installer
Added tripndroid IO Scheduler
CPU optimizations
ARM tweaks and updates
R27 --> 12/05/2016​
Merged CM Updates
R26 --> 10/04/2016​
Merged CM Updates
R25 --> 16/03/2016​
Merged CM Updates
R24 --> 18/02/2016​
Reverted the following :-
CPU OC/UC - 1593/96 MHz
CPU UV
LMK tweaks + Agressive LMK mode
Following CPU govs --> lionheart, dancedance, bioshock, alucard
Following Hotplugs --> Mako, Auto-smp
Added the following -->
Merged CM Updates
Built with UBER Toolchain GCC-6.0
R23 --> 19/01/2016​
Merged CM Updates
Overhauled boot script
R22 --> 11/01/2016​
Rebased kernel on android 6.0.1_r10
Rebuilt kernel from scratch
Merged a lot of CM updates
Added futex updates
Cpu UV added (hardcoded values)
Added 2 new hotplugs :- Auto-smp & Mako
Removed Alucard Hotplug
Overhauled updater script
R21 --> 30/12/2015​
Add CPU OC/UC - 1593/96 MHz
Adapt cpu_govs for CPU OC/UC
Merged CM Updates
R20 --> 29/12/2015​
Merged CM Updates
R19 --> 23/12/2015​
Added 3 new cpu_govs: Lionheart, DanceDance & Bioshock
Enabled CPU boost
Added optimized ARM RWSEM algorithm
ARM updates merged directly from CAF (See Git)
Mutex updates (See Git)
LMK updates (See Git)
Add agressive LMK
Build using -O3 & -graphite flags for enhanced performance
Cortex-A7 optimizations in Makefile
block: Disable add_random
Implemented LoUIS cache
Made bioshock as default gov. in boot script
Many other optimizations (smp, rcu, vfs, vfp, etc... See Git)
R18 --> 20/12/2015​
Merged latest CM Updates (support for Doze)
R17 --> 17/12/2015​
Merged latest CM Updates
Made interactive as default gov. in boot script
R16 --> 03/12/2015​
Fixed FM Radio not working
Fixed Section Mismatches
Enabled pipe flag
R15 --> 27/11/2015​
Build Kernel from scratch based on cm-13.0 kernel base
Compiled using Hyper-Linaro 5.1 Toolchain
Kernel version brought down to 3.4.42 temporarily
Revert SE Linux force permissive
Revert use Modulo sched & strict alias flags
Enabled Simple GPU Algorithm
R14 --> 11/10/2015​
Merged latest updates
Updated kernel to v3.4.109
Updated bfq to v7r8
R13 --> 6/09/2015​
Brought back the following :-
SE Linux tweaks
msm:kgsl tweaks
Enable unaligned_access
DOLBY dap dependency fix
Removed the following :-
Simple GPU Algorithm
New features :-
Update with latest CM sources
Implement Adreno Idler
R12 --> 26/08/2015​
Removed the following :-
CPU UC to 96MHz
SE Linux tweaks
USB Fast Charge v2
Added optimized ARM_RWSEM algorithm
msm:kgsl & wcnss tweaks
Optimize square root algorithm
Enable unaligned_access
DOLBY dap dependency fix
Ultrasound & ASoC : qdspv2 tweaks
Changed the following :-
Update 'zzmoove' cpu_gov to v1_beta-8
Set 'zzmoove' as the default CPU Gov
R11 --> 22/08/2015​
Merged latest CM updates
R10 --> 13/08/2015​
Once again rebuilt the whole kernel !
Updated with latest CM sources
Possibly fix interactive deep-sleep issues
R9 --> 25/07/2015​
Updated with the latest CM sources
Rebased and built whole kernel from SCRATCH
Removed useless tweaks
Updated cpu_hotplugs & cpu_govs
Optimized zzmoove profiles again
R8 --> 11/07/2015​
Updated with the latest CM sources
Reverted RAM OC to 566MHz
Reverted some power hogging tweaks
Updated hotplugs :- intelliplug, msm-hotplug (neobuddy89 versions)
Added Bricked Hotplug
Optimized zzmoove profiles
R7 --> 30/06/2015​
Disabled msm_limiter
zzmoove : add back zzopt & zzmod, zzopt unstable for now.
Introduce kernel cooker
Bug fixes
R6 --> 24/06/2015​
Updated kernel version to 3.4.108
Enabled kernel_config_neon
zzmoove : remove profiles 'zzopt' & 'zzmod'
Add strict_aliasing & modulo_sched flags
Add msm:kgsl & wcnss tweaks (see GitHub)
Add MSM Frequency Limiter driver v3.6
Add Ultrasound & ASoC : qdspv2 tweaks (see GitHub)
RAM OC to 566 MHz
And many more I can't fit in here, so please checkout GitHub.
R5 --> 20/06/2015​
Added USB Fast Charge v2
Enabled NEON mode
Added Ex-FAT support
SE Linux tweaks (see GitHub)
zzmoove : set default profile to 2
tune up some governors
Enable intelliplug by default
Random / entropy tweaks
R4 --> 17/06/2015​
CPU UC to 96 MHz
GPU OC to 533 MHz & UC to 100 MHz
Disabled PowerHal log spam
Reclaim RAM from loggers, increasing default ram to 883 Mb
Disable gentle_fair_sleepers for increased I/O
Enable unaligned_access
Enable arch_power
Use power efficient workqueues for bam_dmux
Optimize square root algorithm
Many tick, clockevents & timer tweaks (see GitHub)
Lower swappiness from 60 --> 45
Added optimized ARM_RWSEM algorithm
Force SE Linux permissive
Added state notifier driver
Enabled quick wakeup
NOATIME and NODIRATIME as default
R3 --> 14/06/2015​
CPU Govs removed :- wheatley, nightmare, HYPER, darkness, pegasusq, ondemandplus
Added simple GPU Algorithm
3 new CPU Hotplugs added :- intelliplug, alucard, msm-hotplug.
Power effecient Wqs enabled by default
Reclaim RAM from loggers
devfreq:Add conservative governor
devfreq tweaks (see GitHub)
Dynamic FSync added
Intellithermal v2 added
R2 --> 13/06/2015​
New CPU Govs added :-
intelimm, intellidemand, intelliactive, smartmax, pegasusq, alucard, impulse, ondemandplus, wheatley, yankactive, nightmare, HYPER, darkness, zzmoove.
New TCP Congestions enabled :-
westwood, cubic, reno, hstcp, hybla, vegas, veno, scalable, lp, yeah, illinois, hctp, advanced, highspeed.
New I/O Schedulers added :-
fiops, vr, zen, sio, bfq, cfq, deadline, noop, tripndroid, fifo
Added KCAL v2 by Savoca
Optimized slub memory allocation
Increase torch power by 20 mA
Added stereo call recording support
psx2usb
Added NVIDEA Power effecient patches
Changed CFlags = Ofast
Optimize sfck compression
Many sched tweaks and optimizations (see GitHub)
R1 --> 12/06/2015​
Initial Release
FAQ
FAQ​
This kernel does not have X, Y or Z feature. Please add it !
No such requests shall be entertained.
For this device the closer to stock we are, the better it is. Hence no need for "fancy" useless features/tweaks. The main aim of halogen is to bring performance without compromising stability & battery. And that is what I intend to do.
AND if you really want this or that feature which is not there in halogen, please feel free to compile your own builds.
Oh no ! I encountered a BUG !
Upload the file named last_kmsg that located in /proc/last_kmsg. It contains kernel logs. Clearly state the bug / what you experienced along with your current kernel settings. Bug reports without logs will be ignored.
Recommneded settings ?
Halogen is pre-configured for best. For custom settings please google, do some research and you are encouraged to post your own settings in this forum. You can start here.
My battery drained overnight !! Look at these screenshots...
Not a halogen fault. The kernel does not “drain” battery. On Android devices, the kernel provides a mechanism for keeping the phone awake, called a wakelock. Processes running on the device (e.g. apps and services) can ask the kernel for a wakelock, and the kernel will oblige. So yes, the kernel is technically keeping the phone awake, but only because an app or service has asked it to. It is these apps and services that are misbehaving and causing drain, not the kernel. Doze mode, introduced in Android Marshmallow, is designed to limit the time that apps and services can wake up the device.
All thanks to @flar2 for his excellent post.
Wow,
What is better setting for this Kernel ?
legendsbr said:
Wow,
What is better setting for this Kernel ?
Click to expand...
Click to collapse
There is not much to set in this kernel at present. Leave it as it is. Tweak sound to your hearts desire !
What governors & I/O schedulers are already included? Just the "basic" AOSP kernel ones for now?
Yes...
But updates will come soon !!!
You simply did it! Thank you so much!
There is a long way to go but I hope you can add more stuff, not forgetting the DoupleTap to wake up the screen
Testing
NEW BUILD IS UP !!!
[ 12 June, 2015. Version --> R2 ]
New features added :-
** 14 new cpu govs added !!!(check changelog for their names) **
** New I/O schedulers added (added tripndroid) **
** New TCP Congestions added **
** Stereo call recording **
and MUCH, much more......................CHECK CHANGELOG.
Did you know ? :-
With the release of R2, Halogen Kernel becomes the ONLY kernel with maximum number of cpu govs !!! (among all kernels for stock/cm of titan/falcon).
This kernel has around 20 cpu govs !!!
NOTE :-
Try reading this guide by @gsstudios before selecting out among the many CPU Govs.
E _N_J_O_Y !!!
This kernel really works for battery life... Smooth and fast and also improves battery life. Appreciate you're work!
giannis_mathiou said:
This kernel really works for battery life... Smooth and fast and also improves battery life. Appreciate you're work!
Click to expand...
Click to collapse
Thanks for review...
More updates will come soon !
This kernel mainly focuses on audio and battery life.
zakee94 said:
Thanks for review...
More updates will come soon !
This kernel mainly focuses on audio and battery life.
Click to expand...
Click to collapse
Thank you so much for the updates!
Can you make a post with the recommended settings for battery life and the best performance possible?
TiGuy82 said:
Thank you so much for the updates!
Can you make a post with the recommended settings for battery life and the best performance possible?
Click to expand...
Click to collapse
Of course I will....
zakee94 said:
Of course I will....
Click to expand...
Click to collapse
there is something terribly wrong... at boot maximum cpu frequency is set to 384MHz, this give terribly long boot time, stuttery bootanimation and longer time for apps optimization after a rom update
EDIT: temporarily solved with an init.d script, here it is if someone has the same problem https://www.dropbox.com/s/qmcdlljjj0klzaf/cpufreq.zip?dl=0
ktulu84 said:
there is something terribly wrong... at boot maximum cpu frequency is set to 384MHz, this give terribly long boot time, stuttery bootanimation and longer time for apps optimization after a rom update
Click to expand...
Click to collapse
Even I had been facing the bug...BUT I fixed it out and the BUG IS NO MORE !!!
I will be soon releasing the update ! The problem was with some improperly adapted CPU governors which limited the max cpu freq to 384 at boot. I have removed them and now the cpu clocks @ 11190 during boot.
I appreciate your work with the script. Its good, and I hope you will keep supporting my kernel in the future.
 @ktulu84
Available RAM is less than stock CM12.1 kernel - ~900 MB vs ~860 MB. Pretty sure you're already aware of it, but thought I'd highlight it anyway just in case.
Sent from my Moto G 2014 using Tapatalk
Is the kernel stable? i'm using cm12.1 for daily use and some of the kernels i've tried always gave me the problem where the logcat is spammed with something liek "failed to acquire lock" everytime i touched the screen, can someone report?
xeraphael said:
Available RAM is less than stock CM12.1 kernel - ~900 MB vs ~860 MB. Pretty sure you're already aware of it, but thought I'd highlight it anyway just in case.
Sent from my Moto G 2014 using Tapatalk
Click to expand...
Click to collapse
Yes I m aware... It will be improved in future versions.
However it does not matter much, Linux handles memory in a different way and will release appropriate ram when required. What really matters is whether you are getting a smooth experience or not.
xeraphael said:
Available RAM is less than stock CM12.1 kernel - ~900 MB vs ~860 MB. Pretty sure you're already aware of it, but thought I'd highlight it anyway just in case.
Click to expand...
Click to collapse
Yes, there are changes in that. As the OP said, it depends on the kernel. Since our device has 1024MB RAM, the remaining RAM gets allocated to Graphics, audio processing, etc. If you are familiar with it, its very similar to Intel & AMD's allocation of RAM to Graphic memory in computers.

[KERNEL][Z1] [5.0-5.1][F2FS]Advanced-Kernel v19.0[03/26/2017]

Overview:
I’m a newbie to rebuild and compile a custom kernel. I like to learn new things and share with you my modified version of 14.5.A.0.242-Kernel
It is basically a mixture between some developers kernel source like e.g.,cocafe,DooMLoRD,alnikki25k.
I'm not a developer so I cannot answer your question about any bugs for this kernel immediately. I will try to ask other developer how to
resolve bugs. Experts, please correct me if I am wrong, this stuff is still new to me also.
2015/07/25
I started to port AndroPlusKernel most of feature for z1 compact
Please to visit the AndroPlusKernel's Original Thread in the Z2 forum, and make sure you read all the instructions there
http://forum.xda-developers.com/xperia-z2/development/kernel-andropluskernel-v10-t2974841
2015/07/31
Click here to see how to control vibrator & WCD9320 Taiko Audio Codec
http://forum.xda-developers.com/showpost.php?p=62125592&postcount=24
Requirements:
HTML:
Xperia Z1 Compact
Unlocked Bootloader
DO NOT use this kernel with CM or CM based ROM.
This kernel is only for stock or stock based ROM.
v1~v4 for 14.5.A.0.242
v5~v12 for 14.5.A.0.270/14.5.A.0.283
v13~v15 for 14.6.A.0.368
v16~ for 14.6.A.1.216
v17~ for 14.6.A.1.236
Installation instructions:
HTML:
Backup your system
Download the ZIP file below, and flash it in recovery
Download Links:
http://goo.gl/qCiTOA
If the kernel crashed (freezed and rebooted), please fetch last_kmsg file after the crash reboot and post in the thread.
Code:
su -c cat /proc/last_kmsg > /sdcard/last_kmsg
Source Code:
https://github.com/charles1018/kernel_sony_msm8974/tree/lollipop_mr3-dev
Credits:
Code:
sony: (Open source archive for 14.5.A.0.242/270/283)
cocafe: (helping me learn all of build my own kernel from source)
[NUT]: (for all recoveries & 14.5.A.0.242 kernel ramdisk & NDRUtils)
dosomder: (Android kernel module to bypass SELinux at boot)
DooMLoRD & alnikki25k & Faux123 & AndroPlus (for theirs awesome job and great sources to rhine devices)
OmarEinea: (for his great script of build tools letting me easy way to compile kernel)
And for everyone who had a hand in making this kernel better
ChangeLog :
2015-04-29 v1.0 :
init.d
Governor:wheatley,SmartAssv2,pegasusq,LionHeart,LagFree,intellidemand,intelliactive,preservative,blu_active
I/O Scheduler:SIO,VR,ZEN,SIO-Plus,FIOPS
support for kernel mode NEON
fastcharge
support for exfat
2015-05-08 v2.0 :
kexec-hardboot: still not fully work as Primary ROM(MultiROM v30x), i am waiting Garcia98's or other developer update MultiROM to v32
enable additional TCP congestion algorithms(westwood,bic,htcp,vegas,veno,yeah)
Simple GPU Algorithm
change wireless expire time about each entry of scan results(3 * HZ)
net: rps: fix cpu unplug
Sync SSR with disconnect/reconnect
overall_stats
With Kernel Adiutor application you can more tweak and monitor features
2015-05-18 v4.0 :
fix loading stops at the boot screen
multirom TWRP 2.8.6
upgraded LZO (de)compression drivers
added per-core overall stats - now you can see the time spent by each core in a particular frequency state!
added LZ4 compression/decompression support
generic voltage control
added intelli-thermal_v2 kernel thermal driver with optimizations for 8974 SOC
intelli-plug
powersuspend PM kernel driver
kernel samepage merging
2015-05-24 v5.0 :
merge 14.5.A.0.270 kernel sources
Updated ramdisk to 14.5.A.0.270
Fixed simple_ondemand GPU governor crashing
CPU OverClock upto 2.42 GHz
turbo boost on MSM architectures-allows overclocking of 2 cores to higher clock rate than stock maximum
Added some optimizations for cpufreq (less spam log, delete deprecated code)
CPU Undervolting
2015-07-25 v6.0 :
port AndroPlusKernel most of feature for z1 compact
merge 14.5.A.0.283 kernel sources
Built with UBER toolchains 4.9.4
Updated TWRP to 2.8.7.0
Added new CPU governor: alcurd,zzmove, ElementalX, nightmare, darkness, smartmax, HYPER, ondemandplus, intelliminmax, smartassH3, adaptive, intellidemand
Added new I/O: bfq, sioplus, tripndroid
Added optimization I/O, power_efficient workqueue, GPU
Updated Zen IO scheduler and set as default
Added new GPU governor: conservative
Added Adreno idler (addon for adreno-tz)
Reduced logging spam (qmi_qmux)
Updated KCAL
Added some optimization from CM/unified kernel
Removed blu_active,Lagfree,wheatley,lionheart
Added alcurd hotplug
Added sysfs interface to Enable / Disable Android Logger
Updated patch for memory
Added patch for encryption
Added power_efficient workqueues
Added dynamic fsync
Added Dynamic management of dirty page writeback
Integrated frandom in kernel and support frandom module
Added fast_hotplug by pec0ra 2
Supports notifier for start&end of LCD power on&off
2015-07-31 v7.0 :
update some codes from codeaurora
Added WCD9320 Taiko Audio Codec Control v3 from cocafe
Increase default speaker volume
qpnp-vibrator intensity control
enabling two-way call recording directly from the phone line
Click here to see how to control vibrator & WCD9320 Taiko Audio Codec
http://forum.xda-developers.com/showpost.php?p=62125592&postcount=24
2015-08-15 v8.0 :
kernel with kexec-hardboot(thanks to venkat kamesh's ramdisk & OmarEinea's kexec-hardboot patch)
fix Darkness governor random reboots when heavy memory use(we need more tests)
fix KCAL Color Control is not working
The vibration strength can be controlled by Kernel Adiutor application
fix lowmemorykiller being overly aggressive
increase the total number of GFP flags
fix waking up sync thread recursively for same CPU causes deadlock
enable ZRAM features(from Linaro Stable Kernel 3.10)
zram: add lz4 algorithm backend
CPU hotplug: Provide lockless versions of callback registration functions
powersuspend: cumulative update to version 1.6
intelli_plug:update to version 4.0
msm: kgsl: Make global memory statistics atomic
Click my github commits to view changeLog details
2015-08-21 v9.0 :
Added toggles for wlan wakelocks (for advanced user only, path for sysfs is here Y=non block, N=block)
Changed wakelock blocker sysfs name to one in Kernel Adiutor
Added interactive_proconservative Governor
Added mac80211 injection patch and HID patch for keyboard support
Updated zzmove to 1.0-beta8
Added CPU hotplug Zen Decision
2015-08-28 v10.0 :
back to the regular default speaker volume
added mako hotplug
added new GPU governor: cache-hwmon
msm: memutils: memcpy, memmove, copy_page optimization
scm-mpu: Add additional memory protection options
Click here to see how to add support for a scm call to protect a contiguous physical address range.
http://forum.xda-developers.com/showpost.php?p=62550061&postcount=49
2015-09-08 v11.0 :
fix sometimes have freezed or crashed problems
updated kernel to 3.4.1
updated UBER toolchains to 4.9.4 20150901
Enhance power efficiency: Series of patches from NVIDIA
fix last_kmsg not working
changed default dirty_writeback_active_centisecs to 3000
changed intelli_thermal poll default value
updated kcal and added some patches
removed scm-mpu(unstable)
If the kernel crashed (freezed and rebooted), please fetch last_kmsg file after the crash reboot and post in the thread.
Code:
su -c cat /proc/last_kmsg > /sdcard/last_kmsg
2015-09-14 v12.0 :
Updated kernel to 3.4.10
Disabled dynamic fsync by default
Patched random reboot caused by dynamic fsync panic
V12 is the final version of the 14.5.A.0.270/283
The next version is the 14.6.A.0.368
2015-09-26 v13.0 :
v13 supports 5.1.1, most features from my 5.0.2 version.
Main Features :
Merge 14.6.A.0.368 kernel sources
Updated ramdisk to 14.6.A.0.368
Updated kernel to 3.4.10
TWRP 2.8.7 from xNUTx
Built with UBER toolchains 4.9.4 20150920
busybox v1.23.2
init.d support
port AndroPlusKernel most of feature for z1/z1 compact
CPU OverClock upto 2.42 GHz
Added some optimizations for cpufreq (less spam log, delete deprecated code)
Added WCD9320 Taiko Audio Codec Control v3 from cocafe
Add a backlight brightness hack to allow a lower minimum backlight brightness in v13(thank to Tommy-Geenexus)
Added new CPU governor:alcurd,zzmove,ElementalX,nightmare,darkness,smartmax,HYPER,ondemandplus,
intelliminmax,smartassH3,adaptive,intellidemand,interactive_proconservative,SmartAssv2,pegasusq,
intellidemand,intelliactive,preservative
Added new I/O Scheduler:bfq,tripndroid,sio,vr,zen,sio-plus,fiops,test-iosched
Updated Zen IO scheduler and set as default
Simple GPU Algorithm
Added new GPU governor: conservative,cache-hwmon
Added optimization I/O, power_efficient workqueue, GPU
Added Adreno idler (addon for adreno-tz)
KCAL – Advanced Color Control for Qualcomm Devices
Added CPU hotplug:intelli,Alucard,Zen Decision,mako hotplug
Added sysfs interface to Enable / Disable Android Logger
Updated patch for memory
Added patch for encryption
Added power_efficient workqueues
Added dynamic fsync
Supports notifier for start&end of LCD power on&off
qpnp-vibrator intensity control
enabling two-way call recording directly from the phone line
Added toggles for wlan wakelocks (for advanced user only, path for sysfs is here Y=non block, N=block)
Added mac80211 injection patch and HID patch for keyboard support
msm: memutils: memcpy, memmove, copy_page optimization
Enhance power efficiency: Series of patches from NVIDIA
last_kmsg
support for kernel mode NEON
fastcharge
enable additional TCP congestion algorithms:westwood,bic,htcp,vegas,veno,yeah
upgraded LZO (de)compression drivers
added per-core overall stats - now you can see the time spent by each core in a particular frequency state!
added LZ4 compression/decompression support
generic voltage control
added intelli-thermal_v2 kernel thermal driver with optimizations for 8974 SOC
powersuspend PM kernel driver
2015-10-08 v14.0 :
Updated kernel to 3.4.14
Support F2FS filesystem(from linux kernel 4.2)
Updated ZRAM (from Linaro Stable Kernel 3.10)
ZRAM: enable lz4 algorithm backend
Built with UBER toolchains 4.9.4 20151001
Add custom logo
leds-qpnp:Blink interpolation; fix qpnp-pwm driver
notifier:it's going slowly on and slowly off
Re-updated bfq I/O gov to v7r8
tcp_output: set initial TCP window size to 64K (speed improvement)
PM: Enable asynchronous noirq resume threads to save the resuming time
tcp_cubic: better follow cubic curve after idle period
Click here to see how to Change File System.
http://forum.xda-developers.com/showpost.php?p=63199033&postcount=79
2015-10-17 v15.0 :
fix the random reboot issues
f2fs: getting the latest code from upstream
f2fs: system partition support
zram: fix merge errors & bring up to date with Cl3Kener's branch
zram: set lz4 algorithm as default
lz4: update some codes from upstream
zsmalloc: fix merge errors
removed intelli thermal
thermal: add 3-phase msm_thermal(thanks to showp1984)
memory.c: fix show_mem_removable() to handle missing sections
2015-11-16 v16.0 :
Merge 14.6.A.1.216 kernel sources
Updated ramdisk to 14.6.A.1.216
updated kernel to 3.4.20
updated UBER toolchains to 4.9.4 20151101
f2fs: getting the latest code from upstream
enable higher eMMC speed modes(thanks to Tommy-Geenexus)
2016-02-29 v17.0 :
Merge 14.6.A.1.236 kernel sources
Updated ramdisk to 14.6.A.1.236
Updated UBER toolchains to 4.9.4 20160201
Updated zzmoove governor
f2fs: catch up to linux kernel 4.5-rc1 & backport support(removed system partition support, only data & cache partition support)
binfmt_elf.c: use get_random_int() to fix entropy depleting
leds: leds-qpnp: Add API for RGB led
fix last_kmsg that isn't working
2016-04-03 v18.0 :
Updated kernel to 3.4.25
Updated TWRP to 3.0.1
build with UBER toolchains 5.3 20160401
f2fs: catch up to linux kernel 4.5 & backport support
fixes some minor bugs
2017-03-26 v19.0 :
updated twrp to 3.1.0
build with gcc-linaro toolchains 5.4.1-2017.01(stable) and gcc-linaro toolchains 6.3.1-2017.02(testing)
update busybox to 1.26.2
update some codes from codeaurora
minor bug fixes and improvements f2fs
If the kernel crashed (freezed and rebooted), please fetch last_kmsg file after the crash reboot and post in the thread.
Code:
su -c cat /proc/last_kmsg > /sdcard/last_kmsg
downloading
i hope i wont suffer with the annoying bad memory management
thanks for the awsome features on the kernel btw
Nice work dude!kernel is butter smooth.very stable.i am enjoying it!thankz and dnt stop your work!all d best!
really smooth and stable memory leak still presist but it isnt like before , it is somehow better
Keep the cool work thanks for this awsome kernel atleast now i can open whatsapp and chrome without suffering
hitesh1792 said:
Nice work dude!kernel is butter smooth.very stable.i am enjoying it!thankz and dnt stop your work!all d best!
Click to expand...
Click to collapse
iSpammer said:
really smooth and stable memory leak still presist but it isnt like before , it is somehow better
Keep the cool work thanks for this awsome kernel atleast now i can open whatsapp and chrome without suffering
Click to expand...
Click to collapse
Thanks for the feedback. All credits goes to xda developers(e.g.,cocafe,AndroPlus,DooMLoRD).
I will trying to optimize the kernel.
to be included in v9.0 changeLog:
it'll release soon
changeLog:
Added toggles for wlan wakelocks (for advanced user only, path for sysfs is here Y=non block, N=block)
Changed wakelock blocker sysfs name to one in Kernel Adiutor
Added interactive_proconservative Governor
Added mac80211 injection patch and HID patch for keyboard support
Updated zzmove Governor to 1.0-beta8
Added CPU hotplug Zen Decision
is there gpu overclocking? please add that too if you can. btw nice work!
ScatteredHell said:
is there gpu overclocking? please add that too if you can. btw nice work!
Click to expand...
Click to collapse
If I can, I will try
Will try new version when it will be available
Keep up the good work bro :good:
What app do you use to control this kernel?
從我的 C6903 發送
Thx for the update dude!!thx!!can u please share your kernel settings??governor? hot plug?i/o scheduler etc??
---------- Post added at 04:49 AM ---------- Previous post was at 04:35 AM ----------
you can use kernel auditor
phhuang said:
What app do you use to control this kernel?
從我的 C6903 發送
Click to expand...
Click to collapse
hitesh1792 said:
Thx for the update dude!!thx!!can u please share your kernel settings??governor? hot plug?i/o scheduler etc??
---------- Post added at 04:49 AM ---------- Previous post was at 04:35 AM ----------
you can use kernel auditor
Click to expand...
Click to collapse
it depends on how you use it. You can try to set HYPER / zen - great battery/performance combination.
disable MPDecision/enable Alucard Hotplug & Simple GPU Algorithm.
Thx bro!
sharonliu said:
it depends on how you use it. You can try to set HYPER / zen - great battery/performance combination.
disable MPDecision/enable Alucard Hotplug & Simple GPU Algorithm.
Click to expand...
Click to collapse
Hello!can we add mako hotplug in this kernel if possible!just asking!
hitesh1792 said:
Hello!can we add mako hotplug in this kernel if possible!just asking!
Click to expand...
Click to collapse
I can't guarantee anything, but I will try
why my notification sound louder ? i want stock sound
rebiiejr said:
why my notification sound louder ? i want stock sound
Click to expand...
Click to collapse
Increase default speaker volume from v7.0. Is there anyone who thinks default volume too loud lily?
If yes i will back to the regular volume in the next release.
Yup the notification sound is loud.
sharonliu said:
Increase default speaker volume from v7.0. Is there anyone who thinks default volume too loud lily?
If yes i will back to the regular volume in the next release.
Click to expand...
Click to collapse
sharonliu said:
If I can, I will try
Click to expand...
Click to collapse
Please I need it. Best of luck.
Sent from my C6902 using XDA Free mobile app

[6.0+]Mimori Kernel [AOSP & Lineage OS Based ROM]

Mimori Kernel | Stability for performance
For Xperia M
Based on Lineage OS 14.1 source​
Code:
#include
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/
Mimori Kernel based on Lineage OS 14.1 source, and included many improvement and optimization on processor, I/O and include some feature for Xperia M / M dual devices that use Marshmallow as base ROM.
Mimori offered kernel performance, stability, smoothness process on cpu and already have full support on NEON, this kernel need kernel configuration app to control this kernel, so try to find kernel configuration app after flash this kernel.
Recommended Kernel Configuration :
- Kernel Adiutor (BETA)
- Device Control
Okay this is several features that i include in this kernel.
This kernel feature is :
Kernel Features
* Linux Kernel Version 3.4.113
* Compatibility with AOSP,CM And LineageOS based ROM [Android 6.0+]
* Added overclock up to 1,4Ghz
* Added Double Tap 2 Wake Feature (Incl. Vibration)
* Added custom CPU Governor : Alucard,Intelliactive,IntelliMM,Lionheart,Adaptive & Blu Active (specially for Blu Active is thanks to @sudokamikaze for him workaround to make it work for linux 3.4.x based kernel)
* Added custom I/O Sched Governor : zen,sio,sioplus,tripndroid,fifo,fiops,vr and maple (specially for maple is thanks to @sudokamikaze for him workaround to make it work for linux 3.4.x based kernel)
* Added custom TCP Modules : Advanced,Bic,Westwood,Hybla,Vegas,Veno,Yeah and more
* Added CPU Voltage Table Control
* Implement Power Efficient Workqueues
* Dynamic management of dirty page writebacks
* Added Interface of Gentle Fair Sleepers, Software CRC and Arch Power (Option Disable by Default)
* Added Frandom Support
* Added Dynamic Fsync 2.0
* Entropy Tweaks
* NEON VFPv4 Optimized (hard)
* Added Intelli Plug v4.0
* Added Intelli Thermal v1.0
* Added F2FS File System Support (Based on Linux 3.4.y Branch) (Working)
* Added EXFAT File System Support (Driver Version v1.2.9) (Need Test)
* Added USB Keyboard Support
* Optimized I/O Sched
* Compiled using GCC 5.4.X Hyper Toolchains
* Updated CVE Patch From LineageOS Kernel Source 20171106
[/LIST]
[/LIST]
How to install :
1. Download Mimori Kernel and install it from recovery mode, use TWRP recovery (TWRP Link)
2. install kernel adiutor from Playstore for kernel configuration (i don't have myself app to control kernel) (Try to use BETA version to get fix for CPU temperature)
3. Final step, let's configure kernel like what you want it :victory: and enjoy my first custom kernel
For download, look at download tab on top of this thread
Thanks to : 
 @PecanCM [For Kernel Source] 
 @Alex_Gamer [For Kernel Tester & Troubleshoot] 
 @thichthat [For DT2W Source]
XDA:DevDB Information
Mimori Kernel For Xperia M, Kernel for the Sony Xperia M
Contributors
Nicklas Van Dam, PecanCM, Alex_Gamer
Source Code: https://github.com/Nicklas373/Mimori-Kernel_MSM8227_LineageOS_14.1
Kernel Special Features: Overclocked, ARMV7 NEON Optimized
Version Information
Status: Stable
Current Stable Version: Seventh Build
Stable Release Date: 2018-02-11
Created 2016-09-03
Last Updated 2018-02-19
Kernel Adiutor OTA Update Information
Now for CyanogenMod And AOSP Based ROM, Hana Kernel Offered OTA Update feature for kernel update using kernel adiutor app for CyanogenMod Based ROM with "download" feature in kernel adiutor.
You can download new build in that menu included ; introduce, kernel feature and changelog update. Now i'm still try to enable it on LineageOS too, i'm just need to wait confirmation from the admin .
For anyone want to install this kernel, can access too using KA. just like normal download and installation for kernel :laugh:
Have fun
Kernel Adiutor Information
For Kernel Adiutor Usage
During new stable version of Kernel Adiutor have problem with CPU temperature, now we should use BETA build from Kernel Adiutor to get fix for that problem.
And for set on boot configuration, i'm not recommended it again , since that only can make kernel error during boot up process.
So set kernel when system is already boot is best option for stability and performance.
If kernel adiutor to hard for configure, then you can try Device Control app to manage your kernel.
This app is almost same like KA but it's little simple and more friendly for configuration
Changelog :
Seventh Build (20180211):
- Fixed some upstream issue
- Upstream to 3.4.113 (REBASE change)
- Fix issue with OTG problem (Recovery or System)
- Updated F2FS to latest 3.4.y and misc fixes
Sixth Build (20180122):
- Updated Kernel Security Patch to 20171106 (Based on MSM8960T Source)
- Change GCC to GCC 5.4.X Hyper Toolchains
- Misc fixes with intelli thermal
- Applied last patch with 3.4.113
- Applied security patch with "KRACKS attacks"
- Removed sdcardfs drivers (not used by device)
- Misc CPU Optimization
- Set readahed to 512kb
- Added GPU optimizations flags
- Improve Hard Floating Point for neon-vfpv4
Fifth Build (20171002):
- Introduce IMAGINE Codename
- Upstream Linux Kernel to 3.4.113 based on git.kernel.org
- Revert change of F2FS (back to old source)
- Revert some optimization change
- Added Maple I/O Sched (specially for maple is thanks to @sudokamikaze for him workaround to make it work for linux 3.4.x based kernel)
- I/O Sched Optimization for SIO and ZEN
- Enable Interface Of Software CRC
- Misc CPU Optimization
- Added some sched optimization
- Disabled USB Fastcharge v1
- Reverting Permissive, Back to Enforcing
- Added Blu Active CPU Governor (specially for Blu Active is thanks to @sudokamikaze for him workaround to make it work for linux 3.4.x based kernel)
- Added Support for Neon VFPv4 With Hard Floating
- Disabled Quick Wake Up Drivers
Fourth Build (20170913):
- Added Optimization on I/O Sched (Improves SSD Speed)
- Misc fixes for conservative governor
- Added F2FS and EXFAT File System Support
- Added Hyper CPU Governor
- Optimized KSM
- Update Intelli Plug to v4.0
- Optimized SLUB
- Set readahed to 256KB
- Added CCACHE for faster kernel building
- Updated CVE Patch (Kernel Security Patch) to 20170826 Based On MSM8960T
- Misc Optimization
- Added Quick Wakeup driver
- BACKPORT F2FS from branch Linux 3.4.y (git.kernel.org)
- Reverting Quick Wakeup Driver
- Added USB Keyboard features
- Updated SDCARDFS Driver
- Misc fixes
Third Build (20170821):
- Little Improvement on CPU Bus Speed
- Added Dynamic Fsync 2.0
- Added Frandom Support
- Added Interface of Gentle Fair Sleepers (Option Disable by Default)
- Misc change on I/O Partitions
- Dynamic management of dirty page writebacks
- Removed "+" Symbol From Kernel Version String
- Implement Power Efficient Workqueues Feature (Enable by Default)
- Revert Alucard CPU Governor to v1.0
- Added Interface of Arch Power Features (Disable by Default)
- Entropy Tweaks
- Build vfp with softfp
- Misc change with cpufreq
- Added Intelli Plug and Intelli Thermal
- Fix Neon VFP
- Upgraded Kernel to 3.4.4
- Change toolchains to Hyper Toolchains GCC 4.9
- Decrease thermal limits to 70c
Second Build (20170817):
- Set kernel as permissive
- Enabling 972Mhz to fix slow response on boot and skipped frequency on system
- Added Custom TCP Congestion
- Added CPU Voltage Control
- Added DT2W Vibration Support
- Added USB Fastcharge v1
- Adapted Some CPU Governor with CPU Freq Table
First Build (20170816):
- INITIAL BUILD
: - Included Custom CPU Governor
- CPU Overclocked to 1.458Mhz
- Using NEON Optimized as VFP
- DT2W Feature
- CPU Optimization Algorithm
- Custom I/O Sched
Kernel Adiutor Configuration
CPU Manager :
CPU Max Frequency : 972Mhz (For Normal Usage) . 1.2Ghz (For Multitasking Usage) & 1.4Ghz (For Hard/Gaming Usage)
CPU Min Frequency : 384Mhz
CPU Governor: Alucard or Interactive (For Normal Usage), Alucard or IntelliMM (For Multitasking Usage) & Lionheart or Intelliactive, Blu Active (For Hard/Gaming Usage)
(Beside that leave it as stock)
Hotplug Manager :
Mpdecision = Disable
Intelli Plug = Enable
Profile = Eco for Performance
(Beside that leave it as stock)
Thermal Manager:
Thermald : Disable
Intelli Thermal : Enable
Core Control : Enable
Frequency Throttle Temperature : 60c
CPU Throttle Temperature : 70c
Thermal Limit Low = 2
(Beside that leave it as stock)
GPU Manager
GPU Max Freq : 400Mhz
GPU Governor : Ondemand or Performance (For Hard Gaming)
I/O Scheduler =
(Leave it as stock)
Misc =
Software CRC Check = Disable
Dynamic Fsync = Disable
Arch Power = Disable (Not really recommended)
Gentle Fair Sleepers = Disable
TCP Congestions = Depends on your need
Option already update during new kernel feature is include
For explanation (cpu hotplug, and i/o sched) check on this thread
CPU Governor : Link- 1 Link-2
I/O Sched : Link
CPU Hotplug :Link - 1 Link - 2
Special Thanks to @gsstudios for guide :laugh:
[INFO] Double Tap 2 Wake & BETA Build
For Double Tap 2 Wake
Try to use kernel adiutor and check in wake tap, after that choose DT2W and enable it using "full'" option and then let's try DT2W features with vibration on mimori kernel
NOTE : BETA Build For Testing (Not Stable)
github/build
For BETA, try to look date for kernel. Find latest one, and anyone can test latest beta if don't want wait for stable update. I can't promise to make fast update for stable source, i don't want to make any problem. so it's better stay at beta and whenever it ready, and it should release on thread :victory:
Thanks.
Garv Maggu said:
Thanks.
Click to expand...
Click to collapse
you're welcome, i'm still working for optimization in armv7 vfpv4 module.
have fun
Updated
New kernel build v1.1 is released with several fix for vfpv4 and neon modules, download link in on download tab.
have try
Great!
Please add dt2w
Niiiice! I was waiting for new release, I'll test it now
Alex_Gamer said:
Niiiice! I was waiting for new release, I'll test it now
Click to expand...
Click to collapse
my laptop is back from service center , and now is time to back :laugh:
romspeed said:
Please add dt2w
Click to expand...
Click to collapse
i will try on next update, it's to hard to add that anyway .
Nicklas Van Dam said:
my laptop is back from service center , and now is time to back :laugh:
Click to expand...
Click to collapse
Good to hear that your laptop its back to rock
Really good work working like a charm
Just one question on my device sound is bursting any particular reason behind that and is that can be controlled through any setting or app
Sent from my SM-J700H using Tapatalk
Kb44994 said:
Really good work working like a charm
Just one question on my device sound is bursting any particular reason behind that and is that can be controlled through any setting or app
Sent from my SM-J700H using Tapatalk
Click to expand...
Click to collapse
sound is bursting? i think i'm not to modified to sound on this kernel, maybe that's from high cpu usage so that's make sound is distortion. i will try to look at sound option.
[EDIT]
Kb44994 said:
Really good work working like a charm
Just one question on my device sound is bursting any particular reason behind that and is that can be controlled through any setting or app
Sent from my SM-J700H using Tapatalk
Click to expand...
Click to collapse
i'm update kernel with clean build and kernel optimilization, i hope that can fix your problem. i'm already compare sound with stock and my kernel. i'm not hear any particular change on sound volume, maybe very little difference, please to wipe dalvik-cache and cache after install this update
Updated
New kernel build v1.2 is released with several clean build for kernel and optimization on kernel compiler to reduce size, download link in on download tab.
have try
Updated
New kernel build v1.3 is released with first stable build , added auto hotplug drivers and more optimization for armv7 and krait processor
download link in on download tab.
have try

[KERNEL][3.10.108][Dec 01] Vegito 7.1/7.05 (Moto G4/G4 Plus)

Vegito Kernel for Moto G4 & G4 Plus
#include
/*
* I am not responsible for bricked devices, dead SD cards, thermonuclear
* war, or the current economic crisis caused by you following these
* directions. YOU are choosing to make these modificiations, and
* if you point your finger at me for messing up your device, I will
* laugh at you.
Click to expand...
Click to collapse
Features:
KCAL advanced color control [V2](RGB, Saturation, Value, Contrast, Hue)
AnyKernel2 by @osm0sis
Compile using Linaro toolchain 4.9
CPU Overclocked to 1651 Mhz ( big clusters ) & UnderClocked to 249 Mhz ( Little clusters )
OverClocked GPU to 600MHz
Init.d support
Dynamic Fsync - A driver originally written by faux123- Disables Fsync when phone is being used causing significant IO boost.
Backlight dimmer option
Fsync toggle on/off
Updated to Latest Linux 3.10.108
Reduced idle power consumption
Wakelocks blocked by default thanks to @franciscofranco
Optimized ARM RWSEM algorithm
zSwap support - A Virtual compressed memory pool - Can be used as a swapping devices for extra RAM.
Added iosched switcher by @Sultanxda This enables a driver that switches the I/O scheduler for a single block device to Noop when the screen turns off, and back to its original I/O scheduler after a delay when the screen is turned back on
Disabled Gentle fair sleepers
Enabled arch power
Mild Undervolt
Add blink support to kernel
USB Fast Charge Support
Added FIOPS I/O Scheduler
Added SIO I/O Scheduler
Added Zen I/O Scheduler
Support for Fast-IDLING of CPU
Support for ARCH_Power to reduce Power-Consumption and increase Battery-Life.
Support for the new PowerSuspend algorithm.
Optimized Console FrameBuffer for upto 70% increase in Performance.
Improved square root algorithm.
Added Faux sound control 3.6
Disabled some debugging.
Added simple GPU Algorithm - An add-on for MSM-Adreno TZ GPU Governor. Developed by @faux123.
Governors enabled: conservativex, interactive
Frandom driver- Fast Kernel Number Generator.
Intelli_thermal v3.0: initial coding for Linux 3.10 Qualcomm kernels.
Add sysfs interface to control intensity.
Fix simple_ondemand crashing
zRAM Support with LZ4 compress
Power efficient workqueue patches
Kernel Samepage Merging
NTFS File System Support
Added bunches of TCP Congestion Algorithm
CPU Boost
Hotplug boost.
Wakeup boost.
State notifier integration.
Downloads
Vegito 7.1 ( Stock 7.0 )
Vegito 7.5 ( Lineage based 7.X.X)
Vegito 3.0 ( Marshmallow )
Google+ Community (Beta testing and releases)
https://plus.google.com/u/0/communities/107248021342303532678
Important:
Do not flash this over other custom kernels!
You should only flash Vegito over the kernel that came with your ROM
Recommended App
Presenting my very own app to control kernel settings. Find it here - Vegito Kernel Manager
Reporting bugs
Grab a logcat, and a console ramoops (if random rebooting) or a dmesg (any other issues) right after the problem has occurred. (Please include at least a few pages of the log, not just the last few lines, unless you know what you're doing.)
See how to submit a bug report for the appropriate place to report your bug
INSTRUCTIONS
Just flash the zip in twrp and you are good to go!
XDA:DevDB Information
Vegito Kernel, Kernel for the Moto G4 Plus
Contributors
Dreamstar
Source Code: https://github.com/nikitsharma15/Vegito_Athene/
Kernel Special Features:
Version Information
Status: Beta
Created 2016-09-13
Last Updated 2017-12-01
Reserved
Announcement
Introducing my own app to update my kernels within 1 click.
Get it from play store- Vegito Kernel Updater
Please Rate or give your feedback for this app.
Vegito 6.8 - 26/May/17
Code:
Merged latest Lineage OS kernel source
Vegito 6.2 - 13/May/17
Code:
-zSwap support - A Virtual compressed memory pool - Can be used as a swapping devices for extra RAM.
-Reduced idle power consumption
-Wakelocks blocked by default thanks to @franciscofranco
-Merged latest Lineage OS kernel source
-Major fixes & cleanup
Vegito 6.2 - 25/March/17
Code:
-Power efficient workqueue patches (squashed).
-Cpufreq: interactive: reduce timer with screen off
-GPU drivers compiled with device specific Cortex-A53 optimizations
-Kernel: reduce overheat
Vegito 6.0 - 06/feb/17
Code:
-Add blink support to kernel thanks to @JackpotClavin
-SELinux set to permissive
-Fix simple_ondemand crashing
Vegito 5.8 - 28/Jan/17
Code:
-Some tweaks for fast charging
-NTFS R/W Support
-Compatible with systemless root
-ZRAM with lz4 compress.
Vegito 5.5- 21/Jan/17
Code:
-Stock nougat supported
-Live Kernel flashing with backup support for previous kernel - Liverepack implementation of @psych.half is used, which also backs up your previous kernel (boot.img) and other system files which would be changed.
Vegito 5.0- 22/Nov/16
Code:
-Added ZSWAP
-Faux sound control 3
-CyanogenMod 14.1 support
-Support for Fast-IDLING of CPU
-Support for ARCH_Power to reduce Power-Consumption and increase Battery-Life.
-Support for the new PowerSuspend algorithm.
-Optimized Console FrameBuffer for upto 70% increase in Performance.
-Support for CRC-Toggle (Disabled by Default in Misc. TAB).
-Support for Larch Power feature (should improve Battery-Life).
-Improved square root algorithm.
-Disabled some debugging.
-Added simple GPU Algorithm
-Added Adreno idler GPU Alogrithm
Vegito 4.0- 29/Oct/16
Code:
-Nougat support
-NTFS File System Support
-Dynamic Fsync update
-Some other changes which I do not remember.
Vegito 3.0- 21/Sep/16
Code:
-Added USB Fast Charge Support
-Added Darkness Governors
-Disabled Gentle fair sleepers
-Enabled arch power
Vegito 2.0 - 16/Sep/16
Code:
-Added MSM Hotplug driver
-Added AutoSMP Hotplug driver
-Added ThunderPlug Hotplug driver
-Removed various debug traces
-Other optimizations
Vegito 1.0
Code:
- Initial Release
Great job!
Sent from my MotoG(4) using Tapatalk
---------- Post added at 05:13 PM ---------- Previous post was at 05:05 PM ----------
Can I flash it through twrp with elementalx kernel??
Sent from my MotoG(4) using Tapatalk
Pranav Kumar said:
Great job!
Sent from my MotoG(4) using Tapatalk
---------- Post added at 05:13 PM ---------- Previous post was at 05:05 PM ----------
Can I flash it through twrp with elementalx kernel??
Sent from my MotoG(4) using Tapatalk
Click to expand...
Click to collapse
yes
Awesome kernal! benchmark results looks better with this kernal!
Thank-you!!!!???
Sent from my MotoG(4) using Tapatalk
Is this g4plus only or will it work with xt1625?
Screw it. I'll try.
:edit: boot looping on xt1625
Could you port it to Moto G4?
Enviado de meu Moto G (4) usando Tapatalk
Does it work with custom ROMs ?
Sorry my bad...didnt read the heading
does it need supersu (for wifi , like ElementalX) ?
bobthesalesclerk said:
Is this g4plus only or will it work with xt1625?
Screw it. I'll try.
:edit: boot looping on xt1625
Click to expand...
Click to collapse
your r on stock rom ?
Dreamstar said:
your r on stock rom ?
Click to expand...
Click to collapse
Nope. And that's why we have nandroids. For illiterate people like myself. I will delete my previous comment.
nice! new kernel for G4, (you could identify the device on the title, I think..) good work bro
I go to test... in xt1640
V-2.0 Update
Changelog
Added MSM Hotplug driver
Added AutoSMP Hotplug driver
Added ThunderPlug Hotplug driver
Other optimizations
i flashed this over the elemental kernel and suddely my SU wasn't working anymore i'm on 1642
can you add governor darkness?
stkpxl said:
I flashed it over stock and lost root. Just required me to root again and all is well. So far so good for the XT1625. Haven't started tweaking yet, though.
Click to expand...
Click to collapse
Same here, I had to flash Super SU binary again to get root on XT1643
Can you add Darkness & Alucard!?
On XT1621 Boots ok, but after performing a Benchmark with Antutu, Stock Kernel gots 44195, with this Kernel hardly it gets 42111 and cause battery drain (10% less in 7 minutes with only screen on)
Hardly recommend to backup Wifi Driver on location \system\lib\modules for future Restore on this device

Categories

Resources