[KERNEL] [STOCK LP 5.1.1] v4tk - O3 - uber - optimized - X Style (Pure) Android Development

Just for fun, I compiled an optimized version of stock kernel.
It works with stock ROM for Moto X Pure, not tested with anything else.
Changes:
O3
Uber toolchain
strict-aliasing
misc gcc optimization flags
CPU Governors
IO Schedulers
CPU HotPlugins
KCAL
Based on stock source:
https://github.com/MotorolaMobilityLLC/kernel-msm/tree/MMI-LPH23.116-18.1/
Optimization ideas are taken from:
https://github.com/XileForce/Vindicator-S6
Some features are taken from:
https://github.com/kirananto/ONEPLUS2RAZOR/
Final source code:
https://github.com/vadimtk/moto-x-kernel
V6:
For XT1575:
https://www.androidfilehost.com/?fid=24052804347851016
Changes:
Dynamic Fsync (default: off, configurable via Kernel Adiutor)
TCP congestion plugins
V5:
For XT1575:
https://www.androidfilehost.com/?fid=24052804347842888
For XT1572:
https://www.androidfilehost.com/?fid=24052804347843672
Changes:
Added KCAL
Bunch of micro-optimizaitons, like disable CRC check on IO
removed CPU HotPlugins: ALUCARD, INTELLI_PLUG, Zen Decision, Mako. Most of them are not suitable for 6 cores anyway.
added CPU HotPlugins: MPM-HOTPLUG
Heavily modified Thunderplug hotplugin to work on Six-Cores Snapdragon
V3:
https://www.androidfilehost.com/?fid=24052804347841056
Changes:
added I/O Schedulers: Zen, FIOPS
added CPU HotPlugins: ALUCARD, INTELLI_PLUG, Zen Decision, Thunderplug, Mako
V2:
https://www.androidfilehost.com/?fid=24052804347840988
Changes: added bunch of Governors: ELEMENTALX, BIOSHOCK, SMARTMAX, DANCEDANCE, LIONHEART, NIGHTMARE, ADAPTIVE, WHEATLEY, ZZMOOVE, INTELLIACTIVE, BARRY_ALLEN, YANKACTIVE, IMPULSE, DARKNESS, ALUCARD, HYPER, PEGASUSQ, BLU_ACTIVE
V1 Image file:
https://www.androidfilehost.com/?fid=24052804347840172
How to use:
1. Download and unpack
2. Reboot to bootloader:
Code:
adb reboot bootloader
3. Boot temporary with new kernel (active till next reboot):
Code:
fastboot boot v4tk-kernel-uber-alias.img
or flash permanently:
Code:
fastboot flash boot v4tk-kernel-uber-alias.img

AWESOME!!!!! Was following you (pretty sure it was you) on GIThub. Been trying to compile my own for awhile now, with nothing but problems like the f2fs, etc..... Being this was my first try on kernels, I need some major help like your source, lol. Major thanks!!!!!
---------- Post added at 08:29 PM ---------- Previous post was at 08:25 PM ----------
Is adb active on boot? I need to debug a no boot issue, and after I tried modifying the init.rc to try to enable adbd at boot things.....it didn't work?

gokart2 said:
Is adb active on boot? I need to debug a no boot issue, and after I tried modifying the init.rc to try to enable adbd at boot things.....it didn't work?
Click to expand...
Click to collapse
Sorry, I do not know about abd...
Some boot issue is discussed here
https://github.com/MotorolaMobilityLLC/kernel-msm/issues/38

VadimTk said:
Sorry, I do not know about abd...
Some boot issue is discussed here
https://github.com/MotorolaMobilityLLC/kernel-msm/issues/38
Click to expand...
Click to collapse
Basically the kernel starts adb as soon as the device powers up, to help get a logcat to debug a no boot or boot loop. LINK

No WiFi on XT1572. Everything else seems fine.
Sent from my XT1572 using Tapatalk

WiFi works fine on xt1575. Have u tried clearing catche and dalvik?
Also benchmarks show no improvement, but overall feel seems more fluid IMO. Some of the best kernels I've use in the past have followed this trend.

sweet I need some stock rooted love for now! also is there any chance for flashable zip?

I was just wondering if you had any plans going further on this kernel? Such as custom governors, I/O schedulers, etc.? Just flashed this, to early to tell anything right now. Everything seems OK. Thank you.

countryfolk07 said:
I was just wondering if you had any plans going further on this kernel? Such as custom governors, I/O schedulers, etc.? Just flashed this, to early to tell anything right now. Everything seems OK. Thank you.
Click to expand...
Click to collapse
I may look into that. What should be worth to add?

the kernel runs nice it does feel little snappier I wonder if the sms keyboard lag will go away with this kernel.
I will report if it does go away with this kernel this was the only thing that was making me mad sometimes the keyboard would lag when typing (any keyboard)

patt2k said:
the kernel runs nice it does feel little snappier I wonder if the sms keyboard lag will go away with this kernel.
I will report if it does go away with this kernel this was the only thing that was making me mad sometimes the keyboard would lag when typing (any keyboard)
Click to expand...
Click to collapse
How does one reproduce this keyboard lag?
Sent from my XT1575 using Tapatalk

PiousInquisitor said:
How does one reproduce this keyboard lag?
Sent from my XT1575 using Tapatalk
Click to expand...
Click to collapse
Well I usually send about 4-5K messeges per month I text a lot so I would simply see slow response when typing and would make bunch of mistakes I think few people reported same in the "do you have lag thread" in general or questions,I forgot where it was though.
It didn't happen in things like browser or others just sms apps.

patt2k said:
Well I usually send about 4-5K messeges per month I text a lot so I would simply see slow response when typing and would make bunch of mistakes I think few people reported same in the "do you have lag thread" in general or questions,I forgot where it was though.
It didn't happen in things like browser or others just sms apps.
Click to expand...
Click to collapse
Do you have to type uber fast? I was under the impression that I did have fast fingers but maybe not. I only send 800 or so messages per month. I'm part of the generation that prefers to communicate verbally though.
Sent from my XT1575 using Tapatalk

