Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Kernel] Lightnign Zap Kernel (Updated Weekly)

OP thomas.raines

28th October 2012, 01:22 AM   |  #1  
thomas.raines's Avatar
OP Recognized Developer
Flag Houston
Thanks Meter: 3,309
 
1,875 posts
Join Date:Joined: Jun 2011
Donate to Me
More
Thomas.Raines presents

The Lightning Zap! kernel for the Skyrocket

ATTN:
I thomas.raines, nor my affiliates claim responsibility for anything you do to damage, destroy, brick, explode, or otherwise screw up your device.




I revamped the Lightning Zap! kernel across the board. Since I have so many of them I was loosing where I was on each one. So I have now broken it down into 3 phases:
Phase 1: Introduction of LZ kernel to device
Phase 2: Fine tuning of tweaks, values, etc
Phase 3: Implementation of OC/UV
Phase 4: Continue updating and adjusting as necessary
From now on I will name the .zip accordingly as well:
Sky_p2.1
On a good note, I think this latest update will finalize phase 2 and now I can work on OC/UV...

Features:
Improved performance
Improved battery life
Improved network speeds
Improved boot times
Smoother scrolling
Better responsiveness
Cleaner file systems
Governor tweaks for amazing speed and performance without sacrificing battery life
Improved Memory and Ram tweaks
Improved Internet speed
Amazing kernel tweaks, build.prop mods, init.d scripts and more!

Instructions:
Make a backup
Download LightningZapv1Sky.zip to PC
Transfer LightningZapv1Sky.zip to your sdcard
Or just download it straight to your phone
Reboot to recovery
Flash
Phone will automatically reboot after install**
Wait 10 minutes
Enjoy the Lightning Zap!
ATTN!
If you are currently on any version of Lightning Zap! kernel, you must either replace your build.prop from your ROM or re-flash your current ROM. Or you can open your build.prop with a text editor and delete all lines below the Lightning Zap Tweaks entry.

This kernel was tested on ParanoidAndroid. This kernel and tweaks will work with any version of CM10 post 14OCT.

**First boot, especially after a fresh install of your ROM (wipe system cache etc, flash ROM gapps Lightning Zap) will take a while. It will seem to hang between a blank screen (which use to be the 2nd boot splash) and the boot animation. There is no need to panic. Everything is fine. It is the vacuum script trying to clean databases that have yet to be created. After first boot, your phone will boot as normal (a little faster actually)...

After first boot, ensure your I/O scheduler is set to cfq and your governor is set to ondemand to gain the maximum benefits of Lightning Zap!

See 3rd post for further instructions on improving and customizing your Lighting Zap! experience.

Source Code:
msm8660-common_lz_kernel
vendor_lz-kernel (LZ vendor files for ROM compiling)
LZ Flashing Packages (For those of you just compiling the kernel)
Includes flashing script, binaries, etc for the Blaze, Nitro and Skyrocket

Special thanks to:
gs2usr for the link to source code...
xan for Voltage Control app
Last edited by thomas.raines; 26th March 2014 at 03:30 PM.
The Following 58 Users Say Thank You to thomas.raines For This Useful Post: [ View ]
28th October 2012, 01:23 AM   |  #2  
thomas.raines's Avatar
OP Recognized Developer
Flag Houston
Thanks Meter: 3,309
 
1,875 posts
Join Date:Joined: Jun 2011
Donate to Me
More
Download links and changelog
Downloads and changelog

Skyrocket_p4.4-5.zip
Upstream maintenance
Anybody good with making a custom recovery and want to help out with the dual boot, hit me up...

Skyrocket_p4.4-4A.1.zip
Fixed intermittent boot loop issue
Dual boot has be put on hold for now...

Skyrocket_p4.4-A
Removed topology and mpdecision in 4.4-4, but found all the gov's work best with mpdecision so I added it back.
Adjusted CONFIG_NR_CPUS (number of cpu's) to cm default 999999 which causes the use of a CPU mask array. Small performance hit initially, but an overall vast improvement especially when multi-tasking.

Skyrocket_p4.4-3.zip
Merged from upstream
Added missing msm_mpdecsion blobs
All governors and schedulers seem completely stable now (Keep testing please)
Added True CD-ROM emulation interface (Not fully working on my computer. Need testers to verify with windows and linux) here is how to use it! (Special thanks goes to DooMLoRD and his doom kernel for the Xperia Z)
init.d scripts updated with new mount params
Enjoy!

Skyrocket_p4.4-2.zip
Raised vm_max_readahed to 4096.

Lowered default max cpu freq to 1512.

Changed min cpu freq to 384 to fix Lionheart and Gallimaufry instability.


Skyrocket_p4.4-1.zip
Fixed ability to change cpu frequency. Your changes now stick after closing app.
Used userdebug lunch option. Now if you have red border on screen, it's more than likely in the ROM. Talk to your ROM dev.
Possible fix for loss of su/root. (Let me know if you still loose it after flashing. I didn't have any issues this time.

Skyrocket_p4.4.zip
Updated to 4.4 for cm-11.0. This means this version is for cm-11.0/android 4.4
CPU frequency settings don't stick after closing the VC app
Lionheart governor acts up a bit and might cause reboots if voltage is too low
Lowering cpu frequency below 384 may cause instability
Still testing. If you find any bugs, let me know and please add a logcat

Archived changelog

Enjoy the Zap!
Last edited by thomas.raines; 26th March 2014 at 03:31 PM.
The Following 35 Users Say Thank You to thomas.raines For This Useful Post: [ View ]
28th October 2012, 01:24 AM   |  #3  
thomas.raines's Avatar
OP Recognized Developer
Flag Houston
Thanks Meter: 3,309
 
1,875 posts
Join Date:Joined: Jun 2011
Donate to Me
More
Voltage tables:
Voltage tables:
Voltage minimum
Was 1000mV
Now 700mV

Voltage max
Was 1250
Now 1350
With a 25mV step between frequencies; however, 192mV-423mV are all three 700mV

The governor tweak is set for a fairly balance of performance and battery life. If you find yourself needing battery life over performance, you can make some minor changes. Here's how:
1 Download Script Manager from the market (it's free)
2 Open Script Manager and navigate to /system/etc/init.d
3 Press menu/more/advanced options and select mount as RW
4 Select 01governor and select "edit" at the top (this will open the file in atext editor)
5 Uncomment (remove # in the particular line) and change:
Code:
echo "45" > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold;
To:
Code:
echo "70" > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold;
6 Select menu/save
7 Press the skull and cross bones icon at the top (this will allow Super User)
8 Press run, close app and enjoy
This will result is slightly slower performance but higher battery life.

If you want even better battery life:
1 Following steps 1-4
2 Add a # at the begining of lines 11 to 19
3 Scroll to "pwoersaver" section
4 Remove the # at the begining of lines 28, 30-38 and 43
Code:
#AWAKE_GOVERNOR="ondemand"
#SLEEP_GOVERNOR="ondemand"
#    echo "70" > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold;
etc
Code:
AWAKE_GOVERNOR="powersaver"
#SLEEP_GOVERNOR="powersaver"
        echo "20000" >  /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate;
5 Follow steps 6-8 (no need to select super user icon if you already did)
This will result in lower performance, but ultimate battery life

When running in a higher performance mode (especially for gaming) you can disable powersave_bias by changing the 1 to a 0 like this:
Code:
echo "1" > /sys/devices/system/cpu/cpufreq/ondemand/powersave_bias;
echo "0" >   /sys/devices/system/cpu/cpufreq/ondemand/powersave_bias;
Powersave_bias only allows the CPU to peak for small increments at a time, and not allow the CPU to remain peaked even when the system calls for it. In gaming, that could result in choppy, laggy perofrmance and slow FPS..

Although it says not to in the script, you can change the sampling rate as well. Do not go below 50000. I left it at 57500 as I found this seems good setting for smooth scrolling and performance.

Code:
    echo "57500" >  /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate;
Always leave SLEEP_GOVERNOR="powersave" uncommented (no #) and do not uncomment any other SLEEP_GOVERNOR as this will keep ultimate battery save while screen is off.
Only change values in increments of 5 for the up_threshold.

I am not resposible if you do something wrong. Make a back up just in case.
Last edited by thomas.raines; 8th April 2013 at 12:27 AM.
The Following 16 Users Say Thank You to thomas.raines For This Useful Post: [ View ]
28th October 2012, 01:55 AM   |  #4  
thomas.raines's Avatar
OP Recognized Developer
Flag Houston
Thanks Meter: 3,309
 
1,875 posts
Join Date:Joined: Jun 2011
Donate to Me
More
Source code tips
just add this to your local_manifest.xml:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
  <remote fetch="https://github.com" name="LZkernel" />
  <project name="TeamFahQ/msm8660-common_lz_kernel" path="kernel/samsung/msm8660-common" remote="LZkernel" revision="jellybean" />
  <project name="TeamFahQ/vendor_lz-kernel" path="vendor/lz-kernel" remote="LZkernel" revision="master" />
  <project name="TeamFahQ/android_device_samsung_msm8660-common" path="device/samsung/msm8660-common" remote="github" revision="jellybean" />
  <project name="TeamFahQ/android_device_samsung_skyrocket" path="device/samsung/skyrocket" remote="github" revision="jellybean" />
  <project name="TheMuppets/proprietary_vendor_samsung" path="vendor/samsung" remote="github" revision="jellybean" />
  <project name="CyanogenMod/android_device_samsung_celox-common" path="device/samsung/celox-common" remote="github" revision="jellybean" />
</manifest>
You MUST use my repo for the devices (as noted above) in order for LZ to build correctly. You will also need to manually copy the /scripts and modules to your directory where you zip things up. /system/etc/lzbp.sh is gone so make sure you remove the perms from your flashing script (Working on fixing this now)

Or (in terminal):
Code:
curl -L -o .repo/local_manifest.xml -O -L https://raw.github.com/TeamFahQ/Paranoid_manifest/master/local_manifest.xml
And remove the devices that you do not wish to use. Then repo sync. If you are using this as a basis for another device, make sure you check out the commits.
Last edited by thomas.raines; 5th February 2013 at 07:23 PM.
The Following 12 Users Say Thank You to thomas.raines For This Useful Post: [ View ]
28th October 2012, 02:27 AM   |  #5  
chinthekng's Avatar
Senior Member
Flag Maryland
Thanks Meter: 415
 
1,302 posts
Join Date:Joined: May 2012
More
Quote:
Originally Posted by thomas.raines

Sorry guys... My lack of patience for trolls got the best of me for the moment...

Anyhow, let's get on with the good stuff. The OP is complete, the CWM flashable zip is uploaded, and the link is validated and ready for you guys. Please allow at least 24 hours and 1 recharge cycle to pass before posting results and issues. If you do encounter an issue, please provide logs.

Since that's over I'm downloading now can't wait to see what happens

Sent from my SAMSUNG-SGH-I727 using Tapatalk 2

---------- Post added at 01:27 AM ---------- Previous post was at 01:05 AM ----------

i can confirm that this works on the latest slim bean 2.8 ill give it a full run to see how it feels and if it saves battery and performance
The Following User Says Thank You to chinthekng For This Useful Post: [ View ]
28th October 2012, 02:54 AM   |  #6  
x2o's Avatar
Senior Member
Thanks Meter: 52
 
143 posts
Join Date:Joined: Nov 2007
More
Awesome! digging the influx of kernels lately, will give this one a shot
28th October 2012, 03:04 AM   |  #7  
softballjunkee13's Avatar
Senior Member
Thanks Meter: 1,423
 
1,994 posts
Join Date:Joined: Apr 2011
More
Gonna give this a whirl on xperiance aokp r3

Sent from my SGH-I727 using Tapatalk 2
28th October 2012, 03:11 AM   |  #8  
Senior Member
Thanks Meter: 22
 
309 posts
Join Date:Joined: Jun 2012
forgive me if i miss details . i try to look which rom this support . iam running liquid RC 5 . the other two kernel only support build after 10-14th.
what about this one ? the same ?
28th October 2012, 03:16 AM   |  #9  
thomas.raines's Avatar
OP Recognized Developer
Flag Houston
Thanks Meter: 3,309
 
1,875 posts
Join Date:Joined: Jun 2011
Donate to Me
More
Quote:
Originally Posted by christianxin

forgive me if i miss details . i try to look which rom this support . iam running liquid RC 5 . the other two kernel only support build after 10-14th.
what about this one ? the same ?

I'm honestly not real sure man. All I can say is flash it and see... I can tell you this is a CM9/10 kernel...
The Following 2 Users Say Thank You to thomas.raines For This Useful Post: [ View ]
28th October 2012, 03:44 AM   |  #10  
ArcticFish's Avatar
Senior Member
Flag Orlando
Thanks Meter: 234
 
943 posts
Join Date:Joined: Jun 2012
More
Whoa another kernel XD this ones sounds cool Ima try it for the hercules

Sent from my Paranoid SGH-T989 with KKO

The Following User Says Thank You to ArcticFish For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes