• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[KERNEL][I9500][FINAL] NevermoreX [30102017]

Do you guys want more cpu governors apart from the five that we have now?

  • Yes please ! Tell me what u want.

    Votes: 6 31.6%
  • No, keep the kernel light !

    Votes: 13 68.4%

  • Total voters
    19
  • Poll closed .
Search This thread

jwchen17

Senior Member
Jul 26, 2014
659
1,086
Ho Chi Minh City
NEVERMOREX KERNEL

Code:
/*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please[PHP][/PHP]
* do some research if you have any concerns about features included in this KERNEL
* before flashing it! YOU are installing these modifications to your device!
*/
Features

Full synapse control
Based on latest Samsung source I9500XXUHPI2
XZ kernel compression - GZIP ramdisk compression
Link-Time, RWSEM, ARM, NEON, big.LITTLE optimizations
Overclock A7 up to 1.5GHz, A15 up to 2.0GHz, GPU to 700MHz
Underclock A7 min to 200MHz, A15 min to 700MHz, GPU to 177MHz
Full voltage control for CPU, GPU, MIF
Governors

ondemand, ondemand-sec, alucard, interactive, conservative, powersave, performance, intelliactive, lionheart, darkness, nightmare, intelimm, badass, abyssplug, wheatley, intellidemand
Power efficient workqueue control & multi-core power savingsl
Wolfson sound control & Dynamic Range Compression toggle
MDNIE screen control control
Full charging current control
TCP congestion algorithms

westwood, cubic, bic, reno, htcp, highspeed, hybla, vegas, scalable, lp, veno, yeah, illinois
GPS, DNS, IPv6 & network security tweak
I/O schedulers

sioplus, noop, deadline, sio, cfg, bfq, fiops, zen, row, tripndroid
Kernel samepage merging
LMK & Dynamic Fsync control
Doze modes control
CortexBrain and Crontab services
OTG USB support
IR blaster working
Backup-restore option
And many more ....


Changelogs
For more details check my GitHub/
FINAL - Maybeee we can call it v11.0 if it works fine for every variants haha
Prenougat:
- Added a switch to control l2_hsic wakelock
- Reduced latency for softirq
- Tuned for stability and adjusted some ramdisk scripts
- Reduced aggressiveness on default low memory killer profile
- [SYNAPSE] Removed experimental screen mode tab

Nougat:
- Added a switch to control l2_hsic wakelock
- Removed most governors & I/O scheds for stability
- Updated with all recent commits by Alberto on LOS
- Updated ramdisk with the current ones in LOS and RR
- Fixed paths and permissions to control l2-hsic wakelock and mdnie
- [SYNAPSE] Removed some non working features like sound, misc control, etc

..and some finishing tuning here and there for all variants.

Older changelogs here:

Code:
v10.6
Nougat builds
- Added charging control
- Added ROW I/O scheduler
- Fixed synapse & cleaned up files for not implemented features
- Compressed ramdisk in GZIP for SuperSU supports
- Some minor fixes and tweaks in ramdisk

Pre-Nougat builds
- Reverted some stuff for better stability
- Compressed ramdisk in GZIP
- Some minor fixes and tweaks in ramdisk