PiousInquisitor said:
Do you have to type uber fast? I was under the impression that I did have fast fingers but maybe not. I only send 800 or so messages per month. I'm part of the generation that prefers to communicate verbally though.
Sent from my XT1575 using Tapatalk
Click to expand...
Click to collapse
Not really lol I do both calling and texts usually 500-600 min month/4-5K msgs.

VadimTk said:
I may look into that. What should be worth to add?
Click to expand...
Click to collapse
Smartass v2 governor, cpu/gpu underclock/overclock ability, cpu under-volt ability, kernel.org patches (lets get this up to version 4.0....lol), audio/visual improvements/drivers........:fingers-crossed::fingers-crossed:
THIS works well as a kernel flasher as long as your not doing ramdisk tweaks.

patt2k said:
Not really lol I do both calling and texts usually 500-600 min month/4-5K msgs.
Click to expand...
Click to collapse
That is my usage just on my personal phone. I don't pay the work phone bill but I'm sure it's scary.
Sent from my XT1575 using Tapatalk

Just wanted to add that using TWRP to flash the boot img works flawlessly. No need to use fastboot on your computer.

PiousInquisitor said:
How does one reproduce this keyboard lag?
Sent from my XT1575 using Tapatalk
Click to expand...
Click to collapse
Are you sure that's just not the app you're using? I don't think I've ever had keyboard lag. Try using textra?

juanacevedo said:
Are you sure that's just not the app you're using? I don't think I've ever had keyboard lag. Try using textra?
Click to expand...
Click to collapse
You should quote the other guy. I'm still trying to reproduce the lag myself.
Sent from my XT1575 using Tapatalk

juanacevedo said:
Are you sure that's just not the app you're using? I don't think I've ever had keyboard lag. Try using textra?
Click to expand...
Click to collapse
I used to use Chomp on my note4 so at first I was using it and I tried few sms-apps and keyboards the keyboard lag would always come back. But so far with this kernel so good, can't tell yet but so far I was no lag.
PiousInquisitor said:
You should quote the other guy. I'm still trying to reproduce the lag myself.
Sent from my XT1575 using Tapatalk
Click to expand...
Click to collapse
Right but that was on stock kernel for now it works good so I can't say yet 100% that it helps or not. But if the lag comes back I will let you guys know

Related

[Kernel][Xperia P] ICX kernel RC-1 [Governess, I/O, Fast]

[ Info ]
RC-1 Released
[ WARNING ]
Use this at your own risk!!
I am not responsible for any damange to your phone, pc, that you will get fired because alarm doesn't work
[ Features ]
- Overclock up to 1,15GHZ DON'T OVERCLOCK, JUST SELECT THE 1GHZ OPTION IN OVERCLOCK APP
- Cpu governess
- I/O Schedulers
- Recovery
- lots of new drivers
- Smooth
[ How to install ]
1. Download the boot.img
2. Flash it with fastboot (Fastboot flash boot boot.img)
3. Go to recovery, advanced and wipe dalvik cache!
4. reboot
5. ENJOY!!
READ THE FULL THREAD BEFORE ASKING ANY QUERIES OR REPORTING ANY BUGS/ISSUES
Credits:
Krabappel2548
Doomlord
KeiranFTW
Kamarush
ThJap!
Deepunknown
Shaan (S Advance)
Munjeni
my sources: https://github.com/nickholtus
Nick
If you want to user abt of thuis files, pm me first
Downloads:
Kernel: RC-1 Boot.img
just realised: this is my 1000ste post here on xda
RC-1
-Totally rebased the kernel
-Mainstream update 3.0.69
-Updated st-ericsson drivers
-Added lots of fixes (more then 80!)
-Added governers
-Added I/O schedulers
-A lot of other things!!!
-DONT USE OC, JUST USE THE 1 GHZ OPTION, otherwise system will lag. Will be removed in next version, this oc option was for test purposes)
last one
reserved..
just in case
Are the sources for Xperia P and U out?
yes they are
Thanks!
Flashed kernel a few minutes ago, looking good so far. I'm using smartassv2 governor and deadline scheduler, no overclock.
Hopefully there won't be any bugs to report
Just one thing: it would probably be a good idea to post stock WiFi modules, for those folks that may want to go back from your kernel to the stock one.
---------- Post added at 10:41 AM ---------- Previous post was at 09:56 AM ----------
Aaargh... scratch that, there are some issues with the new governors:
Scrolling in LauncherPro (between screens, in the app drawer) is jerky. Also in Pulse News and Pocket (ReadItLater), although not as bad as with the launcher.
It's the same for smartassv2, minmax, interactive.
Ondemand and performance are fine, smartass (not v2) is a bit better but still laggy.
Also, the device is slow to wake up, with any governor: takes about 2-3sec for the screen to turn on, after pressing the power button.
EDIT- forgot to mention, I'm running KA02 ROM... there may be conflicts with one of the init.d scripts that come with the ROM.
Would appreciate it if anyone running stock firmware would test the kernel and report back.
cezarL said:
Thanks!
Flashed kernel a few minutes ago, looking good so far. I'm using smartassv2 governor and deadline scheduler, no overclock.
Hopefully there won't be any bugs to report
Just one thing: it would probably be a good idea to post stock WiFi modules, for those folks that may want to go back from your kernel to the stock one.
---------- Post added at 10:41 AM ---------- Previous post was at 09:56 AM ----------
Aaargh... scratch that, there are some issues with the new governors:
Scrolling in LauncherPro (between screens, in the app drawer) is jerky. Also in Pulse News and Pocket (ReadItLater), although not as bad as with the launcher.
It's the same for smartassv2, minmax, interactive.
Ondemand and performance are fine, smartass (not v2) is a bit better but still laggy.
Also, the device is slow to wake up, with any governor: takes about 2-3sec for the screen to turn on, after pressing the power button.
EDIT- forgot to mention, I'm running KA02 ROM... there may be conflicts with one of the init.d scripts that come with the ROM.
Would appreciate it if anyone running stock firmware would test the kernel and report back.
Click to expand...
Click to collapse
The new governors just aren't optimized yet for new Xperia devices
It has nothing to do with the tweaks, but I can try to add some specific tweaks for the new governors, it might help
Sent from my MT15i using XDA
krabappel2548 said:
The new governors just aren't optimized yet for new Xperia devices
It has nothing to do with the tweaks, but I can try to add some specific tweaks for the new governors, it might help
Sent from my MT15i using XDA
Click to expand...
Click to collapse
Choice is good, but so many governors? I am no expert on this matter, which is exactly my point. Someone with a good understanding on how governors work should add options for, say, three scenario's:
- Performance. When needed, throttle to max. overclocked speed and switch to faster speeds sooner
- Medium, scenario between energy saving and performance.
- Energysaving. Do not overclock, set the clock the lowest setting possible when screen off, sleep mode and use moderate throttling just enough to ensure the device doesn't feel laggy but isn't as snappy as Performance.
Or.. post the settings for these scenario's here
hi,
i just added 4 governes
most of them are stock
ok good news
After a lot of testing, editing etc with Krabappel2548 we have got more frequences
normally we have 4 freq, now we have got 7 working
Release: Soon
also added 1.2ghz (if everything goes well)
Awesome work guys!
Just a couple of days of struggling with study, and then I''ll finally have some time to experiment with the phone. Hopefully this new kernel will allow a nice improvement in battery life
have a little improvement in battery life.
working on that...
nickholtus said:
have a little improvement in battery life.
working on that...
Click to expand...
Click to collapse
Yes, we are working on the kernel, we just added extra governors, I/O schedulars and extra CPU freq
ICS kerrnel v2 is released and on the Fileserver now Nick, maybe a little changlog?
quick panel
--
krabappel2548 said:
ICS kerrnel v2 is released and on the Fileserver now
Click to expand...
Click to collapse
Flashed v2, very slowly, even in his native launcher in ondemand mode.
On V1 was ok, only 2 times rebooted itself in sleep mode.
select another governer
conservative is fast
v2b or v3 will be released today or tomorrow without any lag
nickholtus said:
ok good news
...
also added 1.2ghz (if everything goes well)
Click to expand...
Click to collapse
Is there any problems with 1.2 GHz freq that you didn't include it to the ROM For now the highest freq is 1.15GHz...
no didn't add it
maybe in the next update (if we get some things figured out)

