Related
DISCONTINUED
FXP139 will probably be my last upload since I have bought a new phone. I will also have a lot less time to put on this. We are expecting an addition to the family soon.
As an alternative you can use Lupus kernel instead.
Hi,
I'm not a kernel developer but I have tried to add some governors to the CM9/10 FXP kernel and I would like to share my result. It seems to be running fine on my phone (arc S).
I'm trying to keep the kernel image as "clean" as possible. Not including or changing anything that might cause incompatibilites with the CM FXP ROM.
Disclaimer:
I'm not responsible for any damage caused to your Phone!
Use it at your own risk!
CM9 Kernel source forked from: https://github.com/CyanogenMod/semc-kernel-msm7x30/tree/4.1.B.0.431
CM10 Kernel source forked from: https://github.com/CyanogenMod/semc-kernel-msm7x30/tree/jellybean
Added features:
SmartassV2 governor
Intellidemand governor
Lulzactive governor
lagfree governor
InteractiveX governor
Simple IO Scheduler (SIO)
0% Battery patch
EXT4 support
------------------------------------------
****** Cyanogenmod 9 ******
------------------------------------------
svantesonFXP128a_boot.img
Changelog:
FXP128 sources
Cleaned up. Only SmartassV2 governor added.
Download: http://www.mediafire.com/?w5uq0aezos2x968
svantesonFXP128b_boot.img
Changelog:
Ramdisk from official FXP128
Tweaked SmartassV2, should be more battery friendly
Download: http://www.mediafire.com/?peudba17n5eqc2n
svantesonFXP128c_boot.img
Changelog:
Added Intellidemand CPU governor
Added lulzactive CPU governor
SmartassV2 fixes
Download: http://www.mediafire.com/?a3cre79wgufckyf
No changes in official FXP129 kernel. You can use FXP128 kernel with FXP129 ROM.
svantesonFXP130a_boot.img
Changelog:
Ramdisk (new recovery) from FXP130
WARNING! Do not use backup in CWM. It will wipe your SD Card!
The bug is in the Official CM FXP130 kernel. I will wait for a fix upstream. Use svantesonFXP128c instead. The only change in FXP130 is the recovery.
Download: http://www.mediafire.com/?27n63a6xmux0arw
svantesonFXP131a_boot.img
Changelog:
Ramdisk (new recovery) from FXP131 (backup bug in CWM solved)
Download: http://www.mediafire.com/?slw7q61toe7u3oy
svantesonFXP132a_boot.img
Changelog:
Added Simple IO Scheduler (SIO)
Latest FXP132 kernel changes
Download: http://www.mediafire.com/?9i4rkyhzw578n8t
svantesonFXP133a_boot.img
Changelog:
Ramdisk from FXP133
No kernel changes
Download: http://www.mediafire.com/?1nlqpcujlbf9nma
svantesonFXP133b_boot.img
Changelog:
Added lagfree governor
Added interactiveX governor
Download: http://www.mediafire.com/?esnzc8lsn970rek
svantesonCM9FXP134_boot.img
Changelog:
No kernel changes
Ramdisk from FXP134
Download: http://www.mediafire.com/?eibz7jeugbtbpx5
svantesonCM9FXP135_boot.img
Changelog:
uncompressed kernel
Ramdisk from FXP135
Download: http://www.mediafire.com/?liyflvm1ozen4xf
svantesonCM9FXP135a_boot.img
Changelog:
Added 0% battery patch by Bazoocaze
EXT4 support
Download: http://www.mediafire.com/?mv116fmcs7b88zz
svantesonCM9FXP136_boot.img
Changelog:
Kernel fixes from FXP136
Ramdisk from FXP136
Download: http://www.mediafire.com/?su3d6668ujgju7n
svantesonCM9FXP136a_boot.img
Changelog:
Added VDD control (sysfs)
Download: http://www.mediafire.com/?n9fat9p15bgisct
svantesonCM9FXP137_boot.img
Changelog:
Kernel fixes from FXP137
Ramdisk from FXP137
Download: http://www.mediafire.com/?jrqac55rb4upey1
svantesonCM9FXP139_boot.img
Changelog:
Ramdisk from FXP139
Download: http://www.mediafire.com/?y40hv37hbdaxqcc
------------------------------------------
****** Cyanogenmod 10 ******
------------------------------------------
svantesonCM10FXP133a_boot.img
Changelog:
CM10 FXP133 kernel with all my additions from CM9
Download: http://www.mediafire.com/?bxllhk5uyrhu3n6
svantesonCM10FXP135_boot.img
Changelog:
Ramdisk from CM10 FXP135
ext4 support
uncompressed kernel
Download: http://www.mediafire.com/?877d4c95wbqfq6o
svantesonCM10FXP136_boot.img
Changelog:
Ramdisk from FXP136
Added 0% battery patch by Bazoocaze
Added VDD sysfs
Download: http://www.mediafire.com/?vqhkbq2a9pbmfrs
svantesonCM10FXP137_boot.img
Changelog:
Kernel fixes from FXP137
Ramdisk from FXP137
Download: http://www.mediafire.com/?3b1k36p4rf161p6
svantesonCM10FXP139_boot.img
Changelog:
Ramdisk from FXP139
Download: http://www.mediafire.com/?h7nc1bul4fe5ke9
----------------------------------------------------------------
Credits:
Cyanogenmod team
FXP Team
Doomlord
erasmux (for smartassV2)
tegrak (for lulzactive)
bylos (for lulzactive and smartassV2 fixes)
faux123 (for intellidemand)
Miguel Boton (for SIO)
imoseyon (for interactiveX)
My sources: https://github.com/newlund/semc-kernel-msm7x30
-------------------------------------------------------------------------------
IF I HELPED YOU, PLEASE PRESS THANKS!
[ARC/ARC S] CM9 FXP kernel with added CPU governors
Great works!
but after flashing this kernel, i cant reboot into recovery. plz check this!
Sent from my Xperia Arc using xda app-developers app
kes4817 said:
Great works!
but after flashing this kernel, i cant reboot into recovery. plz check this!
Sent from my Xperia Arc using xda app-developers app
Click to expand...
Click to collapse
But you can get into recovery by pressing the home button when booting, right?
I'm not sure but I think I have seen the reboot into recovery problem with the official FXP kernel too. Can someone confirm this?
If so, we have to wait for a fix in upstream.
Rebooting to recovery takes for ever, or just to say it does nothing but stucking in endless loop.
Also could you add intellidemand and some schedulers?
EDIT: it actually rebooted after ~10+mins
Yes reboot into recovery. Works But .it takes time!! But i found the Roomtoolbox App that reboot into recovery works very fast with ROomtool box pro.
Credits.
Jrummy16 for this awesome app
Sent from my Xperia Arc using Tapatalk 2
Try to press the home button when waiting for reboot to recovery. Works for me.
Don't know why...
I will soon upload a new cleaned up kernel image with only the smartassV2 governor added. I will focus on this governor for now.
Perhaps I will add more things later.
haha just finished making my kernel today wih added govenors
u can have this territory for now
Any chance for a kernel for the Xperia mini pro?
Or can this kernel be used for the Xperia mini pro?
M66B said:
Any chance for a kernel for the Xperia mini pro?
Or can this kernel be used for the Xperia mini pro?
Click to expand...
Click to collapse
NEVER
zainthesnipe said:
haha just finished making my kernel today wih added govenors
u can have this territory for now
Click to expand...
Click to collapse
Please share
As I said I'm not a kernel developer. Perhaps you do it better?
svanteson said:
Please share
As I said I'm not a kernel developer. Perhaps you do it better?
Click to expand...
Click to collapse
im probably worse than u are
if u want to work on it together i wouldn't mind that
i want to learn as well
Uploaded svantesonFXP128b_boot.img
Changelog:
Ramdisk from official FXP128
Tweaked SmartassV2, should be more battery friendly
Download: http://www.mediafire.com/?peudba17n5eqc2n
svanteson said:
Uploaded svantesonFXP128b_boot.img
Changelog:
Ramdisk from official FXP128
Tweaked SmartassV2, should be more battery friendly
Download: http://www.mediafire.com/?peudba17n5eqc2n
Click to expand...
Click to collapse
u should add intellidemand to ur govenor list
it works well for me at least
zainthesnipe said:
u should add intellidemand to ur govenor list
it works well for me at least
Click to expand...
Click to collapse
Yes, I will look into that. I'm a little bit dissapointed with how smartassv2 performs. I'm getting better battery life with interactive during standby. However during load smartassV2 is better. Perhaps I need to tweak the settings a little bit. Anyone have recommended settings for the ARC/S?
Currently I'm also looking at implementing the lulzactive governor.
svanteson said:
Yes, I will look into that. I'm a little bit dissapointed with how smartassv2 performs. I'm getting better battery life with interactive during standby. However during load smartassV2 is better. Perhaps I need to tweak the settings a little bit. Anyone have recommended settings for the ARC/S?
Currently I'm also looking at implementing the lulzactive governor.
Click to expand...
Click to collapse
Yea so was I smartassv2 worked well on gb not as well on ics.
I think lulzactive is just another smart ass based governor with less battery life but more perfomance
Sent from my LT18i using xda app-developers app
Uploaded svantesonFXP128c_boot.img
Changelog:
Added Intellidemand CPU governor
Added lulzactive CPU governor
SmartassV2 fixes
Download: http://www.mediafire.com/?a3cre79wgufckyf
Please try the new governors (and the SmartassV2 fixes) and let me know if they work.
I'm currently running lulzactive and it looks really promising. Fast and battery friendly.
No changes in official FXP129 kernel. You can use FXP128 kernel with FXP129 ROM.
Uploaded svantesonFXP130a_boot.img
Changelog:
Ramdisk (new recovery) from FXP130
Download: http://www.mediafire.com/?27n63a6xmux0arw
Can you please try to add the mount2sd script support..that's the one good feature that's missing in it...
Cheers...
Doomlord uses a different cpufreq driver than stock sony & FXP kernel so as far as I remembered he modified the values of all the governors in his sources(Probably one of the reasons why you get a slow bootup on recovery since the governor & clock it's using is not compatible).
You could try mine if you want... It's calibrated for stock cpu frequencies which is compatible on stock kernel source & FXP's.
http://50.56.186.177/govs.tar
First things first:
I wanna say thank you to RC, benee, wkpark, faux123, harsh, vadonka, marsgod and every other developer who made their patches available to the public.
I want to clarify that i'm not a pure kernel developer.
I'm compiling custom kernels for my own personal use, i thought that some people would benefit from this.
Kernel Features:
Generic auto hotplugging
Call audio bugfix (thanks marsgod)
Fast charge support
OC up to 1.2Ghz
UV support
Built using Linaro 4.5.4 Toolchain
Built with optimized flags (more smoothness and batterysaving)
Ramhack script included
Tweaked Deadline and SIO i/o schedulers
Tweaked SmartassV2 governor
Proportional Rate Reduction for TCP
"Westwood" congestion avoidance algorithm for TCP
------------------------------------------------------------------------------------------------------
Interactive as default CPU governor
ROW as default i/o scheduler
Q&A's:
Q. What is "auto hotplug"?
A. From wikipedia:
Hot plugging is a term used to describe the function of replacing computer system components without shutting down the system. More specifically, describes the addition of components that would expand the system without significant interruption to the operation of the system.
Click to expand...
Click to collapse
Our device has 2 cores, those are always on. With the introduction of this feature the second core will be shut down when not needed and forced off when in sleep.
Note: If you're using interactive governor the second core will be activated whenever you touch the screen. This, married with the governor boostpulse, increases performance.
Q. How can I change the ramhack size?
A. 1. Open terminal (emulator or adb)
2. su
3. rh
4. Follow the instructions
5. Reboot
Q. Voltages table?
A. 216Mhz: Def.750mV Min. 750
312Mhz: Def.775mV Min.775
456Mhz: Def.800mV Min.800
608Mhz: Def.850mV Min.825
760Mhz: Def.875mV Min.825
816Mhz: Def.950mV Min.850
912Mhz: Def.950mV Min.900
1000Mhz: Def.1000mV Min.950
1100Mhz: Def.1075mV Min.1000 (OC version only)
1200Mhz: Def.1175mV Min.1050 (OC version only)
Q. How can I enable fast charge on USB?
A. echo 1 > /sys/kernel/fast_charge/force_fast_charge
Q. How can I give you logs?
A. After a bsod there's a possibility that the device is still accessible, don't pull out the battery yet and connect it to your pc.
Open up the command line, and type:
Code:
cd /path_of_your_adb_folder
adb shell
su
cat /proc/kmsg > /sdcard/kmsg.log
Then exit with CTRL+C and type:
Code:
adb logcat > logcat.log
adb pull /sdcard/kmsg.log
Now pull out the battery and restart your device.
Upload logs to some online service like pastebin.com
Important!
Some devices may not support/be unstable on OC, if you experience freezes or stutters try the non-OC versions.
If you experience problems with ramhack such as camera bugs or low fps on heavy 3d apps, try a lower ramhack version or a non-ramhack versions.
If you have the "media server has died" problem just reflash the kernel.
BEFORE PROCEEDING:
I am not responsible if you brick your phone or pigs begin to fly.
These are experimental kernels wich I run on my device, this DOES NOT mean they will run on yours too.
Downloads:
Again, these are ONLY FOR GB BOOTLOADER.
http://d-h.st/users/enry/?fld_id=8858
Instructions:
1. Download the kernel
2. Flash the kernel
3. Wipe cache and dalvik cache (optional)
4. Reboot
5. Enjoy
File name description:
CM10_kernel_yyyymmgg_/OC_/pidocchio.zip
OC: Overclock support
Source:
https://github.com/pidozz/lge-kernel-star
Changelog:
25/01/2013
Added force_fast_charge (force AC charge mode at will)
Increase hotplug efficiency
Merged bluetooth bluedroid commits
Boost frequency on touch only if current_freq<hispeed_freq
Use regular ror64 in SHA512
21/01/2013
Built with optimized flags
Disabled tegra cpu freq lock
zRam script in init.d (please select "disabled" in performance settings in your rom)
Low Memory Killer from 3.4 (thanks pengus77)
Maybe fixed a bsod
Various kernel bugfixes
Old changelogs:
Code:
[B]20/01/2013[/B]
[LIST]
[*]Toolchain: switched to linaro 4.5.4
[*]Added latest ROW I/O scheduler
[*]ROW as default iosched
[*]Increased interactive governor sample time (less strain on battery)
[*]zRam as a module
[*]Added Snappy zRam compression/decompression
[*]Added init.d script (/system/etc/init.d/95pidozz)
[*]Removed 456Mhz and 608Mhz freq tables (not really needed)
[*]Fixed ramhack script for those who have a ramdisk size smaller than 180kb
[*]Fixed userspace undervolt (now it works correctly)
[/LIST]
[B]19/01/2013[/B]
[LIST]
[*]Increased hotplug efficiency
[*]Upgrade Interactive governor to latest Google's 3.4
[*]Bump max_cpulock_freq to 1.2Ghz for AP20
[/LIST]
[B]18/01/2013[/B]
[LIST]
[*]Enabled "Westwood" congestion avoidance algorithm
[*]Introduced Proportional Rate Reduction for TCP
[*]1100Mhz now at 1075mV
[*]Enabled SHA256 and SHA512
[*]Removed AVP, VDE, GPU and EPP overclock (caused instabilities and not really improved performance)(maybe they were the cause of softreboots and BSODs)
[/LIST]
[B]17/01/2013[/B]
[LIST]
[*]Added 456Mhz and 608Mhz freq tables (more power states)
[*]Added EPP overclock
[*]Boosted readahead to 256kb
[*]Fixed 1100Mhz step (before it was 1066Mhz with weird oscillations)
[*]Fixed voltages on OC version (there was a mismatch between dvfs and regulator, even in stock this is present)
[/LIST]
[B]16/01/2013[/B]
[LIST]
[*]Added 1100Mhz cpu step on OC version
[*]Again: Increased generic hotplug efficiency
[*]Various patches to interactive governor
[LIST]
[*]Patches from Google
[*]More balanced (check it out with CPUSpy)
[*]Marry governor boostpulse with hotplug boostpulse (when you touch the screen 2nd core comes up and freq ramps up to 1000Mhz)
[/LIST]
[*]Fixed voltages on OC version (hopefully last one)
[/LIST]
[B]15/01/2013[/B]
[LIST]
[*]Again: Increased generic hotplug efficiency
[*]Introduced ramhack script - Kernel ramhack @0MB default, user can change ramhack size via "rh" script
[*]Added several files to kernel zip, those are needed for the ramhack script
[/LIST]
[B]10/01/2013[/B]
[LIST]
[*]Increased generic hotplug efficiency
[*]Rewrote OC support
[/LIST]
[B]07/01/2013[/B]
[LIST]
[*]Tweaked deadline scheduler tunables
[*]Removed hotplugging logic from OnDemand governor"
[*]Removed Hotplug governor
[*]Added generic auto hotplugging functionalities (cpu1 will go offline when not needed/on screen off regardless of active governor)
[*]Bugfixes
[*]Update CFLAGS
[/LIST]
[B]02/01/2013[/B]
[LIST]
[*]AVP, VDE and GPU freqs increased
[*]Introduce stable 1.2Ghz OC
[/LIST]
[B]30/12/2012[/B]
[LIST]
[*]Added hotplugging ability to OnDemand cpu governor (cpu1 offline when not needed, respecting the ondemand main scope: performance)
[*]Merged marsgod CM10 audio bugfix (wm8994 related)
[*]Switched to symbi0sis toolchain -> more performance and battery saving
[*]Update CFLAGS
[/LIST]
[B]28/12/2012 bis[/B]
[LIST]
[*]OC up to 1.5Ghz and UV/OV support (temporarily disabled as instable)
[*]Update CFLAGS
[*]Reverted: Readahead boosted to 2048KB (caused IOW spikes)
[/LIST]
[B]28/12/2012[/B]
[LIST]
[*]Increased max cpu voltage a little bit on OC kernels
[*]OC support up to 1.2Ghz now available
[*]Tweaked toolchain->more smoothness
[*]Bugfixes
[*]Readahead boosted to 2048KB
[*]Asynchronous I/O latency to a solid-state disk greatly increased
[/LIST]
[B]26/12/2012 bis[/B]
[LIST]
[*]Removed OC support due to instabilities/stutters
[/LIST]
[B]26/12/2012[/B]
[LIST]
[*]Initial release (changes over CM lge-kernel-star)
[*]Added OC support up to 1.2Ghz
[*]Added Ramhack support
[*]Tweaked Deadline and SIO schedulers values
[*]Tweaked Smartassv2 and Hotplug Governors values
[*]Added Simple I/O (SIO) scheduler
[*]Added Smartassv2 and Hotplug governors
[*]Added boostpulse interface for Interactive and OnDemand governors
[/LIST]
Great stuff man. I'll put a link to this thread as the recommended kernel in my old bootloader rom
rugglez said:
Great stuff man. I'll put a link to this thread as the recommended kernel in my old bootloader rom
Click to expand...
Click to collapse
Thanks!
Now I've just to figure out how github works so I can manage all this stuff properly.
Oh what a noob I am :crying:.
mmm... and when for new bootlader? :-|
Thank You.
Sent from my LG-P990 using Tapatalk 2
OMG!! It's raining ROMS and KERNELS for P990!! Thank you so much!!
Really appreciate everyone's effort..
kukharski said:
mmm... and when for new bootlader? :-|
Click to expand...
Click to collapse
rugglez kernel thread:
[KERNEL][CM10/MIUIv4]RC's CM10 kernel for ICS bootloader + RAM hack + OC/UV by wkpark
Installed the only oc version on the 1226 nightly (today) but its a bit laggy on the menu ad apps
Yeah those stutters...
I implemented the OC feature simply by editing the cpu freq table, adding the 1200mhz step with 1200mv as voltage (that was the standard "safe" voltage on cm7 for 1.2ghz freq).
This is a rude implementations btw .
Furthermore OC is not stable atm.
I don't know if the voltage is the problem or something else, or even the device itself. I will investigate and experiment some modifications.
pidocchio,
rugglez's kernels don't have additional governors and pulse. I think compile your kernel for new botloader is easier than add missed features to rugglez's kernel. Or you may share your kernel sources on github or another site.
Thanks for your work.
Just added a github link.
(I'm a real noob at this omg, can someone help me? LOL)
PS: I've removed the OC sourcecode since I couldn't came up with a solution for the lag and stutters, I've removed also OC kernels from public folder.
If someone can help me with this overclocking stuff I would be very grateful .
Thx for this kernel , i like it ...
Ok, i'm starting to understand how github works, i just finished updating my repo.
Here's is the new repo:
https://github.com/pidozz/lge-kernel-star
pidocchio said:
Ok, i'm starting to understand how github works, i just finished updating my repo.
Here's is the new repo:
https://github.com/pidozz/lge-kernel-star
Click to expand...
Click to collapse
Hi and thanks for compiling CM10 kernel for old BL!
But what do you mean with tweaked governers?
Sent from my LG-P990 using xda app-developers app
Hi bro,
the dev-host link seems broken for me, could u upload to dropbox or similar?
Thanks
Sent from my LG-P990 using XDA Premium HD app
der.einstein said:
Hi and thanks for compiling CM10 kernel for old BL!
But what do you mean with tweaked governers?
Click to expand...
Click to collapse
Governors can be thought of as pre-configured power schemes for the CPU. They come with their standard tunable values (at wich % of cpu load increase or decrease frequency, and so on).
By "Tweaked XXX governor" I mean that I have modified some/all tunable values of that governor in order to ensure that it will behave in a more performant (in performance or batterysaving) way on android, specifically on our device.
luupocok said:
Hi bro,
the dev-host link seems broken for me, could u upload to dropbox or similar?
Thanks
Click to expand...
Click to collapse
Weird, everything works for me.
Anyway these are dropbox links:
Stock
24MB Ramhack
32MB Ramhack
:laugh:
http://wiki.rootzwiki.com/CPU_Governors
InteractiveX looks fine too
luupocok said:
InteractiveX looks fine too
Click to expand...
Click to collapse
I will implement this in the next build
-------------------------------------------------------------------------
New Build 20121228:
Increased max cpu voltage a little bit on OC kernels
OC support up to 1.2Ghz now available
Tweaked toolchain->more smoothness
Bugfixes
Readahead boosted to 2048KB
Asynchronous I/O latency to a solid-state disk greatly increased
WARNING:
Don't use the last build, a commit was wrong and it may cause a lot of IOW spikes.
I'm rebuilding all the versions without that commit, I'll post again when it is done with the new changelog.
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
YaYPrime is based on the oficial 3.4.0 mr1.1 kernel from google, with the commits needed to run in android 6.0.
With Android M, all the kernes have merge the commits to be compatible with it, so in my case, I prefer to start a new one from 0, making the phone feel smooth while having a good battery life.
Features:
- Based on official 3.4.0 mr1.1 mako kernel
- Compiled using the lastest version of uber 5.3.1, optimized for cortex-a15
- Anykernel2
- Mako_hotplug as hotplug
- FranciscoFranco's thermal
- FranciscoFranco's gamma control
- Frequency limitator on screen-off (1026mhz by default)
- Voltage control
- Cpu Overclock of 1.7ghz (1.5ghz by default)
- Cpu Underclock of 192mhz (384mhz by default)
- Gpu Overlock of 480mhz (400mhz by default)
- Ondemand, simple and performance as gpu governors
- Ondemand, performance, conservative and interactive as cpu governors
- Deadline, zen, fiops, cfq, bfq, row as i/o schedulers
- Stratosk's Ondemand governor version (by (default)
- Franco's Convervative governor version
- Taurus' Interactive governor version
- Faux's Sound Control
- Readhead set in 512kb by default
- Graphite and neon optimizations
- UsbOtg support
- Kexec (multirom)
- DT2W support
- Fastcharge support
- F2FS support
- A lot of improvements and optimizations
Downloads:
AOSP: https://www.androidfilehost.com/?w=files&flid=42219
CM: https://www.androidfilehost.com/?w=files&flid=47776
Installation:
If you come from another kernel:
- Reboot in recovery mode
- Dirty-flash the rom you are using (without wipes)
- Flash kernel
If you come from a previous version:
- Reboot in recovery mode
- Flash kernel
(If you find something weird, wipe dalvik/cache)
To configure the kernel I recommend using kernel auditor.
Thanks: @hellsgod (kernel base), Google, Uber, @txuki2005, @serbalabari, @mrraine, @CallMeAldy, @zaclimon, @Flashhhh, @hurtsky, @franciscofranco, @faux123, @stratosk, @neobuddy89, @dorimanx, @osm0sis (anykernel2), and all the people that contribute with their commits.
Finally, I'm not responsible for any damage that can happen to your phones, I use the kernel as a daily one and I don't have any problem.
XDA:DevDB Information
YaYPrime-M Kernel, a kernel for the Google Nexus 4
Contributors
yaymalaga
Source Code: https://github.com/yaymalaga/yayPrime_kernel
Version Information
Status: Stable
Created 2015-10-25
Last Updated 2016-01-15
Changelog:
R3
- Re-done from R1
- Fixes everywhere, no more lags on chrome
- Build using latest Uber 5.3.1 (optimized for cortex-a15 - compiled by me)
- Merged all patches from 6.0.1 and the latest ones from 3.4 branch
- Added cpu underclock to 192mhz (325mhz by default)
- Updated interactive governor (ondemand by default)
- F2FS support (Need to be tested)
- Core optimizations (mutex, futex, sched, etc)
- Selinux improvements for smoothness
- Cfq i/o scheduler optimized (the other ones are removed until next release)
- Added missing Faux soundcontrol commits
- Cpu management improvements
- DT2W and T2W
- CM version added
Old releases:
R2:
- Compiled using lastest uber 4.9 (compiled by me, optimized for cortex-a15)
- Graphite and neon enabled
- Makefile and flags optimizations
- Compiler and cortex-a15 optimizations
- A lot of optimizations in the I/O, and new schedulers:
Row added and tuned up
Deadline updated and tuned up
Cfq updated and tuned up
Bfq (v7-r8) added and tuned up
Zen added and tuned up
Fiops added and tuned up
- Kexec support
- DT2W support (from Stratosk)
- Fastcharge support
- OTG support (theoretically)
- Interactive governor fixes (now uses lower freq)
- Fixes and optimizations for camera, gpu, etc
- Some improvements in general
R1:
- Initial version
Any plans to add different governors like zzmome, scary, SmartassV2, SmartMax, etc?
---------- Post added at 08:28 PM ---------- Previous post was at 08:28 PM ----------
Also, thanks for the new kernel!
thatkindaguy said:
Any plans to add different governors like zzmome, scary, SmartassV2, SmartMax, etc?
---------- Post added at 08:28 PM ---------- Previous post was at 08:28 PM ----------
Also, thanks for the new kernel!
Click to expand...
Click to collapse
Just try "hellsactive" and see for yourself what smoothness really looks like.
dragos281993 said:
Just try "hellsactive" and see for yourself what smoothness really looks like.
Click to expand...
Click to collapse
Not looking for smoothness - Looking for a good battery and performance balance. The best Governor I've found for that is zzmove with ybat as the profile number, and not a single kernel for mako includes zzmove
Nice kernel man been running for 24 hours now using hellsactive profile working very well.
Tapped from my marshmako
Looking impressive. Working gr8 till now.. Keep up the good work.
thatkindaguy said:
Any plans to add different governors like zzmome, scary, SmartassV2, SmartMax, etc?
---------- Post added at 08:28 PM ---------- Previous post was at 08:28 PM ----------
Also, thanks for the new kernel!
Click to expand...
Click to collapse
Maybe I will include smartmax from ak kernel in the next release
@yaymalaga is it safe to flash directly coming from hellscore b85? For some reason I can only dirty flash if I wipe system also and flash rom + Gapps.
Sent from my Nexus 4 using Tapatalk
Is it just me or unknown is the one really shown on the kernel version on about phone?
Sent from my Nexus 4 using XDA Free mobile app
russells.android said:
Is it just me or unknown is the one really shown on the kernel version on about phone?
Sent from my Nexus 4 using XDA Free mobile app
Click to expand...
Click to collapse
I was ready to ask same think.
Also, for me, settings in 'init.yayprime' does not alter kernel's settings
What rom are you using?
About the unknown name, my bad. I'm looking for what causes the name not to be shown
Cataclysm MM (Nexus 4)
Not a bad kernel,but problem that I have is after some time, videos just stop playing, have to reboot my phone to make them work,didn't happen on stock kernel, using franks 6.0 latest build
Performance is solid with this kernel for me. Nice kernel!
Can we have halfbreed color as default in the next build? The washed out colors are burning my eyes lol
veeholics said:
Performance is solid with this kernel for me. Nice kernel!
Can we have halfbreed color as default in the next build? The washed out colors are burning my eyes lol
Click to expand...
Click to collapse
Use Synapse or Kernel Auditor or any other kernel tweakers, you can change the colors from the app.
This kernel has USB otg support or not? I've installed synapse and kernel adiutor and didn't found any way to enable USB otg.
I'm using it with pure ROM.
Sent from my Nexus 4 using Tapatalk
sidnoit22 said:
Use Synapse or Kernel Auditor or any other kernel tweakers, you can change the colors from the app.
Click to expand...
Click to collapse
I know that. What I actually meant is the gamma colors that is included within the kernel. That way, it will apply all accross the phone.
If you just change it with an app, it will not apply to recovery and all other things before booting android. That's quite a big deal for me.
jolas said:
Cataclysm MM (Nexus 4)
Click to expand...
Click to collapse
Well I haven't tested by myself in this rom, but maybe it is using cm performance profile which change the governor configs
g33k0 b3lk0w said:
Not a bad kernel,but problem that I have is after some time, videos just stop playing, have to reboot my phone to make them work,didn't happen on stock kernel, using franks 6.0 latest build
Click to expand...
Click to collapse
I have had the same problem using other kernels, so I think that it's not the kernel fault
mandgeo said:
This kernel has USB otg support or not? I've installed synapse and kernel adiutor and didn't found any way to enable USB otg.
I'm using it with pure ROM.
I think that it does not (we are basing on hellscore kernel right now), but in the near future I will enable it when M kernels manage to adapt it.
Sent from my Nexus 4 using Tapatalk
Click to expand...
Click to collapse
veeholics said:
I know that. What I actually meant is the gamma colors that is included within the kernel. That way, it will apply all accross the phone.
If you just change it with an app, it will not apply to recovery and all other things before booting android. That's quite a big deal for me.
Click to expand...
Click to collapse
Sorry, but we are using the google's default gamma, so it will be the default one
Btw, I pretty busy with real life and studies, but I'm looking to change to another base with even more optimizations, when I have time I will do some tests
yaymalaga said:
YaYPrime-M is based in hellsgod's kernel, as it is the perfect base to continue with, so if you like hellscore, then you will love this new kernel.
Click to expand...
Click to collapse
can you/anyone mirror it? AFH currently has server problems
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.