5,605,311 Members 39,692 Now Online
XDA Developers Android and Mobile Development Forum

[Kernel][CM11][4.4.x]jamiethemorris's kernel[S2W/DT2W][FauxSound][GPU OC][kexec-hardboot](Mar 31)

Tip us?
 
jamiethemorris
Old
(Last edited by jamiethemorris; Today at 10:23 AM.)
#1  
Senior Member - OP
Thanks Meter 641
Posts: 1,493
Join Date: Jan 2013

 
DONATE TO ME
Default [Kernel][CM11][4.4.x]jamiethemorris's kernel[S2W/DT2W][FauxSound][GPU OC][kexec-hardboot](Mar 31)

This is my version of crpalmer's kernel with some additional features:

-Sweep2Wake/Sweep2Sleep, DoubleTap2Wake (from Beastmode)
-force fast charge (credits to chad0989)
-kexec-hardboot support (for use with MultiROM, credits to Tasssadar for the multirom and the m7 patch I used)
-FauxSound (faux123)
-Moar overclockingz (up to 1890 mhz)
Note: Every chip is different, your device may not support these higher frequencies.
-GPU overclocking (up to 533 mhz) (credits to faux123, )
Note: Again, every chip is different, your device may not support higher frequencies.
-Additional CPU governors and I/O schedulers. Read about CPU governors here.
-Dynamic Fsync (faux123)
-Simple GPU Governor
-L2 Cache overclock
-600 MHz bus overclock
-F2FS support (F2FS TWRP will be available once I have a chance to test it)
-LZ4 compressed kernel
-More TCP Congestion algorithms

For maximum performance, I recommend some optimized dalvik libraries:
-For CM11-based ROMs released before March 1st, use my Sense dalvik libraries here.
-If you are using a CM11-based ROM released after March 1st, or any ROM with this commit you will need to use the 4.4_qc-optimized_dalvik-cm11.zip here. Credits to kszaq for this one.
-For LiquidSmooth, use these Sense dalvik libraries here.
If you find any ROMs where none of these zips work, let me know and I will try to make one for that ROM.
-Also, credits to kszaq because these were based on his flashable zip.


I am not responsible for anything that happens to your phone. It is your device and your responsibility.

The following scripts are not required to change settings, they only exist as an alternative for people who don't want to use a third-party app. You can still use your favorite tuner app to tweak most of these kernel settings.

Quote:
init.d tweaks

I created some scripts that run on boot (init.d) because I install my kernel so many times that I would go insane if I had to use an installer to configure it each time. By using these scripts and configuration files on the sdcard, I can just configure it once and keep installing away to my heart's content.

After installing this kernel, there will be:

/system/etc/init.d/99crpalmer

run at boot, even if you switch to another kernel. It is safe to leave this file there and to let it run as it only makes changes if the kernel contains "crpalmer" in the version. If run with a kernel that contains crpalmer in the version, it will rename mpdecision so it can't run. If you install another kernel it will then rename mpdecision back so that it will run in the new kernel. In addition to stopping the built-in mpdecision it will allow the following tweaks:

CPU Frequencies
* Frequencies loaded from /sdcard/crpalmer-cpufreq-min and /sdcard/crpalmer-cpufreq-max
* Governor loaded from /sdcard/crpalmer-cpufreq-governor
* If you specify either or both of these frequencies, it will lock down all of the CPU frequency controls. I had to do this because HTC overrides them in a script that is run very late in the boot process (thanks HTC!).
* E.g. adb shell su -c "echo 192000 > /sdcard/crpalmer-cpufreq-min"
* E.g. adb shell su -c "echo 1728000 > /sdcard/crpalmer-cpufreq-max"
* E.g. adb shell su -c "echo interactive > /sdcard/crpalmer-cpufreq-governor"

Undervolting
* + or - value loaded from [I]/sdcard/crplamer-uv
* The undervolting in 2.0.23 for FAST binned CPUs would be specified as:
* E.g. adb shell su -c "echo -100 > /sdcard/crpalmer-uv"

Lightsensor
* My light sensor changes didn't sound like they worked well for everyone. If you don't like them you can disable them by:
* E.g. adb shell touch /sdcard/crpalmer-stock-lightsensor

HTC Colour "Enhancement"
* If this file is present then the HTC's colour "enhancement" will be used, otherwise it will be disabled.
* If this file contains the string "m7" then it will use one of the colour enhancement that was used in the M7 kernel for a panel most like ours.
* E.g. adb shell touch /sdcard/crpalmer-color-enhancement
DoubleTap2Wake:
* This allows you to wake the device by double tapping in the bottom half of the screen, just above the hardware keys.
* To enable or disable, create the file /sdcard/jamiethemorris-dt2w
* If this file contains a 1, dt2w is enabled. If it contains a 0 it is disabled. Enabled by default.