[WIP]Liberator....

Liberator is an OC/UC daemon similar to, and based on virtuous.
It's a native app, which runs via an init.d script on startup.
It has 4 profiles, which can be set up to change the governor, scheduler, and min/max freqs.
Profiles:
Normal - The default profile.
Sleep - Kicks in when the screen turns off.
Charging - Kicks in when the screen is on, and the phone is charging.
Low Battery - Kicks in while the screen is on, not charging, and the battery percentage falls below the defined level.
Source & Readme - https://github.com/chris41g/android_external_liberator
Download Link - http://chris41g.devphone.org/index.php?dir=Liberator/
I suggest uninstalling any utilities that set the CPU freqs or governor.
I wrote this to work with any ROM, or device.. but things don't always work out the way they are intended to.
If you have any problems, Iet me know so I can get this thing done!
My explanation from irc:
Code:
<chris41g> ok let me explain it
<chris41g> do you underclock or overclock? and do you change governors or scheduler?
<chris41g> its basically a C daemon that replace Setcpu, CPU tweaker, CPU Master etc
<chris41g> way faster since its written in native C, uses less resources and battery
<chris41g> it has 4 profiles.. Normal, Charging, Screen Off, Low Battery
<chris41g> and you can set min/max freq, sched, and governor for each profile...
<chris41g> by setting text files in /system/etc/Liberator
Deleted
Is this set up with default values so I can just flash and use?
NVM I viewed them , and they are. The default "normal" governor is set to ondemand and the scheduler is set to noop, are these the most battery efficient choices?
NVM Found this thread explaining governors http://forum.xda-developers.com/showthread.php?t=1369817
I normally use setcpu, but since you have a 3511 thanks and counting and you say this "uses less resources & battery" then Ill use this. Thx
So does phase support Liberator (from the Original development thread)? Has anybody used it.? For me, it caused a bootloop...
Sent from my SAMSUNG-SGH-I717 using xda app-developers app
bmunday said:
So does phase support Liberator (from the Original development thread)? Has anybody used it.? For me, it caused a bootloop...
Sent from my SAMSUNG-SGH-I717 using xda app-developers app
Click to expand...
Click to collapse
Be sure you uninstall all apps to overclock
$ø|\/|£ťhïñğ ¢ű$ț¤|\/| ⁴.².²
Working extremely well here so far. Thanks Chris!
Sent from my SAMSUNG-SGH-I717 using Tapatalk 2
bmunday said:
So does phase support Liberator (from the Original development thread)? Has anybody used it.? For me, it caused a bootloop...
Sent from my SAMSUNG-SGH-I717 using xda app-developers app
Click to expand...
Click to collapse
Liberator v1.4 bootloops on Padawan JB
v1.3 boots fine
Sent from my SAMSUNG-SGH-I717 using xda premium
The download link isn't working for me, any mirrors ?
GPFerror said:
The download link isn't working for me, any mirrors ?
Click to expand...
Click to collapse
Ok, I guess no one had a copy. So I built it from source, did have a question on if I built it right.
I was getting missing cutils/socket.h, so I grabbed that folder from android_system_core-cm-10.1 github and copied into my android-ndk-r9\platforms\android-14\arch-arm\usr\include and had to add a define to the android.mk file
LOCAL_CFLAGS := -DHAVE_SYS_UIO_H or I got a error.
so I grabbed the binary copied it to my phone created all of the *_scheduler files, not sure how to do the init.d yet, is there a special script that was included that is not in the source?
Thanks.
GPFerror said:
Ok, I guess no one had a copy. So I built it from source, did have a question on if I built it right.
I was getting missing cutils/socket.h, so I grabbed that folder from android_system_core-cm-10.1 github and copied into my android-ndk-r9\platforms\android-14\arch-arm\usr\include and had to add a define to the android.mk file
LOCAL_CFLAGS := -DHAVE_SYS_UIO_H or I got a error.
so I grabbed the binary copied it to my phone created all of the *_scheduler files, not sure how to do the init.d yet, is there a special script that was included that is not in the source?
Thanks.
Click to expand...
Click to collapse
its built inside the CM10 tree... and you can either add a script to init.d or just run it from a terminal

