Post Reply

[KERNEL][WIP] Underworld Sense Kernel v0.8 [Jul 16 2012][GINGERBREAD][SENSE]

OP ca1ne

29th March 2012, 05:08 AM   |  #1  
ca1ne's Avatar
OP Retired Recognized Developer
Flag East Coast
Thanks Meter: 1,388
 
802 posts
Join Date:Joined: Apr 2011
Donate to Me
More
Underworld Sense Kernel

This is a little something I have been working on. Thank you to those who tested under the "saturday morning" thread. Hopefully I will be able to continue to improve this kernel and add in additional modifications as time goes on.

And please remember this is a work in progress, so please let me know your results.

What's in this Kernel

Features

Stock Kernel 2.6.35.10
Patched to 2.6.35.14
Enabled Wireless N
Perflock Disabled
HDMI Fix
GPS Fix
3 Point Touch Check
10 Point Touch
Audio Boosted with On/Off Toggle (default setting is on)
Fast USB Charge with On/Off Toggle (default setting is off)
Reduced Wifi Voltage (battery savings)
Read Ahead Buffer Upped to 1024kb
O/C to 1.229Ghz
HAVS with Sysfs
Undervolted to LEE Kernel Settings (tiamat)
Compiler Optimizations
Superior Battery Charging (SBC)
Boosted Audio More
Extend Wifi Range
Removed CIQ (Please note - you may encounter problems if you rom has ciq in it)
Flashlight Cutoff Reduced to 10% from 15%
Increased GPU Memory Allocation
CIFS (compiled as module)
TUNS (compiled as module)
Front Facing Camera Fix (for inverted) (should work on all gingerbread sense)
Swap Enabled
Fixed Hotspot for some users
2 Way Call Record
Memory/Scheduler tweaks
RCU Tweaks
LZMA Compression
Removed Some Debug Code
Enabled EXT4 Support (applied performance patch)
Add ZRAM (Lzo_compress/decompress) as modules)
Add HTC Kineto_gan support for wifi calling
Reduce vfs_cache_pressure from 70 to 50
Wifi is PM_FAST in standby
Increased Min Voltages from 925 to 950

Governors

SmartassV2 (set as default)
InteractiveX
Intellidemand
OndemandX
Smartass
Conservative
Ondemand
Userspace
Performance
Interactive

Schedulers

SIO (set as default)
NOOP
Deadline
CFQ
v(R)
BFQ

Instructions

Apply with your preferred custom recovery.

For Kernel Install
Make sure to wipe Dalvik Cache and Cache.

For SBC
And make sure the phone is fully booted before plugging it in.

For HAVS with sysfs interface
You will be able to use Vipermod to change the voltages. To be able to save changes you will need a rom with init.d support baked in. The kernel has already been undervolted, but since everyone results vary depending on their devices, this interface will allow you to drop it lower, just like you have been able to in the AOSP roms.

For Audio Boost to turn on and off
Code:
Audio Boost On
echo 1 > /sys/kernel/audio_boost/aboost
Audio Boost Off
echo 0 > /sys/kernel/audio_boost/aboost
Query Audio Boost Status
cat /sys/kernel/audio_boost/aboost
For USB Fast Charge to turn on and off
The below code will toggle it in the terminal, but a cool way to turn it on and off would be to support the original dev who put this mod together, chad0989 by purchasing his widget that controls this version of usb fast charge as well as the patch version. LINK TO WIDGET
Code:
USB Fast Charge On
echo 1 > /sys/kernel/fast_charge/fast_charge_usb
USB Fast Charge Off
echo 0 > /sys/kernel/fast_charge/fast_charge_usb
Query USB Fast Charge Status
cat /sys/kernel/fast_charge/fast_charge_usb
Thanks to Capt_Throwback for finding out a reason for some of the lag complaints. It appears that the Vipermod script installs an older copy of busybox onto the phone. I have attached a copy of the vipermod install script that does not install any busybox.

Credits

I am grateful to all, from the developers, to the end users who
provide the feedback and use what is created.

More specifically (in alphabetical order) I would like to credit
the following developers for their work.

atyoung
barnacles10
cayniarb
chad0989
detcup4evr
drellisdee
faux123
lithid
ms79723
netarchy
paulmck
TeamWin
tiny4579
toastcfh
ziggy471

Also I would like to thank 2 alpha testers who kept me going

swagstr
tommytomatoe

Also I would like to thank the man who tested the front facing camera fix

buckhunter (tested all 4 options I wanted to check) and is now almost constantly testing whatever insane thing I ask him to flash and test, lol
sclarktay4