v10.5
Nougat builds  & Pre-Nougat builds
- Updated toolchain
- Attempted to fix synapse (haven't test on Nougat builds)
- Reduced kernel's size
- Some minor changes for stab

v10.4
Nougat builds
- Added synapse files ( expect errors )
- Added pegasusq governor & some more I forgot
- Adjusted some permissions and init values

Pre-Nougat builds
- Added pegasusq governor
- Adjusted some permissions and init values
- Minor changes to synapse descriptions

v10.3
Nougat builds
- Adjusted init scripts for more performance
- Attempted to fix mobile hotspot

Pre-Nougat builds
- Removed some init scripts
- Fixed some synapse permissions

v10.2
Nougat builds
- Initial release, based on Alberto's latest source for Lineage
- Added more governors, I/O scheds and TCP algorithms
- Added some patches by @sunilpaulmathew
- Increased charging current (experimental)
- Tweaked a bit here and there...

Pre-Nougat builds
- Adjusted some tabs, removed not working features in synapse
- Tuned some init values and some default governor's tunables

v10.1 
- Updated source to 3.4.113
- Tweaked some minor governor values

v10.0 
- Back to -O2 optimization flags
- Updated kernel source to 3.4.112
- All changes from [URL="https://forum.xda-developers.com/showpost.php?p=72365296&postcount=1210"]20052017 beta build 

-Restarted from v9.9-

v10.5 - 11052017
- Adjusted init values
- Reverted some small changes for more stable kernel
- Drecrease latency multiplier on ondemand
- SYNAPSE: Re-added doze control for CM and RR

v10.4 - 24042017
- More governors & I/O schedulers
- Disabled some unnecessary configs
- Clean up some synapse related stuff

v10.3 - 17042017
- Removed gpu init scripts 
- Decreased the default RQ Affinity to 1
- Fixed some minor issues regarding Synapse
- Attempted to fix logging function
- Attempted to improve big.LITTLE switching

v10.2 - 16042017
- Changed toolchain to LxSM 5.x
- Tuned governors & init scripts
- Removed unnecessary optimization flags for smaller kernel
- Compressed ramdisk in LZMA for smaller package
- Small changes for kernel and install script

v10.1 - 31032017 thanks to @halbinger for compiling
- Disabled dynamic hotplug
- Adjusted init values
- Increased latency multiplier on ondemand

v10.0 - 26032017
- Re-based on Samsung source I9500XXUHPI2
- Optimized governors & I/O schedulers
- Tuned init scripts & set GPU max 532MHz / min 266MHz as default
- Enabled modules support & modules tab in synapse
- Enabled NTFS, CIFS, ISO, UDF, XPAD support
- Enabled OTG USB & SideSync support in TW version
- Disabled remaining debugging and logging features
- Disabled some unstable governors
- Various tweaks here and there..

v9.9
- Disabled ondemand-sec
- Pipe optimization flag
- Optimized values in init scripts
- Removed build.prop tweaks in ramdisk
- Minor adjustments here and there

v9.8
- Hyper LxSM 6.1.1 toolchain again
- LZMA ramdisk compression
- Removed ramdisk network tweaks
- Minor init values tweaks

v9.7
- Reduced wlan_rx & wlan_ctrl wakelocks
- Reduced hotplug polling
- Removed limit on pm_wakelock config
- Tweaked ramdisk init values for more performance
- Minor synapse code changes and tab re-arrangements

v9.6
- Back to xz kernel compression & O3 flag
- Changes regarding pm_wakelock configs
- Fixed possible memory leak
- Some kernel fixes and upstream changes
- Minor ramdisk changes and tweaks

v9.5
- Patched storage like @BeeOS request
- Used gzip as kernel compression
- Optimized for ARM & size
- Tweaked ramdisk a bit

v9.4.2
- Increased performance of ondemand
- Enabled vnswap
- Updated Touchwiz module files 
- Disabled network filesystem

v9.4.1
- SYNAPSE: Attempted to fix live cpufreq display
- Some minor fixes

v9.4
- Disabled most configs in prev version, seems to slow down the device
- Enabled modules support in TW version
- Optimize ondemand for more battery
- Re-adjusted some memory init tweaks 
- SYNAPSE: Remove some unnecessary options and wakelock tab for now

v9.3
- Re-enabled some configs for both versions
- Tweaked some init values for snappier kernel
- Disabled power save bias by default in ondemand
- Added back google service drain fix for TW by default
- SYNAPSE: Added more control for wakelocks 
- SYNAPSE: Added live display for active cluster A15/A7
- SYNAPSE: Added a switch for kernel log

v9.2
- cfq as default I/O scheduler
- Compiled gpu with Ofast
- SYNAPSE: Added wakelocks tab with google service drain fix
- SYNAPSE: Added wipe init.d option in case init.d scripts interfere with kernel settings
- Optimized hotplug and ondemand for battery

v9.1
- SYNAPSE: Added more dpi options in resolution changing
- Enabled swap
- SYNAPSE: Fixed errors
- Disabled OC, now max freq 1.6GHz
- Changed some init values in ramdisk

v9.0
- Reverted ondemand changes to fix freq stuck
- Fixed TW issues on v8.9
- SYNAPSE: Fixed optimize database tool in synapse
- SYNAPSE: Added some simple build.prop options in tweaks tab
- SYNAPSE: Added screen resolution and color mode from Alberto's GearCM 12.1
- Removed google service scripts on TW for now

v8.9
- Used Hyper 5.x toolchain with some of my changes
- Used one defconfig for both CM and TW
- Cherry-picked latest commits from GearCM again
- Minor changes in ramdisk tweaks

v8.8
- Fixed Phone & Bluetooth on TW ( silly selinux stuffs )
- Tweaked some init script values
- Re-arranged some synapse features again
- Some small changes I forgot

v8.7
- Re-added logging control in synapse
- Reverted to O3 flag instead of Ofast for the GPU
- Tweaked alucard governor
- Enabled joystick and tablet input support
- Some minor changes defconfig

v8.6 - Christmas build :P
- Fixed TW FC issues ( hopefully )
- Used to 4.9 toolchain from now on to ensure compatibility
- Tweaked some governors
- Re-arranged some synapse features to separated tabs

v8.5.1
- Restored some configs in TW version to fix FCs
- Changed some default values in ramdisk script
- Cleaned up some unused Synapse files

v8.5
- Updated sources with changes in stock GearCM source
- Compiled with 6.1.1 Hyper LxSM again
- Fixed some default values
- Fixed cortexbrain in Touchwiz
- Minor optimizations and change in build flags

v8.4.1
- Fixed CortexBrain 
- Fixed ondemand stucks at 600MHz

v8.4
- Used Hyper 4.9.4 SaberModxUber toolchain
- Used VoLTaqe's 1.26.0 busybox in his S7 kernel ( testing )
- Re-added some init scripts 
- Optimized ondemand

v8.3
- Re-added many reverted commits in v8.2
- Added arch power & gentle fair sleepers control in synapse
- Changed some values in ramdisk script

v8.2
- Fixed wrong battery percentage in CM/RR
- Fixed graphics glitches during boot splash
- Reverted many commits for now until I sorted things out
- Restored an older ondemand to works better with hotplug
- Added more controls in VM Sysctl like dirty writeback centisecs, etc.
- Some small changes to BFQ, ROW schedulers

v8.1
- Fixed hotplug and re-added
- Used O2 flag for smaller and more stable kernel
- Used some new optimization flags
- Replace busybox with Dorimanx's busybox 1.24.1
- Added scripts to fstrim & stop Google services at boot
- Added new tabs in synapse, sysctl controls
- Removed some default values in init script to avoid reverting values in synapse

v8.0
- Updated source with commits from GearCM to increase compatibility
- Optimized ARM RWSEM algorithm
- Improved network performance
- Improved I/O and memort
- Fixed some memory leaks
- Fixed battery capacity

v7.9
- Attempted to improve overall performance
- Improved overall network, wireless and bluetooth codes
- Updated source with some more upstream changes from GearCM source

v7.8
- Increased performance on ondemand
- Improved I/O and memory performance
- Improved network
- Re-added Doze in CM/RR versions
- Reduce swappiness
- Some more fixes and optimizations to source

v7.7
- Improved codes related to cpu and cpu stats
- Improved performance & stability
- Added script for some default values in TW ver
- Disabled debugging
- Disabled many unnecessary options and configs

v7.6
- Used @krasCGQ script for other ramdisk compressions in AIO version
- Increase throttling for less heat
- Removed A7 overclock for stability
- Improved network and I/O
- Improved performance in general

v7.5
- Removed 700MHz freq
- Removed dynamic hotplug
- Removed Doze control on touchwiz synapse
- Returned to old build flags
- Fixed Phone & Bluetooth FCs on touchwiz
- Fixed problems with A7 max freq

v7.4
- Use latest 6.1.1 Oct 2 Linaro toolchain
- Fix synapse code for A7 freq control
- Decrease thermal throttling
- Increase default main AC current to 1800mA
- Slightly increase other USB charge source current 

v7.3
- Fix governors causing phone to freeze and reboot
- Fix camera and vibrator for CM version ( need test )
- Add ARM optimization build flag
- Use GearCM IR blaster driver
- Enable ondemand to use up to 1500MHz in A7 cores
- Set default hotplug values
- Remove leftover synapse codes

v7.2
- Fix Touchwiz FCs here and there
- Fix no SD-card in Touchwiz
- Fix some synapse codes, remove wifi power control
- Reduce default max A15 freq to 1600MHz
- Increase default max A7 freq to 1500MHz
- Added an option to control A7 max freq in synapse
- Added init script to set values for Touchwiz version

v7.1
- Experiment new build flags
- Re-enable multi-core power save
- Tweak GPU and big.LITTLE config
- Disabled debug stuffs for lighter kernel
- Fix Touchwiz boot <3

v7.0
- Scripts changes for balanced between battery & performance
- Improved network
- Improved I/O performance
- Properly implemented frandom on boot
- Changes in defconfig to fix boot, hopefully :P
- Minor synapse scripts changes
- Minor optimizations

v6.9
- Added MIF voltage control, yay~
- Added back Low Memory Killer control 
- Added back Dynamic Exynos hot-plugging
- Upgraded to UKSM
- Removed intellidemand since it causes boot problems
- Enabled A7 overclock up to 1.5GHz, GPU up to 700MHz

v6.8 - 24092015
CM:
- Tuned big.LITTLE config
- Added new governors: 
badass, abyssplug, intellidemand, wheatley, ondemand-sec
- Added new build flags

TW:
- Same as 23092016 test build
- Attempted to fix intellidemand
- Disabled hotplug & dynamic fsync for now
- Used VoLTaqe's init script for now

v6.7
- Used the same ramdisk for both GearCM & RRemix
- Optimized kernel with new build flags
- Removed Link Time Optimization as it is not proper implemented
- Some more minor changes in source and init scripts

v6.6 - 16092016
- Enabled devfreq ondemand
- Added master switch button to control crontab
- Fixed some synapse codes
- Fixed cpu frequencies issues

v6.5 - 15092016
- Added back old governors: alucard, conservative, interactive, performance, powersave
- Attempted to fix crontab and backup-restore again
- Attempted to fix freqency stuck at high freq for ondemand
- Fixed backup-restore function
- Some more minor changes in source and synapse scripts

v6.4 - 14092016
- Improvements to I/O, network and memory
- Tuned tweak value in init script for battery
- Added sd-card governor and governor tunables control
- Removed some unused and not working synapse files
- Hybrid powersuspend as default

v6.3 - 11092016
- Added Doze control in synapse ( experimental )
- Added screen off max freq control in synapse ( experimental )
- Attempted to fix crontab & added a check jobs for crontab
- Added fstrim, optimize database and battery calibration tools in misc tab
- Added control for virtual address randomisation in misc tab

v6.2 - 09092016
- Implemented CortexBrain, Crontab services from @VoLTaqe
- Added backup & restore feature in synapse, thanks to Volt again :D
- Added android logging control and save logs feature in misc tab
- Some more minor optimizations 

v6.1 - 08092016
- Reduced latency at some places
- Further decreased thermal throttling
- Increased default charging input current
- Optimized memory and I/O performance
- Increased overall performance :)

v6.0 - 02092016
- Increased default max freq to 1600MHz
- Tuned default values a bit
- Made Software CRC control available in synapse again
- Re-added scrolling caches control, drop caches and some network features back to synapse
- Disabled logging and debugging stuffs again
- Switched back to -O3, disabled -fgraphite
- Disabled Dynamic Fsync & ZRAM for stability
- Some more minor optimizations..

v5.9 - August 30, 2016
- Used A7 optimization flag
- Fixed ondemand stuck at 600MHz ( A7 1200MHz )
- Implemented readpages() to optimize sequential read speed
- Some minor changes and optimizations to CPU

v5.8
- Improved GPU performance
- Fixed a possible memory leak
- Disabled CPU Boost and Hotplug (
- Disabled some old governors and added intellimm, impulse, nightmare governors
- Tuned governors for balanced between performance & battery
- Attempted to fix problems with phone sometimes can't wake up
- Optimized memory use and tweaked default values
- Many optimizations to source to better performance

v5.7
- Added multicore power saving control
- Used -Ofast flag and removed some other optimization flags
- Used less saturated screen colors as default
- Tuned some default values
- Enabled snappy compressor
- Fixed permissions for RRemix version ( need test )

v5.6
- Fixed battery capacity
- Fixed governor control in synapse
- Some minor changes and optimizations
- Removed some leftover lines in synapse

v5.5
- Switched back to -O3 flag
- Re-enabled debugging and logger to get logs
- Attempt to fix some reported app problem by re-enabled some config settings
- Tuned some governors
- Added Dynamic Range Compression control in Audio tab
- Added Wi-Fi power management control in Network tab
- Added scripts to set some default values
- Added [user=5189040]@MD500[/user] script in kernel init script to temporary fix MDNIE 

v5.4
- Disabled A7 1300MHz freq, A15 700Mhz freq again
- Removed VoLtaqe custom busybox 1.25.0
- Fixed screen control not working
- Fixed CRC control not working
- Removed many unnecessary synapse features
- Removed many makefile tweaks and flags for more stable kernel
- Used -O2 flag for smaller and more stable kernel
- Many more minor optimizations


v5.3
- Added back hotplug
- Fixed freq got stuck on 600MHz ( A7 1200MHz ) again
- Removed multi-core power save
- Re-added charge control and reverted charging tweaks

v5.2
- Fixed freq got stuck on 600MHz ( A7 1200MHz )
- Re-added A7 1300MHz and A15 700MHz
- Re-enabled performance and powersave governor
- Removed some unnecessary optimization codes for smaller kernel
- Tweaked some governors
- Fixed synapse permission in GearCM ( need test as I don't run GearCM now )

v5.1
- Attempt to reduce battery drain in some places
- Enabled all governors and I/O schedulers
- Some minor optimizations

v5.0
- Switched to lastest Hyper toolchain 6.1.1 LinaroxSabermod again
- ROW as default to improve boot time
- Powersuspend hybrid as the default
- Cleaned up unnecessary features in synapse
- Added multi-core power saving
- Disabled hotplug since it doesn't work well on our devices
- Disabled A7 1300MHz freq, A15 700Mhz freq
- Tuned governors for battery
- Mimicked some charging tweaks by [user=4296690]@asad007[/user]
- Permissive selinux ( thanks [user=4296690]@asad007[/user] again ), now boot in 5.7.2, tested by me
- Some minor tweaks and optimizations

v4.3
- Switched to custom Link Time Optimzation Linaro 5.3.1 by [user=4898097]@arter97[/user]
- Removed many items in config for lighter kernel
- Disabled some governors and schedulers
- Merged some parts with [user=2386505]@Alberto96[/user] and [user=4296690]@asad007[/user] source to fix some issues
- Tuned ondemand and interactive
- Some minor optimizations

v4.2
- Enabled Link Time Optimization again
- Updated Hyper toolchain to June 26 version but switched back to GCC 4.9.4
- Lower default min freq to 350MHz
- Now using AnyKernel template thanks to [user=4544860]@osm0sis[/user]

v4.1
- Disabled ZRAM
- Disabled some governors and schedulers
- Switched devfreq governor to userspace
- Switched to XZ kernel compression
- Removed fstrim and optimize database since they don't work
- Added some tweaks 
- Increased config_hz from 200 to 300
- Merged with Alberto's kernel config

v4.0
- Replaced IR files with IR files from [user=2386505]@Alberto96[/user] 's kernel
- Replaced sio with sioplus, sio is removed
- Fix possible memory leak
- Disabled some unused stuffs
- Added more control in screen control
- Supports Temasek's CM now :)

v3.9
- Added sioplus ( default now ), tripndroid schedulers
- Switched back to LZO kernel compression
- Added l2_hsic_ws wakelock control at bottom of Network
- Removed some unused synapse files

v3.8.1
- Fixed new lionheart, darkness governors not showing up in Synapse
- Fixed issues with values not sticking in Synapse

v3.8
- Re-enabled conservative and intelliactive
- Re-enabled zen scheduler
- Remove some scripts to avoid random reboots
- Switched to XZ compression for minimal size
- Added new File System tab - CRC & scrolling cache control with wipe options
- Added frandom

v3.7
- Added back values for sound & screen control
- Added scripts for battery and network performance
- Added CPU Boost in Synapse CPU tab
- Added custom busybox 1.25.0 and files for all features to work properly, all credits to [user=5592093]@VoLTaqe[/user]
- Fixed zzmoove not working
- Fixed low memory killer in Synapse not working
- Moved hotplug option to a separated hotplug tab

v3.6
- Removed some scripts at boot so people can set their own values 
- RRemix version ramdisk based on lastest update to fix boot problems

v3.5
- Add CPU hotplug control in CPU tab
- Add options to disable GPU Debug and GPU Vsync in GPU tab
- Add option to set read-ahead for sd-card in I/O tab
- Add low memory killer in memory tab ( currently not working )
- Add options to mount system partition as R/W or R/O, show filesystem for /cache, /data and /system ( EXT4 or F2FS )

v3.4
- Remove not working tabs in synapse
- Fix synapse layouts
- Fix live state function in synapse
- Attempt to fix issue with setup wizard force close
- Some more minor stuffs I dont remember :D

v3.3 
- Added script to prevent google service at boot to reduce loads
- Attempt to reduce battery drain
- Included some of Alberto's kernel changes in his lastest build
- Fix some synapse layout
- Increase thermal throttling to reduce heat

v3.2
- Add many more tabs and things to tweak in synapse :D

v3.1
- Added active cores control in synapse
- Added more control to i/o tab

v3.0
- Fixed init.d thanks to [user=6589753]@krasCGQ[/user]
- SYNAPSE SUPPORT ! thanks to [user=4296690]@asad007[/user] for his help

v2.7
- Disabled some debuggings
- Tune hotplug and governors for battery
- Enabled cpu-boost
- Disabled userspace powersave governors and zen scheduler since ppl dont actually use them

v2.6
- Tweaked wakelocks
- Decreased thermal throttling
- Fix hotplug for less lag
- Disabled IO Stats and add_random
- Improve network speed
- Slightly tweak governors
- Enabled software CRC control
- Enabled ZRAM control
- Enabled vnswap
- Enabled snappy compressor
- Enabled frontswap

v2.5
- Enabled Link Time Optimization
- Revert to -O3 flag

v2.4
- Revert ondemand to use max freq at 1700MHz
- Some more changes to hotplug
- Default set to stock min and max clock speed
- Changes in v2.3 included

v2.3
- Fix ondemand to use all freqs thanks [user=6172162]@Skrillex2911[/user]
- Removed 700Mhz gpu freq for stability
- Disabled optimize for size config
- Changed hotplug for lil more performance
- Applied [user=6043425]@melekbarca[/user] wifi drain fix for RRemix version

v2.2
- Use -Ofast build flag
- Tune governor and cpu to fix some lags
- Hotplug disabled as default
- Added version for Resurrection Remix

v2.1
- Fixed init.d script
- Fixed some small bugs

v2.0
- Reduced A7 OC to max 1.3GHz
- big.LITTLE optimization for A7 and A15
- Fix some problems in last version
- Optimize for speed instead of size
- Removed many useless stuffs

v1.9
- Enable bfq, fiops scheduler
- Enable cpu overclock: A7 to 1.5GHz, A15 to 2.0Ghz
- Scripts for controlling A7 max freqs, wolfson sound control
- Some small bugs fixed

v1.8
- Enabled all gpu freqs, default min=177 and max=480
- Increase charge current to 1900, using scripts solution for now while synapse is unavailable
- Disabled l2_hsic wakelock
- Wolfson sound control is pretuned 
- Small voltage adjustment for gpu
- Add init.d script for controlling gpu freqs, hotplug and charge current

v1.7
- Enabled dynamic fsync support
- Undervolted gpu a bit more
- Upgrade to GCC 6.1.1 Hyper Toolchain - LinaroxSaberMod
- Minor bugs fixed

v1.6
- Add hotplug and tweak for balance between battery and performance
- Default min cpu freq 400MHz, max 600MHz 
- Lock gpu freq at 350, slight voltage tweak
- Enabled KSM support again but disabled as default
- Compiled with -O3 and -fgraphite flags

v1.5 ( should be fine but I havent go time to test )
- Stable undervolt around -50mV as default
- Attempt to reapplied [user=6043425]@melekbarca[/user] wifi fix since it doesn't work last version

v1.4
- Voltage control
- Enabled USB OTG support ( need test since I don't have any OTG devices )
- SIO as default scheduler
- Wifi fix thanks to [user=6043425]@melekbarca[/user]
- Screen color and power saving tweaks thanks to [user=4296690]@asad007[/user] for tweak values on github :D

v1.3
- Switched to Samsung source for more updated source
- Updated Samsung source to 3.4.112
- Add intelliactive, pegasusq governor ( not tested yet so might be unstable )
- Add zen scheduler
- Optimized kernel for size
- Some tweaks for battery and performance

v1.2
- Kernel updated to 3.4.112
- Add zzmove and alucard governor
- Add sio scheduler
- Some minor bugs fixed

v1.1
TW
- Added TW version

CM
- Compiled with LZO
- Minor bugs fix

v1.0
- Initial version


Downloads

Check my final post :) Here: https://forum.xda-developers.com/showpost.php?p=74343297&postcount=1379

Nevermore Telegram Group

File name instructions:
CM variant is for Marshmallow GearCM and GearCM-based ROMs, LG variant is for LineageOS, RR variant is for Resurrection Remix, TW variant is for Lollipop Touchwiz-based ROM

Builds with -N- in the name are for Nougat ROMs


GearRecovery 20160220 credits to @Alberto96

Instructions
-Lastest Gear Recovery recommended to avoid sensors not working-
  • Wipe kernel control app data
  • Reboot to recovery
  • Install GearRecovery
  • Reboot to GearRecovery
  • Backup boot & flash kernel
  • Wipe cache/dalvik & reboot
  • Open synapse and press the tick to apply values
  • Open synapse settings and untick Stability check

Special thanks to
@asad007 for his source, help and contributions
@VoLTaqe for his source, most of synapse features
@frap129 for his Hyper toolchains
@Alberto96 for his source & help
@vishal thakar for his source and help
@robsonsilva for his help
@Skrillex2911 for his help
@AndreiLux his source and synapse
@melekbarca for wifi fix
@krasCGQ for his source and init.d fix
@MD500 for help
and many more authors/contributors of the commits that I used on GitHub, if anyone is missing out feel free to contact me for proper credits here

XDA:DevDB Information
Nevermore Kernel, Kernel for the Samsung Galaxy S4

Contributors
jwchen17, Alberto96, VoLTaqe, frap129, vishal thakar, asad007, Skrillex2911, robsonsilva
Source Code: https://github.com/jwchen1259/android_kernel_samsung_exynos5410

Kernel Special Features: Listed above

Version Information
Status: Testing
Current Stable Version: FINAL
Stable Release Date: 2017-10-30

Created 2016-06-03
Last Updated 2017-10-30
 

Attachments

  • Screenshot_20160720-125927.png
    Screenshot_20160720-125927.png
    209.5 KB · Views: 27,071
  • Screenshot_20160720-125935.png
    Screenshot_20160720-125935.png
    227.8 KB · Views: 26,643
  • Screenshot_20160720-125938.png
    Screenshot_20160720-125938.png
    102.2 KB · Views: 26,102
  • Screenshot_20160720-125948.png
    Screenshot_20160720-125948.png
    175.1 KB · Views: 23,979
  • Screenshot_20160720-125951.png
    Screenshot_20160720-125951.png
    128.1 KB · Views: 23,253
  • Screenshot_20160720-125956.png
    Screenshot_20160720-125956.png
    206.2 KB · Views: 22,636
  • Screenshot_20160720-130002.png
    Screenshot_20160720-130002.png
    202.7 KB · Views: 20,900
  • Screenshot_20160720-130005.jpg
    Screenshot_20160720-130005.jpg
    202.1 KB · Views: 19,775
  • Screenshot_20160720-130008.png
    Screenshot_20160720-130008.png
    229.8 KB · Views: 18,765
  • Screenshot_20160720-130011.png
    Screenshot_20160720-130011.png
    200.3 KB · Views: 17,819
  • Screenshot_20160720-130014.png
    Screenshot_20160720-130014.png
    199.4 KB · Views: 16,624
  • Screenshot_20160720-130017.png
    Screenshot_20160720-130017.png
    247 KB · Views: 15,130
  • Screenshot_20160720-130022.png
    Screenshot_20160720-130022.png
    187.6 KB · Views: 14,135
  • Screenshot_20160720-130027.png
    Screenshot_20160720-130027.png
    199.3 KB · Views: 13,520
  • Screenshot_20160720-130034.png
    Screenshot_20160720-130034.png
    247.4 KB · Views: 12,988
  • Screenshot_20160720-130036.png
    Screenshot_20160720-130036.png
    62.3 KB · Views: 12,580
  • Screenshot_20160720-130039.png
    Screenshot_20160720-130039.png
    83.6 KB · Views: 12,205
  • Screenshot_20160720-130042.png
    Screenshot_20160720-130042.png
    164.9 KB · Views: 12,149
  • Screenshot_20160720-130056.png
    Screenshot_20160720-130056.png
    195.8 KB · Views: 12,930
Last edited:

jwchen17

Senior Member
Jul 26, 2014
659
1,086
Ho Chi Minh City
Current status / Known issues
  • Logging is not working
  • Wakelock issues still there
  • Random reboots ( rarely )
  • JSON errors in Synapse after using the 'Restart Synapse" feature
  • Some Synapse functions don't work properly

Works in progress
  • ̷A̷t̷t̷e̷m̷p̷t̷i̷n̷g̷ ̷t̷o̷ ̷p̷o̷r̷t̷ ̷3̷.̷1̷0̷ ̷k̷e̷r̷n̷e̷l̷ - Nevermind, silly me
  • None, don't have the device anymore :D

Frequently asked questions
  • Q: My sensors are not working, how to fix it??
  • A: What recovery are you using? If it's not GearRecovery then install GearRecovery and install the kernel again. TWRP 3.0 or newer might be just fine altho I have not test
  • Q: Akssmdkad arghhhh this and this force closed, kernel not stable, random reboots, much bugs wow!!! When can you fix this???
  • A: No logs no party. Please at least try to provide a log, try the built-in log function is synapse and be as detailed as you can to describe the problem. Are you using any mods? Any tweak app like L Speed for example? ( I'm not saying it's bad but it might conflicts with kernel settings )

  • Q: How can I get a log for you?
  • A: There are many guides on XDA that show you how to do it. Or try the save log function in synapse.
  • Q: Kernel made mah dear phone overheat too much! Battery much bad plz fix! How can I live with 1 hour SOT hot baguette on my hand??
  • A: Should not be overheating if you are not using heavy apps or playing heavy games, hot is the nature of our exynos5410s anyway. Here is my settings for less heat and better battery but still with a decent performance
Code:
CPU Freq: 350MHz to 600MHz ( 700MHz to 1200MHz on A7 cores )     CPU Governor: Ondemand/Alucard     Voltage: -75mV on all freqs ( -50mV if you feels instability on your device )

GPU Freq: 350MHz to 480MHz     Voltaqe: 177MHz to 350Mhz @ 850mV, 480MHz @ 937mV

CPU Boost and QOS: 1000MHz     Mem boost press freq: 400MHz     Mem boost hold freq: 400MHz     MIF Voltaqe: 100MHz @ 775mV, 200MHz @ 800mV, 400MHz @ 850mV, 800MHz @ 950mV

I/O scheduler: ROW/SIO    Read-ahead: 1024 KB

  • Q: Kernel so good I cri ! New version plz
  • A: Bah bye
  • Q: Can you add xyz features?
  • A: Feel free to ask for new features as long as you did some research to see if it's possible
  • Q: Thanks for your work bro!
  • A: Press thanks on my posts and consider donating :D
 
Last edited:

jwchen17

Senior Member
Jul 26, 2014
659
1,086
Ho Chi Minh City
Good work, buddy...
But, I don't see anything except README.md on your source. Could you upload your valid sources? It's a GPLv2 requirement.

Sent from my ASUS_Z00A using XDA Labs

ill upload it as soon as i arrive home because im still transiting in airport and internet here is quite slow :D im still learning how github work and stuff also
 

jwchen17

Senior Member
Jul 26, 2014
659
1,086
Ho Chi Minh City
whats wrong all time u say that and that

---------- Post added at 03:56 PM ---------- Previous post was at 03:50 PM ----------

Hi @jwchen17 and were is file to download

sorry guys i messed up something and the kernel didnt boot, the first time i test it boot because i misflashed v1 so i thought it is ok, im also dont have time to fix it now but ill fix when i have time
 

lamhoang

Member
Jun 8, 2016
25
9
Feature requests

I just tried v1.2 this morning and noticed that the device get hotter compared to virus kernel or light weight, any ideas? Please add synapse support also bro.
 

jwchen17

Senior Member
Jul 26, 2014
659
1,086
Ho Chi Minh City
I just tried v1.2 this morning and noticed that the device get hotter compared to virus kernel or light weight, any ideas? Please add synapse support also bro.

I rarely noticed heating problems on my device but I will try to figure it out, also try the new v1.3 and let me know what you think :D I'm also thinking about synapse but i'm not sure yet cuz I felt like kernel adiutor is enough to manage the kernel.
 

jwchen17

Senior Member
Jul 26, 2014
659
1,086
Ho Chi Minh City
Weird. I can't access both of your v1.3 link and your kernel folder. Firefox redirects me into Google sign-in page

Could you adjust the permission a bit?

Sent from my ASUS_Z00A using XDA Labs

Just checked and confirmed that links are not working :( Sad that I didnt login to google account before on my oneplus so now cant fix cuz need the code sent to my s4 for login, my bad my bad, will fix asap

Sent from my ONE A2003 using Tapatalk
 

zozoz13

Senior Member
May 18, 2014
1,005
392
Jakarta
For i9500???

Sent from my GT-I9500 using XDA-Developers mobile app
Yes.
For Dev, please be more clear. You didn't mention which variant support this kernel in OP, nor in the title. Just want to remind to prevent other variant users brick their device by flashing this kernel.
And the download link still not accessible..

Sent from my Galaxy S4
 
Last edited:
  • Like
Reactions: ridershahmir

jwchen17

Senior Member
Jul 26, 2014
659
1,086
Ho Chi Minh City
Yes.
For Dev, please be more clear. You didn't mention which variant support this kernel in OP, nor in the title. Just want to remind to prevent other variant users brick their device by flashing this kernel.
And the download link still not accessible..

Sent from my Galaxy S4

I thought it's not necessary since people should already know that this forum is S4 I9500 Android Development so things should be for I9500 but I add it anyway on the title :D

Anyway, v1.4 is out guys, fixed Google Drive permission
 
  • Like
Reactions: halbinger and ktouy

ridershahmir

Senior Member
Dec 5, 2012
571
126
I thought it's not necessary since people should already know that this forum is S4 I9500 Android Development so things should be for I9500 but I add it anyway on the title :D

Anyway, v1.4 is out guys, fixed Google Drive permission
Well ideally it should be like that but in the reality some beginners won't get it and it's on the safe side, BTW thanks for a new kernel

Sent from my GT-I9500 using XDA-Developers mobile app
 

Top Liked Posts

  • There are no posts matching your filters.
  • 66
    NEVERMOREX KERNEL

    Code:
    /*
    * I am not responsible for bricked devices, dead SD cards,
    * thermonuclear war, or you getting fired because the alarm app failed. Please[PHP][/PHP]
    * do some research if you have any concerns about features included in this KERNEL
    * before flashing it! YOU are installing these modifications to your device!
    */
    Features

    Full synapse control
    Based on latest Samsung source I9500XXUHPI2
    XZ kernel compression - GZIP ramdisk compression
    Link-Time, RWSEM, ARM, NEON, big.LITTLE optimizations
    Overclock A7 up to 1.5GHz, A15 up to 2.0GHz, GPU to 700MHz
    Underclock A7 min to 200MHz, A15 min to 700MHz, GPU to 177MHz
    Full voltage control for CPU, GPU, MIF
    Governors

    ondemand, ondemand-sec, alucard, interactive, conservative, powersave, performance, intelliactive, lionheart, darkness, nightmare, intelimm, badass, abyssplug, wheatley, intellidemand
    Power efficient workqueue control & multi-core power savingsl
    Wolfson sound control & Dynamic Range Compression toggle
    MDNIE screen control control
    Full charging current control
    TCP congestion algorithms

    westwood, cubic, bic, reno, htcp, highspeed, hybla, vegas, scalable, lp, veno, yeah, illinois
    GPS, DNS, IPv6 & network security tweak
    I/O schedulers

    sioplus, noop, deadline, sio, cfg, bfq, fiops, zen, row, tripndroid
    Kernel samepage merging
    LMK & Dynamic Fsync control
    Doze modes control
    CortexBrain and Crontab services
    OTG USB support
    IR blaster working
    Backup-restore option
    And many more ....


    Changelogs
    For more details check my GitHub/
    FINAL - Maybeee we can call it v11.0 if it works fine for every variants haha
    Prenougat:
    - Added a switch to control l2_hsic wakelock
    - Reduced latency for softirq
    - Tuned for stability and adjusted some ramdisk scripts
    - Reduced aggressiveness on default low memory killer profile
    - [SYNAPSE] Removed experimental screen mode tab

    Nougat:
    - Added a switch to control l2_hsic wakelock
    - Removed most governors & I/O scheds for stability
    - Updated with all recent commits by Alberto on LOS
    - Updated ramdisk with the current ones in LOS and RR
    - Fixed paths and permissions to control l2-hsic wakelock and mdnie
    - [SYNAPSE] Removed some non working features like sound, misc control, etc

    ..and some finishing tuning here and there for all variants.

    Older changelogs here:

    Code:
    v10.6
    Nougat builds
    - Added charging control
    - Added ROW I/O scheduler
    - Fixed synapse & cleaned up files for not implemented features
    - Compressed ramdisk in GZIP for SuperSU supports
    - Some minor fixes and tweaks in ramdisk
    
    Pre-Nougat builds
    - Reverted some stuff for better stability
    - Compressed ramdisk in GZIP
    - Some minor fixes and tweaks in ramdisk
    
    v10.5
    Nougat builds  & Pre-Nougat builds
    - Updated toolchain
    - Attempted to fix synapse (haven't test on Nougat builds)
    - Reduced kernel's size
    - Some minor changes for stab
    
    v10.4
    Nougat builds
    - Added synapse files ( expect errors )
    - Added pegasusq governor & some more I forgot
    - Adjusted some permissions and init values
    
    Pre-Nougat builds
    - Added pegasusq governor
    - Adjusted some permissions and init values
    - Minor changes to synapse descriptions
    
    v10.3
    Nougat builds
    - Adjusted init scripts for more performance
    - Attempted to fix mobile hotspot
    
    Pre-Nougat builds
    - Removed some init scripts
    - Fixed some synapse permissions
    
    v10.2
    Nougat builds
    - Initial release, based on Alberto's latest source for Lineage
    - Added more governors, I/O scheds and TCP algorithms
    - Added some patches by @sunilpaulmathew
    - Increased charging current (experimental)
    - Tweaked a bit here and there...
    
    Pre-Nougat builds
    - Adjusted some tabs, removed not working features in synapse
    - Tuned some init values and some default governor's tunables
    
    v10.1 
    - Updated source to 3.4.113
    - Tweaked some minor governor values
    
    v10.0 
    - Back to -O2 optimization flags
    - Updated kernel source to 3.4.112
    - All changes from [URL="https://forum.xda-developers.com/showpost.php?p=72365296&postcount=1210"]20052017 beta build 
    
    -Restarted from v9.9-
    
    v10.5 - 11052017
    - Adjusted init values
    - Reverted some small changes for more stable kernel
    - Drecrease latency multiplier on ondemand
    - SYNAPSE: Re-added doze control for CM and RR
    
    v10.4 - 24042017
    - More governors & I/O schedulers
    - Disabled some unnecessary configs
    - Clean up some synapse related stuff
    
    v10.3 - 17042017
    - Removed gpu init scripts 
    - Decreased the default RQ Affinity to 1
    - Fixed some minor issues regarding Synapse
    - Attempted to fix logging function
    - Attempted to improve big.LITTLE switching
    
    v10.2 - 16042017
    - Changed toolchain to LxSM 5.x
    - Tuned governors & init scripts
    - Removed unnecessary optimization flags for smaller kernel
    - Compressed ramdisk in LZMA for smaller package
    - Small changes for kernel and install script
    
    v10.1 - 31032017 thanks to @halbinger for compiling
    - Disabled dynamic hotplug
    - Adjusted init values
    - Increased latency multiplier on ondemand
    
    v10.0 - 26032017
    - Re-based on Samsung source I9500XXUHPI2
    - Optimized governors & I/O schedulers
    - Tuned init scripts & set GPU max 532MHz / min 266MHz as default
    - Enabled modules support & modules tab in synapse
    - Enabled NTFS, CIFS, ISO, UDF, XPAD support
    - Enabled OTG USB & SideSync support in TW version
    - Disabled remaining debugging and logging features
    - Disabled some unstable governors
    - Various tweaks here and there..
    
    v9.9
    - Disabled ondemand-sec
    - Pipe optimization flag
    - Optimized values in init scripts
    - Removed build.prop tweaks in ramdisk
    - Minor adjustments here and there
    
    v9.8
    - Hyper LxSM 6.1.1 toolchain again
    - LZMA ramdisk compression
    - Removed ramdisk network tweaks
    - Minor init values tweaks
    
    v9.7
    - Reduced wlan_rx & wlan_ctrl wakelocks
    - Reduced hotplug polling
    - Removed limit on pm_wakelock config
    - Tweaked ramdisk init values for more performance
    - Minor synapse code changes and tab re-arrangements
    
    v9.6
    - Back to xz kernel compression & O3 flag
    - Changes regarding pm_wakelock configs
    - Fixed possible memory leak
    - Some kernel fixes and upstream changes
    - Minor ramdisk changes and tweaks
    
    v9.5
    - Patched storage like @BeeOS request
    - Used gzip as kernel compression
    - Optimized for ARM & size
    - Tweaked ramdisk a bit
    
    v9.4.2
    - Increased performance of ondemand
    - Enabled vnswap
    - Updated Touchwiz module files 
    - Disabled network filesystem
    
    v9.4.1
    - SYNAPSE: Attempted to fix live cpufreq display
    - Some minor fixes
    
    v9.4
    - Disabled most configs in prev version, seems to slow down the device
    - Enabled modules support in TW version
    - Optimize ondemand for more battery
    - Re-adjusted some memory init tweaks 
    - SYNAPSE: Remove some unnecessary options and wakelock tab for now
    
    v9.3
    - Re-enabled some configs for both versions
    - Tweaked some init values for snappier kernel
    - Disabled power save bias by default in ondemand
    - Added back google service drain fix for TW by default
    - SYNAPSE: Added more control for wakelocks 
    - SYNAPSE: Added live display for active cluster A15/A7
    - SYNAPSE: Added a switch for kernel log
    
    v9.2
    - cfq as default I/O scheduler
    - Compiled gpu with Ofast
    - SYNAPSE: Added wakelocks tab with google service drain fix
    - SYNAPSE: Added wipe init.d option in case init.d scripts interfere with kernel settings
    - Optimized hotplug and ondemand for battery
    
    v9.1
    - SYNAPSE: Added more dpi options in resolution changing
    - Enabled swap
    - SYNAPSE: Fixed errors
    - Disabled OC, now max freq 1.6GHz
    - Changed some init values in ramdisk
    
    v9.0
    - Reverted ondemand changes to fix freq stuck
    - Fixed TW issues on v8.9
    - SYNAPSE: Fixed optimize database tool in synapse
    - SYNAPSE: Added some simple build.prop options in tweaks tab
    - SYNAPSE: Added screen resolution and color mode from Alberto's GearCM 12.1
    - Removed google service scripts on TW for now
    
    v8.9
    - Used Hyper 5.x toolchain with some of my changes
    - Used one defconfig for both CM and TW
    - Cherry-picked latest commits from GearCM again
    - Minor changes in ramdisk tweaks
    
    v8.8
    - Fixed Phone & Bluetooth on TW ( silly selinux stuffs )
    - Tweaked some init script values
    - Re-arranged some synapse features again
    - Some small changes I forgot
    
    v8.7
    - Re-added logging control in synapse
    - Reverted to O3 flag instead of Ofast for the GPU
    - Tweaked alucard governor
    - Enabled joystick and tablet input support
    - Some minor changes defconfig
    
    v8.6 - Christmas build :P
    - Fixed TW FC issues ( hopefully )
    - Used to 4.9 toolchain from now on to ensure compatibility
    - Tweaked some governors
    - Re-arranged some synapse features to separated tabs
    
    v8.5.1
    - Restored some configs in TW version to fix FCs
    - Changed some default values in ramdisk script
    - Cleaned up some unused Synapse files
    
    v8.5
    - Updated sources with changes in stock GearCM source
    - Compiled with 6.1.1 Hyper LxSM again
    - Fixed some default values
    - Fixed cortexbrain in Touchwiz
    - Minor optimizations and change in build flags
    
    v8.4.1
    - Fixed CortexBrain 
    - Fixed ondemand stucks at 600MHz
    
    v8.4
    - Used Hyper 4.9.4 SaberModxUber toolchain
    - Used VoLTaqe's 1.26.0 busybox in his S7 kernel ( testing )
    - Re-added some init scripts 
    - Optimized ondemand
    
    v8.3
    - Re-added many reverted commits in v8.2
    - Added arch power & gentle fair sleepers control in synapse
    - Changed some values in ramdisk script
    
    v8.2
    - Fixed wrong battery percentage in CM/RR
    - Fixed graphics glitches during boot splash
    - Reverted many commits for now until I sorted things out
    - Restored an older ondemand to works better with hotplug
    - Added more controls in VM Sysctl like dirty writeback centisecs, etc.
    - Some small changes to BFQ, ROW schedulers
    
    v8.1
    - Fixed hotplug and re-added
    - Used O2 flag for smaller and more stable kernel
    - Used some new optimization flags
    - Replace busybox with Dorimanx's busybox 1.24.1
    - Added scripts to fstrim & stop Google services at boot
    - Added new tabs in synapse, sysctl controls
    - Removed some default values in init script to avoid reverting values in synapse
    
    v8.0
    - Updated source with commits from GearCM to increase compatibility
    - Optimized ARM RWSEM algorithm
    - Improved network performance
    - Improved I/O and memort
    - Fixed some memory leaks
    - Fixed battery capacity
    
    v7.9
    - Attempted to improve overall performance
    - Improved overall network, wireless and bluetooth codes
    - Updated source with some more upstream changes from GearCM source
    
    v7.8
    - Increased performance on ondemand
    - Improved I/O and memory performance
    - Improved network
    - Re-added Doze in CM/RR versions
    - Reduce swappiness
    - Some more fixes and optimizations to source
    
    v7.7
    - Improved codes related to cpu and cpu stats
    - Improved performance & stability
    - Added script for some default values in TW ver
    - Disabled debugging
    - Disabled many unnecessary options and configs
    
    v7.6
    - Used @krasCGQ script for other ramdisk compressions in AIO version
    - Increase throttling for less heat
    - Removed A7 overclock for stability
    - Improved network and I/O
    - Improved performance in general
    
    v7.5
    - Removed 700MHz freq
    - Removed dynamic hotplug
    - Removed Doze control on touchwiz synapse
    - Returned to old build flags
    - Fixed Phone & Bluetooth FCs on touchwiz
    - Fixed problems with A7 max freq
    
    v7.4
    - Use latest 6.1.1 Oct 2 Linaro toolchain
    - Fix synapse code for A7 freq control
    - Decrease thermal throttling
    - Increase default main AC current to 1800mA
    - Slightly increase other USB charge source current 
    
    v7.3
    - Fix governors causing phone to freeze and reboot
    - Fix camera and vibrator for CM version ( need test )
    - Add ARM optimization build flag
    - Use GearCM IR blaster driver
    - Enable ondemand to use up to 1500MHz in A7 cores
    - Set default hotplug values
    - Remove leftover synapse codes
    
    v7.2
    - Fix Touchwiz FCs here and there
    - Fix no SD-card in Touchwiz
    - Fix some synapse codes, remove wifi power control
    - Reduce default max A15 freq to 1600MHz
    - Increase default max A7 freq to 1500MHz
    - Added an option to control A7 max freq in synapse
    - Added init script to set values for Touchwiz version
    
    v7.1
    - Experiment new build flags
    - Re-enable multi-core power save
    - Tweak GPU and big.LITTLE config
    - Disabled debug stuffs for lighter kernel
    - Fix Touchwiz boot <3
    
    v7.0
    - Scripts changes for balanced between battery & performance
    - Improved network
    - Improved I/O performance
    - Properly implemented frandom on boot
    - Changes in defconfig to fix boot, hopefully :P
    - Minor synapse scripts changes
    - Minor optimizations
    
    v6.9
    - Added MIF voltage control, yay~
    - Added back Low Memory Killer control 
    - Added back Dynamic Exynos hot-plugging
    - Upgraded to UKSM
    - Removed intellidemand since it causes boot problems
    - Enabled A7 overclock up to 1.5GHz, GPU up to 700MHz
    
    v6.8 - 24092015
    CM:
    - Tuned big.LITTLE config
    - Added new governors: 
    badass, abyssplug, intellidemand, wheatley, ondemand-sec
    - Added new build flags
    
    TW:
    - Same as 23092016 test build
    - Attempted to fix intellidemand
    - Disabled hotplug & dynamic fsync for now
    - Used VoLTaqe's init script for now
    
    v6.7
    - Used the same ramdisk for both GearCM & RRemix
    - Optimized kernel with new build flags
    - Removed Link Time Optimization as it is not proper implemented
    - Some more minor changes in source and init scripts
    
    v6.6 - 16092016
    - Enabled devfreq ondemand
    - Added master switch button to control crontab
    - Fixed some synapse codes
    - Fixed cpu frequencies issues
    
    v6.5 - 15092016
    - Added back old governors: alucard, conservative, interactive, performance, powersave
    - Attempted to fix crontab and backup-restore again
    - Attempted to fix freqency stuck at high freq for ondemand
    - Fixed backup-restore function
    - Some more minor changes in source and synapse scripts
    
    v6.4 - 14092016
    - Improvements to I/O, network and memory
    - Tuned tweak value in init script for battery
    - Added sd-card governor and governor tunables control
    - Removed some unused and not working synapse files
    - Hybrid powersuspend as default
    
    v6.3 - 11092016
    - Added Doze control in synapse ( experimental )
    - Added screen off max freq control in synapse ( experimental )
    - Attempted to fix crontab & added a check jobs for crontab
    - Added fstrim, optimize database and battery calibration tools in misc tab
    - Added control for virtual address randomisation in misc tab
    
    v6.2 - 09092016
    - Implemented CortexBrain, Crontab services from @VoLTaqe
    - Added backup & restore feature in synapse, thanks to Volt again :D
    - Added android logging control and save logs feature in misc tab
    - Some more minor optimizations 
    
    v6.1 - 08092016
    - Reduced latency at some places
    - Further decreased thermal throttling
    - Increased default charging input current
    - Optimized memory and I/O performance
    - Increased overall performance :)
    
    v6.0 - 02092016
    - Increased default max freq to 1600MHz
    - Tuned default values a bit
    - Made Software CRC control available in synapse again
    - Re-added scrolling caches control, drop caches and some network features back to synapse
    - Disabled logging and debugging stuffs again
    - Switched back to -O3, disabled -fgraphite
    - Disabled Dynamic Fsync & ZRAM for stability
    - Some more minor optimizations..
    
    v5.9 - August 30, 2016
    - Used A7 optimization flag
    - Fixed ondemand stuck at 600MHz ( A7 1200MHz )
    - Implemented readpages() to optimize sequential read speed
    - Some minor changes and optimizations to CPU
    
    v5.8
    - Improved GPU performance
    - Fixed a possible memory leak
    - Disabled CPU Boost and Hotplug (
    - Disabled some old governors and added intellimm, impulse, nightmare governors
    - Tuned governors for balanced between performance & battery
    - Attempted to fix problems with phone sometimes can't wake up
    - Optimized memory use and tweaked default values
    - Many optimizations to source to better performance
    
    v5.7
    - Added multicore power saving control
    - Used -Ofast flag and removed some other optimization flags
    - Used less saturated screen colors as default
    - Tuned some default values
    - Enabled snappy compressor
    - Fixed permissions for RRemix version ( need test )
    
    v5.6
    - Fixed battery capacity
    - Fixed governor control in synapse
    - Some minor changes and optimizations
    - Removed some leftover lines in synapse
    
    v5.5
    - Switched back to -O3 flag
    - Re-enabled debugging and logger to get logs
    - Attempt to fix some reported app problem by re-enabled some config settings
    - Tuned some governors
    - Added Dynamic Range Compression control in Audio tab
    - Added Wi-Fi power management control in Network tab
    - Added scripts to set some default values
    - Added [user=5189040]@MD500[/user] script in kernel init script to temporary fix MDNIE 
    
    v5.4
    - Disabled A7 1300MHz freq, A15 700Mhz freq again
    - Removed VoLtaqe custom busybox 1.25.0
    - Fixed screen control not working
    - Fixed CRC control not working
    - Removed many unnecessary synapse features
    - Removed many makefile tweaks and flags for more stable kernel
    - Used -O2 flag for smaller and more stable kernel
    - Many more minor optimizations
    
    
    v5.3
    - Added back hotplug
    - Fixed freq got stuck on 600MHz ( A7 1200MHz ) again
    - Removed multi-core power save
    - Re-added charge control and reverted charging tweaks
    
    v5.2
    - Fixed freq got stuck on 600MHz ( A7 1200MHz )
    - Re-added A7 1300MHz and A15 700MHz
    - Re-enabled performance and powersave governor
    - Removed some unnecessary optimization codes for smaller kernel
    - Tweaked some governors
    - Fixed synapse permission in GearCM ( need test as I don't run GearCM now )
    
    v5.1
    - Attempt to reduce battery drain in some places
    - Enabled all governors and I/O schedulers
    - Some minor optimizations
    
    v5.0
    - Switched to lastest Hyper toolchain 6.1.1 LinaroxSabermod again
    - ROW as default to improve boot time
    - Powersuspend hybrid as the default
    - Cleaned up unnecessary features in synapse
    - Added multi-core power saving
    - Disabled hotplug since it doesn't work well on our devices
    - Disabled A7 1300MHz freq, A15 700Mhz freq
    - Tuned governors for battery
    - Mimicked some charging tweaks by [user=4296690]@asad007[/user]
    - Permissive selinux ( thanks [user=4296690]@asad007[/user] again ), now boot in 5.7.2, tested by me
    - Some minor tweaks and optimizations
    
    v4.3
    - Switched to custom Link Time Optimzation Linaro 5.3.1 by [user=4898097]@arter97[/user]
    - Removed many items in config for lighter kernel
    - Disabled some governors and schedulers
    - Merged some parts with [user=2386505]@Alberto96[/user] and [user=4296690]@asad007[/user] source to fix some issues
    - Tuned ondemand and interactive
    - Some minor optimizations
    
    v4.2
    - Enabled Link Time Optimization again
    - Updated Hyper toolchain to June 26 version but switched back to GCC 4.9.4
    - Lower default min freq to 350MHz
    - Now using AnyKernel template thanks to [user=4544860]@osm0sis[/user]
    
    v4.1
    - Disabled ZRAM
    - Disabled some governors and schedulers
    - Switched devfreq governor to userspace
    - Switched to XZ kernel compression
    - Removed fstrim and optimize database since they don't work
    - Added some tweaks 
    - Increased config_hz from 200 to 300
    - Merged with Alberto's kernel config
    
    v4.0
    - Replaced IR files with IR files from [user=2386505]@Alberto96[/user] 's kernel
    - Replaced sio with sioplus, sio is removed
    - Fix possible memory leak
    - Disabled some unused stuffs
    - Added more control in screen control
    - Supports Temasek's CM now :)
    
    v3.9
    - Added sioplus ( default now ), tripndroid schedulers
    - Switched back to LZO kernel compression
    - Added l2_hsic_ws wakelock control at bottom of Network
    - Removed some unused synapse files
    
    v3.8.1
    - Fixed new lionheart, darkness governors not showing up in Synapse
    - Fixed issues with values not sticking in Synapse
    
    v3.8
    - Re-enabled conservative and intelliactive
    - Re-enabled zen scheduler
    - Remove some scripts to avoid random reboots
    - Switched to XZ compression for minimal size
    - Added new File System tab - CRC & scrolling cache control with wipe options
    - Added frandom
    
    v3.7
    - Added back values for sound & screen control
    - Added scripts for battery and network performance
    - Added CPU Boost in Synapse CPU tab
    - Added custom busybox 1.25.0 and files for all features to work properly, all credits to [user=5592093]@VoLTaqe[/user]
    - Fixed zzmoove not working
    - Fixed low memory killer in Synapse not working
    - Moved hotplug option to a separated hotplug tab
    
    v3.6
    - Removed some scripts at boot so people can set their own values 
    - RRemix version ramdisk based on lastest update to fix boot problems
    
    v3.5
    - Add CPU hotplug control in CPU tab
    - Add options to disable GPU Debug and GPU Vsync in GPU tab
    - Add option to set read-ahead for sd-card in I/O tab
    - Add low memory killer in memory tab ( currently not working )
    - Add options to mount system partition as R/W or R/O, show filesystem for /cache, /data and /system ( EXT4 or F2FS )
    
    v3.4
    - Remove not working tabs in synapse
    - Fix synapse layouts
    - Fix live state function in synapse
    - Attempt to fix issue with setup wizard force close
    - Some more minor stuffs I dont remember :D
    
    v3.3 
    - Added script to prevent google service at boot to reduce loads
    - Attempt to reduce battery drain
    - Included some of Alberto's kernel changes in his lastest build
    - Fix some synapse layout
    - Increase thermal throttling to reduce heat
    
    v3.2
    - Add many more tabs and things to tweak in synapse :D
    
    v3.1
    - Added active cores control in synapse
    - Added more control to i/o tab
    
    v3.0
    - Fixed init.d thanks to [user=6589753]@krasCGQ[/user]
    - SYNAPSE SUPPORT ! thanks to [user=4296690]@asad007[/user] for his help
    
    v2.7
    - Disabled some debuggings
    - Tune hotplug and governors for battery
    - Enabled cpu-boost
    - Disabled userspace powersave governors and zen scheduler since ppl dont actually use them
    
    v2.6
    - Tweaked wakelocks
    - Decreased thermal throttling
    - Fix hotplug for less lag
    - Disabled IO Stats and add_random
    - Improve network speed
    - Slightly tweak governors
    - Enabled software CRC control
    - Enabled ZRAM control
    - Enabled vnswap
    - Enabled snappy compressor
    - Enabled frontswap
    
    v2.5
    - Enabled Link Time Optimization
    - Revert to -O3 flag
    
    v2.4
    - Revert ondemand to use max freq at 1700MHz
    - Some more changes to hotplug
    - Default set to stock min and max clock speed
    - Changes in v2.3 included
    
    v2.3
    - Fix ondemand to use all freqs thanks [user=6172162]@Skrillex2911[/user]
    - Removed 700Mhz gpu freq for stability
    - Disabled optimize for size config
    - Changed hotplug for lil more performance
    - Applied [user=6043425]@melekbarca[/user] wifi drain fix for RRemix version
    
    v2.2
    - Use -Ofast build flag
    - Tune governor and cpu to fix some lags
    - Hotplug disabled as default
    - Added version for Resurrection Remix
    
    v2.1
    - Fixed init.d script
    - Fixed some small bugs
    
    v2.0
    - Reduced A7 OC to max 1.3GHz
    - big.LITTLE optimization for A7 and A15
    - Fix some problems in last version
    - Optimize for speed instead of size
    - Removed many useless stuffs
    
    v1.9
    - Enable bfq, fiops scheduler
    - Enable cpu overclock: A7 to 1.5GHz, A15 to 2.0Ghz
    - Scripts for controlling A7 max freqs, wolfson sound control
    - Some small bugs fixed
    
    v1.8
    - Enabled all gpu freqs, default min=177 and max=480
    - Increase charge current to 1900, using scripts solution for now while synapse is unavailable
    - Disabled l2_hsic wakelock
    - Wolfson sound control is pretuned 
    - Small voltage adjustment for gpu
    - Add init.d script for controlling gpu freqs, hotplug and charge current
    
    v1.7
    - Enabled dynamic fsync support
    - Undervolted gpu a bit more
    - Upgrade to GCC 6.1.1 Hyper Toolchain - LinaroxSaberMod
    - Minor bugs fixed
    
    v1.6
    - Add hotplug and tweak for balance between battery and performance
    - Default min cpu freq 400MHz, max 600MHz 
    - Lock gpu freq at 350, slight voltage tweak
    - Enabled KSM support again but disabled as default
    - Compiled with -O3 and -fgraphite flags
    
    v1.5 ( should be fine but I havent go time to test )
    - Stable undervolt around -50mV as default
    - Attempt to reapplied [user=6043425]@melekbarca[/user] wifi fix since it doesn't work last version
    
    v1.4
    - Voltage control
    - Enabled USB OTG support ( need test since I don't have any OTG devices )
    - SIO as default scheduler
    - Wifi fix thanks to [user=6043425]@melekbarca[/user]
    - Screen color and power saving tweaks thanks to [user=4296690]@asad007[/user] for tweak values on github :D
    
    v1.3
    - Switched to Samsung source for more updated source
    - Updated Samsung source to 3.4.112
    - Add intelliactive, pegasusq governor ( not tested yet so might be unstable )
    - Add zen scheduler
    - Optimized kernel for size
    - Some tweaks for battery and performance
    
    v1.2
    - Kernel updated to 3.4.112
    - Add zzmove and alucard governor
    - Add sio scheduler
    - Some minor bugs fixed
    
    v1.1
    TW
    - Added TW version
    
    CM
    - Compiled with LZO
    - Minor bugs fix
    
    v1.0
    - Initial version


    Downloads

    Check my final post :) Here: https://forum.xda-developers.com/showpost.php?p=74343297&postcount=1379

    Nevermore Telegram Group

    File name instructions:
    CM variant is for Marshmallow GearCM and GearCM-based ROMs, LG variant is for LineageOS, RR variant is for Resurrection Remix, TW variant is for Lollipop Touchwiz-based ROM

    Builds with -N- in the name are for Nougat ROMs


    GearRecovery 20160220 credits to @Alberto96

    Instructions
    -Lastest Gear Recovery recommended to avoid sensors not working-
    • Wipe kernel control app data
    • Reboot to recovery
    • Install GearRecovery
    • Reboot to GearRecovery
    • Backup boot & flash kernel
    • Wipe cache/dalvik & reboot
    • Open synapse and press the tick to apply values
    • Open synapse settings and untick Stability check

    Special thanks to
    @asad007 for his source, help and contributions
    @VoLTaqe for his source, most of synapse features
    @frap129 for his Hyper toolchains
    @Alberto96 for his source & help
    @vishal thakar for his source and help
    @robsonsilva for his help
    @Skrillex2911 for his help
    @AndreiLux his source and synapse
    @melekbarca for wifi fix
    @krasCGQ for his source and init.d fix
    @MD500 for help
    and many more authors/contributors of the commits that I used on GitHub, if anyone is missing out feel free to contact me for proper credits here

    XDA:DevDB Information
    Nevermore Kernel, Kernel for the Samsung Galaxy S4

    Contributors
    jwchen17, Alberto96, VoLTaqe, frap129, vishal thakar, asad007, Skrillex2911, robsonsilva
    Source Code: https://github.com/jwchen1259/android_kernel_samsung_exynos5410

    Kernel Special Features: Listed above

    Version Information
    Status: Testing
    Current Stable Version: FINAL
    Stable Release Date: 2017-10-30

    Created 2016-06-03
    Last Updated 2017-10-30
    32
    Current status / Known issues
    • Logging is not working
    • Wakelock issues still there
    • Random reboots ( rarely )
    • JSON errors in Synapse after using the 'Restart Synapse" feature
    • Some Synapse functions don't work properly

    Works in progress
    • ̷A̷t̷t̷e̷m̷p̷t̷i̷n̷g̷ ̷t̷o̷ ̷p̷o̷r̷t̷ ̷3̷.̷1̷0̷ ̷k̷e̷r̷n̷e̷l̷ - Nevermind, silly me
    • None, don't have the device anymore :D

    Frequently asked questions
    • Q: My sensors are not working, how to fix it??
    • A: What recovery are you using? If it's not GearRecovery then install GearRecovery and install the kernel again. TWRP 3.0 or newer might be just fine altho I have not test
    • Q: Akssmdkad arghhhh this and this force closed, kernel not stable, random reboots, much bugs wow!!! When can you fix this???
    • A: No logs no party. Please at least try to provide a log, try the built-in log function is synapse and be as detailed as you can to describe the problem. Are you using any mods? Any tweak app like L Speed for example? ( I'm not saying it's bad but it might conflicts with kernel settings )

    • Q: How can I get a log for you?
    • A: There are many guides on XDA that show you how to do it. Or try the save log function in synapse.
    • Q: Kernel made mah dear phone overheat too much! Battery much bad plz fix! How can I live with 1 hour SOT hot baguette on my hand??
    • A: Should not be overheating if you are not using heavy apps or playing heavy games, hot is the nature of our exynos5410s anyway. Here is my settings for less heat and better battery but still with a decent performance
    Code:
    CPU Freq: 350MHz to 600MHz ( 700MHz to 1200MHz on A7 cores )     CPU Governor: Ondemand/Alucard     Voltage: -75mV on all freqs ( -50mV if you feels instability on your device )
    
    GPU Freq: 350MHz to 480MHz     Voltaqe: 177MHz to 350Mhz @ 850mV, 480MHz @ 937mV
    
    CPU Boost and QOS: 1000MHz     Mem boost press freq: 400MHz     Mem boost hold freq: 400MHz     MIF Voltaqe: 100MHz @ 775mV, 200MHz @ 800mV, 400MHz @ 850mV, 800MHz @ 950mV
    
    I/O scheduler: ROW/SIO    Read-ahead: 1024 KB

    • Q: Kernel so good I cri ! New version plz
    • A: Bah bye
    • Q: Can you add xyz features?
    • A: Feel free to ask for new features as long as you did some research to see if it's possible
    • Q: Thanks for your work bro!
    • A: Press thanks on my posts and consider donating :D
    13
    Update!

    v10.2
    Nougat builds
    - Initial release, based on Alberto's latest source for Lineage
    - Added more governors, I/O scheds and TCP algorithms
    - Added some patches by @sunilpaulmathew
    - Increased speaker and earpieces volume by default
    - Increased charging current (experimental)
    - Tweaked a bit here and there...

    Pre-Nougat builds
    - Adjusted some tabs, removed not working features in synapse
    - Tuned some init values and some default governor's tunables

    I was kinda bored yesterday and managed to put together some new builds. I haven't test all the builds but they should all boot. Make sure to report back if anything is not working :) Nougat builds don't support Synapse for now.
    13
    Final version!

    FINAL
    Prenougat:
    - Added a switch to control l2_hsic wakelock
    - Reduced latency for softirq
    - Tuned for stability and adjusted some ramdisk scripts
    - Reduced aggressiveness on default low memory killer profile
    - [SYNAPSE] Removed experimental screen mode tab

    Nougat:
    - Added a switch to control l2_hsic wakelock
    - Removed most governors & I/O scheds for stability
    - Updated with all recent commits by Alberto on LOS
    - Updated ramdisk with the current ones in LOS and RR
    - Fixed paths and permissions to control l2-hsic wakelock and mdnie
    - [SYNAPSE] Removed some non working features like sound, misc control, etc

    ..and some finishing tuning here and there for all variants.

    Lastest known to works fine: v10.6 and older, I don't know about all v10.6 variants but I believe all v10.5 variants boot fine
    Pre-Nougat: https://www.androidfilehost.com/?w=files&flid=182388
    Nougat: https://www.androidfilehost.com/?w=files&flid=195749
    AIO version: https://www.androidfilehost.com/?fid=817550096634798047
    (AIO might works on AOSP ROMs from 4.4 to 6.0 that is not officially supported)

    Latest version with the changes listed above and changes in the Beta builds: "v11.0 I guess?"
    Pre-Nougat: https://www.androidfilehost.com/?w=files&flid=226768
    Nougat: https://www.androidfilehost.com/?w=files&flid=226769

    Older versions from the very first ones to v9.9
    https://www.androidfilehost.com/?w=files&flid=165262

    Hi everyone! It has been a pleasure to share my personal kernel for people here on XDA to use. I learnt a lot through this little project I maintained in my free time. I will say that my kernel is not unique, I just tried to achieve a better kernel with a combination of good commits from other old kernels and my personal taste. Thanks to other devs and people here whether you helped me build or test the kernel. I wish the final version could be more complete and stable but without a device I can't do much. I'm not sure if they all boot fine too but hopefully they will. If they don't boot then v10.6 is probably the latest working version you can get for whichever variant that is. With that being said, I also wish you guys all the best and see you guys in other XDA forums :highfive: RIP my S4 as well :D For whoever got my S4 and ended up on here to find kernels for it: Treat my S4 well! lol
    13
    Final update!

    v10.0 - 26032017
    - Re-based on Samsung source I9500XXUHPI2
    - Optimized governors & I/O schedulers
    - Tuned init scripts & set GPU max 532MHz / min 266MHz as default
    - Enabled modules support & modules tab in synapse
    - Enabled NTFS, CIFS, ISO, UDF, XPAD support
    - Enabled OTG USB & SideSync support in TW version
    - Disabled remaining debugging and logging features
    - Disabled some unstable governors
    - Various tweaks here and there..

    Kay guys this is it :victory: thanks to all the testers that help me to satisfy myself with the number 10.0 on my thread lol, very appreciate the help guys :cool: so have fun and stay safe ;)