[KERNEL][CM7]KernelSandersCM-v5(with zipalign!)[GPL][UPDATE-02/26/12] - Epic 4G Android Development

KernelSandersCM-v5​
I've long been a fan of earthbound's Samurai kernels, but recently I've been putting together my own kernel mostly for my own use. Since I've noticed he is busy with real life lately, I've decided to release my kernel since there seems to be demand for a kernel with voodoo sound/color for the CM7 nightlys. So without further ado I present KernelSandersCM.
Warning: Overclock at your own risk. Its not my fault if this causes you to die in an unfortunate pants fire!
Features:
Forked directly from the CM7 kernel 'android_kernel_samsung_victory' for easy merging of their changes
OC/UV (some from samurai.cm github, plus my changes)
Clock rates for all clocks (armclock and others) have been fixed for all speeds.
100/200/400/600/800/1000/1100/1200/1300/1400/1500
60Hz screen
Tuned some cpufreq governors (some earthbound, some IBM)
Lagfree governor added
V(R) i/o scheduler added and set as default (A benchmark and other sources say its the best)
Voodoo Color (copied from samurai.cm github)
Voodoo Sound (mostly copied from samurai.cm github, some minor changes)
Kexec (from the CM7 kernel git, this is in nightly 12)
zipalign user apps on boot, zipalign system apps on kernel install
Tun/Tap, CIFS, FUSE built it
In sync with CM7 official kernel
My plans with this kernel are to keep it fairly close to the cyanogen mod kernel so it simple to keep working with the nightlys. I will probably add a few more features as time permits, and I will consider any reasonable requests. When not using the overclocking features much, I have been having great battery life on this kernel, and I plan to try to keep it that way, if not improve it. I have no plans to include any gpu overclocking or screen rate changes since I see no effects from them other that reduced battery life, and I feel like I should leave that to earthbound since I am sure he put lots of work into getting it to work.
Instructions:
Download the kernel (or compile your own if you're feeling adventurous)
Get it on your sd card somehow (usb, adb, download from phone)
Reboot to recovery (long press power, use rom manager, or 3-finger method)
Clear cache and dalvik-cache
Flash the zip
Reboot (it will take a few minutes)
Download Voodoo Control from the market if you need it.
What kernel works with what nightly?
(*) means untested, but it should work.
9: v1, v2*, v3*, v4*
10: v1, v2*, v3*, v4*
11: v1, v2, v3*, v4*
12: v1*, v2, v3*, v4*
13: v1*, v2, v3, v4*
14: v1*, v2, v3*, v4*
15: v1*, v2*, v3*, v4*
16: v1*, v2*, v3, v4*
20,21,22,23: v1*, v2*, v4*
25: v1*, v2*, v4,v5
45: v5
Downloads:
Version 5
KernelSandersCM-v5.zip - 5.69 MB
Version 4
KernelSandersCM-v4.zip - 5.7 MB
Version 3 (bluetooth broken)
KernelSandersCM-v3.zip - 5.7 MB
Version 2
KernelSandersCM-v2.zip - 5.5 MB
Version 1
KernelSandersCM-v1.0.zip - 5.5 MB
Source:
GitHub - Watch commits here to see what's coming in the next version.
Thanks:
The entire EpicCM team - These guys have been doing some amazing work and deserve a lot of thanks for making this phone relevant again.
Earthbound[IAP] - Much thanks to him for all the hard work he puts into his Samurai kernels, which made several of this kernel's features much easier to implement.
Supercurio - For creating Voodoo Sound/Color for Galaxy S phones.
All the other epic people who helped make this phone so much better than samsung could.

A few notes on overclocking:
While cyanogen has built in support for overclocking, it doesn't enable disabled frequencies or support undervolting. If you are going to go over 1100MHz and/or want to undervolt, you need another program. I recommend Voltage Control. Its made by an XDA member and is on the market. One downside of Voltage Control is that it will not set the i/o schedule for the mtd partitions on boot, but will for sdcard and bml.
If overclocking, I do not recommend going higher than 1300. The stock max voltage is 1350 mV, and you will reach this at 1200 without undervolting. 1300 runs at 1400 mV, not a large jump. 1400 and 1500 run at 1450 mV and 1500 mV and don't seem to undervolt well without freezing or losing performance. If you decide to go over 1300 anyways, you have been warned.
Switching to conservative governor will give you better battery life, but will make the phone lag at times. You might try disabling some frequencies to counteract that. Ondemand (the default) or lagfree will be faster, but battery life will likely be worse. Interactive or smartassV2 are somewhere in the middle. Performance stays at max speed, powersave at min speed. I wouldn't use interactiveX, it seems to have problems getting stuck at low speed after sleep.
Important: Do not disable 800 MHz! It is required for deep sleep to work properly.
Undervolts that work for me:
1500: -0
1400: -0
1300: -75
1200: -50
1100: -50
1000: -50
900: -50
800: -75
600: -75
400: -100
200: -100
100: -150
Chip fabrication on the small scale of modern chips is an imperfect process. Each wafer contains many chips. Some work better than others; some don't work at all and are trashed. These undervolt values will vary from chip to chip, but might serve as a starting point.
Changelog:
Version 5:
Updated ramdisks to nightly 45, no other changes
Version 4:
Synced with official CM7 kernel, should fix Bluetooth.
Version 3:
Added zipalign
Added Tun/Tap, CIFS, FUSE
Version 2:
Added V(R) i/o scheduler and set as default
Fixed overclocking (1100 now different from 1200. 600, 900, 1300, 1500 have correct clocks and dividers set)

Thanks much. Just started using CM7 and having a great time.

nice , about to take a stab at it

This looks very promising.
Damnit. 3rd place.
Great work I will give this Kernel a try. Thank you for all of your hard work.

So, will this be AS up to date as the nightlies?
Sent from my SPH-D700 using Tapatalk

Crispy or Original?
me like spicy!

Thanks so much man I was one of the nagging users bout to flash now thanks thanks thanks
Sent from my SPH-D700 using XDA Premium App

lost_ said:
Crispy or Original?
me like spicy!
Click to expand...
Click to collapse
DANG IT !!!! U Beat Me 2 The Punch Line ..... LOL !
THX 4 Your Contribution to the Community zman0900 ! ​

I'm impressed good job
Sent from my SPH-D700 using xda premium

Can you try to add BLN?
That is backlight notifications. It uses our bottom buttons as notifications. I can gather up some info if needed. Thanks for considering!
Sent from my SPH-D700 using XDA App

I have been using Shadow, and I like that it doesn't have voodoo sound, so I can use DSP without any lag or issues, any chance you could remove voodoo sound, if not thanks anyways, I know it takes some work to put together a working kernel

I guess SLQB only likes AOSP-based ROMs.
OP, you may want to offer a SLAB version - other kernel devs I've talked to said SLQB offers, well, nothing, while SLAB does. YMMV, but have a look.

So use that one, instead of getting this guy to pull features out of the one kernel with a working voodoo sound?

Samurai has mic feedback.

Boy, this thread took a complete turn. What did you put in the seasonings?
On, a completely unrelated note from the previous conversation, I am about to install over CM7 nightly 11
Sent from my Cyanogenmodded Epic 4G with working 4G

hazridi said:
It's not voodoo is better.
It is Voodoo is absolutely required for me because DSP Manager lacks the amount of gain that is required for me to FREAKING HEAR ANYTHING out of my headphones.
---------- Post added at 03:00 PM ---------- Previous post was at 02:54 PM ----------
No, I will not STFU -- I need voodoo sound to hear with my severe hearing loss and I absolutely am going to fight for my goddamn ability to hear on the phone.
Click to expand...
Click to collapse
Wow maybe try buying the full version of voodoo from the market that loads the sound driver. Probably be cheaper than blood pressure medication.

presumedsublime said:
Wow maybe try buying the full version of voodoo from the market that loads the sound driver. Probably be cheaper than blood pressure medication.
Click to expand...
Click to collapse
Exactly, when voodoo is removed it can be replaced and easily for that matter ($3.50), where as when it is added to the kernel there is no option, you can't use DSP properly (which is one of the base features of CM7)
And with that I am done arguing the point...

hazridi said:
Yeah, it's awesome having 90dB hearing loss and getting mocked for it on the forums. Eat ****.
And actually the full version of voodoo sound never works properly with nightlies. Don't think I haven't tried.
Click to expand...
Click to collapse
I'm on nightly 8 and it does. I think noobnl added the "extensions" or whatever
Sent from my SPH-D700 using Tapatalk

Thanks so much Zmann! This is great! I've been wanting Vodoo Color on the Nightlies. Going to flash it now with 11.

Related

[KERNEL] 2011-10-30 - x99kernel OC/UC/UV 1.2/1.8GHz smartass - Sense & CM7/AOSP

First things first...
MAKE A NANDROID BACKUP.
I take NO responsibility for ANYTHING that goes wrong with your phone, life, job, home, car, sex life, dog, cat, turtle, pet rock, etc. as a direct or indirect result of your use of this kernel.
Features of kernel for Sense ROMs:
Based on HTC source code - this should work on any stock-ish ROM
Features of kernel for CM7 ROMs:
Based on Toast's fork of the Cyanogenmod kernel
Common features:
BFQ I/O scheduler
Smartass governor
Undervolted (battery savings)
Overclocked - up to 1.8GHz (WHY?!? lol)
Underclocked - down to 184Mhz (battery savings)
By default, the kernel will clock up to 1.2GHz with the smartass governor. I personally just flash the kernel and run it as-is. If you want something different, use an overclock utility like "No-frills CPU Control". Be aware that some of these utilities run background processes and SUCK battery life.
Troubleshooting:
ON CM7.0.2
You will need to flash the kernel *AFTER* booting up the ROM for the first time. If you do a clean install of CM7.0.2 + the x99kernel, turning on wifi may make your phone go into a "boot loop" (restarting the shell, over and over).
If you're stuck in a boot loop, go into recovery (yank battery then vol down + power OR "adb reboot recovery"), flash the 7.0.2 file again, let it boot, make sure Wifi works, then go back into recovery and flash the x99kernel.
If anyone has further input on this, I'm all ears.
My phone is locking up!
Try a slower clock speed and/or a different governor. I have run this kernel reliably at 1.55GHz for a long time, but different phones can have different results. I have personally experienced lock-ups at high speeds with the interactive governor. Again, I have been running this kernel "as-is" without making any clock/governor changes... IMO, 1.2GHz is plenty fast for day-to-day use.
My phone is running hot and/or the battery is draining quickly!
Most likely, you're running the CPU at a HIGH speed and/or there are some over-active processes.
I suggest downloading OSMonitor from the market to see what processes are active. In the options, you can choose to sort the process list by CPU Load and also check the "Order" box to have the active processes shown at the top of the list. The "Misc" tab will show the current clock speed and phone temperature... you can also use it to change the speed or governor if you'd like.
"adb logcat" can reveal a LOT about what your phone is doing in the background.
Credit:
bcnice20 - I followed a lot of what he was doing with his own kernel, but removed bits that didn't seem to work right for me.
toast - CM7 kernel is forked from his github
cloverdale - Proper root in Sense kernel
Old, out-of-date changelog:
20110414
Step up to 2.6.32.36 from 2.6.32.33 in CM7 kernel
20110411
camera fix for bcnice20's Desire ROM in Sense kernel
20110408
Proper root in sense kernel
20110404
Added BFQ I/O scheduler
Misc compiler tweaks
Added version for CM7
20110323
Lowered voltage on 184MHz and 245MHz speeds
20110322
Re-tweaked the smartass governor (see current strategy below)
Slightly increased voltages for CPU speeds between 768MHz and 1.55GHz (may help some people with lock-ups)
Added an additional low speed... 184Mhz (power savings?)
20110321
Tweaked the smartass governor
Added the interactive governor
20110318
Added two additional clock speeds between 768MHz and 368MHz. By default, the smartass governor can't make the "jump" down from 768MHz to 368MHz, because the step is too large.
Added conservative governor (untested, but should be OK).
Current smartass strategy:
Max sleep speed is 245MHz
CPU load under 35% = step down. Can step down as much as is determined to be OK at once.
CPU load over 70% = step up. Will make steps upward of as much as 384MHz at a time.
If CPU is at 100%, jump up to at least 1.1GHz.
Current versions:
Download x99kernel-GBSense-20111030 #1 FOR GINGERBREAD SENSE ROMs, NOT FROYO. No smartass governor yet. Uses improved flashing script.
md5sum: 1973b881d09796f16c2ab7a485c1b6df
Download x99kernel-cm7-20111003 #5(?) This is a 2.6.35 kernel! Slightly incomplete... no underclocking yet. Improved flashing script to avoid missing module files (fix WiFi errors). Max smartass sleep speed is 368Mhz.`
md5sum: a215897e48f26a1d03510f5e632f59bb
Download x99kernel-cm7-20110530 Still #2 This is a 2.6.32 kernel! For CM 7.0.3.1, CM7 nightly #87, or earlier.
md5sum: 9569a39d5746756b9f6a3a5bfcc63a9b
Download x99kernel-sense-20110411 #8 FOR FROYO SENSE ROMs, NOT GINGERBREAD.
md5sum: 2e94b170f3976cdc44dcecbfb21f9157
Old versions:
Download x99kernel-cm7-20110615 #4 This is a 2.6.35 kernel! Slightly incomplete... no underclocking yet.
md5sum: 1318f22887322cefca3ebafd44043bb6
Download x99kernel-cm7-20110611 #3 This is a 2.6.35 kernel! Slightly incomplete... no undervolting or underclocking yet.
md5sum: 3d36a18e7590dd29689d216028452137
Download x99kernel-cm7-20110414 #2
Download x99kernel-sense-20110408 Still #7
Download x99kernel-cm7-20110404 #1
Download x99kernel-sense-20110404 #7
Download x99kernel-20110323 for Sense #6
Download x99kernel-20110322 for Sense #5
Download x99kernel-20110321 for Sense #4
Download x99kernel-20110318 for Sense
Download x99kernel-20110317 for Sense
GPL Source
So 4g, gps, and all those other bugs are worked out on this kernel? And can i apply this over nfx stock rom?
Sent from my PG06100 using XDA App
Nice job on the kernel. Been running it for bout two hours clocked to 1.8ghz on performance in setcpu. Temp hasn't reached over 80. Hitting steadu 2400 in quadrant.
Sent from my fast as **** Evo Shift 4G using Tapatalk
so which one would u guys recommend? this or bcnices1.8 kernel? what are the differences
x99percent said:
MAKE A NANDROID BACKUP FIRST.
I take NO responsibility for ANYTHING that goes wrong with your phone, life, job, home, car, sex life, dog, cat, turtle, pet rock, etc. as a direct or indirect result of your use of this kernel.
Click to expand...
Click to collapse
My sex life instantly was overclocked!
Sent from HTC Knight using Mikrom..because CM7 got overrated like CWM
Lol
Sent from my Htc Evo Shift 4G
K running this now and hitting 53 linpack score 1.8 perf..pretty nice so far
Sent from HTC Knight using MikShift..because CM7 got overrated like CWM
DWake014 said:
So 4g, gps, and all those other bugs are worked out on this kernel? And can i apply this over nfx stock rom?
Click to expand...
Click to collapse
There *shouldn't* be any issues with 4G or GPS, since this is based on the original HTC source code. I have used it successfully over NFX's ROMs before... I think I'm running one of his now.
I have edited the orignal post to be a little more clear.
Just a heads up - the smartass governor doesn't scale below 768 mhz. I believe bcnice mentioned he had the same issue on his kernel.
Sent from my PG06100 using XDA App
so this kernel seems to have solved my issue with loading pages in the browser locking up the phone. Nice.
Is there anyway you can add the wired tether patch so I can just use that? I'm not to keen on switching roms and having to start over.
EVO Shift and XDA app
abanh said:
Just a heads up - the smartass governor doesn't scale below 768 mhz. I believe bcnice mentioned he had the same issue on his kernel.
Sent from my PG06100 using XDA App
Click to expand...
Click to collapse
With the smartass governor, it won't scale below 768 when the screen is on... that's for sure. (<-- NO LONGER TRUE)
If you use SetCPU, the "Info" tab will show you that the phone is happily running at 245MHz when the phone is off... and I'm not forcing it to 245MHz, either.
I actually posted in bcnice's thread about this issue, along with a solution for it. However, I do think that adding an extra step between 368Mhz and 768Mhz will help things.
EDIT: Added a couple of lower speeds, and things seem to be improved. Will post a new zip file during the day.
adamr240 said:
Is there anyway you can add the wired tether patch so I can just use that? I'm not to keen on switching roms and having to start over.
Click to expand...
Click to collapse
I don't think that's handled within the kernel... from everything I've seen, that's a patch to a file in /system/framework/
adamr240 said:
so this kernel seems to have solved my issue with loading pages in the browser locking up the phone. Nice.
Is there anyway you can add the wired tether patch so I can just use that? I'm not to keen on switching roms and having to start over.
EVO Shift and XDA app
Click to expand...
Click to collapse
If you're talking about wired tether for root users needing ip filtering, that's on in all kernels for the shift, even stock. However, some bug or difference in framework doesn't let or phones tether on that or wireless tether on 3g, only on 4g
Sent from my PG06100 using XDA App
DWake014 said:
So 4g, gps, and all those other bugs are worked out on this kernel? And can i apply this over nfx stock rom?
Sent from my PG06100 using XDA App
Click to expand...
Click to collapse
I'm running this over the nfx stock Rom, running smooth so far
I was running bcnice's kernel, but could only hit 1.1 max using on demand and the phone wold still hit 105 degress at times. Just installed Mik's rom and at this point am not using any kernel. Should this kernel work with this rom?
Aaargh! said:
I was running bcnice's kernel, but could only hit 1.1 max using on demand and the phone wold still hit 105 degress at times. Just installed Mik's rom and at this point am not using any kernel. Should this kernel work with this rom?
Click to expand...
Click to collapse
I use it so yes
Sent from HTC Knight using MikShift..because CM7 got overrated like CWM
Changelog:
20110318
Added two additional clock speeds between 768MHz and 368MHz. By default, the smartass governor can't make the "jump" down from 768MHz to 368MHz, because the step is too large.
Added conservative governor (untested, but should be OK).
x99percent said:
Changelog:
20110318
Added two additional clock speeds between 768MHz and 368MHz. By default, the smartass governor can't make the "jump" down from 768MHz to 368MHz, because the step is too large.
Click to expand...
Click to collapse
Nice update. Do you think you could also add the Conservative governor?
abanh said:
Nice update. Do you think you could also add the Conservative governor?
Click to expand...
Click to collapse
Done. Re-download the same link.
My frequency keeping ramping from 245 to 1.8 when idle, bouncing up and down on both ondemand and smartass. Flashed back to bcnice20's bfs bfq for now.. but I'd like to make this work as I love running the smartass gov. Any ideas?

[KERNEL/GPL/AOSP]ScaryKernel 3 1.9GHZ/Super uv/OC/UC/Scary gov/deadline

Read the thread before posting bugs or issues or questions
Table of contents:
Intro
Features/what this includes
Quirks of the kernel
Why it's labeled unstable
Disclaimer
Latest kernels
Methods of flashing
Benchmarks!
Instructions for using swap
Governor exlainations
Governor strategies
Recommended apps
Locating cpu% Eaters && other negative items towards battery life
FAQ!
Changelog
Stable/safe voltage kernels
Notes
Source
Credits
Old links, go here for other aosp roms with older video drivers & older builds
Intro: I'm scaryghoul
What this includes
It's scary!
Swap
Deadline I/o scheduler
Extreme undervolt
Overclocked & underclocked values
Sleepers disabled
Toast's new video drivers
Smartass governor
New Scary governor!
Tweaked conservative governor
and much more(All of toast's kernel)
Quirks of this kernel:
Sometimes when changing speeds with something like setcpu, they take a few seconds to actually clock to that speed, turning the screen on and off fixes it and clocks it right away though.
I would advise against using the speeds 66mhz->180mhz during real usage. It's a little laggy, but works =)
This doesn't work with sense based roms like mikshift, yes it needs to be said more than once
Why it's labeled unstable: So I don't get people poking me in the eyes with spoons if/when it freezes up. It actually works quite well, but since I heavily undervolted an undervolted kernel, it is bound to not be 100% stable(It is about 90% stable =P)
Disclaimer: What everyone else puts in kernel threads, about me not being responsible, ect.
Latest kernels
The voltages of the superUV will not work for everyone, if they don't work for you, then try the builds labeled stable
Recommended speeds 245-800mhz or 245-1ghz on scary governor && no setcpu profiles - I'll keep my current speeds in my signature.
Mirrors of kernels uploaded by VICODAN
Super SUV
http://www.mediafire.com/?47perl0d43n1nyr
Super Stable kernel
http://www.mediafire.com/?9qmtzuu35cpr8yz
Super Girly kernel
http://www.mediafire.com/?1s4z4y7bh78e04j
Methods of flashing
Joeykrim's "flashimage gui" app on the market using one of the zImage files from the zips. http://forum.xda-developers.com/showthread.php?t=1045797
Teamwin's "Kernel manager" app on the market. http://forum.xda-developers.com/showthread.php?t=1030500
Flashing via recovery using one of the zips here.
Benchmarks! - All done at 1.8ghz on cm7
Quadrant standard 1.1.7 - 3900 is the highest I've seen so far I believe.
Smartbench(2runs) - 2150/1850 - Mine were around there
Linpack(3runs) - 61, 63, 63 - These won't change much at all.
Instructions for using swap
For a swapfile do something like this.
dd if=/dev/zero of=$Swapfile bs=1048576 count=$Size
Where $Swapfile is the location of the file you want, and $Size is the amount of mb for swap you want to use.
Then type
mkswap $Path
swapon $Path
Replacing $Path/$Size with your own values of course, so if I wanted 20mb of swap I'd execute the commands
dd if=/dev/zero of=/sdcard/swapfile bs=1048576 count=20
mkswap /sdcard/swapfile
swapon /sdcard/swapfile
Governor exlainations
Toasty makes one transition to the max speed and stays there(benchmarks only usually)
Batterysave! sits at the bottom and when the cpu load increases past the threshhold it scales up to the next speed and takes another load sample and keeps doing that(best on battery life/performance ratio)
Ondemand sits at the bottom and when the cpu load increases past the threshhold, it scales ot the max speed then takes another load sample and scales down accordingly
Powersave makes one transition to the bottom speed and stays there
Smartass(Quoted from another author http://www.ziggy471.com/2010/11/07/smartass-governor-info ) - "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!"
Scary - A new governor I wrote based on conservative with some smartass features, it scales accordingly to conservatives laws. So it will start from the bottom, take a load sample, if it's above the upthreshold, ramp up only one speed at a time, and ramp down one at a time. It will automatically cap the off screen speeds to 245Mhz, and if your min freq is higher than 245mhz, it will reset the min to 120mhz while screen is off and restore it upon screen awakening, and still scale accordingly to conservatives laws. So it spends most of its time at lower frequencies. The goal of this is to get the best battery life with decent performance. It will give the same performance as conservative right now, it will get tweaked over time.
Governor strategies
Conservative - Upthreshold 85, downthreshold 60
Smartass - Sleep max 245760Hz, Ramp up at 384000Hz at a time, up threshold 90, downthreshold 60
Scary - Upthreshold 80, down threshold 45, sleep max 245760Hz, sleep min, 122880Hz
Recommended apps =)
Nofrills - App to manage I/O scheduler, clock speeds & governors.
Adw ex or go launcher ex
Colorize widgets - Great widgets to replace the lpp ones for those converting to other launchers.
AppMonster(pro or free) - Great backup utility, automatically backs up all apps.(I like it better than TB)
GPS Status - Great application for finding satalites near you and helping get a quick lock.
Any go dev team app - Great dev team, all their apps are worth looking at.
Frequently asked questions
Question: My phone is boot looping/not booting on the released suv, what do I do?
Answer: Your phone cannot handle the super undervolted values, you will need to flash the stable undervolted kernel or girly kernel
Question: My phone's graphics are running really lagishly, why is this happening? It worked fine on version 1.4 and before.
Answer: You are likely running an outdated version of your rom not supporting the new video drivers in version 1.5+, you will need to roll back to v1.4 and before
Question: My phone is running slow on the batterysave or scary governors, what do I do?
Answer: Set your minimum speed higher, those governors spend a lot of time at the lowest values
Question: My wifi/wifitether and other stuff is broken and wasn't before I flashed your kernel
Answer: READ THE BIG BOLD STATEMENT AT THE TOP OF THE THREAD THAT SAYS THIS IS NOT FOR SENSE
Question: How do I flash this?
Answer: You probably shouldn't be flashing a kernel labeled unstable if you don't know how
Question: I'm not getting the amazing battery life/benchmark scores that others are getting
Answer: Well, every device is different, so you may not be able to score as high as some others, but you should get close at least, and the battery completely depends on usage patterns
Question: My phone can't clock to 1.8ghz, or some of the other higher values but does fine on the lower ones
Answer: Every device is different and not all can handle the same speeds/voltages, you are probably better off staying away from the higher speeds, I enabled the speeds but hope that you all are mature enough to handle them
Locating cpu% eating applications.
When in ADB shell type the following
top |grep app
or if your rom supports it htop is much better(Without grep, so just "htop")
Then look for items with high amounts of cpu% while the phone is idle.
changelog:
Release1:
Swap support enabled
Unlocked 1.6-1.8ghz
Superundervolted
Release 2(1.1):
Unlocked 3 new underclock values
Took the undervolt farther.
Release 3(1.2):
Added hw3d
Release 4(1.3):
Removed interactive governor since it only causes trouble
Overall undervolt taken farther. May be unstable for some
Release5(1.4)
Disabled sleepers
Changed kernel name
Added an alternative voltage kernel
Release 6(1.5)
Cleaned up the source
Updated to toastcfh's new video drivers, greatly improved video performance and fixed a lot of issues with aosp video. - Thanks toast =D
Release 7(1.6)
Still cleaning up source
Addeed smartass governor && tweaked it, Down thresh: 70, up: 90
Added a real kernel name
Added lulz
Added two new clock speeds && modified voltage table
Tweaked conservative governor(Should be less erradict now, so scaling less==less power consumption==Yay =D)
Release 8(1.7)
Added Scarygov 0.5
Removed userspace governor
Release 9(1.7.2)
Tweaked scarygov to 0.6, removing a bug
Release 10(1.7.3)
Fixed a lag issue on scary governor by slightly optimizing the code.
Tweaked smartass.
Release 11(1.8)
Optimized scary governor's code
Safe voltage kernels && Stable kernels(come here if you can't handle the super undervolt
NEW VIDEO DRIVERS
1.8
ScaryKernel 1.8 stable http://dl.dropbox.com/u/15373824/ScaryKernel1.8safe.zip
Girly Kernel 1.8 stable http://dl.dropbox.com/u/15373824/GirlyKernel1.8safe.zip
1.7.3
ScaryKernel v1.7.3 stable http://dl.dropbox.com/u/15373824/ScaryKernel1.7.3Stable.zip
v1.7.2
ScaryKernel v1.7.2 safe uv http://dl.dropbox.com/u/15373824/Scarykernel1.7v2Safe.zip
v1.6
[UNTESTED]1.8Ghz safe voltage no sleepers http://dl.dropbox.com/u/15373824/ScaryKernel1.6SafeJesusNoSleep.zip
v1.5
[UNTESTED]1.8Ghz safe voltage no sleepers http://dl.dropbox.com/u/15373824/Scarykernel1.5StableJesus.zip
[UNTESTED]1.5Ghz safe voltage no sleepers http://dl.dropbox.com/u/15373824/Scarykernel1.5StableNoJesus.zip
OLD VIDEO DRIVERS(1.4) - For roms that don't support the new video drivers.
1.5Ghz safe voltage kernel no sleepers http://dl.dropbox.com/u/15373824/ScarykernelSafe1.5NoSleepers.zip
1.5ghz safe voltage kernel, sleepers enabled http://dl.dropbox.com/u/15373824/ScarykernelSafe1.5Sleepers.zip
1.8ghz safe voltage kernel, no sleepers http://dl.dropbox.com/u/15373824/ScarykernelSafe1.8NoSleepers.zip
1.8ghz safe voltage kernel, sleepers enabled http://dl.dropbox.com/u/15373824/ScarykernelSafe1.8Sleepers.zip
Notes:
Nothing for now.
Here is the source code for this build. I'll try to maintain it, I have a lot of kernel sources, but this will always be the latest release code, unless I state otherwise.
https://github.com/Scaryghoul
Credits: Toastcfh/bcnice20 - For 99.8% of their kernel source.
Dogejcr/Preludedrew - For helping me get my laptop setup for kernel compiling.
Testers - For flashing this even though it says unstable :-X
JoesephMother - For helping me unlock the new lower clock values && other kernel related matters =)
x99percent - I used his middle clock speeds between the 3xx->7xx values as a base(edited voltages) as well as used his smartass source.
I just got my shifty two days ago from having the heroc. It took me a full five minutes to root the sob. This kernel clocking it to 1.8ghz is sick. Good job!
On my Gingerbreaded Evo-Shifted Premium XDA App.
Nice work again scaryghoul. Quadrant scores are very reflective of real-world performance in this case.
Awesome numbers coming off this kernel.
Quadrant = 3104
SmartBench 2011 = 2095/1887
SmartBench numbers were incredible!!!!
It was unstable for me.. 1.8 frozen my phone and it wouldn't even boot up when I tried 1.5
crump84 said:
It was unstable for me.. 1.8 frozen my phone and it wouldn't even boot up when I tried 1.5
Click to expand...
Click to collapse
Just curious but what rom?
Sent from my PG06100 using XDA App
I used 1.5 SUV no sleepers and the responsiveness of the screen lags while scrolling in adw. I flashed back to the stock #29 on N#32 and the lag is gone
Sent from my PG06100 using XDA Premium App
CrashV2010 said:
I just got my shifty two days ago from having the heroc. It took me a full five minutes to root the sob. This kernel clocking it to 1.8ghz is sick. Good job!
On my Gingerbreaded Evo-Shifted Premium XDA App.
Click to expand...
Click to collapse
Glad you can handle it.
smoothtaste said:
Nice work again scaryghoul. Quadrant scores are very reflective of real-world performance in this case.
Click to expand...
Click to collapse
Thanks =O
jjb61 said:
Awesome numbers coming off this kernel.
Quadrant = 3104
SmartBench 2011 = 2095/1887
SmartBench numbers were incredible!!!!
Click to expand...
Click to collapse
Thanks for sharing here =)
crump84 said:
It was unstable for me.. 1.8 frozen my phone and it wouldn't even boot up when I tried 1.5
Click to expand...
Click to collapse
What rom and which kernel....
threeFiftyLi said:
I used 1.5 SUV no sleepers and the responsiveness of the screen lags while scrolling in adw. I flashed back to the stock #29 on N#32 and the lag is gone
Sent from my PG06100 using XDA Premium App
Click to expand...
Click to collapse
Interesting. Never had that issue, what range of speeds are you using?
JKILO said:
Just curious but what rom?
Sent from my PG06100 using XDA App
Click to expand...
Click to collapse
Scaryghoul said:
What rom and which kernel
Click to expand...
Click to collapse
The latest Cyanogen build, tried both Release 3 1.5ghz and Release3 1.8ghz. I downloaded them last night, I may have to tried the newest release.
crump84 said:
The latest Cyanogen build, tried both Release 3 1.5ghz and Release3 1.8ghz. I downloaded them last night, I may have to tried the newest release.
Click to expand...
Click to collapse
Kernels before 1.5 aren't meant for the newest Cm.
1.5+the testing ones with the New video drivers, are the ones meant for it.
Scaryghoul said:
Kernels before 1.5 aren't meant for the newest Cm.
1.5+the testing ones with the New video drivers, are the ones meant for it.
Click to expand...
Click to collapse
Well I guess that would explain why I was having issues..
crump84 said:
Well I guess that would explain why I was having issues..
Click to expand...
Click to collapse
Version 1.5+ is meant for cm7's nightlies from 31+.
When I first tried it, I felt a little lag but after I wiped it ran better than before.
Scaryghoul said:
Interesting. Never had that issue, what range of speeds are you using?
Click to expand...
Click to collapse
Stock default 245/1200.
I'll try to wipe and start fresh when I have time. I started Nightly #27 freshly wiped but haven't wiped since.
Just flashed the 1.8 kernel with the new video drivers and its a little funky on the latest evervolv. My phone can do 1.8 stable but it is probably the video drivers acting up, gonna flash the uv kernel next
Edit: flashed release 1.5 uv 1.8ghz and it was acting up as well, on release 1.4 @ 1.8 ghz and the phone is really smooth, very fast and very stable. On a side note my performance numbers blow compared to the cm7 numbers, 1400/1400 smart bench, 48 avg linpack and like 2k on quadrant.....?
Sent from my PG06100 using XDA App
threeFiftyLi said:
Stock default 245/1200.
I'll try to wipe and start fresh when I have time. I started Nightly #27 freshly wiped but haven't wiped since.
Click to expand...
Click to collapse
Okay.
DWake014 said:
Just flashed the 1.8 kernel with the new video drivers and its a little funky on the latest evervolv. My phone can do 1.8 stable but it is probably the video drivers acting up, gonna flash the uv kernel next
Sent from my PG06100 using XDA App
Click to expand...
Click to collapse
Try one of the earlier kernels then, there might be some sort of aosp framework change required to take use of the new video drivers, I can't confirm it without hearing from toastcfh but that's why I say v1.5+ is for cm7 nightly31+.
I may be completely wrong about it though.
DWake014 said:
Just flashed the 1.8 kernel with the new video drivers and its a little funky on the latest evervolv. My phone can do 1.8 stable but it is probably the video drivers acting up, gonna flash the uv kernel next
Edit: flashed release 1.5 uv 1.8ghz and it was acting up as well, on release 1.4 @ 1.8 ghz and the phone is really smooth, very fast and very stable. On a side note my performance numbers blow compared to the cm7 numbers, 1400/1400 smart bench, 48 avg linpack and like 2k on quadrant.....?
Sent from my PG06100 using XDA App
Click to expand...
Click to collapse
Edit for your edit.
Yes, as I just said I think there might be some sort of framework change required/recompile of evervolv to support the new drivers.
Are you sure the speeds are taking? As described in the quirks, it takes a few seconds to take a speed for some, and sometimes requires screen off/on. I usually don't benchmark until linpack hits 60+
crump84 said:
The latest Cyanogen build, tried both Release 3 1.5ghz and Release3 1.8ghz. I downloaded them last night, I may have to tried the newest release.
Click to expand...
Click to collapse
I thought that was the problem
Sent from my PG06100 using XDA App
Ran some more tests, this is on Evervolv with release 1.4. Set it on 1.8/1.8 performance and:
Linpack (12 runs): avg 61, few 62s
quadrant free ( 8 runs) : avg ~2600, high was 2900
smartbench (7 runs) : avg 1800/1800, high of 1800/1900
Scaryghoul said:
Okay.
Try one of the earlier kernels then, there might be some sort of aosp framework change required to take use of the new video drivers, I can't confirm it without hearing from toastcfh but that's why I say v1.5+ is for cm7 nightly31+.
I may be completely wrong about it though.
Edit for your edit.
Yes, as I just said I think there might be some sort of framework change required/recompile of evervolv to support the new drivers.
Are you sure the speeds are taking? As described in the quirks, it takes a few seconds to take a speed for some, and sometimes requires screen off/on. I usually don't benchmark until linpack hits 60+
Click to expand...
Click to collapse
I think you're right on Evervolv cause mine from yesterday works great but my testkern.a2 is crap on there.
Nice job on the undervolting. I couldnt even boot the newest one! As always, appreciate your help with all my n00b questions.
Toasted by Nightly.
DWake014 said:
Ran some more tests, this is on Evervolv with release 1.4. Set it on 1.8/1.8 performance and:
Linpack (12 runs): avg 61, few 62s
quadrant free ( 8 runs) : avg ~2600, high was 2900
smartbench (7 runs) : avg 1800/1800, high of 1800/1900
Click to expand...
Click to collapse
Thanks for sharing =D
smoothtaste said:
I think you're right on Evervolv cause mine from yesterday works great but my testkern.a2 is crap on there.
Nice job on the undervolting. I couldnt even boot the newest one! As always, appreciate your help with all my n00b questions.
Toasted by Nightly.
Click to expand...
Click to collapse
Thanks =)
---------------------------------------------------
1.6 is out for the unstable voltage.
I'll compile the stable ones later, already made the commits to the github for what I can remember I changed
Check the changelog people =D