[Kernel] StarKissed [ATT, CAN, TMO, USC, VZW]

Welcome to the first custom kernel for the Samsung Galaxy Note 4.​Providing instability to the masses since October 21, 2014​
​
This kernel currently supports most North American carriers. Automatic selection is provided through the use of specialized recovery packages that will detect your device version and make appropriate adjustments.
Mereology (from the Greek μερος, ‘part’) is the theory of parthood relations: of the relations of part to whole and the relations of part to part within a whole. I do not take responsibility for anything these days, but I'll try to do my part and help.
Click to expand...
Click to collapse
Installing N910T ROMs on N910W8
Start with NJ3 stock firmware
Odin Flash CF-AutoRoot
Odin Flash TWRP
Make a full backup
Wipe system, data, cache, dalvik-cache
Install N910T Rom
Reboot System
Reboot Recovery
Install Stockish / Deported
Reboot System
Thank force70 for the guide
Known Issues:
DVFS set to ignore and secure storage disabled often resolve the lag. If you need either of these, stock / stockish are required.
Warning: I only have the T-Mobile version of the Galaxy Note 4
XDA:DevDB Information
StarKissed [ATT, CAN, TMO, USC, VZW], Kernel for the Samsung Galaxy Note 4
Contributors
twistedumbrella
Source Code: http://github.com/StarKissed/starkissed-kernel-trlte
Kernel Special Features:
Version Information
Status: Testing
Created 2014-11-07
Last Updated 2015-01-22
[Kernel] StarKissed [ATT, CAN, SPR, USC, TMO, VZW]
No mirrors please. Updates are posted 1 - 3 times per day.
Check the StarKissed website for compile info (not downloads)
Recovery Packages [Goo]
http://goo.im/devs/playground/galaxynote4/
Kernel source
http://github.com/StarKissed/starkissed-kernel-trlte
Retrieving a Kernel Log:
Code:
cat /proc/last_kmsg /sdcard/kernel_log.txt
SELinux Prerequisites:
The build.prop WILL override the kernel. It needs to be edited to match the desired settings.
Code:
(SELinux disable)
ro.build.selinux=0
(KNOX disable)
ro.config.tima=0
ro.config.knox=0
Potentially Inactive:
Potentially Unsafe:
pegasusQ
Features / Interfaces:
Linux 3.10.13 Linux 3.10.0
SELinux permissive
KNOX disabled
init.d support
Overclock to 2.8, Underclock to 268
Stereo call recording support
MNDIE Control
Motorola Memory Utils
Slimbus Overclock
Optimistic IPV6
intelli-plug (with arm64 updates)
Power Suspend
Simple GPU gov
HardLimit
intelli-thermal v1
Power Suspend Driver v1.5
Sweep2Sleep
Forced Fast Charge v1.2 (+ Wireless Charge Boost)
Advanced TCP avoidance
LZ4 compression
Dynamic FSync
add'l entropy: frandom, erandom (enabled via init.d)
add'l filesystems: NTFS, F2FS, CIFS
io: sio, fifo, zen, vr, bfq, fiops
gov: lionheart, dancedance, smartmax, pegasusQ, smartassV2, intellidemand, umbrella_core
CPU optimizations
Network optimizations
KNOX root and logging permissions
TIMA support, but disabled by default
S-View hack to use any cover​
Common Interfaces
^ Borrowed from faux123 since many interfaces are MSM universal
Code:
cpu governor: /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
cpufreq: /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
intelliplug: /sys/module/intelli_plug/parameters/intelli_plug_active
gpu governor: /sys/class/kgsl/kgsl-3d0/pwrscale/trustzone/governor
gpu freq: /sys/class/kgsl/kgsl-3d0/max_gpuclk
simple GPU gov:: /sys/module/msm_kgsl_core/parameters/simple_laziness
simple GPU gov: /sys/module/msm_kgsl_core/parameters/simple_ramp_threshold
io scheduler: /sys/block/mmcblk0/queue/scheduler
io scheduler readahead: /sys/block/mmcblk0/queue/read_ahead_kb
dynamic fsync: /sys/kernel/dyn_fsync/Dyn_fsync_active
usb fastcharge: /sys/kernel/fast_charge/force_fast_charge
intellithermal: /sys/module/msm_thermal/parameters/enabled
cpu voltage: /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels
Power Suspend
Code:
/sys/kernel/power_suspend/power_suspend_state
/sys/kernel/power_suspend/power_suspend_mode (0 - auto, 1 - panel, 2 - userspace, 3- hybrid)
Hardlimit
Code:
/sys/kernel/cpufreq_hardlimit/scaling_max_freq_screen_on
/sys/kernel/cpufreq_hardlimit/scaling_max_freq_screen_off
/sys/kernel/cpufreq_hardlimit/scaling_min_freq_screen_on
/sys/kernel/cpufreq_hardlimit/scaling_min_freq_screen_off
/sys/kernel/cpufreq_hardlimit/wakeup_kick_freq
/sys/kernel/cpufreq_hardlimit/wakeup_kick_delay
/sys/kernel/cpufreq_hardlimit/touchboost_lo_freq
/sys/kernel/cpufreq_hardlimit/touchboost_hi_freq
/sys/kernel/cpufreq_hardlimit/userspace_dvfs_lock (0 - allow, 1 - ignore, 2 - refuse)
MNDIE Control
Code:
/sys/class/mdnie/mdnie/mode (0 - dynamic, 1 - control, 2 - natural, 3 - movie, 4 - auto)
/sys/class/mdnie/mdnie/...
hijack
curve
copy_mode
sharpen
red_red
red_green
red_blue
cyan_red
cyan_green
cyan_blue
green_red
green_green
green_blue
magenta_red
magenta_green
magenta_blue
blue_red
blue_green
blue_blue
yellow_red
yellow_green
yellow_blue
black, 0664
black_red
black_green
black_blue
white_red
white_green
white_blue
scenario
App & Donations:
StarKissed [SKU] on Google Play allows you to configure many of the options provided by this kernel. Issues or comments about the app can be posted at the XDA StarKissed app thread
Donations are not being collected through the forum. If you would like to donate, you may do so through StarKissed [SKU] on Google Play by using the donate options located in the top right (the green dollar bill guy).
Will be nice if you can provide two different build. One without all the fancy things that some people wont have use for, such as overclocking, close to stock as possible but still provide stability, smoothness, and better battery life.
Some kernel makers just slap everything they can onto a kernel and in the long wrong, it is simply instable or provide hicups (that they will never own up to lol)
Nice job twisted keep it coming...
mgbotoe said:
Will be nice if you can provide two different build. One without all the fancy things that some people wont have use for, such as overclocking, close to stock as possible but still provide stability, smoothness, and better battery life.
Some kernel makers just slap everything they can onto a kernel and in the long wrong, it is simply instable or provide hicups (that they will never own up to lol)
Click to expand...
Click to collapse
I don't provide anything I wouldn't run on my own device. If you want it to be stock, vote for stock. If that is what wins, that is what I will build. It is enough to provide a single kernel for a bunch of devices without trying to keep track of per-device versions. I slap everything I can onto a kernel, test it, then delete or fix the broken stuff. My github is always current and anything I changed is clearly published to point the finger at whoever it needs to be pointed at.
Lol just throwing it out there , that is my vote
I vote like mgbotoe! Thank you sir!
Sent from my SM-N910T using XDA Free mobile app
Only thing I am seeking is SE Linux Permissive. Thanks for all your work!
Tried flashing the files (that are highlighted) in picture attachment using odin 3.07, got a fail. What am I doing wrong? Anyone else flash yet? How'd ya do it and did it work out ok?
Thanks Ahead.
Glen
Hardlimit by yank555 I'd like to see, along with your hotplug of choice, I like intelliplug myself, some govs, I usually stick with interactive anyways, maybe some mdnie controls etc etc. Lol I'm just tossing out what I enjoy..but, you tell me, what do you normally build in your kernels.?
re: kernels
twistedumbrella said:
I don't provide anything I wouldn't run on my own device. If you want it to be stock, vote for stock. If that is what wins, that is what I will build. It is enough to provide a single kernel for a bunch of devices without trying to keep track of per-device versions. I slap everything I can onto a kernel, test it, then delete or fix the broken stuff. My github is always current and anything I changed is clearly published to point the finger at whoever it needs to be pointed at.
Click to expand...
Click to collapse
I just hope that you have already gotten some sort of windows pc so you
won't be having all those problems you were having for the past 3-4 days
due to using a mac computer.
Good luck with your kernels.
p.s. my vote is the same as mgbotoe's
glensta said:
Tried flashing the files (that are highlighted) in picture attachment using odin 3.07, got a fail. What am I doing wrong? Anyone else flash yet? How'd ya do it and did it work out ok?
Thanks Ahead.
Glen
Click to expand...
Click to collapse
I've heard Odin doesn't like the files. I use Heimdall but I'll be looking into that.
Misterjunky said:
I just hope that you have already gotten some sort of windows pc so you
won't be having all those problems you were having for the past 3-4 days
due to using a mac computer.
Good luck with your kernels.
p.s. my vote is the same as mgbotoe's
Click to expand...
Click to collapse
You're starting to sound like the Best Buy reps when Windows 8 came out. At least before they had to start telling everyone 8.1 was coming to fix how terrible it turned out being once people started using it.
You have to run cygwin or an Ubuntu VM inside windows to build Android. You can run windows AND Ubuntu as windowed applications on Mac. Seems unnecessary when the real issue is consistency in the cm repos. The instructions say to get the Linux compiler ports, while detection identifies the platform compilers.
And fast change it you can
Sent from my SM-N910T using XDA Premium 4 mobile app
---------- Post added at 08:56 PM ---------- Previous post was at 08:56 PM ----------
jpeps said:
And fast change if you can
Sent from my SM-N910T using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Sent from my SM-N910T using XDA Premium 4 mobile app
How about color/gamma controls???
jpeps said:
And fast change it you can
Sent from my SM-N910T using XDA Premium 4 mobile app
---------- Post added at 08:56 PM ---------- Previous post was at 08:56 PM ----------
Sent from my SM-N910T using XDA Premium 4 mobile app
Click to expand...
Click to collapse
I don't know how good of an idea messing with the adaptive charging would be, but I'll look into it. It depends if that functionality is tied into the USB port charging or not.
It is great that you have done this work and I (along with a bunch of others) are really grateful - it would be nice if we could flash this -
Doesn't work with Odin - not sure about the other option you mentioned, I personally have never used that method -
So - any instructions you can offer would be great - unless you feel it is not appropriate to flash this yet?
Your help - and input is greatly appreciated.
mocsab said:
It is great that you have done this work and I (along with a bunch of others) are really grateful - it would be nice if we could flash this -
Doesn't work with Odin - not sure about the other option you mentioned, I personally have never used that method -
So - any instructions you can offer would be great - unless you feel it is not appropriate to flash this yet?
Your help - and input is greatly appreciated.
Click to expand...
Click to collapse
Use flashify with the img file. Flash the boot option.
{
"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"
}
mgbotoe said:
Will be nice if you can provide two different build. One without all the fancy things that some people wont have use for, such as overclocking, close to stock as possible but still provide stability, smoothness, and better battery life.
Some kernel makers just slap everything they can onto a kernel and in the long wrong, it is simply instable or provide hicups (that they will never own up to lol)
Click to expand...
Click to collapse
I agree with this wholeheartedly. I personally loved leanKernel on my Note 3 - all the latest fixes and improvements without 40000 things that only crazy experimenters and overclockers would use. I'd love a solid, lean, and mean daily-driver kernel.
twistedumbrella said:
https://goo.im/devs/playground/trltetmo/kernel/. So what should be included? You are welcome to cast your vote for how this kernel evolves.
Click to expand...
Click to collapse
If you could somehow throw in faux sound support that would be awesome .. I miss raising my volume just a bit for alarms...
Anyways Thanks a lot bro
siraltus said:
I agree with this wholeheartedly. I personally loved leanKernel on my Note 3 - all the latest fixes and improvements without 40000 things that only crazy experimenters and overclockers would use. I'd love a solid, lean, and mean daily-driver kernel.
Click to expand...
Click to collapse
Ironically, modifying imoseyon's kernels was how I first learned to build. I took his and added those one or two additional things I found somewhere else and wanted to use. Right now, I am working on getting intellidemand updated for this kernel, but I am only looking to get a few options that really work well so if there are better, let me know.
For the TCP congestion avoidance, it appears that enabling advanced options somehow broke selection. It appears to work just fine, but that troubles me. I don't want to force a setting for that, but if it comes down to it, I may have to limit the options.
Veno, from some documentation I've recently read, was the optimal option for mobile network performance. I believe it was reno that was best for wifi performance, but I have to go back and read up again.
I added some code for fast charge to be verified, but the layout is much different than most Samsung phones, so I won't know if it works until I attempt to blow up my phone.

[DISCONTINUED] Kernel: Test

Test Kernel​
Disclaimer
I'm not responsible for bricked devices, dead SD cards, etc.
This works only on Nougat.
Features
Built with latest UberTC 4.9
Optimized Sfck compression
Reduced log spam
Disabled add_random
Disabled CRC
Ultra Kernel Same-page Merging
Enabled JUMP_LABEL
Reduced load average
Reduced wakelocks
Reduced R/W operations
USB fast charge enabled by default
Implemented Powersuspend
Small CPU undervoltage
320K AAC encoding
Optimized ROW
Optimized CFQ
Optimized BFQ
Optimized Deadline
Sioplus scheduler
Zen scheduler
Reduced swap usage
Implemented Adreno idler
Westwood is the default TCP cong
Other.
Installation guide
Flash through TWRP
Enjoy!
Download
Folder.
Credits
LineageOS team for their great work
@scafroglia93 for his help
Commits authors
UberTC developers
@osm0sis for AnyKernel2.
XDA:DevDB Information
Test Kernel, Kernel for the Moto X Play
Contributors
axxx007xxxz
Source Code: https://github.com/axxx007xxxz/test_kernel_motorola_msm8916-n/tree/test
Kernel Special Features:
Version Information
Status: Stable
Created 2016-10-09
Last Updated 2018-04-29
Changelogs list
v2_r7
Code:
- Updated UberTC 4.9
- Reduced modules size
- Implemented UKSM (Ultra Kernel Same-page Merging)
- TCPs are now included in the Kernel (not as modules anymore)
- All security updates, SDCardFS patches, Prima driver updates and other stuff from LineageOS
- Updated AnyKernel2
v2_r6
Code:
- Use noatime attribute to reduce write operations on memory
- Reduced load average
- Implemented USB fast charge enabled by default (improve charging with the computer)
- All security updates, drivers updates and other stuff from LineageOS
- Reduced more log spam
v2_r5
Code:
- Updated UberTC 4.9
- Optimized Sfck compression
- Implemented Powersuspend (improve battery usage)
- Updated random (backported from 4.1.31)
- Implemented Adreno idler (useful if you use msm-adreno-tz governor for GPU)
- All security updates, SDCardFS patches, Prima driver updates and other stuff from LineageOS
- Reduced swap usage (preserve internal memory)
v2_r4
Code:
- Updated UberTC 4.9
- Rebased on CM 14.1 sources
- Small CPU undervoltage to avoid overheating issue
- Updated AnyKernel2 with some improvements
v2_r3
Code:
- Included Dirty Cow security fixes
- Use Westwood as TCP cong
- Removed duplicated Wi-Fi module
- Disabled debugs
v2_r2
Code:
- Removed Bluactive governor
- Removed Lionfish governor
- Enabled JUMP_LABEL (it should improve performance)
v2_r1
Code:
- First release
Reserved
led notification support?
diegomartinezlovey said:
led notification support?
Click to expand...
Click to collapse
No, it depends by the ROM too.
thanks for the kernel, which is the recommended configuration @axxx007xxxz
Enviado desde mi XT1563 mediante Tapatalk
[email protected] said:
thanks for the kernel, which is the recommended configuration
Click to expand...
Click to collapse
You're welcome.
The default configuration (Interactive + Zen) is good.
OK it's only been a few hours but battery already looks better with this kernel. I'm using lionfish + fiops. Good stuff.
Sent from my XT1563 using Tapatalk
Since flashing this kernel, I have no call function. Keeps ending milliseconds after calling.
Any suggestions?
Sent from my XT1562 using fingers
EDIT: fine now. Had to adjust APN settings
So while the kernel seems to boost battery life with the right governor, it also seems to cause the phone to freeze up randomly and eventually reboot, at least with the 10/09 build of the AOSP Nougat ROM. It happened a few times after the screen had gone to sleep and it just wouldn't come on again. I only tried 2 governors - lionfish and bluactive - so I have no idea whether it's the governors or the kernel.
Sent from my XT1563 using Tapatalk
cucumbers said:
So while the kernel seems to boost battery life with the right governor, it also seems to cause the phone to freeze up randomly and eventually reboot, at least with the 10/09 build of the AOSP Nougat ROM. It happened a few times after the screen had gone to sleep and it just wouldn't come on again. I only tried 2 governors - lionfish and bluactive - so I have no idea whether it's the governors or the kernel.
Click to expand...
Click to collapse
It works fine for me with latest AOSP 7 build. Try with Interactive.
LED notification light works flawlessly. Just use ex kernel manager and enable led trigger
Bhishma2 said:
LED notification light works flawlessly. Just use ex kernel manager and enable led trigger
Click to expand...
Click to collapse
Good to know, thanks for report.
Kernel looks great, no issues yet. With standard settings. ^^ Hope for updates in the future
The phones does go to hard sleep if governor is lionfish. Interactive seems fine.
Sent from my du_lux using XDA Labs
axxx007xxxz said:
It works fine for me with latest AOSP 7 build. Try with Interactive.
Click to expand...
Click to collapse
Well the whole point - for me - of installing the kernel was to try goverors other than interactive That said, I did give Interactive a try, and I got a reboot. But I was suspecting the problem might be the Instagram app, which I installed right after flashing the kernel the first time. Sure enough, removing Instagram has gotten rid of the problems with all the governors I have tried - no more reboots or freeze-ups.
To be honest Instagram might even cause problems with AOSP 7 even without this kernel, I have to admit I haven't tested that (though I don't think so). In any case, beware the Instagram app...
K.khiladi said:
The phones does go to hard sleep if governor is lionfish. Interactive seems fine.
Click to expand...
Click to collapse
It's definitely a Lionfish related problem. Thanks for report.
cucumbers said:
Well the whole point - for me - of installing the kernel was to try goverors other than interactive That said, I did give Interactive a try, and I got a reboot. But I was suspecting the problem might be the Instagram app, which I installed right after flashing the kernel the first time. Sure enough, removing Instagram has gotten rid of the problems with all the governors I have tried - no more reboots or freeze-ups.
To be honest Instagram might even cause problems with AOSP 7 even without this kernel, I have to admit I haven't tested that (though I don't think so). In any case, beware the Instagram app...
Click to expand...
Click to collapse
You may have something else going on in your phone. I am using it on 7.0 and it works perfectly.
Sent from my du_lux using XDA Labs
---------- Post added at 06:34 PM ---------- Previous post was at 06:34 PM ----------
axxx007xxxz said:
It's definitely a Lionfish related problem. Thanks for report.
Click to expand...
Click to collapse
Yes, and someone reported problem with the Blu active governor as well.
Sent from my du_lux using XDA Labs
K.khiladi said:
You may have something else going on in your phone. I am using it on 7.0 and it works perfectly.
Sent from my du_lux using XDA Labs
---------- Post added at 06:34 PM ---------- Previous post was at 06:34 PM ----------
Yes, and someone reported problem with the Blu active governor as well.
Sent from my du_lux using XDA Labs
Click to expand...
Click to collapse
I spoke too soon. Another reboot with Interactive, but without Instagram - so it's not that. Suspect it's Greenify actually, I had it in Shallow Hibernation (forgot, thought I had turned it off). Would be consistent with the issues I had with bluactive and lionfish, and the issues reported above.
Bhishma2 said:
LED notification light works flawlessly. Just use ex kernel manager and enable led trigger
Click to expand...
Click to collapse
What value do I set for notification light? I can see for charging, etc but no notification.