And a special thanks to the following donators who gave me some diaper money for the son.

eggsack
Wisiwyg

Disclaimer

As with all things, not every variant can be accounted for. Please use at your own risk. I am not responsible for any damages/bricks/etc that may accompany use of this kernel.

Bug Reporting

Post a reply in this thread or pm me, and I will do my best to assist and/or correct bugs.

Update History

v0.8
Enable ext4 support
Ext4 performance patch
Add zram (lzo_compress/decompress) as external modules
Add HTC kineto_gan support for WiFi calling
Reduce vfs_cache_pressure from 70 to 50
Wifi is PM_FAST in standby
Increase min voltages to 950 to make more universal
Upgrade bfq to BFQ-v3r1
Modified several of the governors
Added no Havs versions

v0.7
RCU Tweaks
rcu: repair code-duplication FIXMEs
rcu: combine duplicate code, courtesy of CONFIG_PREEMPT_RCU
rcu: apply TINY_PREEMPT_RCU read-side speedup to TREE_PREEMPT_RCU
rcu: fix sparse errors in rcutorture.c
rcu: Add tracing data to support queueing models

use lzma instead of gzip
removed some debugging code to clean things up

v0.6
Tiny_Preempt_Rcu Added (smaller footprint)
Changed Audio boost to on/off toggle
USB Fast Charge and on/off toggle
Patched up to 2.6.35.14
Tweaked SIO/VR/Deadline Schedulers
2 Way Call Record Added per Request
Memory/Tweaks:
Reduce vfs_cache_pressure from 100 to 70
SLQB Memory allocator added
Tweak io schedulers for flash devices (deadline,sio,vr)
Ashmem: fix deadlock when system is low on memory
Interactive/InteractiveX fix possible divide by 0
Some memory copy macros and functions
Add 10 microsec delay before fetching setup_data (usb)
Fix scaling_available_frequencies sysfs


v0.5
BFQ Scheduler Added
OndemandX Governor Added
Swap Enabled
Fixed Hotspot for some users

v0.4
Fixed the front facing camera with kernel modfications

v0.3
Removed CIQ
Extended Wifi Range
Flashlight cutoff reduced to 10%
Increased GPU memory allocation
CIFS (compiled as module)
TUNS (compiled as module)
Tweaked Smartassv2
Fixed SIO to be default scheduler (again, lol)
Added Interactive Governor

v0.2 - Initial Release

v0.1 - Test Release.


Links

Underworld v08 HAVS, No SBC
Underworld v08 No HAVS, No SBC
Underworld v08 No HAVS, SBC
Underworld v08 HAVS, No SBC


Github
Attached Files
File Type: zip viperMOD_v3_nobusybox.zip - [Click for QR Code] (161.0 KB, 1113 views)
Last edited by ca1ne; 11th December 2012 at 02:09 PM.
The Following 95 Users Say Thank You to ca1ne For This Useful Post: [ View ]
29th March 2012, 05:08 AM   |  #2  
ca1ne's Avatar
OP Retired Recognized Developer
Flag East Coast
Thanks Meter: 1,388
 
802 posts
Join Date:Joined: Apr 2011
Donate to Me
More
Lets use this post finally

Tips and Tricks

1. If you are usinig V6 SuperCharger with kernel I/O tweaks. Please uninstall the I/O Scheduler tweak. Failure to do so may casue random reboots. (Thanks Kelldane)
2. Please navigate to the system/etc folder and scroll down until you find the init.post_boot.sh file and either delete it or move it to a safe place on your sd card. More Info (Thanks Leeboy)
3. When using smurf, do not use the battery saving settings for Smartass V2 otherwise in most cases it will generate lag on that governor. If you open the 45smurf file in etc/init.d and remove the section with the governer tweaks the lag will go away after reboot. (Thanks Pennie77)
4. Ensure that your busybox binary is up to date. (Thanks Capt_Throwback)

Undervolting

Quote:

havs kernel has an upper and lower range, while the normal kernel has a static range.. i pulled from my source code the havs voltages and commented after the line the original voltage.

{ 19200, 950, 950 }, // orig voltage 1050
{ 128000, 950, 975 }, // orig voltage 1050
{ 245000, 950, 975 }, // orig voltage 1050
{ 384000, 950, 975 }, // orig voltage 1050
{ 422400, 950, 975 }, // orig voltage 1050
{ 460800, 950, 975 }, // orig voltage 1050
{ 499200, 950, 1000 }, // orig voltage 1075
{ 537600, 950, 1025 }, // orig voltage 1100
{ 576000, 950, 1050 }, // orig voltage 1100
{ 614400, 950, 1075 }, // orig voltage 1125
{ 652800, 950, 1100 }, // orig voltage 1150
{ 691200, 975, 1125 }, // orig voltage 1175
{ 729600, 975, 1150 }, // orig voltage 1200
{ 768000, 975, 1175 }, // orig voltage 1200
{ 806400, 1150, 1200 }, // orig voltage 1225
{ 844800, 1175, 1225 }, // orig voltage 1250
{ 883200, 1200, 1250 }, // orig voltage 1275
{ 921600, 1200, 1275 }, // orig voltage 1300
{ 960000, 1225, 1275 }, // orig voltage 1300
{ 998400, 1225, 1275 }, // orig voltage 1300

{ 1036800, 1275, VOLTAGE_MAX }, //overclocked cpu no orig voltage
{ 1075200, 1275, VOLTAGE_MAX }, //overclocked cpu no orig voltage
{ 1113600, 1275, VOLTAGE_MAX }, //overclocked cpu no orig voltage
{ 1152000, 1300, VOLTAGE_MAX }, //overclocked cpu no orig voltage
{ 1190400, 1325, VOLTAGE_MAX }, //overclocked cpu no orig voltage
{ 1228800, 1350, VOLTAGE_MAX }, //overclocked cpu no orig voltage

Last edited by ca1ne; 17th July 2012 at 03:54 AM.
The Following 16 Users Say Thank You to ca1ne For This Useful Post: [ View ]
29th March 2012, 05:10 AM   |  #3  
CRIME INC.'s Avatar
Senior Member
Flag HENDERSONVILLE
Thanks Meter: 1,954
 
3,226 posts
Join Date:Joined: Jan 2011
More
Sweet I'm first, good job ca1ne on bringing new life to my EVO.:thumbup:

Sent from my PC36100 using Tapatalk 2 Beta-4
The Following User Says Thank You to CRIME INC. For This Useful Post: [ View ]
29th March 2012, 05:16 AM   |  #4  
pmacevad's Avatar
Senior Member
Flag South Chicago Burbs, IL
Thanks Meter: 409
 
1,496 posts
Join Date:Joined: Nov 2010
More
Giving this a spin in a second. Thanks for the update and the kernel. :thumbup:

Sent from the EVO, as usual using Tapatalk 2 beta.
29th March 2012, 05:23 AM   |  #5  
Senior Member
Flag Washington
Thanks Meter: 217
 
1,303 posts
Join Date:Joined: Dec 2011
Yay v2 XD testing now.

And does sbc harm your battery at all?
Last edited by ReapersDeath; 29th March 2012 at 05:25 AM.
29th March 2012, 05:23 AM   |  #6  
beaumontcali48's Avatar
Senior Member
Flag Marble Falls , TX
Thanks Meter: 44
 
394 posts
Join Date:Joined: Nov 2011
Donate to Me
More
Thanks bud been waiting for this all day flashing now I will let u know how it goes .

Sent from my PC36100 using xda premium
29th March 2012, 05:26 AM   |  #7  
volk9029's Avatar
Senior Member
Brooklyn, NY
Thanks Meter: 2,641
 
3,059 posts
Join Date:Joined: May 2011
More
Thank you. Being waiting for it as well.

Sent from my lair.
29th March 2012, 05:39 AM   |  #8  
Senior Member
Flag Denton, TX
Thanks Meter: 70
 
287 posts
Join Date:Joined: Nov 2009
Donate to Me
More
Any issues with running this with the latest software 4.67?

Thanks for keeping things alive for the EVO
29th March 2012, 05:46 AM   |  #9  
Notorious's Avatar
Senior Member
Flag Sydney
Thanks Meter: 5,125
 
8,046 posts
Join Date:Joined: Aug 2011
Donate to Me
More
!!!

Sent from my PC36100 using XDA
29th March 2012, 05:48 AM   |  #10  
pmacevad's Avatar
Senior Member
Flag South Chicago Burbs, IL
Thanks Meter: 409
 
1,496 posts
Join Date:Joined: Nov 2010
More
Quote:
Originally Posted by cbarth3

Any issues with running this with the latest software 4.67?

Thanks for keeping things alive for the EVO

Stock with sbc v1 and underworld 0.1 both flipped my front camera on nitrous.

Love the addition on the new schedulers and governors. I always have good response out off intellidemand, can't wait to see how this performs, thanks again.

Sent from the EVO, as usual using Tapatalk 2 beta.

The Following User Says Thank You to pmacevad For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Tags
evo, gingerbread, kernel, sbc, sense
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes