Thread Closed
Thumbs up

[KERNEL][UV][Linux 3.4.48] Harsh Kernel build June-10

15th December 2012, 01:42 PM   |  #1  
Harsh's Avatar
OP Recognized Developer
Flag Rajkot, Gujarat
Thanks Meter: 4,246
 
1,759 posts
Join Date:Joined: Mar 2009
Donate to Me
More
Hello guys n gals,

This is Kernel for Nexus 4 should work on all ROMs if having unmodified RAMDISK. For sources visit my github
It is CWM flashable zip file. So can be easily flashed.
Those having kernels with modified RAMDISK and other things, do flash RESET kernel(provided by other great devs in their kernel thread) before flashing this kernel.

harshkernel was made by me from google sources, and some extra tweaks for Personal USE.
I do not have time to support like other devs, I am just sharing what I have made for myself as my daily driver.

Quote:

Well, our cpu are made at some quality standards. We have 4 different quality of cpu for apq8064 from Qualcomm. so depending on which one is on your phone it selects frequency table from slow, nominal, fast and faster.
Google kernel source have same frequency table for fast and faster. So those with faster are not getting their extra advantage

Quote:

You can identify you CPU chip by below command in terminal.
adb shell dmesg | grep PVS
It will give you some output as given example below

Code:
adb shell dmesg | grep PVS
[ 0.873920] acpuclk-8064 acpuclk-8064: ACPU PVS: FAST

And faster binned CPU has lot to do with UV, when you look as frequency table of faster, it is already preconfigured to have lower voltages than fast, and lot lower than slow binned.
Phones with faster binned should have better battery than slower binned phone out of box without any other configuration.
And for UV its already hardcoded and can be adjusted by System Tuner app further. And OC I am not willing to add. Maybe will adjust frequency(underclock) later on but hardcoded and tested.

Features:
  • Added support for people who have CPU with FASTER binning.
  • So now cpu supports Slow, Nominal, Fast and Faster.
  • UV accordingly to have best stability. min UV is 100 so also not so less either
  • Updated OnDemand and Interactive governor
  • Raw ioscheduler
  • Gamma control faux, also enabled init.d
  • HSIC wakelock fixed

If you like it hit THANKS button.

Download file is in AnyKernel format from koush, should work on all ROMs with unmodified RAMDISK
harshkrnl build June-10 Linux 3.4.48 Link: DOWNLOAD

No update to boot.img from now on, cant upload stuff as fast as before. Slow internet
Boot Image Feb-20 (build with new 4.2.2 ramdisk): http://d-h.st/7vB

Google's 4.2.2 Stock kernel with UV, Gamma and faux's Sound. Nothing more nothing less.
Download Link: http://d-h.st/8z8

boot images will not be updated, as having very few downloads ... maybe those who use it are senior members and can pack by their own if required.

sourcecode
Attached Files
File Type: zip harshkrnl-nexus4mako-May-15.zip - [Click for QR Code] (6.10 MB, 384 views)
Last edited by Harsh; 13th June 2013 at 03:47 AM.
The Following 190 Users Say Thank You to Harsh For This Useful Post: [ View ]
15th December 2012, 01:42 PM   |  #2  
Harsh's Avatar
OP Recognized Developer
Flag Rajkot, Gujarat
Thanks Meter: 4,246
 
1,759 posts
Join Date:Joined: Mar 2009
Donate to Me
More
Thumbs up
Changelog:
Build June-10
Linux 3.4.48

Build May-15
Linux 3.4.45
Faux's Sound 2.1
Don't break whats not broken

Build Mar-21
Linux 3.4.37

Build Mar-12
Linux 3.4.35
Faux's Sound Control

Build Mar-01
Linux 3.4.34
Disable few wifi debug

Build Feb-24
Linux 3.4.33
Upgrade to Graphics Driver from caf
More HSIC Patches from caf

Build Feb-20
Linux 3.4.32
Updated RAW to latest caf source

Build Feb-16
Linux 3.4.31
Sync with Google 4.2.2 sources
New video drivers from google
1st India Edition

Build Feb-05
Linux 3.4.29
Compiled from new setup of my Laptop

Build Feb-03
More changes to UV
Added latest fixes by Google

Build Feb-01: Safe UV
Safe UV by Skkip (UV accordingly so that stability is priority)

Build Jan-29: Gamma
Added Gamma control possibility using script or terminal
Step forward in CLEANER device (no kernel controlling apps)

Build Jan-28
Linux 3.4.28
Nothing much
Uploaded 2 builds (Normal and Lower UVed)

Build Jan-24 -fixed
Linux 3.4.27
Added westwood+ and set as default
Removed some of logging and debugs
And UV is now -100 mV across the board as per many requests.
Fixed TouchControl from my previous mess-up.

Build Jan-22
TouchControl Supported now.
Gamma control added, and also tweaked inside kernel
Removed some IO schedulers
Removed some unnecessary debugging

Build Jan-20
Updated to Linux 3.4.26
Camera driver tweak testing (not proven improvement but does not harm either)
Enabled CIFS suddenly I had need for this one

Build Jan-18
Interactive Governor is now fixed
OnDemand is set as default (use trickster app to select Interactive governor).

Build Jan-16
More changes to RAW io scheduler from caf
Update to Linux 3.4.25
And smoothness of Jan-15 continues

Build Jan-15
More tuning outside kernel code(compiler) for better smoothness.
Secret (its not kernel thing, so no GPL code)

Build Jan-11
RAW iosched patches from caf
Update interactive gov from google (plz dont use it yet)
Build with gcc46 again to test. (previous build was gcc47)
More caf patches

Build Jan-07
Showp-1984's suggested touchscreen fix
Everything same as below. Its just for touchscreen fix

Build Jan-05 L2
Updates to L2 table
Try2 on 3g data fix (no reverts on hsic wakelock fix, its still there)
Been testing this build since yesterday on 3g with sweep2wake enabled consumed my 1/3 of monthly data and had no problems. 23h 7m all on 3g - s2w enabled, with 1h 50m screen on. Battery currently at 23%

Build datatest
Lots of changes look for my github IPA branch for it.

Build Jan-03
Disabled sweep2wake by default (can be enabled by various apps)
Add support for krait cores retention (low power mode cpu core voltage handling changes)
Added Internet Protocol Accelerator (testing phase, data is working do not worry )

Build 0201
Added ROW iosched and set as default
Removed some governors (ondemand is default and preferred)
Qualcomm Secure Execution Environment Communicator fixes which were missed out before.

Build 3012
better 3g battery proven from last version
Better cpufrequency management
Changes in Omdemand for above
last version for year 2012
Happy New Year.... Once again

Build 2912
test for HSDPA battery consumption
Probably last version for year 2012 (going Paris tomorrow)
Happy New Year....

Build 2812
Fixed msm_hsic_host wakelock
Edit: 2nd Attempt to fix hsic wakelocks

Build 2712
Completely Cleaned all remaining Qualcomm InKernel mpdecision traces
Should be perfectly stable now.

Build 2512
Merry xmas
Reverted back to original mpdecision (thanks showp-1984 and Imperticus)
Added Sweep2Wake (thanks again showp-1984 genius )
Warning: Sweep2Wake only active for bottom part of screen (navigation bar area)

Build 2212
Updated Latest OnDemand governor from codeaurora
Codeaurora mpdicision InKernel Solution (possible to set max frequency below project butter )
InKernel mpdicision is new approach from Codeaurora sources and not similar to show-p1984(s2w salute )

Build 2212
Merged kernel.org Linux 3.4.x upto latest current Linux 3.4.24
Updated prima wifi drivers "prima: release 3.2.1.13"

Build 1912
CPU Binning Names added back. No more numbers
Color can be set using Franco's Display Control or Trickster Kernel MOD

Build 1812
Build Using more msm CPU oriented flags
Enable Voltage control (using System Tuner app from market)
Thanks Faux and motley for that.

Build 1612
Added UV for all 4 frequency table slow, nominal, fast and faster
UV added accordingly to maintain stability for all.
As I have NOMINAL CPU, its tested on that only

Build 1512
Add support for FASTER PVS bin
Support selecting different PVS tables
Lower VDD_DIG voltage vote for L2
Color calibrated to my own liking (reduced yellow screen effect)
If you like it hit THANKS button.
Last edited by Harsh; 13th June 2013 at 03:45 AM.
The Following 65 Users Say Thank You to Harsh For This Useful Post: [ View ]
15th December 2012, 01:42 PM   |  #3  
Harsh's Avatar
OP Recognized Developer
Flag Rajkot, Gujarat
Thanks Meter: 4,246
 
1,759 posts
Join Date:Joined: Mar 2009
Donate to Me
More
Thumbs up [KERNEL][UV][Linux 3.4.48] Harsh Kernel build June-10
And for Gamma Controlling using init.d script or using terminal.

Examples to learn about it.
LG Preset Undercover
Code:
#!/system/bin/sh

# First we set colors
echo "255 255 255" > /sys/devices/platform/kcal_ctrl.0/kcal

# Now Gamma, need to change values at place 6 and 7 only
# value at 6 is amp0 and at 7 is amp1
# kgamma_r is for red, g for green and b for blue

# values amp0 and amp1 are located below $$$$
# ---------------------$$$$$-----------
echo "208 114 21 118 0 20 00 80 48 2" > /sys/devices/platform/mipi_lgit.1537/kgamma_r
echo "210 114 21 118 0 19 00 80 48 2" > /sys/devices/platform/mipi_lgit.1537/kgamma_g
echo "212 114 21 118 0 19 00 80 48 2" > /sys/devices/platform/mipi_lgit.1537/kgamma_b
# undercover's LG Preset values :D, thank you.
My kernel defaults, Google Preset
Code:
#!/system/bin/sh

# First we set colors
echo "255 255 255" > /sys/devices/platform/kcal_ctrl.0/kcal

# Now Gamma, need to change values at place 6 and 7 only
# value at 6 is amp0 and at 7 is amp1
# kgamma_r is for red, g for green and b for blue

# values amp0 and amp1 are located below $$$$
# --------------------$$$$$-----------
echo "208 64 68 118 1 04 02 48 32 1" > /sys/devices/platform/mipi_lgit.1537/kgamma_r
echo "210 64 68 118 1 00 00 48 32 1" > /sys/devices/platform/mipi_lgit.1537/kgamma_g
echo "212 32 35 116 0 26 16 80 51 3" > /sys/devices/platform/mipi_lgit.1537/kgamma_b
# Harshkernel default settings
Values marked in RED color are only values you need to change while using this script.
and all these echo commands you can use it in terminal too, or you can run script from terminal.

I am providing scripts here, so you can directly download it to your mobile phone. Remove txt extention, and put it in /system/etc/init.d folder, and set permissions.

XDA:DevDB Information
[KERNEL][UV][Linux 3.4.48] Harsh Kernel build June-10, a Kernel for the Google Nexus 4

Contributors
Harsh
Kernel Special Features: Kernel for JB 4.2.2

Version Information
Status: Stable

Created 2013-08-22
Last Updated 2013-08-22
Attached Files
File Type: txt 77lgpreset.txt - [Click for QR Code] (638 Bytes, 637 views)
File Type: txt 87google.txt - [Click for QR Code] (618 Bytes, 229 views)
Last edited by Harsh; 13th June 2013 at 03:46 AM.
The Following 131 Users Say Thank You to Harsh For This Useful Post: [ View ]
15th December 2012, 02:07 PM   |  #4  
Imperticus's Avatar
Recognized Contributor
Thanks Meter: 1,054
 
1,117 posts
Join Date:Joined: Jan 2011
Donate to Me
More
You finally released it. Should work with cm too?
15th December 2012, 02:08 PM   |  #5  
Harsh's Avatar
OP Recognized Developer
Flag Rajkot, Gujarat
Thanks Meter: 4,246
 
1,759 posts
Join Date:Joined: Mar 2009
Donate to Me
More
Quote:
Originally Posted by Imperticus

You finally released it. Should work with cm too?

Yes had to release as I was using it.

Not this version as it is boot.img. For cm version I will have to put it up in anykernel script, as cm use different ramdisk

Sent from my Nexus 4
Last edited by Harsh; 15th December 2012 at 02:12 PM.
The Following 2 Users Say Thank You to Harsh For This Useful Post: [ View ]
15th December 2012, 02:18 PM   |  #6  
Imperticus's Avatar
Recognized Contributor
Thanks Meter: 1,054
 
1,117 posts
Join Date:Joined: Jan 2011
Donate to Me
More
Quote:
Originally Posted by Harsh

Yes had to release as I was using it.

Not this version as it is boot.img. For cm version I will have to put it up in anykernel script, as cm use different ramdisk

Sent from my Nexus 4

I shall extract and try it on CM

EDIT: tried both AnyKernel, and building boot.img using ramdisk from franco's kernel. Stuck on Google screen.
Last edited by Imperticus; 15th December 2012 at 02:48 PM.
The Following User Says Thank You to Imperticus For This Useful Post: [ View ]
15th December 2012, 02:44 PM   |  #7  
kangi26's Avatar
Retired Forum Moderator
Flag Seattle
Thanks Meter: 1,438
 
3,761 posts
Join Date:Joined: Nov 2006
More
Moved thread to Original Development
The Following 3 Users Say Thank You to kangi26 For This Useful Post: [ View ]
15th December 2012, 03:57 PM   |  #8  
Harsh's Avatar
OP Recognized Developer
Flag Rajkot, Gujarat
Thanks Meter: 4,246
 
1,759 posts
Join Date:Joined: Mar 2009
Donate to Me
More
updated anykernel zip for flashing on other rooms.
http://d-h.st/2k4
The Following 3 Users Say Thank You to Harsh For This Useful Post: [ View ]
16th December 2012, 03:14 AM   |  #9  
meangreenie's Avatar
Senior Member
Thanks Meter: 628
 
2,178 posts
Join Date:Joined: Mar 2012
weird it won't boot for me, fastboot or flash; sticks on the google screen

stock 4.2.1 8gb.. used stock version boot.img


edit, using the anykernel version worked.

thx
Last edited by meangreenie; 16th December 2012 at 04:07 AM.
16th December 2012, 04:28 AM   |  #10  
KidCarter93's Avatar
Forum Moderator
Flag Coventry, UK
Thanks Meter: 6,749
 
10
14,393 posts
Join Date:Joined: Mar 2012
More
I've just added this kernel to the Nexus 4 Complete Index

Sent from my GT-I9100 using xda premium

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

Tags
faster, gpl, harsh, kernel, nexus4
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Nexus 4 Original Android Development by ThreadRank