[KERNEL][LINARO][UC][F2FS] Project T - Custom Kernel for ZenFone 2[THE END] - ZenFone 2 Android Development

Hi guys,
It was a cool journey with all the support I got from you, this community is really the best! Unfortunately this will be the last version I will release. See the changelog for more details!
Please note that I do my testing on a ZE551ML 4GB 2,3GHz. For ZE550ML look here (thanks to cieffe54)
Note: This kernel works ONLY on stock based versions!​
I can only support, if you don't have any speed tweaks or similar flashed as I can not differ if the issues come from the kernel or from installed tweaks!​
Features:
Based on Zenfone 2.20.40 kernel source (completely from scratch)
Built with Hyper_linaro4.9 toolchain (all credits to @fraps123!!!)
STABLE: UC to 333MHz for all models
Power efficient work queues for fbcon and PHYDEV
Battery Life eXtender (BLX) (manipulate via init.d script 10BLX==>Downloads tab or Kernel adiutor==>Battery menu)
Touchboost input event handler (can be switched on and off via init.d, see Downloads-tab)
Greatly improved memory management
Added the following CPU governors:
- Ondemand with hotplugging event handlers when screen is off
- Lionheart
- Bioshock
- ConservativeX
- Yankactive
- TheSSJactive (Yankactive with hotplugging)
Added IO schedulers:
- sio
- zen
- vr
- fifo
- sioplus (credits to @boype, fixed afterwards for zf2 by me) {DEFAULT}
- fiops
Added TCP congestion algorithms:
-BIC
-CUBIC
-WESTWOOD
-HSTCP
-HYBLA
-HTCP
-VEGAS
-VENO
-SCALABLE
-LP
-YEAH
-ILLINOIS
Tweaked GPU governor to scale up more quickly
Set minimum brightness to 2 instead of 15 percent (changeable by init.d script)
Set readahead of int./ext. sd card partitions to 512kB by default
Selinux permissive
init.d support (creates directory if it doesn't exist!)
exfat support (no fuse, all credits to @dorimanx, automounting of devices fixed by @sorg)
GPU clock unlocked (not overclocked) - runs between 200 and 533MHz
ZRAM implemented (see below for details)
Sweep2Sleep (all credits to Lord Boeffla)
frandom RNG
F2FS support
Deprecated: KVM support (only up to version 51)
Some words about the currently implemented features:
F2FS
all credits to @mb300sd81 for modifying the fstab accordingly: http://forum.xda-developers.com/zen...custom-kernel-zenfone-2-t3150822/post64366155
Battery Life eXtender BLX
Use the init.d script in the downloads section (10BLX) or see Kernel adiutor in the battery menu.
Sweep2Sleep and/or Touchboost
To activate simply check Kernel Adiutor for a new entry in the menu
Alternatively you can use an init.d script I have uploaded in the downloads section: 90S2S.txt/91touchboost.txt
KVM
Please note, that I stopped supporting KVM functionality from v52 onwards. If you want a tweaked kernel with KVM support, you can download v51.
You need to insmod all modules with an init.d script or manually (see download section for an according script). Please note that I won't add the feature set as @ycavan is doing, as I am lacking the knowledge and also I don't want to overbloat the kernel, even if KVM is triggered via insmodding modules. If you need special features which this kernel might be missing, feel free to request it/them, but I won't guarantee that it will be implemented at all
init.d
The way I implemented init.d is sweet, simple and won't be recognized by ANY third party app which implements init.d!
I use the my own script which is already located on the ramdisk of the boot partition and added just a few lines, which check if init.d already exists and creates it if not (and will execute the scripts in there otherwise of course). So please don't install any more init.d enabler as you will have every script executed twice then!
ZRAM
You need to activate ZRAM via init.d script (see download section) as it is turned off by default, to make it more universal for the ZF2 users with 4GB as they really don't need to compress data before storing it into RAM as for the 2GB users. Of course Kernel Adiutor also offers the possibility to turn on ZRAM.
Dev Roadmap:
Fix ROW scheduler
What's useful
What most likely won't be implemented (missing knowledge, no testing tools):
Undervolting
Sound tweak directly on chip side (no documentation found about our RT5647 sound chips ) - you will need to deal with Viper4Android
Caution:
Do everything at your own risk!​
How to install:
1st pre-requisite: Unlock your Bootloader
2nd pre-requisite: BACKUP!!!
Method 1:
BACKUP!!!
Download the zip from the DL link below and extract the img file
Place the img file on your internal SD
Flash it through TWRPs "Install zip" function, by clicking on "Images..." on bottom right and then selecting "Boot" as destination
Reboot and you're done!
Method 2:
BACKUP!!!
Download the image file and place it in the directory of your adb binary
Code:
adb push <nameofimg>.img /sdcard/
adb shell
su
cd sdcard
dd if=./<nameofimg>.img of=/dev/block/by-name/boot
reboot
Method 3:
BACKUP!!!
Download the image file and place it in the directory of your fastboot binary
Boot into Bootloader mode
Issue the following commands:
Code:
fastboot flash boot <nameofimg>.img
fastboot reboot
Method 4 (thanks to @taylor.fowler )
BACKUP!!!
Download the zip and flash it via TWRP
Attention: when reporting bugs, please provide a log or a way to reproduce the error.​
Download Link:
Gone
Credits:
@jrior001, @crpalmer, @Jamison904, @Tectas, @dorimanx, @Lord Boeflla​
Special thanks to:
@Drew442
Amir J.
@aziz07​
XDA:DevDB Information
[KERNEL][LINARO][UC][F2FS] Project T - Custom Kernel for ZenFone 2[THE END], Kernel for the Asus ZenFone 2
Contributors
TheSSJ
Source Code: https://github.com/TheSSJ/android_kernel_asus_moorefield
Kernel Special Features: CPU governors, read-ahead, init.d support, exfat, async fsync, BLX, OC, UC
Version Information
Status: Stable
Current Stable Version: Final
Created 2015-07-05
Last Updated 2015-12-29

Changelog
Changelog format: dd-mm-yyyy vXX
23-12-2015 final KVM
- as promised
02-12-2015 final
- Removed OC as it has really no effect at all, kept underclocked frequency though
24-09-2015 v91
- Speed up I/O operations on file systems
- Algorithm changes to use faster multiplication by shifting
18-09-2015 v90
- Reduced module count from 19 to 5, much quicker boot
16-09-2015 v88
- Upgraded F2FS driver to latest sources (3.10. kernel backport)
- Fixed F2FS mounting problems
The path is now clear to create the first ROMs with F2FS formatted partitions (system, data and cache)
14-09-2015 v86
- Min_brightness is working now without f*cking up the brightness
- Versioning implemented (check kernel info in kernel adiutor)
12-09-2015 v85c
- Rolled back all backlight changes, will continue tomorrow or so as I have no time
12-09-2015 v85b
- Hotfix for negative brightness
11-09-2015 v85
- Minimum brightness is changeable by the user (via init.d, see script in download tab)
- Introduced VMAcaching (big performance improvements in memory handling)
10-09-2015 v84
- changed compression of ZRAM from LZO to Google's Snappy compressor, thanks for testing @2300
Older releases:
09-09-2015 v83
- Sioplus set to default at boot already
- random number generator "frandom" used everywhere (10-50 times faster than normal random)
- Removed power efficient work queue for block devices
- Turning power efficient work queues on and off works now
- Added Google's new and fast compression algorithm "Snappy" (this is only patch 1 of 2). Next step (=v84) will be to modify ZRAM to use Snappy instead of LZO
08-09-2015 v82
-F2FS support added
-added several tcp congestion algorithms and defaulted to westwood (great speed increase)
-Increased tcp window size (more performance)
-Under the hood fixes (wifi now integrated into kernel, ramdisk fixed up, etc.)
04-09-2015 v81
- Fixed BLX
02-09-2015 v80
- Introduced power efficient work queues
- Minimum brightness set to 2% also for ZE550ML models
02-09-2015 v77b Hotfix1
- Resolved Deep Sleep issues on ZE550ML models (for those who had them)
01-09-2015 v77 UC/OC
- Added OC/UC variant (+167MHz, lowest freq set to 333MHz), still no other features, that's why the version number didn't change
30-08-2015 v77 OC
- Added OC variant (+167MHz), no new version
28-08-2015 v77
- S2S now checks dynamically which phone model you have and sets the boundaries accordingly
25-08-2015 v76
- reduced brightness even more (2%)
23-08-2015c v75
- reduced brightness now to really 5% (below is not visible at all)
23-08-2015b v74
- S2S: Reset detection algorithm when finger leaves contact with screen prematurely (then it is not really a "sweep" )
23-08-2015 v73
- made s2s compatible for ZE550ML also (need to trigger via init.d script 90S2S, see downloads tab)
21-08-2015 v72
- added BLX (thanks to @Ezekeel for the base source)
19-08-2015 v70
- updated to newest code base from Asus (2.20.40)
- set minimum brighness to 2% now (1% was weird)
16-08-2015b v67
Set minimum brightness to 10% now (will be experimented with in the future)
16-08-2015 v66
Moved touchboost code to sweep2sleep module and renamed it to sweep2sleepPLUS
Touchboost code is stock again and should be snappier than before
09-08-2015 v65
Fixed crashing when a custom governor is to be set after boot
Sweep2Sleep (thanks to @Lord Boeffla)
03-08-2015 v60
Backported and implemented Async Fsync (thanks to @deadman96385)
Set Selinux to never deny requests (hot word: avc and unknown devices, thanks to @arter97)
Removed hotdemand governor and implemented the changes directly to ondemand governor
Set readahead of the sd card partitions to 512kB
02-08-2015b v56
Reverted back to O2 optimization level, now we're back to address the whole RAM again, thanks to @Tiongkia
Accidentally compiled in 32Bit, don't download anymore, v56 will hopefully address 4G again
02-08-2015 v55
Implemented working touchboost for Yankactive and Thessjactive governors (interactive works nonetheless)
01-08-2015c v53
Random files should be gone hopefully
O3 Optimization level implemented
01-08-2015b v52 (BUGGY)
Removed KVM to make the kernel lighter
Included loadable module hotdemand (ondemand with hotplugging techniques on screen off)
01-08-2015 v51
Removed useless Debug messages from the display (cluttering the kernel ring buffer)
Last build with KVM support
26-07-2015b v50
Completely built out of Hyper Linaro4.9 Toolchain
26-07-2015 v47
Added my own implementation of yankactive governor with hotplugging of 2 cores on screen off/on.
Fixed SSE instruction set compilation
24-07-2015 v46
Fixed touchboost issue when using interactive, no good solution for the other governors at the moment
22-07-2015 v45
Added kvm support(thanks @ycavan)
19-07-2015 v44
Fixed init.d being executed to soon by moving it after boot completed flag (still as part of the init process)
Fixed sioplus
18-07-2015 v42
Removed ondemandplus for now
Added sioplus (thanks @boype) and fiops (credits to @ion-storm for his backport) IO-scheduler
18-07-2015 v40
Ported yankactive to current interactive code base and applied yankactive tweaks there, see my github commit for details. Positive side effect is that the governor now finds the maximum freq automatically (removed the hardcoded max-freq, so 1.8GHz Zenfones should be supported like 2,3GHz now, too). WORKS!
17-07-2015 v38
Fixed interactive gov by taking and adapting it from fugu kernel
Fixed init.d mounting system as rw before running scripts (now the directory gets automatically created)
16-07-2015 (at least in my timezone) v35
Corrected tunables of yankactive (max_freq should be dynamically set) and Ondemandplus (min frequency increased to 500MHz)
ZRAM implemented (to be enabled via init.d)
Uploaded GPUclock and ZRAM scripts to the download section of XDA (kind of a database)
14-07-2015b v29
Added more governos:
Ondemandplus
Yankactive
Adaptive
14-07-2015 v28
Unlocked whole GPU clocking speed
13-07-2015
Moved "older" downloads from XDA to my Google Drive (it's frustrating uploading with 1MBit/s and then getting a Server I/O error)
12-07-2015b
Fixed exFAT automount issue (all credits to @sorg)
12-07-2015
Improved init.d support (creates directory if it doesn't exist)
exFAT driver implemented (thanks to @dorimanx)
11-07-2015
Added init.d support
10-07-2015
Added several (working) IO schedulers:
- sio
- vr
- zen
- fifo
10-07-2015
Fixed wakelock issues
Added several governors
Added AnTuTu results in separate post
05-07-2015
First release

Want to report a Bug? Please read here first
This last version is pretty stable so far, therefore no bug reports anymore

Awesome...
Might test this out later when I get back home and make a back-up...

Great work! Hopefully we can tweak to give us more battery life!

Great work
Gửi từ ASUS_Z00AD của tôi bằng cách sử dụng Tapatalk

oh my god.. i dont need any custom rom for this moment if there's custom kernel released.. and I never expect the 1st custom kernel was released by you @TheSSJ, you guys including @jrior001 and @crpalmer and also other developers are rock!!
anyway a question.. can we flash it .img file using fastboot cmd on bootloader?

This be fine for the 2.19 no garbage rom?

tested this kernel since using it an hour ago..
some bugs that i found:
1. dancedance, wheatley governor (freezes phone when activated)
2. smartassv2 cause random reboot
3. all the I/O Scheduler besides stock cfq & noop are unable to be used ( I/O scheduler fifo, sio, vr, zen, tripndroid will return back to stock cfq after activated)
4. suddenly apps such Castro (I usually used it to monitor core speed) crash after using this kernel
and I used Device Control apps to apply the tweak.

and also..my device is hardly fall into deep sleep mode..hsi3_wake_lock is higher than in stock kernel..

@TheSSJ
can you tell how you overcomed module signature check in your kernel? I see in your config x86_64_moor_defconfig, you still use CONFIG_MODULE_SIG=y option which should prevent modue loading compiled in other environment. Besides signature, modules have magic string which should be the same as in zImage. But i see you've took modules directly from stock kernel. So, how you've managed to load modules? I don't see any hack in commit history.
And, btw, what exactly toolchain you're using?
---------- Post added at 12:39 PM ---------- Previous post was at 12:35 PM ----------
btw, you can update kernel by simplier command.
Boot into fastboot and then issue the command:
fastboot flash boot customboot.img
So, you don't need neither custom recovery, nor root. Just unlocked bootloader.

@sorg depending on where he forked from.... we disabled all the modules and built them in to kernel.
@TheSSJ, we gotta work on your git-fu dude, although your kernel source meets the requirements, proper history helps with maintaining and gives more proper credit to where you forked from. If your interested in learning a few thing hit me on PM or IRC I'll try to teach you a few things.
Sent from my N5206 using XDA Free mobile app

another thing guys, it seems that im unable to return back to stock kernel..didnt tried fastboot command yet, just flashed stock boot.img in twrp and its stuck on bootloop. the wakelock is pretty bad, so people who want to test this kernel should make a nandroid backup their boot first..i forgot to backup mine and now i need to use this kernel to get my zf2 working but with high drain..

jrior001 said:
@sorg depending on where he forked from.... we disabled all the modules and built them in to kernel.
Click to expand...
Click to collapse
If module is built-in, then there is no reason to keep it in /lib/modules
I believe, modules are built-in because otherwise need to hack module.c to allow to load foreigner modules.
The main reason of my original question comes from need to load pre-compiled not opensourced modules such as texfat.ko and tntfs.ko. Actually, texfat.ko can be replaces by opensource exfat module from Samsung. But there is no opensource solution for tntfs.ko (i don't call that castrated ntfs opensource driver in linux kernel as alternative).
I've tried to hack module.c to allow to load foreigner modules (cannot disable the check by config flags because it affects the structures), and i can succefully load the module, but mounting the exFat(i'm experimenting with texfat.ko module) disk gives me out of memory error. So, either ASUS gave config not exactly they're using, or i don't know where is the problem.
I'm using AOSP GCC 4.8 recommended by ASUS.

cangcan said:
and also..my device is hardly fall into deep sleep mode..hsi3_wake_lock is higher than in stock kernel..
Click to expand...
Click to collapse
Yep, had that,too,fortunately I was able to restore stock kernel and now it is back to normal (75% deep sleep, 20% lowest clock). Need to investigate why it is causing that, as I didn't change the default governor at all (was set to interactive on mine, still 99% on 500MHz). The only real changes I made which were applied directly were just the dynamic read-ahead fix and the inclusion of all models in the kernel directly.
sorg said:
@TheSSJ
can you tell how you overcomed module signature check in your kernel? I see in your config x86_64_moor_defconfig, you still use CONFIG_MODULE_SIG=y option which should prevent modue loading compiled in other environment. Besides signature, modules have magic string which should be the same as in zImage. But i see you've took modules directly from stock kernel. So, how you've managed to load modules? I don't see any hack in commit history.
And, btw, what exactly toolchain you're using?
Click to expand...
Click to collapse
No hack used, as jrior001 wrote I will delete the modules in the lib folder as soon as I get home, as they bloat up the ramdisk unecessarily - it was too hot yesterday as it seems...
To be honest I downloaded a builduntu VM with which I am working. I am using the toolchain which was shipped with cyanogenmod 12.1 source, I plan to switch to AOSP or any other x86_64 optimized, though... maybe this fixed the exagerated wakelocks?
jrior001 said:
@sorg depending on where he forked from.... we disabled all the modules and built them in to kernel.
@TheSSJ, we gotta work on your git-fu dude, although your kernel source meets the requirements, proper history helps with maintaining and gives more proper credit to where you forked from. If your interested in learning a few thing hit me on PM or IRC I'll try to teach you a few things.
Click to expand...
Click to collapse
Would be really glad for any help in making this easier to build and to document - git is a pain in the a$$. Will send you a PM as soon as I can.
By the way: does anyone know if the used toolchain can be the reason why these kernel wakelocks appear??

Camera FC
Flash light not work
Gửi từ ASUS_Z00AD của tôi bằng cách sử dụng Tapatalk

29y6145 said:
Camera FC
Flash light not work
Gửi từ ASUS_Z00AD của tôi bằng cách sử dụng Tapatalk
Click to expand...
Click to collapse
Interesting - I didn't change a thing on the camera code...maybe I really need to use the AOSP toolchain as recommended by Asus...
//Edit: suspect this issue comes from the hsic wake locks cangcan posted on page 1. Basically the camera (and many other components, like modem) seems to be connected using USB protocol and there may be issues of occupied resources which cannot be used by other components. Will dive into the code when I come back home. I will also test the stock source and check if the wakelock occurs there,too! This would be an indication, that the kernel source from ASUS needs some special treatment in order to work well

TheSSJ said:
Interesting - I didn't change a thing on the camera code...maybe I really need to use the AOSP toolchain as recommended by Asus...
Click to expand...
Click to collapse
Yes
Iam restore stock boot
Camera and flash light worked again
I hope you fix next version
Gửi từ ASUS_Z00AD của tôi bằng cách sử dụng Tapatalk

I found the code piece (2 in total, xhci and ehci) where the wakelock is initialized, now it's tedious code crawling...

Some updates reg 2.18 kernel
So I have been tinkering a lot with the kernel and decided to start from scratch, with rather shocking results.
I have downloaded the original kernel source for v2.18 and compiled it strictly as described in the README included by ASUS.
After fixing some path issues the kernel compiled and I packed it into a boot.img.
After flashing and booting the wakelocks are still present!!! So this has definitely nothing to do with my modifications here, I used the x86_64_moor_defconfig with the diff_file for zenfone2 fhd and included all modules.
At this point in time I can say for sure that the config from Asus is either incomplete or something is missing from the source itself.
I will try to compile the 2.19 kernel today and see if the wakelocks disappear - but it seems that every other custom kernel should have the wakelock problems...
Just to let u know..
Also (some positive news): Intel granted me free access to their own c++ compiler binaries, which are increasing the performance of Intel based SoCs compared to normal gcc by a fair amount. Will also try to build the kernel with the Intel toolchain

Related

[KERNEL][MOD][CM7] Huexxx's kernel 120321-V4.1 beta ...

This is a custom kernel for Optimus Black based on CM's Sniper kernel source.
It aims to continue with knzo's previous hard work (all credits go to him) but in a progressive way.
The name of the kernel contains two different 'fields':
- The date of the latest original lge-kernel-sniper included commit. You can check at https://github.com/CyanogenMod/lge-kernel-sniper if my last kernel includes the latest commits. In negative case, post here to ask for a new up to date recompilation.
- Huexxx's version of the kernel.
Use at your own risk.
Kernel features:
Code:
# beta
##
Compiled with Linaro toolchain 4.5 (V0)
Added SIO, BFQ v2r1 and VR I/O schedulers (V0)
Enabled Deadline I/O scheduler (V0)
Set SIO as default I/O scheduler (V0)
Added InteractiveX, Smartass v2 and MinMax governors (V0)
Tuned these governors for Optimus Black (V0)
Added Lagfree and SavagedZen governors (V1)
Added and Enabled Stochastic Fair Blue Network Scheduler (V1)
Enabled TCP Veno Congestion Avoidance Algoritm (V2)
Some optimizations (V2)
Added Lazy governor from Ezekeel (V3)
Disabled interactive, conservative, ondemand, userspace and powersave governors (V3)
Disabled CFQ and VR I/O shcedulers (V3)
Set Smartass v2 as default governor (V3)
Added eRecovery to kernel package (V3)
Added support to Torch and BLN (V3)
Disabled LG DVFS to get rid of scaling issues (V3)
Tweak Deadline for flash memory devices (V4)
Set Deadline as default I/O scheduler (V4)
Removed Lazy governor (V4)
Add XZ compresion to kernel and set by default (V4)
Update jHash and add speed tweak (V4)
Added the git implementation of SHA-1 (V4)
Upgraded YAFFS2 (V4)
Added SLQB allocator and set it default (V4)
Opts and tweaks to some libs (V4)
Changed toolchain to Linaro 4.6 (V4)
Done some sysctl tweaks (V4)
Removed some debug stuff (V4)
Added cleancache and prepared ext4 to use it (V4)
Done some mm opts (V4)
Added 'autogroup' scheduling feature to CFS (V4)
Added slice by 8 algorithm to crc32.c (V4)
Added some umaro tweaks to cpu (V4)
Added some usb performance hacks (V4)
Done some net opts (V4)
Applied a lot of arm patches (V4)
Applied a lot of rcu patches (V4)
New commits from lge_kernel_sniper (V4.1)
Replaced eRecovery with gRecovery from Sergey1239 (V4.1)
Memory management values from Zeus v6 (V4.1)
Re-enabled LG DVFS (V4.1) -> Don't use SetCPU or NoFrills to auto set values on boot...
Something else for sure ...
Extra tweaks:
Code:
# beta
##
Patched libsqlite.so (V2)
Patched hosts (20111118) to avoid some ads (V4)
Patched resolv.conf to use OpenDNS (thanks to gabwerkz) (V4)
Optimal ext4 remount (V4)
Increased sdcard read ahead (V4)
Deleted libGLES_android.so to increase performance (V4)
New lighter hosts file from Zeusv6 (V4.1)
Removed resolv.conf becuase it's useless (V4.1)
Modified remount options to preserve journaling (V4.1)
Instructions:
Download this: a2a8be7f7d7ec91c133703b5b655cbda
[Optional] Check the md5sum of the downloaded file
Copy file to microSD card
Reboot into recovery
Wipe chache and dalvik-cache
Choose "install zip from sdcard" and pick the file
Reboot and enjoy
FAQ:
Code:
Q. Do I need to wipe data?
A. No, never.
Q. Do I need to flash this if I flash a new CM update/nightly?
A. Yes. Everytime you flash a new CM version, you need to reflash this.
Q. I have xxxxx ROM. Can I flash this stuff?
A. This kernel is intended to flash it over CM7 ROMs. It won't work over stock ROMs.
Q. What can we expect from this?
A. Snappier, increased internet/market page loading, USB transfer rate, etc.
Q. How can I know if I flashed it correctly?
A. Go to About Phone in settings and you should see my nick around there.
Q. How can I change governor and set it on boot?
A. Go to Settings > CyanogenMod settings > performance > CPU Settings.
Q. How can I change I/O scheduler?
A. Don't change it for now... default one is Deadline and it works very well.
Q. What governor and/or scheduler is the best?
A. Take a look at [URL="http://forum.xda-developers.com/showthread.php?t=1242323"]this[/URL] amazing post from knzo. IMHO Smartass V2 (more performance) and InteractiveX (more battery saving) are the best. It seems that new Lazy governor is working so good at Nexus S community, so you can give it a try and comment.
Q. Where can I find the source for this?
A. [url]https://github.com/Huexxx/lge-kernel-sniper[/url]
--> It's under construction right now...
Make sure to read the FAQ before asking any questions.
Regards!
--- Reserved for future use ---
thanx for the great work!
Thanks a lot... flashing it right away.
The link to download it is enabled!
To say that by some reason it doesn't set interactiveX as default governor at boot... but you can set it (or another gov) on boot via Cyanogemod Settings, SetCPU or NoFrills.
Regards!
1st thing thx for ur work i like this kernel
2nd thing : i want u to tell wt is the best settings to set for saving battery and best performance (using profiles in setcpu for example :screen off) , governor and schedulers ?
i want the max battery.
ps: i have tried InteractiveX and i got 21xx points is that good ?
edit :
i'v noticed something ,i got i call and the screen didn't wake up so i'v pressed the wake up key to answer the call :S
Trying! Thanks!
Enviado desde mi LG-P970 usando Tapatalk
Ring me again if you have more questions, glad to help.
Hello.
look at your faq, there is an error.
Huexxx said:
Q. Where can I find the source for this?
A. Q. Do I need to wipe?
A. No, never.
Click to expand...
Click to collapse
otherwise nice work from you, thank you!!!
Have a nice day.
Hi all!
First of all, thanks again knzo.
I've seen the problem awaking the screen when incoming call. In my case is a lag more than a 'no-awake' problem. I'm looking into it.
Regards!
No lag for me, works fine everything.
Enviado desde mi LG-P970 usando Tapatalk
Huexxx, try to compile with Codesourcery toolchain.
I compile with Linaro but I'm crazy and aim for performance whereas Codesourcery usually delivers the best stability.
I'm crazy too
Jokes apart, I tried with code sourcery with my first kernel compile attempt and it ended up in a bricked OB...
I'll try again in the future, but at the moment I'm goinf to stuck on Linaro 4.5 that runs guite well.
Thanks for the advice.
It is nice to read the conversation between Android Guru's...
and what can we do is just sit and waiting the updates... hehehe
+testing and report any bugs
is it applicable for stock ROMs?
Lleweraf said:
is it applicable for stock ROMs?
Click to expand...
Click to collapse
It's intended for CM7 ROMs.
Maybe it can work with stock GINGERBREAD ROMs.
Don't use it with stock FROYO ROMs.
Regards.
Works a little bit faster then stock CM kernel
Quadrant score a little better too, thank you for your work.
Huexxx said:
It's intended for CM7 ROMs.
Maybe it can work with stock GINGERBREAD ROMs.
Don't use it with stock FROYO ROMs.
Regards.
Click to expand...
Click to collapse
Thanks man! I think im gonna wait for the stable release then flash this
First post updated to V1.
Some additions and some more in the pocket...
Regards.
Huexxx said:
First post updated to V1.
Some additions and some more in the pocket...
Click to expand...
Click to collapse
Changelog of this update?
EDIT: Ooops, sorry, didn't see the (V0) and (V1)
Thanks..

[KERNEL][4.1.2][03 Jan.] ★ LiteGX v5.8.0 ★ <><> ... DISCONTINUED !!

[KERNEL][4.1.2][03 Jan.] ★ LiteGX v5.8.0 ★ <><> ... DISCONTINUED !!
{
"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"
}
WARNING : THIS KERNEL IS ONLY FOR ANDROID 4.1.2 (SAMSUNG) !
This is a pure LITE, STOCK WAY & STABLE kernel with MINIMAL features.
If you are looking to a kernel with less features and more close to stock, check out my StockGX kernel.
My goal is to offer a slight modification of our Samsung stock kernel's, with few features, aiming a better battery life than stock without affecting any drain.
This is a kernel "plug-and-play" or I would say more "flash-and-play". No need for tools or apps to configure the kernel. This is the way I wanted it. A bit like speedmod kernel did.
Unfortunately, I'am not a developer but just a basic person with some android/linux knowledge already.
My dream was one day to create my own kernel, and thanks to great developers that answered my many questions, this dream has been possible. I'am very happy and proud to share my first ever kernel to everybody here.
It must be only flashed over an official Samsung ROM and not AOSP/AOKP !
Feel free to include my kernel to your ROMs / Threads but please don't forget to inform/ask first via PM and credit me in your original thread.​​
★ FEATURES (up-to-date) ★ :​
Base :
Directly based on update11 source from Samsung (for clean work and stability).
Compiled with ARM EABI (v4.4.3) toolchain (with flags optimizations).
Ramdisk from XXEMD3 (for update10 ROMs compatibility without the need to change radio).
Main :
ZZMoove (v0.7d) governor (added and set as default). Many profiles included, grab them below.
ROW (v4) optimized and as only I/O scheduler.
Wolfson Boeffla Sound (v1.6.4 drivers) compatibility.
hardcore mDNIe tweaks (for better colors + sharpness fix for better readability).
Touch-to-Wake (v1.1a) (but disabled by default). Many profiles included, grab them below.
USB charging increased (to 900mA instead of 475 by default).
Allow manual brightness to 300 candela.
zRam added (but disabled by default) with LZ4 compression and 4x swaps. Many profiles included, grab them below.
init.d support.
CRT-off effect friendly (early_suspend set to 100ms).
Native ExFAT support (from official Samsung source).
xbox controller support.
Triangle Away support.
Various tweaks :
4x zRam swaps capability (instead of single one).
Optimized ARM CPU topology.
"GENTLE_FAIR_SLEEPERS" disabled.
"ARCH_POWER" enabled.
"SCHED_MC" added. Many profiles included, grab them below.
"CONFIG_SCHED_AUTOGROUP" enabled.
ROW scheduler & blk-core tweaks.
"Westwood", "HTCP" and "BIC" TCP congestion control modules added. Many profiles included, grab them below.
Enabled persistent TRIM support for all partitions.
Fully compressed libs ".ko" modules.
Automatic dalvik-cache wiping in kernel flashing procedure.
Logging and debugging tweaks :
Android logger disabled.
Kernel logger disabled.
Disabled kernel debugging : Samsung / sec_log / last_kmsg / touchscreen / modem / max77686 / sec_watchdog.
Disabled various debug in defconfig.
Features that will NEVER be included in this kernel :
Overclock / Underclock / Undervolt.
auto-root
LED control.
Charge control.
Master sequence (screen calibrated).
ABB (Adaptive Body Bias).
Any upgrade of Linux kernel 3.0.XX.
STweaks compatibility.
Dual-Boot Sammy/AOSP.
CyanogenMod compatibility.
MIUI compatibility.
etc.
★ PREREQUISITE ★ :​
Any odexed or deodexed international I9300 Samsung 4.1.2 Jelly Bean ROM.
A custom recovery (CWM recommanded) to flash the kernel.
★ FREQUENTLY ASKED QUESTIONS ★ :​
How can I customize this kernel ? :
> Mainly with ZZMoove/zRam profiles (grab them below) and with TricksterMOD / SetCPU apps.
What does the LiteGX cleaner script ? :
> It deletes all ZZMoove/zRam profiles that you flashed after this kernel. So you can go in another kernel safely. It don't removes anything else since this kernel is pure stock based and don't add any files/folders that need to be deleted after. This cleaner script will be only efficient in this situation only, it does not clean anything before coming from another kernel to mine.
Do I need to wipe cache + dalvik each time I flash a new kernel version ? :
> Nope. Moreover dalvik cache is already wiped automatically during flashing procedure.
Do I really need to flash any profiles/scripts ? :
> Definitely not. It's user choice to do it but zRam profiles for example are highly recommanded to be flashed since it adds a lot of smoothness and performance to the kernel (and on which is disabled by default).
Do I need to re-flash ZZMoove ZIP profiles each time I flash a new kernel version ? :
> Nope. It just install an init.d script, so it will be permanent until you delete files from your init.d folder or flash "Cleaner" version which will do this for you.
Do I need to remove old ZZMoove profiles manually before flashing a new profile ZIP ? :
> Nope. Each ZIP's include an automatic removal of previously used profile.
Android OS usage is very often at top of my battery stats ! :
> Try wiping cache and dalvik cache manually in your favorite CWM, then make a full charging until green led appears.
★ SOURCES ★ :​
Github >> LiteGX.
Need supports ? all kind of questions must be posted on this thread directly. Be sure to read at least completely this first post before asking any question.
If you enjoy this kernel, don't forget to rate it
stars, and clicking the 'thanks' button (right below) is always appreciated to keep this thread maintained ​
LIKE MY WORK ?
OFFER ME A
!​​
Changelog + links
★ All ZZMoove / zRam / Cleaner scripts can be found HERE ★​★ All oldest releases can be found HERE ★​
★ CHANGELOG ★ :​
03.01.2013 : v5.8.0 released.
Disabled "CONFIG_SCHED_AUTOGROUP" (useless in Android).
xbox controller now loaded as internal module (instead of external).
30.12.2013 : v5.7.0 released.
Now compiled with stock Android ARM EABI 4.4.3.
28.12.2013 : v5.6.0 released.
Touch-to-Wake is now disabled by default (for battery purpose).
Added some "Touch-to-Wake profiles" into scripts folder :
- Touch-to-Wake_disabled(stock).zip
- Touch-to-Wake_enabled_3s.zip
- Touch-to-Wake_enabled_5s.zip
- Touch-to-Wake_enabled_8s.zip
- Touch-to-Wake_enabled_10s.zip
- Touch-to-Wake_enabled_15s.zip
Updated "LiteGX-KERNEL_full_cleaner.zip" to match new Touch-to-Wake flashable ZIP's (please remove old one).
15.12.2013 : v5.5.0 released.
ramdisk : re-enabled lowmemory killer in 'init.rc'.
SCHED_MC disabled back by default (0) to avoid some people facing some lags due to agressive value (moreover, I prefer to trust ZZMoove stock behaviour).
Added some "SCHED_MC profiles" into scripts folder :
- "SCHED_MC_power_savings_0(stock).zip"
- "SCHED_MC_power_savings_1.zip"
- "SCHED_MC_power_savings_2.zip"
It will be useful for those who wants to change it without the need to use TricksterMOD (etc) anymore.
Updated "LiteGX-KERNEL_full_cleaner.zip" to match new SCHED_MC flashable ZIP's (please remove old one).
05.12.2013 : Flashable ZIP's adding.
Added some "TCP congestion profiles" into scripts folder :
- "TCP-congestion_bic.zip"
- "TCP-congestion_westwood.zip"
- "TCP-congestion_htcp.zip"
- "TCP-congestion_reno.zip"
- "TCP-congestion_cubic(stock).zip"
It will be useful for those who wants to change it without the need to use TricksterMOD (etc) anymore.
Updated "LiteGX-KERNEL_full_cleaner.zip" to match new TCP flashable ZIP's (please remove old one).
02.12.2013 : v5.4.0 released.
zRam is disabled as default again (this time for ever), for battery purpose at the cost of a bit less multitasking (if you want it again : just flash any zRam script).
"GENTLE_FAIR_SLEEPERS" disabled (back), should improve UI responsiveness.
Updated "zRam_disabled.zip" to match new zRam disabling as default (please delete old one).
28.11.2013 : v5.3.0 released.
zRam is now initialized by default once flashing the kernel with 600MB disksize and 100% swapiness. If you feel some lags, try different values with scripts (hope it will help people finding this kernel more smooth than default without it).
All zRam scripts has been reworked and updated (please delete olders and download latest ones). If you want to turn off zRam, this time you'll have to flash "zRam_disabled.zip" file.
zRam initialization is now using a custom busybox binary directly integrated in the kernel, it will avoid some people not having their zRam properly working due to some roms busybox which cannot execute 'swapon' shell command and with priorities.
- A little reminder : to check if your zRam is working, no more need to install Turbo zRam app, on a Terminal, write : "free" (if you see swap values, then zRam is working) or "cat /proc/swaps" (which will give you more informations on both 4 swap partitions).
- I would like to thanks personally my friend @Yank555 to help finding some zRam initialization problems.
Clic below to see older changelog ..
21.11.2013 : v5.2.0 released.
ramdisk : 'root helper' is back (same as v4.6.1).
Add several TCP congestion control modules :
- Westwood
- BIC
- HTCP
'cubic' TCP congestion will stay as default like stock. You can set your favorite congestion module via TricksterMOD app.
19.11.2013 : v5.1.0 released.
Enabled back: Persistent TRIM support for all partitions.
Enabled back: USB charging increased (to 900mA instead of 475 by default).
18.11.2013 : v5.0.0 released.
Total redesign again from Samsung update11 source.
Removed a LOT of tweaks (back to 'stock way' for real), battery life should be much better than before.
List of removed tweaks :
- Removed: NTFS support.
- Removed: CIFS support.
- Removed: NFS support.
- Removed: Reduced WiFi wakelock.
- Removed: Reduced battery-monitor wakelock timeouts.
- Removed: Proportional Rate Reduction for TCP.
- Removed: Network speed tweak.
- Removed: Decreased touch boost frequency (from 800 to 600Mhz).
- Removed: MMC : Fix the workqueue overload battery waste.
- Removed: MMC : Increased timeout limits for bad sdcards.
- Removed: Doubled min-max readahead.
- Removed: ipv4: save CPU cycles from "check_leaf()" (backport from Linux 3.8).
- Removed: Intelli memory writeback (0 when screen ON & 500ms when screen off).
- Removed: Higher random entropy.
- Removed: Enabled persistent TRIM support for all partitions.
- Removed: Dynamic FSync control (v1.2).
- Removed: Dynamic Screen Frequency Scaling capability (for ZZMoove governor).
- Removed: "GENTLE_FAIR_SLEEPERS" disabled.
- Removed: USB charging increased (to 900mA instead of 475 by default).
- Removed: "cpu_load_slope" correctly set.
- Removed: bcmdhd : Disabled multicast on suspend.
- Removed: AIO enabled (backport of Linux 3.6.x) and tweaked.
Some optimizations into litegx_defconfig.
Overall kernel size is now slightly lighter (again) than previous version.
17.11.2013 : v4.6.2 released.
ramdisk : Fixed zRam which was enabled at boot by default.
ramdisk : Modified 'root helper tweaks' (again) to remove many useless lines, which finally now finally looks like more as an 'init.d helper'.
ramdisk : Many useless files in 'sbin' folder has been removed to let only needed ones for 'root helper tweaks'.
Overall kernel size is now slightly lighter than before.
14.11.2013 : v4.6.1 released.
ramdisk : included 'root helper tweaks' from adam kernel but modified to fit the needs of LiteGX kernel only (removed build.prop and pegasusq governor tweaks).
10.11.2013 : v4.6.0 released.
Updated compilation toolchain Linaro GCC from 13.09 to 13.10 (20131014).
05.11.2013 : v4.5.6 released.
AIO enabled.
Backport AIO from Linux 3.6.x.
AIO tweak : Don't plug the I/O queue in do_io_submit().
03.11.2013 : v4.5.5 released.
Enabled "ARCH_POWER" to use 'arm_cpu_topology' power management features.
litegx_defconfig : Added "CONFIG_TOUCH_WAKE".
28.10.2013 : v4.5.4 released.
Disabled "GENTLE_FAIR_SLEEPERS" (should improve UI responsiveness).
27.10.2013 : v4.5.3 released.
"sched_mc_power_savings" set to aggressive value (2) by default.
17.10.2013 : v4.5.2 released.
Decreased touch boost frequency from 1000 to 600Mhz (should slightly decrease smoothness, but be a bit more battery friendly).
15.10.2013 : v4.5.1 released.
Increased touch boost frequency from 800 to 1000Mhz (should boost smoothness a bit without affecting much battery).
09.10.2013 : v4.5.0 released.
Kernel logging (linux printk) disabled (credits to @Lord Boeffla).
litegx_defconfig : disabled some more debug.
05.10.2013 : ZZMoove profiles updated.
All ZZMoove profiles updated to latest revision (thanks to @Yank555).
Removed "ZZMoove_LCDFreq_optimizations_removal.zip" and included it directly in "ZZMoove_Profiles_Cleaner.zip" instead.
Changed priorities into scripts for init.d : "S98" for every ZZMoove profiles and "S99" for LCDFreq optimizations, to override ones already included in S98 profiles.
Modified "LiteGX-KERNEL_full_cleaner.zip" to proper remove new "S98" profiles.
01.10.2013 : v4.4.4 released.
zRam is now disabled by default (to stay as stock as possible).
zRam : set default to 4 devices instead of 1 (resulting Turbo zRam app compatibility from @rlorange).
Removed all zRam scripts to create some new with 4x zRam swaps instead of single ones. Should be MUCH smoother than single zRam (not a single lag detected after hard use of few hours). As always, you can flash new zRam scripts without the need to delete anything from init.d, since it will do it automatically.
Please remember that all my provided scripts are NOT necessary. They are just here for confirmed people or those who wants to increase smoothness or battery life a bit. Stock flashing will always provide best balance. Don't worry, this kernel will always stays like I wanted to do it : a "flash-and-play" one firstly.
29.09.2013 : v4.4.3 released.
Changed default zRam swappiness value from 90% to 80%.
Restored Boeffla Sound v1.6.4 original work with saturation prevention, since it was useless to remove it (just select "Over-saturation Supress" in "Graphical Equalizer" in Boeffla Sound app).
29.09.2013 : v4.4.2 released.
Changed default zRam disksize and swappiness values from 200MB / 10% to 600MB / 90% (thanks to @Yank555 for the tips).
Added 3 new zRam scripts with 90% swappiness.
29.09.2013 : v4.4.1 released.
Updated compilation toolchain Linaro GCC from 13.08 to 13.09 (20130903).
27.09.2013 : some changement about scripts.
All "ZZMoove profiles" has been removed from post #1. You can grab now them directly at top of post #2.
Added several zRam profiles (300/600/800 MB disksize, and 80/100% swappiness) scripts.
Added a full cleaner ZIP for those who want to remove cleanly everything from this kernel and want to migrate to another one.
27.09.2013 : v4.4.0 released.
Introducing zRam (with stock values for the moment). Should increase performance. Use zRam & Swap Control (made by @rlorange) to set your values and make init.d scripts like you want; or directly use my scripts HERE.
zRam : added LZ4 compression and using it as default.
Activated native ExFAT support.
Now using "make mrproper" (instead of "make clean") to stay with local number #1 (thanks @googy_anas for the tips).
22.09.2013 : v4.3.5 released.
ipv4: save CPU cycles from "check_leaf()" (backport from linux 3.8) (thx @googy_anas).
22.09.2013 : v4.3.4 released.
Fixed Boeffla Sound saturation prevention which wasn't removed since v4.0.0 (sorry about this, just saw it).
21.09.2013 : v4.3.3 released.
Hotfix from v4.3.2 : added spica1234's missing line tweak about "persistent TRIM support".
21.09.2013 : v4.3.2 released.
Enabled persistent TRIM support for all partitions (credits to @spica1234).
Added automatic dalvik-cache wiping in kernel flashing procedure.
20.09.2013 : v4.3.1 released.
Updated "Touch-to-Wake" from 1.1 to v1.1a again.
18.09.2013 : v4.3.0 released.
Updated "Dynamic FSync control" from v1.1 to v1.2 again.
NTFS support.
NFS support again.
CIFS support again.
sched: LOAD_FREQ tweak (this time definitely) removed.
18.09.2013 : v4.2.0 released.
Fixed "Dynamic FSync control" which was not working ("dyn_sync_cntrl.c" file was missing).
CONFIG_SCHED_AUTOGROUP enabled again (smoothness should be back).
Added again : Intelli memory writeback (0 when screen ON & 500ms when screen off).
Added again : sched: LOAD_FREQ (4*HZ+122) avoids loadavg Moire.
Touch-to-Wake back from v1.1a to v1.1 for the moment.
15.09.2013 : v4.1.0 released.
Updated compilation toolchain to Linaro GCC 4.7 from 20130626 to 20130812.
USB charging increased back to 900mA (instead of 475 by default).
15.09.2013 : v4.0.0 released.
Total beginning from zero (clean update11 sources) again.
"Android OS" battery drain on top is now gone.
Kernel is now cleaner than before : almost everything has been made using git patches, and minimally manually.
Litest release ever (5,42 MB), smoothest and best battery friendly release ever too.
Releases will now be "x.x.x" (latest number for minor fixes/tweaks, the middle one for good ones, and the first one for major ones).
Removed a lot of tweaks since v3.6, which was useless or that I don't want to include anymore to stay as close as possible from stock. I prefered to let only important and relevant tweaks for now.
List of modified features :
CIFS / NFS support removed.
Intelli memory writeback removed.
AIO tweak: No plug I/O queue in "do_io_submit()" removed.
CONFIG_SCHED_AUTOGROUP is now disabled.
sched: LOAD_FREQ (4*HZ+122) avoids loadavg Moire removed.
Reverted USB charging from 900mA back to 475mA default value.
Reverted "Dynamic FSync control" from v1.2 to v1.1 from AndiP.
List of added feature :
ARM CPU Topology : many patches has been included about optimizations/fixes.
Thanks & greetings
★ THANKS & GREETINGS ★ :​
XDA board and community
Google
Samsung
CyanogenMod Team
gokhanmoral
Andreilux
wanam
spica1234
ZaneZam
Yank555
googy_anas
hardcore
AndiP
DONATIONS
★ DONATIONS ★ :​
Many thanks to @fuxmen ! :good:
Many thanks to @colingpt ! :good:
Thank you to support my work !
Thanks bro tested ( Pardus HD Rom MG6 v18 )
downloading and nandorid backing up
does the setting Stweak compatible ?
qtwrk said:
does the setting Stweak compatible ?
Click to expand...
Click to collapse
Sorry, no STweaks support for the moment, but planning to do it. Need to learn how to add the compatibility. Stay tuned.
Envoyé depuis un téléphone qui pique les yeux.
Great work. The S3 community is getting richer with you aboard congratulations!
UPDATE
UPDATE :​
16.08.2013 : v1.1 released.
ramdisk from XXEMF6.
Note : If you have a message before reboot in your recovery asking you to disable stock recovery flash, click yes to keep your custom recovery. I guess it's due to XXEMF6 ramdisk on which included a stock recovery flashing procedure with.
googy_anas said:
Great work. The S3 community is getting richer with you aboard congratulations!
Click to expand...
Click to collapse
Thank you mate, XDA is proud to have such great devs like you, and sharing to us kernels of your quality is such a chance that only a few people will understand this on this board :good:
My goal is to stay as stock as possible, so.. sorry but no competition with mine ! :laugh:
Cheers from France
UPDATE
UPDATE :​
18.08.2013 : v1.2 released.
Linux kernel branch from 3.0.91 (kernel.org).
Enjoy :good:
This kernel is amazing
I flashed it.
Will be kernel compiled with Linaro Toolchain?
Assa551N said:
This kernel is amazing
I flashed it.
Will be kernel compiled with Linaro Toolchain?
Click to expand...
Click to collapse
Glad you like it
Yeah, I will compile it using linaro toolchain soon (already tried but had some errors when compiling resulting an abort. Need to learn a bit more flags configuration for compiling, hehe) :good:
Stay tuned!
Androidgx nice work.
For linaro 4.6 and above you will require this patch https://github.com/AndreiLux/Perseus-S3/commit/71f536fb9957c64cc6274221faa056694e010616
After this you're good to go with Linaro toolchain
Sent from my GT-I9300 using xda app-developers app
spica1234 said:
Androidgx nice work.
For linaro 4.6 and above you will require this patch https://github.com/AndreiLux/Perseus-S3/commit/71f536fb9957c64cc6274221faa056694e010616
After this you're good to go with Linaro toolchain
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
Thanks mate :good:
You write at the good moment, was currently trying to compile and learning how to compile right without errors using linaro gcc 4.7
I stay you tuned!
Androidgx,
This is the simple fsync which I wrote in 2012 which turns fsync on untill phone is booted and later after ,it"s booted it turns off fsync.
Plus the code has been optimized with branch prediction feature of cortexa-9 cpu by gcc accembly code and it does use cortex-a9 's preload engine (prefetch) to keep fsync state in L2 cache. Plus by branch prediction there is a less cpu overhead checking about whether fsync is on or off. It assumes fsync is off and with probable branch prediction it executes faster.
Below is the fsync as a patch which I wrote in mid 2012 for my older phone. You can use it .The basic fsync functional code is based on alrahi's code.
Simple Fsunc patch is here: http://db.tt/rdikFoKY
Sent from my GT-I9300 using xda app-developers app
AndroidGX said:
Thanks mate :good:
You write at the good moment, was currently trying to compile and learning how to compile right without errors using linaro gcc 4.7
I stay you tuned!
Click to expand...
Click to collapse
Linaro 4.8 is out. Try it as well
Sent from my GT-I9300 using xda app-developers app
spica1234 said:
Androidgx,
This is the simple fsync which I wrote in 2012 which turns fsync on untill phone is booted and later after ,it"s booted it turns off fsync.
Plus the code has been optimized with branch prediction feature of cortexa-9 cpu by gcc accembly code and it does use cortex-a9 's preload engine (prefetch) to keep fsync state in L2 cache. Plus by branch prediction there is a less cpu overhead checking about whether fsync is on or off. It assumes fsync is off and with probable branch prediction it executes faster.
Below is the fsync as a patch which I wrote in mid 2012 for my older phone. You can use it .The basic fsync functional code is based on alrahi's code.
Simple Fsunc patch is here: http://db.tt/rdikFoKY
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
Thank tou very much mate, will try it tomorrow :good:
Just tried compiling with your link "Toolchain fixes regarding smc architecture extensions", and managed to almost compile the kernel without "-Werror" flag removed.
Here is where it stops :
Code:
CC drivers/video/samsung/mdnie_tunning.o
CC drivers/video/samsung/s3cfb_s6e8aa0.o
CC drivers/video/samsung/smart_dimming.o
CC drivers/video/samsung/s5p_dsim_lowlevel.o
CC drivers/video/samsung/s5p-dsim.o
LD drivers/video/samsung/built-in.o
CC drivers/video/samsung_extdisp/s3cfb_extdsp_main.o
CC drivers/video/samsung_extdisp/s3cfb_extdsp_ops.o
In file included from drivers/video/samsung_extdisp/s3cfb_extdsp_ops.c:32:0:
drivers/video/samsung_extdisp/s3cfb_extdsp_ops.c: In function 's3cfb_extdsp_check_var':
drivers/video/samsung_extdisp/s3cfb_extdsp.h:154:43: error: inlining failed in call to always_inline 'get_extdsp_global': function body not available
drivers/video/samsung_extdisp/s3cfb_extdsp_ops.c:181:30: error: called from here
In file included from drivers/video/samsung_extdisp/s3cfb_extdsp_ops.c:32:0:
drivers/video/samsung_extdisp/s3cfb_extdsp_ops.c: In function 's3cfb_extdsp_set_par':
drivers/video/samsung_extdisp/s3cfb_extdsp.h:154:43: error: inlining failed in call to always_inline 'get_extdsp_global': function body not available
drivers/video/samsung_extdisp/s3cfb_extdsp_ops.c:197:30: error: called from here
In file included from drivers/video/samsung_extdisp/s3cfb_extdsp_ops.c:32:0:
drivers/video/samsung_extdisp/s3cfb_extdsp_ops.c: In function 's3cfb_extdsp_open':
drivers/video/samsung_extdisp/s3cfb_extdsp.h:154:43: error: inlining failed in call to always_inline 'get_extdsp_global': function body not available
drivers/video/samsung_extdisp/s3cfb_extdsp_ops.c:315:30: error: called from here
In file included from drivers/video/samsung_extdisp/s3cfb_extdsp_ops.c:32:0:
drivers/video/samsung_extdisp/s3cfb_extdsp_ops.c: In function 's3cfb_extdsp_release':
drivers/video/samsung_extdisp/s3cfb_extdsp.h:154:43: error: inlining failed in call to always_inline 'get_extdsp_global': function body not available
drivers/video/samsung_extdisp/s3cfb_extdsp_ops.c:345:30: error: called from here
In file included from drivers/video/samsung_extdisp/s3cfb_extdsp_ops.c:32:0:
drivers/video/samsung_extdisp/s3cfb_extdsp_ops.c: In function 's3cfb_extdsp_blank':
drivers/video/samsung_extdisp/s3cfb_extdsp.h:154:43: error: inlining failed in call to always_inline 'get_extdsp_global': function body not available
drivers/video/samsung_extdisp/s3cfb_extdsp_ops.c:387:30: error: called from here
In file included from drivers/video/samsung_extdisp/s3cfb_extdsp_ops.c:32:0:
drivers/video/samsung_extdisp/s3cfb_extdsp_ops.c: In function 's3cfb_extdsp_pan_display':
drivers/video/samsung_extdisp/s3cfb_extdsp.h:154:43: error: inlining failed in call to always_inline 'get_extdsp_global': function body not available
drivers/video/samsung_extdisp/s3cfb_extdsp_ops.c:468:30: error: called from here
In file included from drivers/video/samsung_extdisp/s3cfb_extdsp_ops.c:32:0:
drivers/video/samsung_extdisp/s3cfb_extdsp_ops.c: In function 's3cfb_extdsp_ioctl':
drivers/video/samsung_extdisp/s3cfb_extdsp.h:154:43: error: inlining failed in call to always_inline 'get_extdsp_global': function body not available
drivers/video/samsung_extdisp/s3cfb_extdsp_ops.c:491:30: error: called from here
make[3]: *** [drivers/video/samsung_extdisp/s3cfb_extdsp_ops.o] Erreur 1
make[2]: *** [drivers/video/samsung_extdisp] Erreur 2
make[1]: *** [drivers/video] Erreur 2
make: *** [drivers] Erreur 2
[B][email protected] ~/projects/kernels/LiteGX $ [/B]
Any idea ?
Maybe another flag need to be removed ?
Androidgx,
Seems like this will solve it.
Open file drivers/video/samsung_extdisp/s3cfb_extdsp.h
Now goto line 154 and remove the word "inline" before struct declaration or add "static" before inline. Save file and try to compile back
Sent from my GT-I9300 using xda app-developers app
spica1234 said:
Androidgx,
Seems like this will solve it.
Open file drivers/video/samsung_extdisp/s3cfb_extdsp.h
Now goto line 154 and remove the word "inline" before struct declaration or add "static" before inline. Save file and try to compile back
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
Thank you mate it worked almost perfectly after. Just faced the same problem as THIS guy before finishing compiling, followed exactly what he said (replacing the Makefile completely, and it worked, finally :laugh. I just hope it was the right way to do.
Currenty testing my fresh new kernel with linaro 4.7.4 gcc toolchain thanks to you.
Btw, about your fsync tips patch you send me, I have very poor knowledge, is this something really noticable in term of difference as stock ? I mean a good improvement over ?
Many thanks for your explanations :good:
does this kernel supports exfat sd cards ???

[Kernel] BeastMode Kernel vR105 LineageOS (A2017U)

No fancy descriptions here. It's a kernel, it's for the axon 7 (US), and it works.
Features (from what I can remember)
KCAL display driver
Added fiops, zen, row, and sio IO schedulers
Enabled westwood, htcp, hstcp, hybla, vegas, scalable, lp, veno, illinois, and dctcp tcp congestion algorithms
Slight overclock to LITTLE cluster (1.72GHz) and big cluster (2.26ghz)
GPU overclock (652MHz)
Performance tweaks
Tweaked out ramdisk
F2FS support
init.d support
Adrenoboost
Touch input boost
Wake lock controls for various things >_>
Fsync on/off support
exFAT (nofuse) support
Enabled core ctl in kernel hotplugging
Enabled qhmp scheduler
enabled HMP cstate aware (is aware of core c-states and tries to schedule tasks on already awake cpus)
Added cleancache and frontswap
Disabled arm "CoreSight"
Enabled zram lz4 compression
Disabled dm_verity kernel wide.
Disabled input debugging driver
Disabled msm remote debugging support
Enabled in-kernel block test/test io scheduler
Disabled ZTE "VLog" and "sdlog"
Disabled cache and m4m error reporting
Disabled panic on correctable cache/m4m errors
Disabled compiling with frame pointers for debugging
much more..
Thanks:
flar2
jcadduono
imoseyon
faux123
dorimanx
savoca
all of team win
all of xda-developers staff
all of xda-developers community (for those i've missed)
of course ZTE for this fantastic device
Google for awesome af Android
________________________________________________________________________________________________
[size=+3]LineageOS[/size]
Download (Enforcing version): BeastMode vR88 for the ZTE Axon 7 (A2017U) now with war_mod
Download (Permisive version): BeastMode vR105 for the ZTE Axon 7 (A2017U) now with war_mod
XDA:DevDB Information
BeastMode Kernel for the Axon 7 (a2017u), Kernel for the ZTE Axon 7
Contributors
freeza, freeza, warBeard_actual
Source Code: http://www.freeza-inc.com/kernelsources/A2017U/N/Stock/Kernel.tar.gz
Kernel Special Features:
Version Information
Status: Stable
Current Stable Version: vR105
Stable Release Date: 2017-12-19
Created 2016-12-23
Last Updated 2017-12-20
Changelog
12/19/17-vR105:
Updated almost everything to B32 source
Updated war_mod
Added warmode sysfs entry (/sys/kernel/warmod/warmode) with 0 (disabled) as default. configurable in init.d script
Added android security patches from August-December via the Android Security Bulletin
Ramdisk updated with latest LineageOS version
11/18/17-vR88:
Reborn based on B32/B25 hybrid
Full changelog later
4/18/17-vR45:
Fixes
Resurrection Remix support
4/17/17-vR44:
Disabled overclocking. Didn't provide much benefit and our SoC kind of sucks for OC stability (lower binned probably.)
Tweaks
4/15/17-vR43:
Made little cores behave by forcing them to 1.5GHz by default.
Disabled cstate awareness
4/12/17-vR42:
Removed a bunch of modules and compiled some drivers into kernel
LineageOS support
4/9/17-vR40:
Disabled some debug options in defconfig
Enabled qhmp
F2FS support
4/3/17-vR34:
Core Control is disabled by default (can be re-enabled from /sys/devices/system/cpu/cpu0/core_ctl/disable)
Added a few more wakelock controls (/sys/module/wakeup/parameters/)
3/22/17-vR31:
Added a few more wakelock controls (Thanks @flar2)
Misc fixes
3/21/17-vR30:
Updated to B19 source from ZTE.
3/19/17-vR29:
Fixed NFC until ZTE's B19 source. (Thanks @jimbo77)
3/17/17-vR28:
Updated source a little
Fixed Magisk/NoSuperSU quirks with sim.
3/12/17-vR27:
-Fixed the damn WiFi
-Added magisk compatible NO SuperSU version
2/24/17-vR26:
-Fixed WiFi on permissive
-Updated wlan driver
-Added Zen IO scheduler
2/21/17-vR24:
-Fixed ADB/MTP. ADB shell should launch as root, at least on the permissive version.
-Disabled a bunch of debugging overhead
2/19/17-vR23 (Enforcing only):
-Fixed WiFi
2/17/17-vR22:
-Updated for B15 (7.0/Nougat)
1/30/17-vR15: performance tweaks
-ZTE Nougat F2FS driver
[email protected] f2fs patches
-ZTE Nougat WiFi driver
12/28/16-vR12: attempt #2 at fixing video recording/playback
-more defconfig tweaks
-included B27 library files for mediaplayerservice, camera metadata, cameraservice, and arcsoft night mode.
-that safetynet patch for unlocked bootloader.
12/28/16-vR09: fixed video playback.
-switched wlan driver to CM13 version(R.I.P)
-tweaks to defconfig
12/23/16-vR07: initial release
Lmao
Sent from my Nexus 6P using Tapatalk
Nice
Running on the latest B29, all cool. This device is a behemoth overclocked! Thanks!
Do we have the stock kernel. Just in case we want to rollback?
borijess said:
Do we have the stock kernel. Just in case we want to rollback?
Click to expand...
Click to collapse
Backup the boot partition with TWRP then you can restore it if you want to roll back.
Hey
(i know its for the A2017U)
i am on A2017G , it boots but no audio, maybe i could port your source to A2017G. but the sourcecode link want work.
Thx For your Work.....
VeNuMuS said:
Lmao
Sent from my Nexus 6P using Tapatalk
Click to expand...
Click to collapse
Why??
Thanks for this! Been waiting for a better kernel.
Questions:
- Does it make double-tap-to-wake faster?
- Does it solve the delayed notifications problem?
- Will it bring about world peace?
dank
Bad and Boujee. Nice.
Other than selecting the max overclock values, do you have any recommended kernel settings to get the best from the phone & kernel? Thanks
I'm going to guess it doesn't work with cm13?
It'd be pretty cool if it did, but I wouldn't be surprised if it didn't.
Im on A2017G and for me Sound work.But Gpu not OC for me it show 624 MHz not 652MHz.Can we change it via Kernel Auditor??
whats the best saturation number in KCAL? also when its flashed does it OC or its left stock speed?
gecko702 said:
whats the best saturation number in KCAL? also when its flashed does it OC or its left stock speed?
Click to expand...
Click to collapse
It's left at its stock values. You'll need to specify the overclock, the step is enabled but not selected by default. I use Kernel Auditor with SuperSU and BusyBox to modify the settings, and so far it's worked just fine.
TheLastSidekick said:
It's left at its stock values. You'll need to specify the overclock, the step is enabled but not selected by default. I use Kernel Auditor with SuperSU and BusyBox to modify the settings, and so far it's worked just fine.
Click to expand...
Click to collapse
What's the safest OC speed without sacrificing too much battery or phone.
---------- Post added at 01:16 PM ---------- Previous post was at 01:14 PM ----------
Is it just me or is the camera faster at taking pics on this kernel?
Is it working on cm13 and can you make a Version without overclocking?
How about undervolt? Can i use an app for this?
dbekan%5 said:
Is it working on cm13 and can you make a Version without overclocking?
How about undervolt? Can i use an app for this?
Click to expand...
Click to collapse
Why would you need a version without overclocking when overclocking isn't enabled by default?

[KERNEL] [G800F/M/Y] Spookcity_Kernel-N (For all 7.x custom ROMS)

Code:
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this kernel
* before flashing it! YOU are choosing to make these modifications, DO NOT
* point the finger at me for messing up your device.
* this kernel is only for the S5 mini SM-G8OOF/M/Y (Exynos) Do Not Flash this on any other device!
*/
19-10-2017 * Updated to v6.0 * Changes are in red or can be seen at the bottom of this post in the changelog: I am always applying patches to hopefully improve the kernel,so check out the "Patches and tweaks applied" section for a better view of the changes as well.
Notes​
ALWAYS read the "Known Issues" section before flashing. I will add issues I have noticed or have been told about. Some may be VERY important. If you fail to do this and experience an issue that is listed I can not help you!
SELinux is set to permissive in this kernel. You can change this to enforcing at boot if you wish via an app like Kernel Adiutor-Mod
About voltage control: Setting frequencies that are unstable are going to cause lockups,freezes and reboots. This is NOT a fault in the kernel. My suggestion is to move the voltages up or down slowly (+/- 25) until you find some stable voltages that you're happy with.
Enough people were having problems with the 1.6ghz overclocked version that I've decided to release a non overclocked (1.5ghz) build as well. I would recommend trying the 1.6ghz and only if you experience a bootloop or instability then use the 1.5ghz version. I will not keep older versions of the 1.5ghz build up. Only the latest.
Having troubles deciding on a CPU governor or an I/O scheduler? Here is an amazing guide. All credits to Saber. Be sure to hit the thanks button. He obviously put a lot of time into that.
Features
Based on the latest Samsung kernel sources
Built an updated Sqlite3 (from version 3.9.2 -> 3.19.3 that will be pushed along with the kernel install (you can verify this by running "sqlite3 --version" in a terminal emulator before the new kernel install and then again after)
Compiled with self-built (ct-ng) UBERTC 8.0
Patched Linux to latest 3.4.113
Used anykernel2
Unlocked CPU frequencies: 200MHZ and 300MHZ
GPU overclocked to 600MHZ
CPU Overclocked to 1.6GHZ
CPU voltage control ( Max voltage =1500mV. Min voltage =600mV)
DriveDroid support (add sysfs entry for cdrom to LUNs)
Implemented zen-tune v4.5
Added CPU boost driver
Added PIE net scheduler
Added support for USB keyboards (You need This app)
Reduced vm_swappiness from 60 to 20
Added I/O scheduler switcher by sultanxda (changes the I/O scheduler for a specified request queue to Noop when the screen turns off in order to improve power consumption while the screen is off)
Added Fsync on/off
Added dynamic fsync
Added Dynamic management of dirty page writebacks (allows to have two different intervals for dirty page writebacks and to dynamically manage them when the system has been resumed (it's active) or when has been suspended - Not adjustable via Grarak's Kernel Adiutor app)
Proc: much faster /proc/vmstat
Full CIFS support ( Modules will be pushed with kernel install )
Introduced new flag WQ_POWER_EFFICIENT for power oriented workqueues ( Allows for power saving if selected in Kernel Adiutor ETC. )
Added /dev/frandom support ( It is yet to be implemented properly yet however )
Properly enabled faux123's powersuspend v2.5
Fading LED's
Enabled graphite
Enabled AIO
Readahead set to 512 (from 128 default)
Reverted "Enabled arch power" (There will be a switch to enable/disable this in the next build)
Many build flags for optimization
Added optimization flags for the GPU
Many more features being worked on and coming soon
Added CPU governors
- nightmare
- wheatley
- zzmoove
- dancedance
- darkness
- hyper
- lionheart
- ondemandplus
- bioshock
- pegasusq
- smartmax
- alucard (by alucard24)
- bluactive
- intelliactive (by faux123)
- intellidemand
Added CPU hotplug governors
- alucard hotplug (by alucard24)
- intelliplug hotplug (by faux123)
- thunderplug hotplug (by varun.chitre15)
- MSM Sleeper hotplug
- autoSMP hotplug
Added IO schedulers
- fiops
- sio
- zen
- fifo
- tripndroid
- bfq-v7r8
Added many TCP congestions
- reno
- vegas
- westwood and more
- Added the rest of the TCP congestions
- Westwood is now default TCP
Patches and tweaks applied include:
- Updated ARM topology and added cpu_power driver
- Input: Improve the events-per-packet estimate
- block/partitions: optimize memory allocation in check_partition()
- block: bfq-iosched: tuning for SSD (thanks to anarkia1976)
- cpufreq: Move get_cpu_idle_time() to cpufreq.c (This is important for CPU governors to work better/more efficiently with our kernel version-3.4)
- Fixed all the CPU governors to work properly with the Move get_cpu_idle_time
- cpufreq: Introduce new relation for freq selection (It selects the frequency with the minimum euclidean distance to target. In case of equal distance between 2 frequencies, it will select the greater frequency)
- cpufreq: conservative: Set MIN_LATENCY_MULTIPLIER to 20
- cpufreq-ondemand-Set-MIN_LATENCY_MULTIPLIER-to-20
- cpuidle-Get-typical-recent-sleep-interval
- cpufreq: Persist cpufreq time in state data across hotplug
- implement-LoUIS-API-for-cache-maintenance-operations
- ARM-kernel-update-cpu_disable-to-use-cache-LoUIS-maintenance API
- update-v7_setup-to-the-new-LoUIS-cache-main
- USB-gadget Optimize-tx-path-for-better-performance
- af_unix: speedup /proc/net/unix
- net/socket.c: fix: warning: 'sock/sock1/sock2' may be used uninitialized in this function
- fs/proc/array.c: make safe access to group_leader
- lib/memcopy: use glibc version (the kernel's memcpy and memmove is very inefficient. But the glibc
version is quite fast, in some cases it is 10 times faster than the kernel version)
- lib/string: use glibc version (same as above)
- lib/int_sqrt.c: optimize square root algorithm
- readahead: make context readahead more conservative
- sched-Fix-select_idle_sibling-bouncing-cow-syndrome
- sched-Implement-smarter-wake-affine-logic
- sched-Micro-optimize-the-smart-wake-affine-logic
- sched: Reduce overestimating rq->avg_idle
- power: make sync on suspend optional
- tcp: tweaked for speed
- writeback-fix-occasional-slow-sync
- writeback-fix-writeback-cache-thrashing
- wireless - bcmdhd - reduce scan dwell time to reduce power usage
- bcmdhd reduce wakelocks
- mutex-Queue-mutex-spinners-with-MCS-lock-to-reduce-cc
- mutex-Make-more-scalable-by-doing-less-atomic-operations
- ARM-use-generic-unaligned.h
- Kconfig-enabled-unaligned-capability-for-ARM
- decompressor-Enabled-unaligned-memory-access
- Optimized-ARM-RWSEM-algorithm
- ARM: Fixed negative idle stats for offline cpu
- disabled debugfs[/COLOR]
- mm: remove noisy remainder of the scan_unevictable interface
CONFIG_HZ=100 (reverted commit)
- Plus many more - Check my git repo for full details.
Sources
Kernel Source
Toolchain Source
Click to expand...
Click to collapse
Known Issues
Setting alucard hotplug along with certain other governors at boot via kernel adiutor etc can cause a reboot after setting is applied. So be certain to set the "delay" time in kernel adiutor or similar to 10 seconds or more,so if you have this you are able to cancel and change after a reboot.
There is a chance of some settings being reset after flashing the kernel (quick setting,sound,statusbar etc.) This is rather insignificant and all settings that have been changed can be set back in minutes.
Click to expand...
Click to collapse
Installation
I HIGHLY recommend that you do a full backup before flashing this kernel. I am not responsible if you lose any or all of your data.
1.Download "Spookcity_Kernel-N"
2.Place the zip onto your phones storage
3.Reboot into recovery (Volume-Up + Home + Power button)
4.Select install
5.Flash the downloaded kernel
6.Go back a few times in TWRP Select wipe -> Advanced wipe and wipe Dalvik/Art cache and the cache partition.
If you do not do this you are very likely to experience strange issues.You have been warned.Do not report problems if you did not do this.
7.Reboot
Click to expand...
Click to collapse
Code:
Feedback can also be posted[URL="https://github.com/Spookcity/ROMS-G800F/issues/12"]-------> Here[/URL]
Test builds will be released [URL="https://github.com/Spookcity/ROMS-G800F/issues/22"]-------> Here[/URL]
Download the latest build
Spookcity_Kernel-N-v6.0
Spookcity_Kernel-N-v6.0-1.5GHZ Version
Click to expand...
Click to collapse
Download older version
Code:
[URL="https://www.androidfilehost.com/?fid=745425885120759188"]Version 5.0[/URL]
[URL="https://www.androidfilehost.com/?fid=889764386195920916"]Version 4.0[/URL]
[URL="https://www.androidfilehost.com/?fid=673368273298972709"]Version 3.0[/URL]
[URL="https://www.androidfilehost.com/?fid=889764386195913162"]Version 2.0[/URL]
[URL="https://www.androidfilehost.com/?fid=889764386195911617"]Version 1.0[/URL]
Huge credit and many thanks to:
Hennymcc,Ayke,Psyafter,mirhciulica,ctxZ,DjSteve,CurtisMJ,osm0sis,Archidroid,Chet Kener,andip71,faux123,flar2,ZaneZam,anarkia1976,AndreiLux,Yank,Francisco Franco,Sultanxda,varun.chitre15
Big thanks for testing and giving feedback:
Oleggluk,StanleyNL,Mikahlo,Guntzog
and any others as I'm sure I am forgetting people.
CHANGELOG
HTML:
01-09-2017 - Released Version 6.0
- Added MSM Sleeper hotplug
- Reduced vm_swappiness from 60 to 20
- Added intellidemand governor
- Added autoSMP hotplug
- Added CPU boost driver
- Proc: much faster /proc/vmstat
- Cpufreq: Persist cpufreq time in state data across hotplug
- Reverted "enable arch power"
- mm: remove noisy remainder of the scan_unevictable interface
- net/socket.c: fix: warning: 'sock/sock1/sock2' may be used uninitialized in this function
01-09-2017 - Released Version 5.0
- Removed ROW I/O scheduler
- Added I/O scheduler switcher by sultanxda
- Added PIE net scheduler
- Added support for USB keyboards
- Properly enabled faux123's powersuspend v2.5
- Added dynamic fsync
- Added optimization flags for the GPU
- Enabled AIO
- Reverted a couple of HZ related commits
- Added intelliactive governor
- Added intelliplug hotplug driver
- Added thunderplug hotplug driver
- Added Dynamic management of dirty page writebacks
- Fixed voltage control on 1500MHZ version
- Fixed alucard governor
- Fixed ondemandplus governor
- Fixed bluactive governor
- ib/int_sqrt.c: optimize square root algorithm
- af_unix: speedup /proc/net/unix
- wireless - bcmdhd - reduce scan dwell time to reduce power usage
- bcmdhd reduce wakelocks
- readahead: make context readahead more conservative
- block/partitions: optimize memory allocation in check_partition()
- power: make sync on suspend optional
- block: bfq-iosched: tuning for SSD
05-08-2017 - Released Version 4.0
- Added 1.5GHZ version
- Added voltage control
- DriveDroid support
- Implemented zen-tune v4.5
- Full CIFS support
- Introduce new flag WQ_POWER_EFFICIENT for power oriented workqueues
- Added Fsync on/off
- Added ROW I/O sheduler
- Added BFQ-v7r8 I/O scheduler for 3.4 kernel
- Added Blu_active CPU governor
- block: disabled add_random
- tweaked build flags
- many workqueue related patches
- tcp: tweaked for speed
- CONFIG_HZ=300
- fs/proc/array.c: make safe access to group_leader
- disabled debugfs
19-07-2017 - Released Version 3.0
-GPU overclocked to 600MHZ
-Updated Sqlite3 to version 3.19.3 from 06-08-2017
Added CPU governors
-bioshock
-pegasusq
-smartmax
-alucard
-alucard hotplug
-Added the rest of the TCP congestions
-cpufreq: Move get_cpu_idle_time() to cpufreq.c
-Fixed all the CPU governors to work properly with the Move get_cpu_idle_time
-Added /dev/frandom support
-cpufreq: Introduce new relation for freq selection
-lib/memcopy: use glibc version
-lib/string: use glibc version
-
03-07-2017 - Released Version 2.0
-GPU overclocked to 533MHZ
Added CPU governors
-dancedance
-darkness
-hyper
-lionheart
-ondemandplus
Added IO schedulers
-fifo
-tripndroid
Added many TCP congestions
-reno
-vegas
-westwood
-etc.
26-06-2017 - Fix "unsupported device" when flashing in TWRP 3.1.1.0
23-06-2017 - Initial release
Enjoy!
XDA:DevDB Information
[KERNEL] [G800F/M/Y] Spookcity_Kernel-N (For all 7.x custom ROMS), Kernel for the Samsung Galaxy S5 Mini
Contributors
spookcity138
Kernel Special Features:
Version Information
Status: Beta
Created 2017-06-23
Last Updated 2017-10-19
At 2Mb less than the test version. Has something removed or new compression?
On RR works.
Oleggluk said:
At 2Mb less than the test version. Has something removed or new compression?
On RR works.
Click to expand...
Click to collapse
Yeah,I have temporarily removed synapse support. This is the reason its 2mb smaller. I will add it back once I have some things fixed. Too many things just don't work with it right now.
Sent from my SM-G800F using Tapatalk
And the test version will be?
Oleggluk said:
And the test version will be?
Click to expand...
Click to collapse
Not positive what you mean. If you mean the size it will be the same as this as I haven't messed with synapse any yet. If you're talking about the features I've added since this build,you can have a look Here to get some idea of what I've done so far.
spookcity138 said:
Not positive what you mean. If you mean the size it will be the same as this as I haven't messed with synapse any yet. If you're talking about the features I've added since this build,you can have a look Here to get some idea of what I've done so far.
Click to expand...
Click to collapse
Now I do not understand anything)). Alucard has already been added, GPU OC to 600mhz, fifo, tripndroid and vr IO sched .....? Or will be added to the test version.
Oleggluk said:
Now I do not understand anything)). Alucard has already been added, GPU OC to 600mhz, fifo, tripndroid and vr IO sched .....? Or will be added to the test version.
Click to expand...
Click to collapse
Hehe,yes. This build is based on the "OC CPU to 1.6" commit. So it includes everything before that,but nothing after. I will probably be releasing test builds in increments. Meaning,the next test build (hopefully this weekend) will still not include all that you see committed on my github repo. I want to do it this way to better be able to diagnose possible bugs and their reasons. So I'll release a test build on github. Have you and others willing to test give me feedback about any problems. Then release it on here...and then repeat these steps. Hope that makes some sense [emoji3]
Sent from my SM-G800F using Tapatalk
spookcity138 said:
Hehe [emoji3]
Click to expand...
Click to collapse
It is certainly correct and logical, so it will be easier to search for the culprit of mistakes.
But I want to try everything at once))
Oleggluk said:
It is certainly correct and logical, so it will be easier to search for the culprit of mistakes.
But I want to try everything at once)) :еек:
Click to expand...
Click to collapse
I'll make sure the next test build includes much of the new stuff. I'm a little bit worried that the GPU overclock is going to turn into a nightmare like the CPU overclock though. Guess we will find out. Fingers crossed.
Sent from my SM-G800F using Tapatalk
I would very much like to see voltage regulation. Is there such a function?
I can test the overclocking of the GPU as well as the CPU 1700)))
Oleggluk said:
I would very much like to see voltage regulation. Is there such a function?
I can test the overclocking of the GPU as well as the CPU 1700)))
Click to expand...
Click to collapse
Haha,You're definitely not testing any CPU overclocking [emoji3]
I have started messing with voltage control. I've enabled access,but at this point I'm unsure how you would access it as its not included in kernel adiutor and I've yet to properly set up synapse. Either way,the access is there,but the ability to actually change the voltages is not currently working. I believe I need to tweak a few things and add at least 1 additional file. Soon to come I hope.
Sent from my SM-G800F using Tapatalk
Good stuff, changing SElinux to enforcing make sim card not detectable is there a recommended config for better battery?
guntzog said:
Good stuff, changing SElinux to enforcing make sim card not detectable is there a recommended config for better battery?
Click to expand...
Click to collapse
Honestly I'm unsure off hand. However,I did enable arch power by default,so that should help battery life some. I have been working on the kernel recently and have added alucard and alucard hotplug CPU governors. This will come in the near future and I believe could really help with battery life.
I have some problems with kernel. After update my RR 5.8.3 i try to instal your kernel, but TWRP showed me that error message "Unsupported device. Aborting...
Updater process ended with ERROR: 1". I have a G800F and i don't know why kernel can't install. I attached my recovery.log file
View attachment recovery.log
upd. : it was a new twrp. I installed old version twrp and try to install kernel. And kernel was installed
GeorgianGreek said:
I have some problems with kernel. After update my RR 5.8.3 i try to instal your kernel, but TWRP showed me that error message "Unsupported device. Aborting...
Updater process ended with ERROR: 1". I have a G800F and i don't know why kernel can't install. I attached my recovery.log file
View attachment 4193251
Click to expand...
Click to collapse
Yes,this has something to do with the latest TWRP I believe as I now get this error as well. I'm not sure why. I'll look into it. To "fix" it for now. Open up the zip (don't unzip it) then open the anykernel.sh file with a text editor and change the line "do.devicecheck=1" to "do.devicecheck=0" Then it skips the device check and will be fine.
Sent from my SM-G800F using Tapatalk
spookcity138 said:
Yes,this has something to do with the latest TWRP I believe as I now get this error as well. I'm not sure why. I'll look into it. To "fix" it for now. Open up the zip (don't unzip it) then open the anykernel.sh file with a text editor and change the line "do.devicecheck=1" to "do.devicecheck=0" Then it skips the device check and will be fine.
Sent from my SM-G800F using Tapatalk
Click to expand...
Click to collapse
Some changes in the name of the device with a new twrp. Kminiltexx is kminilte
Oleggluk said:
Some changes in the name of the device with a new twrp. Kminiltexx is kminilte
Click to expand...
Click to collapse
Ahh,that explains it. Thanks! Easy fix then.
Edit:
Fixed
Sent from my SM-G800F using Tapatalk
Just flashed the kernel and the mobile got stuck in a boot loop. Tried it second time: First very long boot, then crash.
I wiped dalvik/art cache and cache partition via TWRP 3.1.1.0. Anyone else has/had this? Suggestions?
Schweng said:
Just flashed the kernel and the mobile got stuck in a boot loop. Tried it second time: First very long boot, then crash.
I wiped dalvik/art cache and cache partition via TWRP 3.1.1.0. Anyone else has/had this? Suggestions?
Click to expand...
Click to collapse
I have not had this problem and haven't had anyone mention it to me. What model is your phone? F,M or Y? What ROM?
Sent from my SM-G800F using Tapatalk
spookcity138 said:
I have not had this problem and haven't had anyone mention it to me. What model is your phone? F,M or Y? What ROM?
Sent from my SM-G800F using Tapatalk
Click to expand...
Click to collapse
Model is F.
Rom is 14.1 Lineage, the 20170226 version from Ayke, i think.

TUNED Kernel for N/O/P/Q - 20201021 - Full charging, no flickering, correct mA values

"A kernel is the central part of an operating system. It manages the operations of the computer and the hardware - most notably memory and CPU."
It should be installed via Recovery (TWRP) over any LOS/AOSP 14/15/16/17-Based ROM. It doesn't need any tweaking with any app, just install it and use it.
BUT you can use Boeffla Config app (available here on the next post) or Kernel Adiutor if you like tweaking.
This kernel uses codes from other kernels, as you'd expect in an open-source community, most notably code from Boeffla, SmartPack, Lolz, Ares and Intelli-kernel
It has UNIQUE features like:
- a different "low memory killer" algorithm wrote by me. Extremely simple, but multiple apps can be killed in a batch!
- zcache is disabled for really *freeing* up memory that was used for caching files
- a different default cpu hotplugger. ALL kernels (even LOS/stock) relies on Qualcomm's vanilla MPDecision, I wrote my own
- Tuned CPU governor (it's the default). It's basically the Interactive governor but with a LOT of tuning to match up with the tuned hotplugger. Did you know stock/los roms uses a multi-socket Interactive governor that doesn't match our phone's cpu?
- many many many MANY compiler optimizations not found on boeffla kernel, LOS or anywhere else!
- MANY unused code simply REMOVED to free memory and CPU. People ADD a lot of stuff on a kernel, I like to remove
- compiled with 2019 GCC version 9.1 (instead of the ancient version 4.9 that EVERY ROM uses)
- Your battery will be charged to "real" 100% like TWRP does
- many unstable cpu and gpu governors and i/o schedulers removed. they only wasted space
- ext4 tweaks
- fair scheduler tweaks
- removed 3 touch boosters code.. why so many? just to raise your clock on every single touch?
- Maple i/o scheduler
- lowered "read ahead" of files and inodes.. why would you read something you don't know you'll need?
- lowered maximum i/o requests for lowering ram usage while writing to SD (internal or external)
- removed a lot of DEBUG code.. why release a software with debugging code built-in?
- removed network protocols we would never use
- removed some compatibility code
- removed dynamic fsync, why would anyone want to enable fsync in any moment anyway? it has been disabled by default linux kernel for decades!!
- decreased commit DELAY of file changes from 20s to 5s, which is linux default. there's no advantage in keeping new/modified data on ram for too long
And common features:
- Max cpu voltage set to 1.4v
- Min cpu clock set to 268mhz instead of 300
- Max cpu clock set to 2995mhz instead of 2457
- Max gpu clock set to 657mhz
- Compiled to speed, not size
- Voltage table for undervolting or overvolting
- Charging level for AC, USB and Wireless charger can be set
- LED fading control + brightness
- zen, noop bfq and sioplus i/o governors
Overall your phone will be snappier, and less battery hungry
You can go back to your rom's default kernel by simply installing rom's .zip again. No need to wipe anything ever!
Telegram Group: https://t.me/tunedkernel
If your voice on recordings or whatsapp calls is too LOW, try my fix for that: CLICK
XDA:DevDB Information
TUNED, a LOS Kernel for S5 - Performance and Battery life together!, ROM for the Samsung Galaxy S5
Contributors
fbs
ROM OS Version: Android 10
Version Information
Status: Stable
Stable Release Date: 2020-10-21
Created 2019-01-28
Last Updated 2020-10-23
Tuned Kernel versions will be attached here, the build date is at the file name.
com.ktoonsez.KTmonitor.1.apk is a little app that will show to you each cpu core clock and gpu clock. Please hold the red button and put at most 100 at "Update Speed". Don't touch the other options because they're buggy!
2.5.20-boeffla-config-v2.apk is the Boeffla Config App, where you can setup most of this kernel's options
klte = SM-G900F, SM-G900M, SM-G900R4, SM-G900R7, SM-G900T, SM-G900V, SM-G900W8, SM-S902L
klteduos = SM-G900FD, SM-G900MD
kltedv = SM-G900I, SM-G900P
kltekor = SM-G900K, SM-G900L, SM-G900S
kltechn = SM-G9006V
CLICK ON THE LINK BELOW WITH YOUR MODEL ON ITS NAME (KLTE or KLTEDUOS or KLTEDV or KLTEKDI or KLTEKOR or KLTECHN) TO DOWNLOAD:
Reserved
300119
- possible fix for encrypted devices and f2fs file system (f2fs is buggy on every s5 kernel, don't use this)
150219
- more overclocking on cpu and gpu
- sdfat updated
- tuned hot plugger enhanced
- xor and square root algorithms optimized for ARM
- boot time maybe a little faster with LZ4 compression (that's why kernel seems bigger)
- removed "read-ahead" code from kernel, don't bother changing read_ahead_kb because it won't work
- zcache (not zswap/zram) back on for now
170219
- 266mhz undervoltable again.
- f2fs removed for now
- ext4 read_ahead blks reduced but not eliminated
200219
- tweaks to zcache. still don't know if it's better with it on or off..
- tuned hotplugger will enable a core and put it on maximum freq right away!
- removed CPUBW_HWMON gpu governor
- tweaks to uv_oc table
220219
- compiling with march=armv7-a mtune=cortex-a15
070319
- linux 'fair' scheduler tuning
- zcache disabled
- more inlining while compiling
100319
- more tuning on linux cpu fair scheduler and tuned governor
- revised all kernel configs (klte and variants)
260319
- smooth screen animations
- new f2fs version
- maple scheduler tuned
- compiled with -funroll-loops but less function inlining
030419
- f2fs should be working now
- new assembly optimizations
150519
- boeffla app should work better now when changing cpu hotpluggers and charging voltages
- some governors are back
- using "system_freezable_power_efficient_wq" for disk events
- RoW and Maple schedulers tweaked
- ext4 tweaks
- fair scheduler tweaks
070619
- GCC 9.1 (2019 compiler and toolchains)
- Compiling with -fgraphite -fgraphite-identity -fschedule-fusion -ftree-lrs
- tuned hotplugger with different algorithm
110619
- number of online cores are now working on boeffla app
- boeffla app can raise input charger amperage to 2200
- minor gpu tweaks
200719
- Tuned governor and hotplugger tweaked
- Saving more battery when suspended
- Merging sd reads/writes by default
090819
- tuned governor tweaked
- defaulting to row i/o scheduler, even though benchmarks don't like it
- defaulting to "simple_ondemand" gpu governor, tweaked it a lot
100919
- back to xz compressed kernel image
- updates from upstream los16
- same kernel for los14 or 16. thanx Samuel Pascua
- some strncpys changed to memcpys
- tuned governor at 15ms frequency
221019
- updates from upstream los16
- rewrote tuned hotplugger: using even less cpu for itself but enabling cores more often, starting from core 4 instead of 2
- ZRAM enabled with lz4 compression but swappiness at 60% only
- made 1497mhz the default high load speed
- tuned governor at 10ms frequency
101119
- zram changed to vnswap but lower swappiness to save battery
- no more flicker when low brightness (thanks to samuel pascua)
- file system tweaks
201119
- f2fs code stolen from intelli-kernel
- file system tweaks
- default vm_swappiness to 25
170120
- GCC 9.2.1 MUSL 2019-12
- boot time reduced even more
- faster overall performance, lower overall battery drainage
- KTmonitor should show CPU Temperature now
- vnswap should work on Pie
- enforcing selinux after booting
- removed adreno input booster
- set sysctl_vfs_cache_pressure to 50 and vm_swappiness to 40
- ignoring zswap_max_pool_pages
040220
- Working on Q (Android 10)
- AnyKernel update to 3
- Tuned governor with min_sample_time defaulting to 80ms
- Charging till your battery gives 4.4v, or explodes
- UV/OV table matching scaling_frequencies
20200223
- Using higher l2-cache frequencies for performance
- Higher heat "tolerance"
- Battery voltage/power should now be showing correctly at lockscreen
- vnswap wasn't working on Pie but now it is
20200521
- Changed some timers to let the device sleep more (huge battery gain on stand by)
- Tuned governor now being more conservative
- Added back IO Schedulers
- Led control
- LOS updates
- Remove Adreno touch booster
thank you for great work
Thank you very much.
why a new thread?! and also the download link is missing.^^
Where's the download link, appears to be missing.
xda is completely ****ed up
Thanks a lot for your work! But where do I get this kernel?
I've just upload a new version for klte only for now. TEST with los15.1 and 16 please.. and see if boeffla config app is still working with it..
and please don't flood this thread about the variants
fbs said:
I've just upload a new version for klte only for now. TEST with los15.1 and 16 please.. and see if boeffla config app is still working with it..
and please don't flood this thread about the variants
Click to expand...
Click to collapse
thnx for this kernel ,can't download this kernel
warism100 said:
thnx for this kernel ,can't download this kernel
Click to expand...
Click to collapse
I couldn't download using XDA app, but I was able too by opening XDA desktop site using browser.
I hope this helps you.
Thank you I will try it.
g900w8 9.0 no working
I have installed this kernel for my S5 G900F
with latest lineageos 15.1 and i insttaled beoffla
apk too, the results is great , beoffla apps work
as before
LOS15.1 + kernel + beoffla apk work fine
vlad3647 said:
g900w8 9.0 no working
Click to expand...
Click to collapse
w8 isn't klte
Uff i didnt know ,could you please tell which is w8?
Thanks
vlad3647 said:
Uff i didnt know ,could you please tell which is w8?
Thanks
Click to expand...
Click to collapse
hum.. you were right, it is klte indeed.. did it work with previous tuned-klte version ?!
I used before smartpack
---------- Post added 30-01-2019 at 12:03 AM ---------- Previous post was 29-01-2019 at 11:59 PM ----------
Maybe bcx muy phone is pretty old
---------- Post added at 12:36 AM ---------- Previous post was at 12:03 AM ----------
I install this one and so far so good
Kernel Special Features: lighter, optimization-focused
Version Information
Status: Stable
Stable Release Date: 2018-08-22
Hi, fbs.
g900f (klte) on los 15.1
not worked on f2fs

Categories

Resources