[KERNEL/GPL/Sense]ScaryKernel 1.8 super uv/oc/uc/smartass/scary governor/bfq

PaulB007 said:
If you haven't been able to get past the HTC screen at boot and keep bootlooping, YOU MUST INSTALL BC'S 1.5 GHZ KERNEL FIRST AND THEN FLASH THESE KERNELS OVER THAT I also just flashed it straight off of a new Mikshift install and I got the bootloop until I did this. So if you guys didn't do this, then install bc's kernel and flash Scary kernel again.
Scaryghoul, I have installed your 1.8 suv successfully on Mikshift. This is great news. I knew it would work, but for some reason I just cant get it running on aosp. I will keep you updated on IRC or through this thread, I haven't seen you on today yet.
Click to expand...
Click to collapse
Link to bcnice20's 1.5ghz kernel: http://forum.xda-developers.com/showthread.php?t=941728
If that doesn't work, try flashing over his 1.8ghz kernel(This is what worked for me, bcnice, if you want me to take down this link just let me know.) - http://thebcblends.com/shift/kernels/Sense-1.8ghz-bfq-test1.zip
Table of contents:
Intro
Features/what this includes
Why it's labeled unstable
Disclaimer
Latest kernels
Instructions for using swap
Governor exlainations
Governor strategies
Recommended apps
Locating cpu% Eaters && other negative items towards battery life
FAQ!
Changelog
Stable/safe voltage kernels
Notes
Source
Credits
Intro: I'm scaryghoul.
What this includes
Swap
BFQ I/o scheduler
Extreme undervolt
Overclocked & underclocked values
HW3D enabled
Sleepers disabled
Smartass governor
New Scary governor!
Tweaked conservative governor
and much more(All of bcnice20's kernel)
Why it's labeled unstable: So I don't get people poking me in the eyes with spoons if/when it freezes up. It actually works quite well, but since I heavily undervolted an undervolted kernel, it is bound to not be 100% stable(It is about 90% stable =P)
Disclaimer: What everyone else puts in kernel threads, about me not being responsible, ect.
Latest kernels
The voltages of the superUV will not work for everyone, if they don't work for you, then try the builds labeled stable
Recommended speeds 245-800mhz or 245-1ghz on scary governor && no setcpu profiles
Scarykernel 1.8 suv - http://dl.dropbox.com/u/15373824/Sense/ScarySense1.8Suv.zip
Scarykernel 1.8 stable undervolt - http://dl.dropbox.com/u/15373824/Sense/ScarySense1.8Stable.zip
Instructions for using swap
For a swapfile do something like this.
dd if=/dev/zero of=$Swapfile bs=1048576 count=$Size
Where $Swapfile is the location of the file you want, and $Size is the amount of mb for swap you want to use.
Then type
mkswap $Path
swapon $Path
Replacing $Path/$Size with your own values of course, so if I wanted 20mb of swap I'd execute the commands
dd if=/dev/zero of=/sdcard/swapfile bs=1048576 count=20
mkswap /sdcard/swapfile
swapon /sdcard/swapfile
Governor exlainations
Toasty makes one transition to the max speed and stays there(benchmarks only usually)
Batterysave! sits at the bottom and when the cpu load increases past the threshhold it scales up to the next speed and takes another load sample and keeps doing that(best on battery life/performance ratio)
Ondemand sits at the bottom and when the cpu load increases past the threshhold, it scales ot the max speed then takes another load sample and scales down accordingly
Powersave makes one transition to the bottom speed and stays there
Smartass(Quoted from another author http://www.ziggy471.com/2010/11/07/smartass-governor-info ) - "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!"
Scary - A new governor I wrote based on conservative with some smartass features, it scales accordingly to conservatives laws. So it will start from the bottom, take a load sample, if it's above the upthreshold, ramp up only one speed at a time, and ramp down one at a time. It will automatically cap the off screen speeds to 245Mhz, and if your min freq is higher than 245mhz, it will reset the min to 120mhz while screen is off and restore it upon screen awakening, and still scale accordingly to conservatives laws. So it spends most of its time at lower frequencies. The goal of this is to get the best battery life with decent performance. It will give the same performance as conservative right now, it will get tweaked over time.
Governor strategies
Conservative - Upthreshold 85, downthreshold 60
Smartass - Sleep max 245760Hz, Ramp up at 384000Hz at a time, up threshold 90, downthreshold 60
Scary - Upthreshold 80, down threshold 45, sleep max 245760Hz, sleep min, 122880Hz
Recommended apps =)
Zdbox - Great toolbox app, just don't let it run in your notifications bar, it's a cpu eater
Setcpu/Nofrills - Apps that help manage your cpu/profiles/ect.(I don't use them but they're pretty okay)
Perfect system or Elixer widgets - Widgets that monitor battery, current, cpu%, cpu speed, and more(Great for battery guru's)
Adw ex - Smoothest/fasted/lightest ratio in a launcher I've seen so far, and least cpu intensive(for me that's a big thing so the cpu scales less)
Colorize widgets - Great widgets to replace the lpp ones for those converting to other launchers.
AppMonster(pro or free) - Great backup utility, automatically backs up all apps.(I like it better than TB)
GPS Status - Great application for finding satalites near you and helping get a quick lock.
Any go dev team app - Great dev team, all their apps are worth looking at.
Frequently asked questions
Question: My phone is boot looping/not booting on the released suv, what do I do?
Answer: Your phone cannot handle the super undervolted values, you will need to flash the stable undervolted kernel
Question: My phone is running slow on the batterysave or scary governors, what do I do?
Answer: Set your minimum speed higher, those governors spend a lot of time at the lowest values
Question: How do I flash this?
Answer: You probably shouldn't be flashing one of my kernels if you don't know how(Mine are unstable =P)
Question: I'm not getting the amazing battery life/benchmark scores that others are getting
Answer: Well, every device is different, so you may not be able to score as high as some others, but you should get close at least, and the battery completely depends on usage patterns
Question: My phone can't clock to 1.8ghz, or some of the other higher values but does fine on the lower ones
Answer: Every device is different and not all can handle the same speeds/voltages, you are probably better off staying away from the higher speeds, I enabled the speeds but hope that you all are mature enough to handle them
Locating cpu% eating applications.
When in ADB shell type the following
top |grep app
Then look for items with high amounts of cpu% while the phone is idle.
Changelog
v1.8 - Initial kernel release for sense
Safe voltage kernels
v1.8
Scarykernel 1.8 stable - http://dl.dropbox.com/u/15373824/Sense/ScarySense1.8Stable.zip
Notes:
No I can't take the overclock any higher, I think everyone who's had a chance to take a crack at this source has tried, and going any higher seizes up after a few seconds.
Here is the source code for this build. I'll try to maintain it, I have a lot of kernel sources, but this will always be the latest release code, unless I state otherwise.
https://github.com/Scaryghoul
Credits: bcnice20 - For 99.8% of his kernel source.
Dogejcr/Preludedrew - For helping me get my laptop setup for kernel compiling.
Testers - For flashing this even though it says unstable :-X
JoesephMother - For helping me unlock the new lower clock values && other kernel related matters =)
x99percent - I used his middle clock speeds between the 3xx->7xx values as a base(edited voltages) as well as used his smartass source.
I see nobody else has chimed in on this kernel yet.. I will install Mikshift tomorrow and report my findings.
Bummer, my phone is a wuss! I can't boot either one of these. Just sits on white screen. They look cool as hell though.
Sent from my PG06100 using Tapatalk
Yeah both versions don't work on mine.
If you haven't been able to get past the HTC screen at boot and keep bootlooping, YOU MUST INSTALL BC'S 1.5 GHZ KERNEL FIRST AND THEN FLASH THESE KERNELS OVER THAT I also just flashed it straight off of a new Mikshift install and I got the bootloop until I did this. So if you guys didn't do this, then install bc's kernel and flash Scary kernel again.
Scaryghoul, I have installed your 1.8 suv successfully on Mikshift. This is great news. I knew it would work, but for some reason I just cant get it running on aosp. I will keep you updated on IRC or through this thread, I haven't seen you on today yet.
Tried going strait from BC's still no go.
Sent from my PG06100 using Tapatalk
ozzie1p said:
Bummer, my phone is a wuss! I can't boot either one of these. Just sits on white screen. They look cool as hell though.
Sent from my PG06100 using Tapatalk
Click to expand...
Click to collapse
Did you flash over bcnice20's kernel?
PaulB007 said:
If you haven't been able to get past the HTC screen at boot and keep bootlooping, YOU MUST INSTALL BC'S 1.5 GHZ KERNEL FIRST AND THEN FLASH THESE KERNELS OVER THAT I also just flashed it straight off of a new Mikshift install and I got the bootloop until I did this. So if you guys didn't do this, then install bc's kernel and flash Scary kernel again.
Scaryghoul, I have installed your 1.8 suv successfully on Mikshift. This is great news. I knew it would work, but for some reason I just cant get it running on aosp. I will keep you updated on IRC or through this thread, I haven't seen you on today yet.
Click to expand...
Click to collapse
Thanks for clarifying that, I took down the links until we can get this working on several devices.
ozzie1p said:
Tried going strait from BC's still no go.
Sent from my PG06100 using Tapatalk
Click to expand...
Click to collapse
Did you try both of them over bcnice20's 1.5ghz? Not everyone can handle the suv one.
edit: Links back up! I need some testers to try the fix at the top.
Ya, I flashed right over the top of bc's. Ill try these new ones.
Sent from my PG06100 using Tapatalk
Scaryghoul are the reposted links any different than the old kernels you had up the first time? If not, the suv build would boot and run, but after using the phone after awhile for cpu intensive tasks it would lock up and require a battery pull. Im wondering if just a tiny bit more voltage would solve this problem.
On the stable build, it would run a minute or so and always lock up and require a battery pull..
PaulB007 said:
Scaryghoul are the reposted links any different than the old kernels you had up the first time? If not, the suv build would boot and run, but after using the phone after awhile for cpu intensive tasks it would lock up and require a battery pull. Im wondering if just a tiny bit more voltage would solve this problem.
On the stable build, it would run a minute or so and always lock up and require a battery pull..
Click to expand...
Click to collapse
Same links....and I see. If the stable build has the same issue as the suv, then it's not the voltage >.<
Oops. Thought they were new. At least I got the flash bug scratched. Flashed over both bc 1.5 and 1.8, no go.
Sent from my PG06100 using Tapatalk
Scaryghoul said:
Same links....and I see. If the stable build has the same issue as the suv, then it's not the voltage >.<
Click to expand...
Click to collapse
Whats the suspected culprit?
ozzie1p said:
Oops. Thought they were new. At least I got the flash bug scratched. Flashed over both bc 1.5 and 1.8, no go.
Sent from my PG06100 using Tapatalk
Click to expand...
Click to collapse
PaulB007 said:
Whats the suspected culprit?
Click to expand...
Click to collapse
I don't know so much for the freezes, but I believe that the booting has to do with me using my old voltages, and sense handling things differently than aosp >.<
I'll redo the voltage table later.
Just Wondering?
When Source Code is released will you make a suv kernel for the Gingerbread Update i loved it on froyo and mikshift and gave great battery life.
notsointeresting said:
Just Wondering?
When Source Code is released will you make a suv kernel for the Gingerbread Update i loved it on froyo and mikshift and gave great battery life.
Click to expand...
Click to collapse
The source code isn't actually the issue right now. Lack of motivation mainly, I would consider it more if I hadn't deleted my toolchain from my dev station, can't be bothered to get another one setup right now.
When I get motivated again I will, I honestly don't use my phone much anymore(maybe pick it up once or twice a day).
Scaryghoul said:
The source code isn't actually the issue right now. Lack of motivation mainly, I would consider it more if I hadn't deleted my toolchain from my dev station, can't be bothered to get another one setup right now.
When I get motivated again I will, I honestly don't use my phone much anymore(maybe pick it up once or twice a day).
Click to expand...
Click to collapse
Ah ok that sucks was really hoping for it but I understand thanks for the fast reply
Scaryghoul said:
The source code isn't actually the issue right now. Lack of motivation mainly, I would consider it more if I hadn't deleted my toolchain from my dev station, can't be bothered to get another one setup right now.
When I get motivated again I will, I honestly don't use my phone much anymore(maybe pick it up once or twice a day).
Click to expand...
Click to collapse
The ndk from google's web site has the toolchains needed to build gb kernel in it. The dl isn't terribly huge.
Sent from my PG06100 using XDA Premium App

[FROYO-Kernel-OC/UV-BLN] Infusion Kernel 2.0, now with 2 cores to choose from!

What started as a modification of the Community Kernel has grown into it's own beast....
As always, what you flash from me has not warranty as you have already borked your manufacturer's anyways.....
Now presenting the Choose your own Core version of Infusion Kernel. Since I couldn't deliver Dual core speeds, I thought that I would deliver 2 different cores!
Both Cores have the following....
BLN
Voodoo Sound 10
Voodoo Lagfix
TinyRCU
Insecure boot (ro.secure=0)
bfq and cfq schedulers
And now for the differences:
Core A has the standard frequencies
100
200
400
600
800
1000
1200
1400
1600
Nothing new here....
Core B however has
104
208
416
624
832
1040
1248
1456
1664
"Nani?" you say? (Nani is Japanese for what)
What I have done here is overclocked the whole CPU/GPU bus from the ground up. Thus making a more user oriented experience and preventing bouncing the GPU all over the place. It's still a beta status (since the 1664 can freeze with large amounts of playing games, but is stable for everyday use), so I would not expect as smooth as the standard 200 MHz bus, but if you feel daring, have fun!
Many thanks to:
Hardcore/Unhelpful: for the HUGE work with the SGS/Infuse processor
gtg465x: for the community kernel
supercurio: for Voodoo of course!
drowningchild/Entropy512: for the help and pushes to the kernel
You: for encouraging me and choosing my kernel!
Last but not least, the Insanity Crew:
crazynfo
gb96
Unknown #1
2sl0w
ookba
motumbo
(If you're not here yet, either the info hasn't went through yet, or I don't know who donated what.... Feel free to drop me a line. )
Previous Versons, known issues, ect.
Previous versions of the Infuse Kernel can be found here.
Known issues:
No CPU states in Core B.
Downloading now! Thanks!
----------
Working great. Loving these funky CPU clock speeds,
Sent from my SAMSUNG-SGH-I997 using XDA App
----------
TehInternetzOozer said:
Quadrant is crashing every few tests I take. When it finishes, I get always over 2300. It seems like it scores more when CPU is hot.
Click to expand...
Click to collapse
Careful with that though, I'm seriously thinking of taking the CPU/GPU from 208 to 206 due to 1664 being too close to my top speed of 1670 and freezing up 15-20 min into a graphically intensive game.... Great benches, with Nenamark 1.0 at 51 FPS (only top frequency and performance/Ondemand), but stability is key.
----------
BLN seems to be working well! Thanks!
Is there any difference between Core A and Infusion 1.8?
I tried to UV -150 and -100 across the board on core-a and got SOD both times anybody else try Uving
Sent from my Samsung Infuse with Infused 1.5.3
VinnyCh4se said:
I tried to UV -150 and -100 across the board on core-a and got SOD both times anybody else try Uving
Sent from my Samsung Infuse with Infused 1.5.3
Click to expand...
Click to collapse
too much uv on lower freqs, i dont even uv 100-200
good work on the kernel
Hmm that makes sense since I don't feel like destroying my phone I put everything back to normal and I'm gonna just wait and see
Sent from my Samsung Infuse with Infused 1.5.3
bedwa said:
What started as a modification of the Community Kernel has grown into it's own beast....
As always, what you flash from me has not warranty as you have already borked your manufacturer's anyways.....
Now presenting the Choose your own Core version of Infusion Kernel. Since I couldn't deliver Dual core speeds, I thought that I would deliver 2 different cores!
Both Cores have the following....
BLN
Voodoo Sound 10
Voodoo Lagfix
TinyRCU
Insecure boot (ro.secure=0)
bfq and cfq schedulers
And now for the differences:
Core A has the standard frequencies
100
200
400
600
800
1000
1200
1400
1600
Nothing new here....
Core B however has
104
208
416
624
832
1040
1248
1456
1664
"Nani?" you say? (Nani is Japanese for what)
What I have done here is overclocked the whole CPU/GPU bus from the ground up. Thus making a more user oriented experience and preventing bouncing the GPU all over the place. It's still a beta status (since the 1664 can freeze with large amounts of playing games, but is stable for everyday use), so I would not expect as smooth as the standard 200 MHz bus, but if you feel daring, have fun!
Many thanks to:
Hardcore/Unhelpful: for the HUGE work with the SGS/Infuse processor
gtg465x: for the community kernel
supercurio: for Voodoo of course!
drowningchild/Entropy512: for the help and pushes to the kernel
You: for encouraging me and choosing my kernel!
Last but not least, the Insanity Crew:
crazynfo
gb96
Unknown #1
2sl0w
ookba
motumbo
(If you're not here yet, either the info hasn't went through yet, or I don't know who donated what.... Feel free to drop me a line. )
Click to expand...
Click to collapse
great work
Sent from my SAMSUNG-SGH-I997 using XDA Premium App
Trying B kernel. Running great so far, Oc'd and Uv'd but not using 1664 because of too many phone freezes. I did see other people say that bln is working good but not for me. I wonder why?
Edit: bln working fine battery was really low and so phone was trying to conserve power, I think?
Sent from my SAMSUNG-SGH-I997 using XDA Premium App
Nice to have BLN again.
Sent from my Infuse 4G
Got a few SOD with this one.
no UV, both on ondemand and conservative 100Mhz 1664.
Thanks for all the hard works so far!
4% overclock seems kinda useless but I tried it anyway. it needs like 100mv more to run stable so I don't think I could get more than 1.7 if I needed to. it seems stable so far.
I wonder why nobody has ever added unhelpful's gpu overclock to hardcores oc/uv meathod. with the buss overclock this could give you 231mhz. maybe 260 (if my assumtions about how it works are correct) I'm not sure if the gpu could run at 250 or 260 but it would be fun to test.
ok. I have a question about the governors. I read that deadline is the best? or no? could somone plz explain the different governors?
Sent from my SAMSUNG-SGH-I997 using XDA Premium App
I don't like bln how do you disabled it?
Sent from my Samsung Infuse with Infused 1.5.3

[KERNEL][AOSP4.4/5.1/6.0/7.1] dkp - d2vzw & d2usc - 2/4/18

Welcome to decimalman's kernel playground!​
As the name suggests, dkp is a hodgepodge of features and tweaks that I wanted to play with. It should get excellent battery life without feeling sluggish. It doesn't come with its own tuner app, so pick your favorite. Personally, I like Trickster MOD and Kernel Adiutor, so I go out of my way to make things work in them. Most other apps should work, too.
Features:
Overclocking up to 2.1 GHz, but you'll need to increase your voltages to get there (if you can get there at all)
Underclocking down to 54 MHz, with stability improvements
Undervolting compatible with most apps
Fast charge without unplugging first
Glorious animations for the notification and softkey LEDs
Well-integrated erandom means you don't need CrossBreeder or Seeder (recent AOSP builds use ISAAC instead)
freelunch and tierservative governors for optimal battery life without sacrificing responsiveness
Automatic mpdecision and auto-hotplug are only enabled when needed
Adjustable minimum voltage for stability on finicky processors
Optimized UKSM to free up some extra memory
Code optimizations for size and speed
Compiler optimizations (-O3, LTO, and more) because faster is better
Donors: Thanks, everyone! Your generosity is much appreciated. :good:
drpenguino, 0xScott, vmancini3 (twice! :good, Ch4m3l30n, rompnit, Mystique, ryandubbz, techdog, ElwOOd_CbGp, ScOULaris, ZipAddict
Remember:
Nandroid!
last_kmsg and/or logcat or it didn't happen.
Other kernels have their own threads or forums. Discuss them there.
Image dumps (settings, battery life, whatever) belong inside [HIDE][/HIDE] (that's HIDE, if you're on the mobile app) tags.
Be silly. We're here to have fun.
Installation:
Reboot to recovery. I recommend that one recovery...you know, the one that flashes zips? I forget what it's called.
Flash dkp. Optionally, rename and flash dkp-vmin-XXX.zip (see below).
Reboot.
Undervolting:
Undervolting on dkp is more complex than other kernels. Some processors get unstable at lower voltages, so (like the stock kernel) dkp keeps the processor voltage above 1150 mV by default. I refer to this limit as the minimum voltage. In order to undervolt, you'll need to lower the minimum voltage: if you use Trickster MOD or Kernel Adiutor, just disable "Override Minimum Voltage", otherwise rename dkp-vmin-XXX.zip to e.g. dkp-vmin-600.zip (which would apply a 600 mV minimum voltage) and flash it. If this causes instability (crashes, audio/video glitches, etc.), try using dkp-vmin-XXX.zip to apply a higher minimum voltage (somewhere between 950 and 1050 mV seems to work well for most people).
Downloads:
MediaFire:
All Downloads
dkp-vmin-XXX.zip
Solidfiles (Make sure you have an adblocker!):
All Downloads
dkp-vmin-XXX.zip
Source: I'm always happy to see my code used, so cherry-pick away. I'll even put together feature patches if you ask nicely.
Bugs:
Let me know.
Stable changelog:
3/3/13: Initial release for d2spr. Didn't get around to making threads for other carriers.
4/8/13 (3.0):
FauxSound support
Strip more useless stuff
A few bonus optimizations
4/8/13 (3.4):
Port everything except erandom from 3.0
Enhance cpufreq for easier configuration
4/24/13 (3.4):
Bugfixes: better support for tuner apps, fixed potential SOD bugs, automatic mpdecision fixups, etc.
Lots of CM/CAF/Linux updates
Working AssWax governor
Trinity colors support
sio, zen I/O schedulers
erandom is back!
Built with a super-fancy Linaro GCC 4.8.1-dev compiler toolchain for maximum -O3 goodness
Probably lots more, but there's hundreds of commits to sort through...
5/29/13 (3.4):
Bugfixes: better overclocking support, better hwrng support, etc.
Updates: new CM updates, Linux 3.4.47, updated FauxSound driver, added invisiblek's new panel colors interface
Automatic auto-hotplug
New optimizations, including link-time optimization and an updated GNU+Linaro GCC 4.8.1-dev toolchain
6/14/13 (3.4):
Bugfixes: fix several critical bugs in the 5/29 release.
9/7/13 (3.4):
Fixes for OC, UV, auto-hotplug.
A few new optimizations.
Synced up with CM.
9/20/13 (TW):
Ported everything from AOSP to TW.
9/20/13 (4.3):
Merged 4.3 from CM into the existing 4.2 code.
Current experimental branches:
Nothing interesting at the moment.
Goodies:
dkp doesn't come with its own splash screen. However, the dkp installer (i.e. the install zip) is smarter than you think, and can apply a custom splash screen for you. Here's how:
Create a folder on your internal storage named "dkp"
Copy a PNG image into the directory, and rename it "splash.png". Alternatively, copy an RLE image (i.e. from a flashable custom splash screen zip) and rename it "splash.rle". Ideally, the image should be roughly 1280x720 to begin with, since it won't be resized.
The image will be used as your splash screen whenever you flash dkp. Reflash to apply initially.
mikedavis120 has put together a how-to video that covers tweaking dkp for optimal battery life. If you're new to dkp, take a look! He also put together a zipped collection of apps that will come in handy while tuning dkp. It also includes a flashable zip, "dkp-debug_v1.zip". After flashing it, running
Code:
su
dkp
from a terminal emulator will collect lots of useful debug information that will make it much easier for me to track down the issue you're having. :good: mikedavis120 recommends installing SuperSU (included in the zip) instead of what's included in you ROM.
sysfs:
It's possible to adjust all the settings available in dkp without using apps. Because they show up as files, settings can be adjusted with file managers, terminal emulators, adb and initscripts. Here's the most interesting files inside sysfs:
/sys/devices/platform/mipi_samsung_oled.513/lcd/panel/panel_colors (not available on newer AOSP builds): display tint (0 = very red, 2 = default, 4 = trinity colors)
/sys/class/misc/gammacontrol (only available on newer AOSP builds): various color controls. See this post for details on enabling Trinity colors on builds that use these controls.
/sys/devices/system/cpu/cpu<N>/cpufreq/UV_mV_table: voltage table
/sys/devices/system/cpu/cpu<N>/cpufreq/scaling_...: scaling_governor is the governor, scaling_min_freq and scaling_max_freq are the minimum and maximum frequencies, scaling_available_governors and scaling_available_frequencies show the available governors and frequencies
/sys/kernel/dkp/force_fast_charge: fast charge
/sys/kernel/dkp/link_core_settings: when linked (the default), frequency settings and some governors are automatically copied to the other core
/sys/kernel/dkp/vmin: minimum processor voltage in mV
/sys/kernel/mm/uksm/run: activate UKSM
auto-hotplug tuners:
These show up in the governor settings for any governor that doesn't do its own hotplugging. They only take effect when using auto-hotplug, so you'll probably need to disable mpdecision in Trickster.
hotplug_intpulse: when set to 1, automatically turns core 2 on whenever the screen/buttons/whatever is pressed. Default is 0.
hotplug_sampling_periods: number of samples to use for average number of running tasks. Default is 15.
hotplug_sampling_rate: number of 'jiffies' (currently 1 jiffy = 10 ms) between each sample of running tasks. Default is 20 (0.2 sec).
hotplug_enable_one_threshold: the average number of running tasks required to turn core 2 on, multiplied by 100. Default is 125 (1.25 tasks on average).
hotplug_disable_one_threshold: the average number of running tasks required to keep core 2 on, multiplied by 100. Default is 250 (2.5 tasks on average).
freelunch/nanolunch tuners:
freelunch and nanolunch aren't materially based on other governors, so their configuration is quite different than other governors. There's lots of tuners, since I haven't really decided on an ideal tuning. I encourage experimentation! I'll explain a bit of how these governors work before actually listing the tuners.
Generally speaking, there are two modes: in "normal" mode, sampling is done occasionally and frequency is generally increased slowly; in "interactive" mode, sampling is done much more quickly, and frequency increases much more quickly. "Interactive" mode ends after several samples of very low usage. The idea of a "hispeed" frequency is used in lots of governors, and it refers to the frequency that the CPU will jump to when more CPU usage is needed; generally, it's a generous estimate of how much CPU will be needed. Here, the hispeed frequency is adjusted on-the-fly, increasing when more CPU is needed and gradually decreasing when the CPU is idle. In "interactive" mode, the hispeed frequency is kept fairly high so that everything will feel snappy.
Hotplugging is taken care of in the least complicated (and in my opinion, most reasonable) way possible: if core 1 is using lots of CPU, and there are several tasks running (in other words, if it's likely that core 2 will have something to do), core 2 is turned on; if either core isn't doing much except using power, core 2 is turned off.
sampling_rate: the usual
hotplug_up_cycles: number of consecutive heavily-loaded samples before core 2 is turned on
hotplug_down_cycles: number of consecutive lightly-loaded samples before core 2 is turned off
hotplug_up_load: number of running tasks required to bring core 2 online
hotplug_up_usage: number of used CPU cycles (in thousands per second) required to bring core 2 online
hotplug_down_usage: number of used CPU cycles (in thousands per second) required on both cores to keep core 2 online
overestimate_khz: number of CPU cycles to overshoot usage by in "normal" mode
hispeed_thresh: if CPU usage is within this many cycles (in thousands per second) of the maximum frequency, frequency will be increased to the hispeed frequency. Generally, hispeed is pretty low in "normal" mode, and fairly high in "interactive" mode.
hispeed_decrease: when the CPU is sitting idle, the hispeed frequency is decreased by this amount each sample (this isn't ideal, but it works)
interaction_hispeed: the initial hispeed frequency when switching to "interactive" mode
interaction_return_cycles: number of consecutive lightly-loaded samples before returning to "normal" mode
interaction_return_usage: number of used CPU cycles (in thousands per second) required to stay in "interactive" mode
interaction_panic (nanolunch only): when set to 1, allows aggressively jumping past the current hispeed frequency under some circumstances
interaction_sampling_rate/overestimate_khz: equivalent to the "normal" versions of the tuners, these take effect in "interactive" mode
This looks great - especially excited about your custom governor! Thanks!!
Sent from my SCH-I535 using xda app-developers app
Glad we have another kernel dev. But do you plan on releasing a tw kernel? I run tw 98% of the time and would love to try it out. Thanks for your work regardless
PsiPhiDan said:
This looks great - especially excited about your custom governor! Thanks!!
Sent from my SCH-I535 using xda app-developers app
Click to expand...
Click to collapse
freelunch is absurdly simple, but does its job well. Let me know what you think. Happy flashing!
aypeeootrek said:
Glad we have another kernel dev. But do you plan on releasing a tw kernel? I run tw 98% of the time and would love to try it out. Thanks for your work regardless
Click to expand...
Click to collapse
I don't run TW, so I don't have any plans to release a TW kernel. If there's enough interest, I suppose I could get to work on one though.
Interesting. Looks cool man, will check it out
Sent from my SCH-I535 using Tapatalk 2
I'm excited to give this a shot!
Sent from my SCH-I535 using xda app-developers app
flashaholic commencing flash!
Anyone using trickster mod with this kernel?
Sent from my SCH-I535 using Tapatalk 2
Love this kernel! Freelunch is amazing
Sent from my SCH-I535 using xda premium
This kernel run pretty good!!
Sent from my SCH-I535 using xda app-developers app
masri1987 said:
Anyone using trickster mod with this kernel?
Sent from my SCH-I535 using Tapatalk 2
Click to expand...
Click to collapse
It's the recommended tuner app, and plenty of people are using it (mostly on Sprint and AT&T). It shows some options that are completely bogus (like GPU governor), but I've added a few extras that only Trickster supports.
Thanks for the encouraging feedback, everyone! It's much appreciated. :good:
Kudos on this kernel. It has been perfect for me so far.
Running good on my d2usc! What scheduler do you recommend?
Sent from my SCH-R530U using Tapatalk 2
New 3.4 experimental builds are going up!
governors is building now, and has sio and zen. It'll eventually have a few new governors, but I haven't gotten everything ported yet.
gcc480 is up now, and is a test to make sure GCC 4.8.0 isn't causing any crazy bugs. It's also got sio and zen.
Edit: I forgot about you, trvbone. I don't have a preferred scheduler. I usually just use sio. I've never had a positive experience with ROW, but that might just be bad luck on my part.
More edit: I'm building a 3.0 kernel with trinity colors support and GCC 4.8.0 now. It should be up shortly.
decimalman said:
New 3.4 experimental builds are going up!
governors is building now, and has sio and zen. It'll eventually have a few new governors, but I haven't gotten everything ported yet.
gcc480 is up now, and is a test to make sure GCC 4.8.0 isn't causing any crazy bugs. It's also got sio and zen.
Edit: I forgot about you, trvbone. I don't have a preferred scheduler. I usually just use sio. I've never had a positive experience with ROW, but that might just be bad luck on my part.
Click to expand...
Click to collapse
I'm no noob when it comes to kernel lingo, but I'm not sure what the dif is here between the kernels listed as governors and gcc480. Are these two different kernels? I'm not aware of what gcc480 is I guess. Sorry until recently I was a dedicated lean kernel user and don't know all of the terminology since lk was pretty plain Jane.
I'm not a huge fan of row, but that's what I'm using right now cause it's quick just a little sketchy sometimes.
Sent from my SCH-R530U using Tapatalk 2
trvbone said:
I'm no noob when it comes to kernel lingo, but I'm not sure what the dif is here between the kernels listed as governors and gcc480. Are these two different kernels? I'm not aware of what gcc480 is I guess. Sorry until recently I was a dedicated lean kernel user and don't know all of the terminology since lk was pretty plain Jane.
I'm not a huge fan of row, but that's what I'm using right now cause it's quick just a little sketchy sometimes.
Sent from my SCH-R530U using Tapatalk 2
Click to expand...
Click to collapse
I have a tendency to describe things in the least understandable way possible. Sorry about that.
Hopefully, there's no noticeable differences between the two builds. I think the gcc480 build might benchmark a bit better, but I haven't really compared. The only actual difference is which compiler I used to build the kernel, which probably doesn't matter for 99% of users.
The governors build is built with the same ol' Linaro nightly toolchains that I've been using, so I expect it to be pretty stable.
The gcc480 build uses a newer, fancier compiler: GCC 4.8.0. I've found at least one new bug with the new compiler (it's fixed in the uploaded builds, don't worry ). I'm not ready to call the gcc480 build stable since it's gotten so little testing, but it's been running great for me all day. I'd love to hear feedback from anyone who flashes it.
Eventually, most other kernels will switch to GCC 4.8.0 (probably once Linaro releases a full-featured build). I think gideonx (of BMS fame) is planning to switch sometime soon, and I would expect ktoonsez to switch pretty soon too.
decimalman said:
I have a tendency to describe things in the least understandable way possible. Sorry about that.
Hopefully, there's no noticeable differences between the two builds. I think the gcc480 build might benchmark a bit better, but I haven't really compared. The only actual difference is which compiler I used to build the kernel, which probably doesn't matter for 99% of users.
The governors build is built with the same ol' Linaro nightly toolchains that I've been using, so I expect it to be pretty stable.
The gcc480 build uses a newer, fancier compiler: GCC 4.8.0. I've found at least one new bug with the new compiler (it's fixed in the uploaded builds, don't worry ). I'm not ready to call the gcc480 build stable since it's gotten so little testing, but it's been running great for me all day. I'd love to hear feedback from anyone who flashes it.
Eventually, most other kernels will switch to GCC 4.8.0 (probably once Linaro releases a full-featured build). I think gideonx (of BMS fame) is planning to switch sometime soon, and I would expect ktoonsez to switch pretty soon too.
Click to expand...
Click to collapse
Thanks for the expl I'll flash tomorrow morning and give it a whirl! Great job BTW. This is now my daily driver!
Sent from my SCH-R530U using Tapatalk 2
decimalman said:
I have a tendency to describe things in the least understandable way possible. Sorry about that.
Hopefully, there's no noticeable differences between the two builds. I think the gcc480 build might benchmark a bit better, but I haven't really compared. The only actual difference is which compiler I used to build the kernel, which probably doesn't matter for 99% of users.
The governors build is built with the same ol' Linaro nightly toolchains that I've been using, so I expect it to be pretty stable.
The gcc480 build uses a newer, fancier compiler: GCC 4.8.0. I've found at least one new bug with the new compiler (it's fixed in the uploaded builds, don't worry ). I'm not ready to call the gcc480 build stable since it's gotten so little testing, but it's been running great for me all day. I'd love to hear feedback from anyone who flashes it.
Eventually, most other kernels will switch to GCC 4.8.0 (probably once Linaro releases a full-featured build). I think gideonx (of BMS fame) is planning to switch sometime soon, and I would expect ktoonsez to switch pretty soon too.
Click to expand...
Click to collapse
Giving it a go now. Do you have any test methods you use to test the stability of a kernel other than the everyday use approach? Thanks for the support, looks sweet:good::good::good:

Categories

Resources