[KERNEL]Savagezen's Angler Kernel[Dec 2018][Pie][Oreo][Linaro][Clang][3.10.108]

This is the first project I've shared on XDA, though I've maintained it for personal use for a while and posted some prior incarnations on Google+. Hope you enjoy it!
Features:
December 2018 security patch
open source: kernel, anykernel
forked from Franco Kernel
merged Linux Stable 3.10.108
Compiled with Linaro 4.9 and CopperheadOS's Hardened Clang
I/O Schedulers: noop (default), cfq, deadline, fiops, row, zen, maple, sioplus
TCP algorithms: Bic, Cubic, Htcp, Hybla, Vegas, veno, Westwood (default), Reno
FK Features: disabled verified boot flag for Android Pay (root still breaks), support for FKUpdater performance profiles, support for FKUpdater App (not verified as I don't use the app myself), KCAL tweaks in init script.
Reduced wifi wakelocks and wakelock period
Removed possible bluetooth memory leak
KCAL color control support
KCAL brought to Linux guidelines
Spectrum Profile Support: dozens of profiles from around the web included in source code
Touchboost disabled in spectrum profile
Filesystem Support: F2FS, vFAT, EXT4, NTFS
MSM hotplug driver (disabled by default, but toggle included in source code)
Fingerprint boost from Electron Kernel
Wireguard support
Power Efficient Workqueues
State Notifier
Tickless System / Idle
Gentle Fair Sleepers
Hima hotplug driver (see 2018-09 release notes)
Wake Gestures (partial, see 2018-09 release notes)
Many security / hardening features from CopperheadOS (see 2018-12 release notes)
Downloads:
Oreo, 8.1 (Stable / Final): angler-kernel-20181221.zip
Pie, 9.0 (Testing Builds): pie-testing-aosip-20190130.zip, pie-testing-statixos-20190130.zip
Installation:
Boot to TWRP, backup (boot, system, data)
Wipe Dalvik / ART Cache and Cache
Flash the kernel.zip
Wipe Dalvik / ART Cache and Cache
Reboot and enjoy
Note: Sometimes rebooting directly from TWRP results in a boot freeze at the Google splash screen. Just power off and boot up again.
Battery Life / Performance Tests:
Spectrum: Battery: Total Drain: 6.8%/h, Sleep Drain: 4.96%/h, 11% SOT, 17.8 Hour Test (tested version - kernel 20180728, battery v1.3 profile)
Spectrum: Balance: Total Drain: 9.7%/h, Sleep Drain: 6.6%/h, 12% SOT, 19 Hour Test (tested version - kernel 20180728, balance v1.2 profile)
Older Version: June 2018
Thanks:
@osm0sis / AnyKernel2
@nathanchance / Flash Kernel and many guides
@franciscofranco / Franco Kernel
@frap129 / Electron Kernel
@flar2 / ElementalX Kernel
@Adi Shakthi / God's Kernel
@zx2c4 / Wireguard
@phantom146
PS: I'm on Telegram now too!
Profile: @savagezen
Discussion for this kernel: @sz_kernel_angler
Want to stay even more up to date?
Install the IFTTT app
Get notifications for testing releases - Applet Link
Get notifications for source code releases - Applet Link
Changelog:
v20181221 Release Notes
v20181124 Release Notes
v20180910 Release Notes
v20180808 Release Notes
v20180728b - fixed spaces in localversion resulting in kernel name not showing in Settings app.
v20180728 Release Notes
Bugs:
Boot Loop / Freeze on Android 9.0 Oreo.
FAQ:
Need Help / Want to Help? Join the my Telegram Channel: @sz_kernel_angler
Is this kernel compatible with Android Pie (9.0)? It should work out of the box, however several users have reported boot freezes / loops on Pie. I haven't had a chance to test it fully in Pie and am still on Oreo myself. If you run into issues, try running with SELinux as permissive or reach out on Telegram.
Nice, gonna give this a run. Kudos for adding detailed instructions on your site.
Nice, was hoping for new kernel a long time
I would like to suggest the "Hima Hotplug" for your kernel, it is so fluid and great on battery life (experience from sphinx kernel for bullhead)
Pump Ac7i0n said:
Nice, gonna give this a run. Kudos for adding detailed instructions on your site.
Click to expand...
Click to collapse
You're welcome. It is as much for me to remember how to do stuff in the future with other devices as anything else. Glad others can benefit from it as well.
eurochild said:
Nice, was hoping for new kernel a long time
I would like to suggest the "Hima Hotplug" for your kernel, it is so fluid and great on battery life (experience from sphinx kernel for bullhead)
Click to expand...
Click to collapse
Thanks for the suggestion. Browsing source code now...
savagezen said:
You're welcome. It is as much for me to remember how to do stuff in the future with other devices as anything else. Glad others can benefit from it as well.
Thanks for the suggestion. Browsing source code now...
Click to expand...
Click to collapse
just wanted to say solid first public kernel. super smooth
Thank you for the new kernel,so far so good
Smooth so far, great job.
though is it just me or does the Settings app display "Unavailable" under Kernel version? EX Kernel Manager displays the kernel version just fine.
Maybe it has something to do with the presence of spaces in the kernel version name?
aureljared said:
Smooth so far, great job.
though is it just me or does the Settings app display "Unavailable" under Kernel version? EX Kernel Manager displays the kernel version just fine.
Maybe it has something to do with the presence of spaces in the kernel version name?
Click to expand...
Click to collapse
I see the same under about phone.
aureljared said:
Smooth so far, great job.
though is it just me or does the Settings app display "Unavailable" under Kernel version? EX Kernel Manager displays the kernel version just fine.
Maybe it has something to do with the presence of spaces in the kernel version name?
Click to expand...
Click to collapse
Lawlrus said:
I see the same under about phone.
Click to expand...
Click to collapse
same here, nothing so important. if you click on it it shows the kernel info (atleast that is what happens on aosip rom)
eurochild said:
same here, nothing so important. if you click on it it shows the kernel info (atleast that is what happens on aosip rom)
Click to expand...
Click to collapse
Yeah I agree, it is, by no means, a deal-breaker. I just wanted to point it out for newcomers because I sure had a grand time panicking over whether or not the installation went through.
Currently using this kernel with ABC rom, so far the best kernel ever, very smooth and good heat output
aureljared said:
Yeah I agree, it is, by no means, a deal-breaker. I just wanted to point it out for newcomers because I sure had a grand time panicking over whether or not the installation went through.
Click to expand...
Click to collapse
eurochild said:
same here, nothing so important. if you click on it it shows the kernel info (atleast that is what happens on aosip rom)
Click to expand...
Click to collapse
This does work on AOSiP. Stock ROM (and maybe others) it does not appear after tapping on "Kernel Version" in settings. As noted, third party apps like EX Kernel Manager and Kernel Auditor seem to display the kernel version correctly.
There are, in fact, spaces in LOCALVERSION in the config file. I'll add this under bugs in the second post and update when it's fixed.
PS: Glad you guys are enjoying it and to hear it runs smooth and cool! Usage stats for the 'battery' spectrum profile are in the updated OP. Testing the 'balance' profile now.
UPDATE 8/1: The 'kernel version' issues has been fixed. Notation is in second post and download link has been updated in OP.
This kernel kicks ass! Seriously, great work. One of my major complaints with the 6P was its over heating and then thermal throttling. I just didn't play certain games because of it. Now, after flashing this kernel it runs smooth and cool and games work again. Unreal. Truly love the way the phone works now. Not bad for battery life either but it's not my primary any more.
galakanokis said:
This kernel kicks ass! Seriously, great work. One of my major complaints with the 6P was its over heating and then thermal throttling. I just didn't play certain games because of it. Now, after flashing this kernel it runs smooth and cool and games work again. Unreal. Truly love the way the phone works now. Not bad for battery life either but it's not my primary any more.
Click to expand...
Click to collapse
Good to hear! Did you use the Gaming spectrum profile? I'm don't use my phone for games so I didn't test that outside of synthetic benchmarks. Also, the Battery spectrum profile should give pretty good battery life as it's very conservative.
Spoiler: I'm working on maybe adding the chill or relaxed governors to test as well.
No profiles, just default settings. I usually run a week or two on default before I mess around just so I can tell the difference in the tweaks.
I might play around but this phone is just for messing about now, picked up the Essential on the Prime deal and quite like it so the 6P is not a daily driver.
Gotcha. FYI the balanced profile is enabled by default.
savagezen said:
Gotcha. FYI the balanced profile is enabled by default.
Click to expand...
Click to collapse
Do you happen to have the link somewhere?
dirtyreturn said:
Do you happen to have the link somewhere?
Click to expand...
Click to collapse
All the profiles are in my AnyKernel repo on GitHub. There are a total of 30 profiles from around the web even though the Spectrum App only uses those numbered 0, 1, 2, and 3. I include my built kernel zImage-dtb in the AnyKernel repo so that you can clone it yourself and apply a different profile "manually" if you like. Just change the number in ramdisk/init.spectrum.sh, zip it up, and flash it.
Code:
if [ ! -f /data/property/persist.spectrum.profile ]; then
setprop persist.spectrum.profile 0 # change this number
fi
Note, if you use this method, and later select a profile from the Spectrum App, the Spectrum App choice will override the initial one, including after reboot -- because it applies the settings once the user space is reached.
@savagezen thanks! Also, kernel link?? I must be missing it.. Is it in the OP?
Sent from my PH-1 using Tapatalk

Categories

Resources