Sweep2Wake/Sweep2Sleep:
* This allows you to wake the device by sweeping from left to right over the hardware keys, and sleep the device by sweeping from right to left.
* To enable or disable this, create the file /sdcard/jamiethemorris-s2w.
* If the file contains a 1, s2w and s2s are enabled. If it contains a 0, they are disabled. Enabled by default.

GPU Overclock:
* The GPU's max frequency is loaded from /sdcard/jamiethemorris-gpu-oc. If this file does not exist, the stock frequency of 400 MHz is used.
* To set this GPU overclock, you need that file containing the GPU frequency in MHz. Frequencies from 400 to 550 MHz are available.
* E.g. adb shell su -c "echo 450 > /sdcard/jamiethemorris-gpu-oc"

GPU Governor:
* You can choose from either ondemand, simple, or performance GPU governors. Default is ondemand.
* The governor is loaded from /sdcard/jamiethemorris-gpu-gov
* E.g. adb shell su -c "echo simple > /sdcard/jamiethemorris-gpu-gov"

Dynamic Fsync:
* From Faux123: The dynamic sync control interface uses Android kernel's unique early suspend / lat resume interface. While screen is on, file sync is disabled. When screen is off, a file sync is called to flush all outstanding writes and restore file sync operation as normal.
* Disabled by default. To enable or disable, create the file /sdcard/jamiethemorris-dyn-fsync. Use 0 to disable and 1 to enable.

Force Fast Charge:
* To enable or disable fast charge, create the file /sdcard/jamiethemorris-fastcharge
* Use 0 to disable, and 1 to enable. Disabled by default.

Intelliplug and Eco Mode:
* Intelliplug is a replacement hotplug driver for HTC's mpdecision, Eco Mode limits your device to dual-core operations.
* To enable or disable, use create the file /sdcard/jamiethemorris-intelliplug
* If the file contains 0, intelliplug and eco mode are both disabled and your phone will use crpalmer's hotplug driver. If the file contains a 1, intelliplug is enabled but eco mode is disabled. If the file contains the string 'eco', intelliplug and eco mode are both enabled. Both are disabled by default.

I/O Scheduler:
* To change the I/O scheduler, create the file /sdcard/jamiethemorris-iosched, and your device will use whatever I/O scheduler you specify.
* E.g. adb shell su -c "echo row > /sdcard/jamiethemorris-iosched"

Undervolt Override:
* This allows you to globally undervolt your device, but leave the 1836 MHz, 1890 MHz, and 1917 MHz frequencies at their default voltages.
* To enable or disable:
- First you need to find your PVS bin number. You can find this by checking the file /sys/module/acpuclock_krait/parameters/pvs_number.
- Create the file /sdcard/jamiethemorris-pvs and put your PVS number in that file.
- After a reboot, your device will automatically set the highest frequencies to the default voltages for your chip.
* If you are either lazy or confused, you can put '?' in the file and your phone will set itself to the voltages for a 'nominal' binned chip.





For the rest of the features and changelog, see crpalmer's original cm11 kernel thread.

Thanks: crpalmer for all of his help (before I started on this I didn't even know how to use git), coachcrey for originally inspiring me to do this, and all the other devs/builders here that may or may not know I'm learning from them constantly.

Downloads

Latest version:

5.6.4, 3/31/2014



Older versions:

Older versions on Android File Host

Source:
Kernel Source
Build Tools

Recommended Settings
You can either use an app such as TricksterMod or Kernel Tweaker to set these parameters or use my scripts.
-Minimum CPU frequency: 162000
-Maximum CPU frequency: 1890000 for performance, 1512 for battery life, 1728 for balanced
-Undervolt: -100 for battery life, -50 for balanced/stability
-Color enhancement (script only): m7
-DoubleTap2Wake: Enabled for convenience or pretending you have a G2, disabled for battery life
-Sweep2Wake: Enabled for convenience, disabled for battery life
-Fastcharge: Disabled for safety, enabled for convenience
-GPU overclock: 533 MHz for performance, 400 MHz for battery life, 450 MHz for balanced
-GPU governor: ondemand for battery, simple for performance
-Intelliplug/Eco mode: Disabled for performance, enabled for balanced, Eco Mode for battery life
-I/O Scheduler: BFQ for balanced/stability, vr for performance
-Dynamic Fsync: Disabled for safety (less likely to have data loss in the event of sudden power off), enabled for performance, enabled for balanced
-Undervolt Override (script only): set jamiethemorris-pvs to your chip's PVS bin. Recommended for those with high overclock that are undervolted.
To make things easier for those who do not wish to use a third-party app, I have posted some zips with the necessary files. Just unzip them and put the files on your sdcard.
Default settings
Recommended settings (these are the settings I use, good performance vs. battery compromise
For best battery life
For best performance

XDA:DevDB Information
jamiethemorris's kernel, a Kernel for the HTC Droid DNA

Contributors
jamiethemorris, crpalmer
Kernel Special Features: dt2w, kexec-hardboot, overclock, fastcharge, fauxsound

Version Information
Status: Stable

Created 2014-01-28
Last Updated 2014-04-24
The Following 13 Users Say Thank You to jamiethemorris For This Useful Post: [ Click to Expand ]
 
jamiethemorris
Old
(Last edited by jamiethemorris; 31st March 2014 at 12:06 PM.)
#2  
Senior Member - OP
Thanks Meter 641
Posts: 1,493
Join Date: Jan 2013

 
DONATE TO ME
Changelog:

5.6.4:
-Hopefully fix voltage for "faster" binned chips
-Fixed random reboots when using intellidemand governor
-Fix scripts
-Disable intellidemand's active max frequency to prevent it from interfering with overclock
-Enable additional TCP congestion algorithms (thanks iHateWebOS)
-Sync s2w/dt2w/pocket detection with Beastmode
-Add Preservative governor (credits to bedalus)
-Update BFQ I/O Scheduler to v7r2
-Merge latest CM commits
-Merge crpalmer's latest commits
-Update to Linux 3.4.79
-Add LZ4 kernel compression/decompression for faster boot
-I think I forgot to mention this before, but I am now using a Cortex a-15 optimized Linaro toolchain.

5.5.5:
-Dynamic Fsync (Enable this only if you are sure your device is stable! If you have too many reboots, your data may get corrupted and you will have to reflash your ROM.)
-Simple GPU Governor
-Intelliplug hotplug driver with Eco mode (dual core operations). When this is disabled, it will use crpalmer's hot-plug driver.
-Intellidemand tweaks - I'm still working on this one, it tends to have random reboots at the moment.
-Decrease GPU OC to 533 MHz and increase bandwidth
-1917 MHz overclock is back, should be more stable now
-Sweep2wake + Sweep2Sleep
-Doubletap2sleep is not implemented in this version, sorry. Use your ROM's dt2s feature for now. I do plan on adding this back.
-Doubletap2wake can be used anywhere on the screen
-There should be scripts for all features, let me know if I missed something.
-Undervolt override for high overclocks. You can globally undervolt while leaving 1836 MHz, 1890 MHz, and 1917 MHz clocks unaffected.
-L2 cache overclock
-600 MHz bus overclock for 1674 MHz - 1917 MHz frequencies
-Support for F2FS filesystem (F2FS TWRP and MultiROM are coming as well, as soon as I have time to test)
-FIOPS I/O Scheduler

5.5.4.1:
-Now only one kernel zip
-GPU overclock is set with /sdcard/jamiethemorris-gpu-oc between 400 and 550 MHz. Default is 400.
-New wheatley governor
-Some more optimizations

5.5.4:
-Fixed video undderrun (blue flickering) issue with GPU overclock
-Updated FauxSound to 2.1
-Now only 2 kernel zips. One is stock GPU clock and the other is for 450 and 500 mhz overclocks. Default is 500 on the OC version.
-New governors: intellidemand, intelliactive, smartassV2, lagfree, badass, Lionheart
-New I/O Schedulers: zen, vr
-Improved touchscreen sensitivity - If this causes problems for people I will revert it.
-SLIMbus overclock which should in theory improve audio quality
-Various performance optimizations, see github for full details
5.5.3.4:
-Switch linaro optimization level from -03 to -0fast
-A few other optimizations, see github for full details
5.5.3.3: Up to 500 mhz GPU overclock. For now, there are 3 different downloads depending on what GPU frequency you want - stock (400 mhz), 450 mhz, and 500 mhz. There are no other changes, so if you don't want a GPU overclock there is no need to update to this version.
5.5.3.2: Up to 1890 mhz CPU overclock
5.5.3.1: Added FauxSound
If you feel that I have been helpful to you, instead of clicking my "thanks" button, check out my music:
Manic Harmonic
Fan Page
The Following 4 Users Say Thank You to jamiethemorris For This Useful Post: [ Click to Expand ]
 
santod040
Old
#3  
santod040's Avatar
Recognized Developer / Recognized Contributor
Thanks Meter 5374
Posts: 4,504
Join Date: Nov 2008
Location: NorCal

 
DONATE TO ME
Nice work man!

Sent from my HTC6500LVW using Tapatalk
Current Devices: HTC Thunderbolt | HTC Droid DNA | HTC One | HTC One (2014)


Follow me on Twitter
ULTIMATE WALLS WVGA Wallpaper Collection
Donations always appreciated! Never required!


The Following 2 Users Say Thank You to santod040 For This Useful Post: [ Click to Expand ]
 
jamiethemorris
Old
#4  
Senior Member - OP
Thanks Meter 641
Posts: 1,493
Join Date: Jan 2013

 
DONATE TO ME
Multirom link is in the op. I plan on getting s2w working soon also. The code is there, but it's made for an HTC one so it doesn't work yet. Technically logo2menu is in there as well lol

Sent from my Droid DNA using Tapatalk
If you feel that I have been helpful to you, instead of clicking my "thanks" button, check out my music:
Manic Harmonic
Fan Page
The Following User Says Thank You to jamiethemorris For This Useful Post: [ Click to Expand ]
 
d08speed3
Old
#5  
d08speed3's Avatar
Senior Member
Thanks Meter 175
Posts: 1,429
Join Date: Jul 2010
Dt2w works perfect! Will this kernel be updates as CP pushes changes in the future?

HTC DNA
LG Optimus G
His: Droid DNA
Hers: AT&T LG Optimus G
 
jamiethemorris
Old
#6  
Senior Member - OP
Thanks Meter 641
Posts: 1,493
Join Date: Jan 2013

 
DONATE TO ME
Quote:
Originally Posted by d08speed3 View Post
Dt2w works perfect! Will this kernel be updates as CP pushes changes in the future?

HTC DNA
LG Optimus G
Yes, that is the plan

Sent from my Droid DNA using Tapatalk
If you feel that I have been helpful to you, instead of clicking my "thanks" button, check out my music:
Manic Harmonic
Fan Page
The Following User Says Thank You to jamiethemorris For This Useful Post: [ Click to Expand ]
 
d08speed3
Old
#7  
d08speed3's Avatar
Senior Member
Thanks Meter 175
Posts: 1,429
Join Date: Jul 2010
CM double tap to sleep. Doesn't work well with dt2s. It turns off then back on.

HTC DNA
LG Optimus G

---------- Post added at 07:57 AM ---------- Previous post was at 07:56 AM ----------

Quote:
Originally Posted by d08speed3 View Post
CM double tap to sleep. Doesn't work well with dt2s. It turns off then back on.

HTC DNA
LG Optimus G
Edit: turning the CM dt2s works. I'm guessing you have this enabled for status bar double tap to sleep?

HTC DNA
LG Optimus G
His: Droid DNA
Hers: AT&T LG Optimus G
 
jamiethemorris
Old
#8  
Senior Member - OP
Thanks Meter 641
Posts: 1,493
Join Date: Jan 2013

 
DONATE TO ME
Quote:
Originally Posted by d08speed3 View Post
CM double tap to sleep. Doesn't work well with dt2s. It turns off then back on.

HTC DNA
LG Optimus G

---------- Post added at 07:57 AM ---------- Previous post was at 07:56 AM ----------



Edit: turning the CM dt2s works. I'm guessing you have this enabled for status bar double tap to sleep?

HTC DNA
LG Optimus G
Just to clarify, in that last edit you're just saying that turning dt2s off in the settings makes the kernel's version of dt2s work right? Cause that's what I'm seeing on my phone. Thanks for the heads up, I enabled the dt2s setting a while ago but I always forget that I did so I hadn't tested it yet.

Sent from my Droid DNA using Tapatalk
If you feel that I have been helpful to you, instead of clicking my "thanks" button, check out my music:
Manic Harmonic
Fan Page
The Following User Says Thank You to jamiethemorris For This Useful Post: [ Click to Expand ]
 
d08speed3
Old
#9  
d08speed3's Avatar
Senior Member
Thanks Meter 175
Posts: 1,429
Join Date: Jul 2010
Quote:
Originally Posted by jamiethemorris View Post
Just to clarify, in that last edit you're just saying that turning dt2s off in the settings makes the kernel's version of dt2s work right? Cause that's what I'm seeing on my phone. Thanks for the heads up, I enabled the dt2s setting a while ago but I always forget that I did so I hadn't tested it yet.

Sent from my Droid DNA using Tapatalk
Yea. Turning off CM's dt2s settings off makes your dt2s work. I see it enabled in sys>android_touch.

HTC DNA
LG Optimus G
His: Droid DNA
Hers: AT&T LG Optimus G
 
jamiethemorris
Old
#10  
Senior Member - OP
Thanks Meter 641
Posts: 1,493
Join Date: Jan 2013

 
DONATE TO ME
Quote:
Originally Posted by d08speed3 View Post
Yea. Turning off CM's dt2s settings off makes your dt2s work. I see it enabled in sys>android_touch.

HTC DNA
LG Optimus G
Got it. Looks like this was bad timing to release a kernel, apparently we're moving from m7 to msm8960 soon...

Sent from my Droid DNA using Tapatalk
If you feel that I have been helpful to you, instead of clicking my "thanks" button, check out my music:
Manic Harmonic
Fan Page

The Following 2 Users Say Thank You to jamiethemorris For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes