Hi guys. As you may have noticed around people have been using an 'uncapped' version of Darch's Kernel source. The Kernel inside of the CM6(including nightlies) is capped at 691 as to allow anyone and everyone the ability to boot.
But what if you're a self-proclaimed speed demon whose hero is capable of high frequencies and enjoys insanely high MFLOPS and crazy high Quadrant scores?!
Well guess what!?
This kernel is for you.
ROMS that use this kernel source
(This is so that you don't just flash over something that you are already running, check with the ROM cook to see how up-to-date they are)
[ROM][GPL][NONSENSE] aospMod v0.9.7 | AOSP 2.2.1 (Froyo) [Maintainer: aosp]
[ROM] FroYo 2.2 - CM6 Extremely Blue, BlackMod, Red, Purple, Vanilla [Maintainer: jaybob]
[ROM-DEV] HTC Sense Android 2.2.1 [Maintainer: Zenulator]
DecaFuct. Stable Kernel. In blue.
DecaFuct Kernel Releases (CFS versions)
[email protected] 12/22/2010 *NEW*
Commits: https://github.com/Decad3nce/htc-kernel-heroc/commits/heroc
NEW Maintenance update. Reverted VM tweaks.
Kanged erasmux frequency table. Fixed stepping and QCT CDMA radio fixup
Included 06tweaks script that configures kernel and overwrites the overwrite to scaling_governor in CM6
Revised a few low level configurations in the script regarding VM
All frequencies(except 480mhz) are on the same PLL (PLL 2).
A lot of updates to smartass cpu governor from Erasmux
Updates on the lowmemorkiller driver from AOSP
Backport smd rpcrouter from 2.6.35 to (hopefully) solve problem with Auto-answer mode - Erasmux
Reverted every usleep and msleep integration
Fixed i2c errors
Set smartass cpu governor as default, and renamed kernel (DecaFuct)
Changed sleep mode back to HTCs recommendations
Download [email protected] #589 768mhz
Dropbox Mirror
MD5: 0ea00f5af58c84ff40d94bbd1e10657d
Download [email protected] #589 691mhz
Dropbox Mirror
MD5: a6d60ca7c89255e5e66cd1aba36b0f10
Resources for source:
Original CyanogenMod Branch
Master Branch(Darch's)
My fork
Credits:
s0be!!!
Phusson for giving us overclock
Toastcfh for being like the most awesome kernel developer ever
Darchstar for just about everything
Ninpo
Eran(erasmux)
jaybob413
The entire CyanogenMod team for their hard work
Koush for AnyKernel update.zip!
Zenulator for the AnyKernel update.zip for HeroC
Collin_ph for ideas regarding msmsdcc and CFS scheduler help
Google and HTC
AOSP
XDA
Specific Kernel Contributors via github
KingKang, this is how you give credit and show your source via GPL and on Github.
I'll add in more explanations to things as time progresses and as I merge in more of my commits that I have locally.
How to install:
Place the downloaded update.zip at the root of your sdcard. Then boot to recovery mode, wipe dalvik, and flash it. Your ramdisk will remain intact and unchanged, but your kernel will be replaced.
You MAY need to wipe dalvik cache if you're having strange problems.
Please nandroid first, that way you always can go back after you hate me.
Older releases:
Code:
[CENTER][INDENT][COLOR="RED"][SIZE="4"][B]BrainFuct Kernel Releases (BFS versions)[/B][/SIZE][/COLOR][/CENTER]
[SIZE="3"][B]BFS Release 11/18/2010[/B][/SIZE]
[LIST]
[*]Commits: [url]http://github.com/Decad3nce/htc-kernel-heroc-BFS/commits/master[/url]
[*] Completely in-line with the Stable(CFS) branch(See on CFS changelog)
[*] Fixed a lot of bugs in sched_bfs.c rooted in my reverting from .330 -> .318
[*] Reverted mutex adaptive spin update from sched_bfs.c
[*] THERE MAY BE A PROBLEM WITH UI LAG. YOU CAN FIX IT BY CHANGING YOUR rr_interval IN /proc/sys/kernel.
[*] [CODE] echo "1" > /proc/sys/kernel/rr_interval
[/LIST]
Download [email protected] #16 768mhz
MD5: 2a67808019b4de2b739079964f820f5b
Download [email protected] #16 691mhz
MD5: 289749aa06f064112a52731c0439e2e1
BFS Release 11/07/2010
Commits: http://github.com/Decad3nce/htc-kernel-heroc-BFS/commits/master
Updated kgsl, better graphics performance
Updated msm_camera
Updated s5k3e2fx camsensor from .32(3000+ changes)
Updated Interactive Governor.
Download [email protected] #15 768mhz
MD5: 9ee656a01503d1aeea43bb2f5ed4b25f
Download [email protected] #15 691mhz
MD5: 4ac17e572155ecf2f753137b16c38eaa
BFS Release 10/27/2010
Commits: http://github.com/Decad3nce/htc-kernel-heroc-BFS/commits/master
Added erasmux's "smartass" governor (See CFS changelog for details)
Optimized ARM RWSEM algorithm
vmscan: raise the bar to PAGEOUT_IO_SYNC stalls
arm: mm: Don't free prohibited memmap entries
Download [email protected] #14 768mhz
MD5: 54ff919b8df88b6baee048b293ac124f
Download [email protected] #14 691mhz
MD5: f1f77a1082453fc435efdc4c256ef27c
BFS Release 10/12/2010
Commits: http://github.com/Decad3nce/htc-kernel-heroc-BFS/commits/master
Fixed camera->gallery->camera bug(hw3d release). Thanks to erasmux/ninpo for the patch and jaybob413/aosp for testing.
Backported .32 lowmemorykiller.c. Much more efficient RAM handling.
Set up easy to compile for beginners. (defconfig + script)
WIPE DALVIK BEFORE/AFTER FLASHING THIS RELEASE.
Download [email protected] #13 768mhz
MD5: 48eef774c094165c95bd35a857da9634
Download [email protected] #13 691mhz
MD5: eded283732647f941e1eb367cd1c39a4[/INDENT]
BFS Release 10/03/2010
Commits: http://github.com/Decad3nce/htc-kernel-heroc-BFS/commits/master
Adapted erasmux idle code backport from .34 to BFS
Built in CIFS module
Ramzswap module is built in
Cleaned up
Download [email protected] #12 768mhz
MD5: 54dfeee2d5daf3c8885f9a5210898821
Download [email protected] #12 691mhz
MD5: 669572be0bacdc025dda355f251b6476
BFS Release 09/28/2010
Merged stuff from stable branch
COMMITS:
Squash bugs in board-heroc.c
Drop freqs under 245760 since no one uses them anyways; prevents override/instabilty.
Bring touchscreen more in-line with mahi-mahi (uses the same hw) - s0be
This is superfluous whitespace, move along
Download [email protected] #11 BFS (Uncapped)
MD5: e26b4f07dbbe050c61ef593aa37c3d6f
Download ramzswaps.ko for #11 BFS Uncapped
Download [email protected] #11 BFS (Capped)
MD5: f6573225e19f442e858c7cf400eb923d
Download ramzswaps.ko for #11 BFS Capped
BFS Release 09/26/2010
Merged stuff from stable branch, see below
Added a 691-capped version
Download [email protected] #10 BFS
MD5: 96d60585731363850d9922e0b04ea9f7
Download ramzswap.ko for #10-BFS-Uncapped
691 Capped version
Download [email protected] #10 BFS (691 CAPPED!)
MD5: c7dd749233f78d2ffc9fa546b80509eb
Download ramzswap.ko for #10-BFS-Capped
BFS Release 09/22/2010
Mostly reverted .330 BFS patch, roll back to .318
UI lag/delay is virtually completely gone!
http://github.com/Decad3nce/htc-kernel-heroc-BFS/commit/1568ef90ed464087a83c98de3ee145ffa0aacdb7
http://github.com/Decad3nce/htc-kernel-heroc-BFS/commit/6c9b675efd42324f16477d2d080b7593338ae254
FIRST BFS RELEASE THAT I AM SATISFIED WITH.
Download [email protected] #9 (NO CACHE WIPE) (DIAG FUNCTION ENABLED)
MD5: eb7cf9e34bd22a90d43a324465029f36
Download ramzswap.ko for 09/22/2010 #9 Kernel
BFS Release 09/20/2010
Lots of work put in this release
Fixed Goggles FC (http://github.com/Decad3nce/htc-kernel-heroc-BFS/commit/7b438a53cc03701b14bd2f18c2d0f8f49074cf77)
Fixed posix-timers-cpu.c compilation error, from inheriting .31 scheduler updates (http://github.com/Decad3nce/htc-kernel-heroc-BFS/commit/1478838f0f407447cc7b2437d05c9b5452b946cb)
Merged in mutex adaptive spin changes (http://github.com/Decad3nce/htc-kernel-heroc-BFS/commit/bce7d6729a18c10efb788cbe2e48eae4eb22d702) (http://github.com/Decad3nce/htc-kernel-heroc-BFS/commit/55829b4b81bb606c4f97a62d80851900500fdaf6)
Mostly stabilize GPS via setting rr_interval to 1 (http://github.com/Decad3nce/htc-kernel-heroc-BFS/commit/d6cee5ac10db4a2a176f75c5f076d8a880725330) Untested while driving.
Download [email protected] #7 -Brainfuct
MD5: 9b55b409f94bb63fa9db0eafadadee28
ramzswaps.ko for BFS
BFS Release 09/03/2010
Added back ext3/4 support
Added ramzswap(for compcache) via darch(and actually enabled it this time)
Patched BFS to .330(idk how stable it is, might revert to .318 if it isn't)
Reverted msleep integration in board-heroc-mcc.c
The update.zip wipes the cache partition, so first boot will take a while
If you're having random 'lock ups' or 'reboots' set the cpu governor to ondemand
Download [email protected] #10 -BrainFuct
MD5: 8ea499e7f35206cc0afe7a5c885d9225
BFS Release 08/29/2010
Added desirec(Eris) compatibility, via darch
Added usleep function, and applied it throughout.
Fixed some things I fuxed up in the .config
Updated touchscreen source via darch
Commits: http://github.com/Decad3nce/htc-kernel-heroc-BFS/commits/master
Download [email protected] #4
MD5: 492e93a6587a5912ea43c15333568dab
BFS Release 08/26/2010
Brought it up to .316
Recompiled wlan.ko
Lots of changes
libgps isn't starved: see this commit Still not completely stable. Doubtful that it'll ever be stable with .29
Commits and new repo are all here
DOWNLOAD [email protected] #1
MD5: 20797d27463b3c63592d6d66b9fe310c
Stable Kernel Releases (CFS versions)
[email protected] 11/18/2010
Commits: http://github.com/Decad3nce/htc-kernel-heroc/commits/master
Made the frequency table more efficient: Less steps, Less freq's, etc.
Re-merged in the .32 msm_camera updates
Updated s5k3e2fx camsensor PROPERLY for better camera/camcorder performance
Reverted mutex adaptive spin updates since they fux with sleeping-while-atomic with KGSL
Download [email protected] #43 768mhz
MD5: c6a96df1200bfff884740a3b6f0fba5d
Download [email protected] #43 691mhz
MD5: e16383d88150ddaf5c30822d75e14868
[email protected] 11/15/2010
Commits: http://github.com/Decad3nce/htc-kernel-heroc/commits/master
FIXED WAKE LAG. I PROMISE. K.
Reverted .32 camsensor updates(reworking for next release).
Updated interactive cpu governor(more stable).
Sleep.
Download [email protected] #23 768mhz
MD5: 5d04797f0573fcccc7a21f6f849649f2
Download [email protected] #24 691mhz
MD5: 219907892b3a8fe961b8f1b54e6771e4
[email protected] 11/12/2010 V2
Commits: http://github.com/Decad3nce/htc-kernel-heroc/commits/master
Removed Swap
Increased clock speed of s5k3e2fx camsensor to 83mhz(charasingh)
Fixed atomic functions in bfq iosched(damentz)
Reverted updates to interactive cpu governor(wake lag gone).
Revert "cpufreq: Remove input event handler code" from cyanogen. (NEW)
Download [email protected] #20 768mhz
MD5: 2a7a758cec97cdf4e92ce7d21ddb9aa6
Download [email protected] #15 691mhz
MD5: 53be09df3703b1dba202f42c5e67365c
[email protected] 11/07/2010
Commits: http://github.com/Decad3nce/htc-kernel-heroc/commits/master
Updated kgsl, better graphics performance
Updated msm_camera
Updated s5k3e2fx camsensor from .32(3000+ changes)
Updated Interactive Governor.
Download [email protected] #16 768mhz
MD5: 6e72cf3714324519ce1d16fd5b828d1c
Download [email protected] #13 691mhz
MD5: 399fd9110be4e1655ef1efafab995ddd
[email protected] 10/27/2010
Commits: http://github.com/Decad3nce/htc-kernel-heroc/commits/heroc
Added erasmux "smartass" governor
See second post for technical details
Added 176000 frequency, so one step below 245760
Interactive is still default cpu governor, use batterytweak/setcpu to change to smartass
Download [email protected] #15 768mhz
MD5: be98a2450d6db32bc7372dd447cec8bb
Download [email protected] #11 691mhz
MD5: 03636eea703ce9d3ee903f8bdeae5b5c
[email protected] 10/25/2010
Commits: http://github.com/Decad3nce/htc-kernel-heroc/commits/heroc
Optimized ARM RWSEM algorithm
vmscan: raise the bar to PAGEOUT_IO_SYNC stalls
arm: mm: Don't free prohibited memmap entries
All updates are from upstream.
Download [email protected] #13 768mhz
MD5: ce01b1817700419969d43b938665e842
Download [email protected] #10 691mhz
MD5: 2cbfb2e662680a765b398a24c605d9b7
[email protected] 10/12/2010
Commits: http://github.com/Decad3nce/htc-kernel-heroc/commits/heroc
Fixed camera->gallery->camera bug(hw3d release). Thanks to erasmux/ninpo for the patch and jaybob413/aosp for testing..
Backported .32 lowmemorykiller.c. Much more efficient RAM handling.
Set up easy to compile for beginners. (defconfig + script)
WIPE DALVIK BEFORE/AFTER FLASHING THIS RELEASE.
Download [email protected] #9 768mhz
MD5: f7ed6ae3ff50a5dd3f68a2af9d9eed31
Download [email protected] #9 691mhz
MD5: b77c52471d5dde114b9544c3ea041560
[email protected] 10/03/2010
Commits: http://github.com/Decad3nce/htc-kernel-heroc/commits/heroc
Adapted erasmux idle code backport from .34
Built in CIFS module
Ramzswap module is built in
Cleaned up
"Failed to find CPU subsys" spam is gone
Download [email protected] #6 768mhz
MD5: 50f8eaae80558977dab96a354f8ce8a9
Download [email protected] #? 691mhz
MD5: 36e458d73ba0760261f6dff5bec6514a
[email protected] 09/28/2010
COMMITS:
Squash bugs in board-heroc.c
Drop freqs under 245760 since no one uses them anyways; prevents override/instabilty.
Bring touchscreen more in-line with mahi-mahi (uses the same hw) - s0be
This is superfluous whitespace, move along
Download [email protected] #5
MD5: 43e9a5cd836f59965be354c1d428a71e
Download ramzswaps.ko for [email protected] #5
[email protected] 09/26/2010
Enabled USB_DIAG function for you CDMA workshop users
Reverted some debug stuff
Removed 19.2mhz from the freq table, should up stability.
Fixed a bad patch integration in ipv4
Commits: http://github.com/Decad3nce/htc-kernel-heroc/commits/heroc
Download [email protected] #2
MD5: 8ac35187acc3dac7f223f873e68df6e0
Download ramzswap.ko for #2 Uncapped
[email protected] 09/14/2010
Changes: http://github.com/Decad3nce/htc-kernel-heroc/commit/bbd66bf7867d1e0135cb5fcf2f743355dbc24c75
Download [email protected] #14
MD5: e665bbd8d5bb5cae4c29e7f523197ece
ramzswap.ko (NOT FLASHABLE)
[email protected] 09/11/2010
Merge in .31 scheduling updates from Ninpo(http://github.com/Decad3nce/htc-kernel-heroc/commit/fe71ab000ba3e70ba57516880b5f2b09da5e4481)
Finally added .config to my github(sorry about that), and fixed the Goggles fc errors by enabling ipv6 support instead of optional modules.
Compiled ramzswap.ko and wlan.ko for new revision
Reverted back to deadline i/o scheduler
Most stable this has been.
Download [email protected] #13
MD5: 360f48e347fd3eb09a2cae3a57d9198c
Download optional ramzswap.ko (NOT FLASHABLE)
[email protected] 09/03/2010
Added back ext3/4 support
Added ramzswap(for compcache) via darch(and actually enabled it this time)
Reverted msleep integration in board-heroc-mcc.c
The update.zip wipes your cache partition for you, so first boot will take a while
#10 Stable kernel was a failure.
Download [email protected] #11 -Stable
MD5: 045547cd3c592d7f39fe8e5984a82034
[email protected] 08/27/2010
Added the 'usleep' function. Applied it throughout, should save on cpu cycles and save battery.
Commit: http://github.com/Decad3nce/htc-kernel-heroc/commit/23fe04b6c05a4608cbb4478e6eab2b01c8f2ab36
Reset the default governor as interactive so that when you flash to a different ROM(other than CM6) it actually sets to interactive(unless otherwise specified by the ramdisk).
Most of the credit goes to Ninpo
Download [email protected] #9 -Uncapped
MD5: 5ba126e58d02233c9e9699cc241883f5
[email protected] 08/19/2010
Re-added all the default cpu governors
Set BFQ I/O sched as default
Default governor is 'ondemand'
You can still enable a different governor either with setcpu or manually, ask about how.
Pull the config.gz and extract .config to see the rest of the changes, nothing in source
Download [email protected] #8 -stable
MD5: dec8112b00bb032b59d7552a44dec05a
[email protected] 08/18/2010
Made Interactive CPU governor default
Default Scheduler is still deadline
Recompiled wlan.ko, added to to the update.zip
Download [email protected] #7 -stable
MD5: 19fe8851ef74585b8125bdbef60e9523
[email protected] 08/17/2010
Added in BFQ I/O via Darchs commit) Original Source: (http://bit.ly/aoX7Bj)
Default scheduler is Deadline
Added 'interactive' cpu governor
Fixed kernel panic reboots
Download [email protected] #5
MD5: c86247444d5e642d3ebd0be2edfe7413
[email protected] 08/16/2010
Decreased thre msmsdcc_fmax to 32000000
Set the msmsdcc_pwrsave to 0
Merged in various commits from AOSP
Merged in various commits from Cyanogenmod
Kept up to date with Darch's branch
Left the kernel to scale from 19200 to 768000
Download [email protected] #1
MD5: This zip doesn't exist anymore(I doesn't has it).
[/CODE]
How to compile!
This guide is written for debian based linux
Retrieved and modified from the CM Wiki which can be found here: http://wiki.cyanogenmod.com/index.php?title=Building_Kernel_from_source
Firs things first, you'll need to install the development support packages for 32bit/64bit via aptitude or other method:
Code:
git-core gnupg sun-java6-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev
Then you'll have to retrieve the repo script, move it to /bin and make it executable:
Code:
mkdir -p ~/bin
curl http://android.git.kernel.org/repo > ~/bin/repo
chmod a+x ~/bin/repo
(You'll have to reboot after this step)
Next up, I'd recommend that you repo sync the CM android repository from http://www.github.com/CyanogenMod/android. This massive repository contains the tools necessary for rolling a kernel. (You can also repo sync the AOSP repo, if you want to build Vanilla Android).
Code:
mkdir -p ~/android/system
cd ~/android/system
repo init -u git://github.com/CyanogenMod/android.git -b froyo
repo sync
Then you'll want to export the cross compiling toolchain:
Code:
export CCOMPILER=${HOME}/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-
This first process will take around ~1-2 hours for full completion, grab yourself a sandwich or go make fun of aosp or something.
Next up, you'll want to retrieve the htc-kernel-heroc source from git!
You'll need to create a directory so you can keep track of your active kernels, and then you'll begin to clone the repository:
Code:
mkdir android-kernel
cd android-kernel
git clone git://github.com/Decad3nce/htc-kernel-heroc.git
(this might take a few minutes)
You now have the kernel source on your computer! Now we'll quickly run through the basics.
I set up a script for easy compilation, but you'll have to modify it a bit after you clone the repo.
(while in android-kernel)
Code:
cd htc-kernel-heroc
nano make-kernel.sh
You'll want to change the path to the CCOMPILER, to wherever it is on your PC. If you followed this guide, you'd edit the first 2 lines:
From:
Code:
CCOMPILER=~/android-cm/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-
To:
Code:
CCOMPILER=${HOME}/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-
Save, close out and we'll begin compiling!
Simply, if you want to compile the kernel with the defconfig, you'll just run
Code:
./make-kernel.sh DC
(This will write the defconfig to .config)
then just:
Code:
./make-kernel.sh K
This might take a good 10 minutes(depending on your set up) but after it's all set and done, you'll have the zImage located in arch/arm/boot/. So we'll grab that, and either throw it in the AnyKernel update.zip OR you might want to couple it with a ramdisk and create a boot.img.
Regardless, if you want directions on splitting a boot.img, look HERE.
Details!
erasmux said:
Technical Details
smartass governor - is based on the concept of the interactive governor.
I have always agreed that in theory the way interactive works - by taking over the idle loop - is very attractive. I have never managed to tweak it so it would behave decently in real life. Smartass is a complete rewrite of the code plus more. I think its a success. Performance is on par with the "old" minmax and I think smartass is a bit more responsive. Battery life is hard to quantify precisely but it does spend much more time at the lower frequencies.
Smartass will also cap the max frequency when sleeping to 352Mhz (or if your min frequency is higher than 352 - why?! - it will cap it to your min frequency). Lets take for example the 528/176 kernel, it will sleep at 352/176. No need for sleep profiles any more!
Click to expand...
Click to collapse
I'm still only maxed out 691!!!!
That means that SOMETHING(probably the ramdisk) is overwriting the scaling_max_freq.
You can manually change it via:
Code:
echo "768000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
MY GPS DOESN'T WORK!!! AHHHH!!!
First, try this: Here
Relax, chances are you've tweaked your CFS, either with the Battery Tweak or manually
Fix it:
Code:
mount -t debugfs none /sys/kernel/debug
echo "NORMALIZED_SLEEPER" > /sys/kernel/debug/sched_features
echo "NEW_FAIR_SLEEPERS" > /sys/kernel/debug/sched_features
How do I change my cpu governor
First, list all the available scaling governors:
Code:
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
Then, echo the name of the governor to scaling_governor:
Code:
echo "nameofgovernor" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
How do I utilize the Diag Function?
hotaru said:
install DmService.apk.
Code:
echo 11>/dev/qct_diag_enable
it won't show anything on the screen, but adb should stop working for a second or two.
if you're unable to connect with cdma workshop or qpst, reboot and try step 2 again.
Click to expand...
Click to collapse
-Thanks Hotaru.
What is msmsdcc_fmax ?
The msmsdcc_fmax is literally "The maximum frequency (in Hz) used by the SD controller"(http://www.androidonhtc.com/wiki/Boot_Options)
Killing the powersave also makes it stick to the fmax setting, without having to 'ramp up' over time.
Got a reboot?
Please grab the last_kmsg from the kernel and upload it so I can see what's causing it
Code:
adb remount
adb pull /proc/last_kmsg last_kmesg.txt
What is the 'Interactive' CPU Governor:
This governor is designed for latency sensitive workloads, UI interaction for
example.
Advantages:
+ significantly more responsive to ramp cpu up when required (UI interaction)
+ more consistent ramping, existing governors do their cpu load sampling in a
workqueue context, the 'interactive' governor does this in a timer context, which
gives more consistent cpu load sampling.
+ higher priority for cpu frequency increase, rt_workqueue is used for scaling
up, giving the remaining tasks the cpu performance benefit, unlike existing
governors which schedule rampup work to occur after your performance starved
tasks have completed.
Existing governors sample cpu load at a particular rate, typically
every X ms. Which can lead to under powering UI threads when the user has
interacted with an idle system until the next sample period happns.
The 'interactive' governor has a different approach. Instead of sampling the cpu
at a specified rate, the governor will scale the cpu frequency up when coming
out of idle. When the cpu comes out of idle, a timer is configured to fire
within 1-2 ticks. If the cpu is 100% busy from exiting idle to when the timer
fires then we assume the cpu is underpowered and ramp to MAX speed.
If the cpu was not 100% busy, then the governor evaluates the cpu load over the
last 'min_sample_rate' (default 50000 uS) to determine the cpu speed to ramp down
to.
There is only one tuneable for this governor:
/sys/devices/system/cpu/cpufreq/interactive/min_sample_rate:
The minimum ammount of time to spend at the current frequency before
ramping down. This is to ensure that the governor has seen enough
historic cpu load data to determine the appropriate workload.
Default is 5000 uS.
Signed-off-by: Mike Chan <[email protected]>
Change-Id: I686d2f57b0ed9cbb73217403b7438be5719588d2
I WANT 490+ on Quadrant Scores!!!!
I don't recommend doing this at all, but if you feel the need to show off:
1. Flash the BFS kernel up top
2. Run this in shell
Code:
adb remount
adb shell
echo "0" > /proc/sys/vm/overcommit_memory
echo "5000" > /proc/sys/kernel/rr_interval
echo "90" > /proc/sys/kernel/iso_cpu
echo "cfq" > /sys/block/mtdblock3/queue/scheduler
echo "10" > /proc/sys/vm/vfs_cache_pressure
3. Overclock yourself to max 768 with oc widget
4. Run Quadrant until you feel that your ego is stroked enough.
5. ????????
6. Profit.
Personal Modded collin_ph BatteryTweak V2
Changes
Added Temperature Management system.
Integrate a simple way to override frequencies on based on battery temperature. Works great, will need a bit of polish later down the line.
No need to echo frequencies twice during polling. So don't allow the regular frequency changes during override. Also add MinOverrideFreq as a customizable, which allows us to do a check between min and max to not have any problems. Also remove last trace of LEDfix
Fix MaxTempEnable. Previously, trying to set n caused no change. Probably due to Android being homo in shell. Everything works now.
Use interactive scheduler as default. Change min frequency to something that actually exists on the freq table.
EITHER USE THIS OR OC WIDGET. SetCPU still has way too much overhead IMHO for what it's uses are.
Download BatteryTweak-DecaMODv2.2
MD5: 9c677f0a618e14421053a6ab5b7d4bc3
Last Update: 10/24/2010 7:18 CST
Recommended Settings for Tweak:
For BFS Kernel:
CPU Governor: Ondemand
I/O Scheduler: deadline/cfq
For CFS Kernel:
CPU Governor: Interactive
I/O Scheduler: deadline/noop
Good work DEC
Sent from my HERO200 using XDA App
Nice! So this will help speed, stability and battery life. I'm on it.
Sent fopm my Froyo Hero using xda app. Me:1 Sprint: 0
I'm using the collin batery twrak..xan I atill use this?
Sent from my HERO200 using XDA App
edisonalvarez said:
I'm using the collin batery twrak..xan I atill use this?
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
Yep, I've been using Beta7 myself, everything works fine. I might make a tweaked Beta10 with the updated fixes that has presets fro 710 and 768 sometime this week.
So aside from being uncapped at 691mhz, what other benefits does it get from the changes you made?
Decad3nce said:
Yep, I've been using Beta7 myself, everything works fine. I might make a tweaked Beta10 with the updated fixes that has presets fro 710 and 768 sometime this week.
Click to expand...
Click to collapse
Cool..thanks...gonna run it now...thanks for ur work!
Sent from my HERO200 using XDA App
mrinehart93 said:
So aside from being uncapped at 691mhz, what other benefits does it get from the changes you made?
Click to expand...
Click to collapse
Just added that to post 2.
Decad3nce said:
Just added that to post 2.
Click to expand...
Click to collapse
Ok, so what I take from that post is that it will increase the general speed of the device, as well as possibly save battery by "underclocking (if you will)" the SD card controller and increasing the efficiency of the task scheduler? Awesome.
My phone doesn't run well @ 768 so I reinstalled setcpu and took it down to 710. Is this ok to do?
I ran linpack at both settings and I barely get over 3, on DD2.7 I was getting around 5. I did notice linpack has been updated since I ran it on DD, maybe that's the difference?
Quadrant is steady @ about 400.
to see linpacks in the 5's, you will need JIT on
danaff37 said:
to see linpacks in the 5's, you will need JIT on
Click to expand...
Click to collapse
Major facepalm! I forgot all about enabling that.
I put up a GPS friendlier kernel for people who might be having problems with GPS stability.
See post #1 for download, post #2 for explanations
If I flash this is there a way to uninstall it through terminal or adb?
Sent from my Froyo Hero using the XDA app
before I flashed CM6-RC1 I was running a rom with a kernel to 710...my phone ran great. Should I DL this kernel and use overclock or setcpu and put it up to 710? any suggestions on settings? I never really use setcpu or overclock before.
Thanks in advance.
stricklerjosh said:
before I flashed CM6-RC1 I was running a rom with a kernel to 710...my phone ran great. Should I DL this kernel and use overclock or setcpu and put it up to 710? any suggestions on settings? I never really use setcpu or overclock before.
Thanks in advance.
Click to expand...
Click to collapse
Doesnt appear so, but you have 2 easy options. Either nandroid before so you can flash back. Or just flash the ROM again and it will replace the kernel.
will this work with dd2.8?
lv2bll said:
will this work with dd2.8?
Click to expand...
Click to collapse
No, and darchdroid is already overclocked to 768 anyway
Sent from my HTC Hero running froyo: take that, Sprint!
Thanks for working on this uncapped kernel, bro. It rocks that those of us who are crazy about speed have a trustworthy fix for our habit.
Appreciate it!
--DC
hi guys...Greets from Italy! i've builded this kernel for getting optimal performances with my acer liquid glow. This can be used with Stock rom and with Vache's glowing liquid rom.
HOWEWER , SINCE THAT SOME USERS REPORTED THAT VACHE'S KERNEL(LIKE ME) DOESNT' WORK ON SOME DEVICES, DO A NANDROID BACKUP WITH CWM RECOVERY FIRST.
Flash this .zip with recovery
This is the changelog
V1:
Added lazy, smartassv2, intellidemand, lagfree governor (change that with nofrills or setcpu)
Added Sio and vr I/O schedulers (change with nofrills or setcpu also that)
Added a Cortex A5 optimization
fixed wrong format for Adreno200 (first was RGBA_8888 now it's RGB565 that's is handled well with this GPU)
increased read-ahead values
new memory allocator : SLUB
improved the performances of memcpy and memmove of the general version
Click to expand...
Click to collapse
Download Link: https://hotfile.com/...nel_v1.zip.html
Sources are here: https://github.com/l...uid_Glow_Kernel
I also want to thanks Vache for his hints and porting recovery to this device. Without his help this couldn't be possible.I'm also starting to work to jelly bean update but i have no time for now
Links are not good with the '...'
[EDIT] Found correct link in other forum, will try it soon
Some random reboot, directly in fastboot mode, but very rare and less than Vache's kernel. If I do a clean cache and dalvik, it's ok for 3 weeks, and boom, reboot.
New Edit: I found this thread with V3 version, will try it soon:
Hello Everyone!
My name is Icaros7 ([email protected] / [email protected])
Kor Ver. Post on cafe.naver.com/optimusq2life/12143
It's a Custom Kernel for LG-LU6500 137 F/W
This is very low. But is expected to continue to be update!
Feature
+ Update 04
- zRAM, zCache Supprot
- Add sakuractive, pegasusq, ondemandx Governer
+Update 03
- Add Some Governer
- Show Charging Animation Bug Fixed
- Delete Temp Files on RAMDISK
- Add cfq I/O Governer
- Add 750Mhz
- Edit Touch LED UV (Thanks to 백원만)
- CWM Update zip Script Edit
+ Update 02 / 01
- Add Lazy, Minmax, SmartassV2, Powersave
- Delete Some governer
- GPU OC Fixed (Thanks to 백원만)
- init.d Apply Bug Fix
- Add Voltage Settings
- Add deadline / sio I/O Governer
- Add about 100MB RAM ensure available (Thanks to 백원만)
- LG OpenSource's Battery Temple Bug Fix (Thanks to 백원만)
- LG OpenSource's Plug USB Bug Fix (Thanks to 백원만)
How to Install
1. Go to CWM Recovery (Use App or Power + Vol. UP)
2. Select Install zip form sdcard
3. Select Install zip form (internal) sdcard (if you download in internal sdcard, select internal sdcard)
4. Select icaroskernel_build20_lu6500_update04.zip
5. Select Yes
Download
Mediafire : mediafire.com/?fp6jrc0ut941n41
Use this at your own risk. I wont be responsible for any damage of your phone.
THis will only work in stock 4.2.2 ROM or any stock based ROM.
Kernel Features
1) Some cpu governor added.
2) Some I/O scheduler added.
3) Multi core scheduler support.
4) Fastcharge enabled.
5) LZO compression method.
Cpu governors
1) Intelliactive
2) hotplug
3) smartassV2
4) conservative
5) ondemand
6) powersave
7) interactive
8) performence
I/O Schedulers
1) noop
2) deadline
3) cfq
4) zen
5) vr
6) sio
7) sioplus
Default cpu gov = intelliactive
Default I/O scheduler = sio
Go to the download tab to download . Flash the tar file via odin. Or download the zip and flash it via custom recovery.
YOu can change the governor and scheduler by any kernel optimizer app. I use kernel adiutor.
XDA:DevDB Information
[Kernel][BlackHorse] for Samsung GT-7582 and GT -7580, Kernel for all devices (see above for details)
Contributors
Yasinarefin
Sources = coming soon
Version Information
Status: Beta
Created 2015-04-27
Last Updated 2015-04-27
question
how much can i overclock or underclock by this kernel? and any known bugs?
zip is not flashing. showing error.
---------- Post added at 12:10 PM ---------- Previous post was at 11:57 AM ----------
mushfiqsaif said:
how much can i overclock or underclock by this kernel? and any known bugs?
zip is not flashing. showing error.
Click to expand...
Click to collapse
any solution?
Thanks and nice job
thanks bro! great kernel
hotplug
where is the download link ?
How to flash this kernel.i wanted to flash this using cwm....is it simple as like flashing a zip on cwm.
With CWM zip can't flashed, showing error (Status 0) . Installation aborted.
I try Flash the tar file via odin.
Thanks.
Download link
Where is the download link?
About AnyKernel:
AnyKernel is a template for an update.zip that can apply any kernel to any ROM, regardless of ramdisk. -Koush
The concept of AnyKernel has been around for awhile, (originally by Koushik Dutta/ClockworkMod,) which allowed a device-specific kernel zImage to be flashed over device-specific ROM and use the ramdisk that came with the ROM to reduce the chance of any issues arising from the custom kernel pairing.
Jelly Bean:
Jellybean kernel can used to all Jellybean based ROM like AOSP, MIUI, Lewa, Etc
3.4.5 Jelly Bean kernel by @kirito9:
Features:
1) Added Governers
2) Added Double tap to wake
3) Added Sweep to wake
4) Many more
Link:
https://mega.nz/#!S4cAzY7Q!Mxr6zwbTUnbpH3QZA8jhOlgWh6WIQketaiJ08Ci7G3M
3.4.5 OverClocked Jelly Bean kernel by @chijure:
Features:
1) Based on the STOCK Source OT_4015D_20140610.tar.xz from Alcatel
2) Toolchain: Built with GCC 5.2 toolchain from Linaro
3) Linux: 3.4.5
4) CPU OC: Up to 1.4GHz
5) Thunder Sonic Sound Control Engine
6) Thunder Charge Fast Charge Driver
7) Thunder Quake Engine 1.0 - Vibration Intensity Controller for MTK vibrators
8) Swap
9) KSM: Kernel Same-page Merging enabled
10) Dynamic management of dirty page writeback
11) Dynamic Fsync: Faux123's Dynamic File Sync v1.5
12) Sweep2wake
13) Doubletap2wake
14) Lowered swappiness (60 -> 70)
15) Optimized AES and SHA1 routines for ARM cpu architecture
16) Optimized SLUB memory allocator
17) Enabled arch power
18) Disabled CRC check in MMC for 30% extra performance with IO
19) Block:
•Added SIO IOScheduler
•Added BFQ IOScheduler
•Added fiops scheduler
20) Disabled Gentle fair sleepers
21) NOATIME and NODIRATIME
22) Dynamic management of dirty page writebacks
23) Mali:
•GPU cache Optimizations
•Increase L2 cache max read size
•Disable state tracking
•Reduce GPU utilization timeout
•Increase kernel memory buffer size
24) Additional Governors:- SmartassV2
25) Additional I/O Schedulers:
•NOOP
•BFQ
•FIOPS (by default)
•SIO (SImple Ondemand)
Link:
https://mega.nz/#!C99z3JQR!7ECpzlgKzjWSY11ayCAbqLw-tIzRlHlv9PyZOxStu6I
KitKat:
KitKat kernel can used to any KitKat ROM such as AOSP, MIUI, CM 11. This kernel also used in Lollipop ROM such as CM 12.1 and CM 12.1 Based ROM. Also used in Marshmallow ROM such as CM 13.0 and CM 13.0 based ROM and AOSP 6.0.1 ROM. This not used in MTK based 5.1 Lollipop ROM
3.4.113 OverClocked KitKat kernel by @getakgt1:
Features:
1) Upstreamed to 3.4.113
2) OverClocked to 1.4GHZ
Link:
https://mega.nz/#!3pl2FJqR!zD4UnHbt16CVqsot3uqULTaANCWW4FK4ubmyKO5NwNM
Instructions:
1) Download any kernel zip
2) Place it in SDCard
3) Reboot to recovery
4) Flash Zip
5) Reboot to system
6) Done
Credits:
1) @kirito9
2) @chijure
3) @getakgt1
4) Team Dev Pop
5) GETAKGT1
6) Team Panther
7) @osm0sis
8) @Koush