FORUMS
Remove All Ads from XDA

[KERNEL][4.4][KK] franco.Kernel.Plus r203 RC3 (03/15) | discontinued

409 posts
Thanks Meter: 790
 
By aventu, Senior Member on 20th August 2013, 09:25 PM
Post Reply Email Thread
franco.Kernel +

*Discontinued*

These are my personal franco.Kernel builds with some modifications, explained below.

Things I want to achieve with this mod:

- more battery life
- same more performance as stock
- smooth ui / games
- less heat


Highlights:
Advanced Dynamic Scaling:
The interactive governor will now use different values for up_threshold, timer_rate and min_sample_time for every cpu_core and gpu_idle state. If the gpu is busy, the governor will use values for more performance and if it is idle, it will use conservative settings.

The current values, feel free to suggest other.
Code:
/* up_threshold, timer_rate, min_sample_time */
static unsigned int interactive_val[GPU_STATE][ACTIVE_CORES][TUNABLES] =
{{
/* gpu idle */
{100, 40000, 10000},
{100, 40000, 20000},
{100, 40000, 30000},
{100, 40000, 40000} 
},{
/* gpu busy */
{90, 20000, 40000},
{90, 20000, 40000},
{95, 20000, 60000},
{95, 20000, 80000} 
}};


Dynamic Touchboost:
The touch boost is only active if something is rendered on the screen, that means the boost will pause as long as there is no movement, but it will resume when it is actually necessary. It will double the actual cpu load and calculate the frequency, the maximum is input_boost_freq. This aggressive calculation offers a smooth ui, but it can also save battery, because you will often don't need input_boost_freq when the screen is touched.

New Hotplug Solution:
Instead of linking core0 to core2 and core1 to core3, all cores a controlled separately. This should prevent an excessive hopping up and downwards. The load is calculated with all active cores to get the performance we actually need.
After some time (if 2 core touchboost is active) and not touching the screen, only 1 core will stay online to save a bit more battery.
It will use different up and down thresholds for each gpu_idle and cpu core state.

Code:
/* down threshold, up threshold */
static unsigned int hotplug_val[GPU_STATE][ACTIVE_CORES][TUNABLES] =
{{	
	/* gpu idle */
	{0, 70},
	{40, 80},
	{50, 90},
	{60, 100} 
	},{
	/* gpu busy */
	{0, 60},
	{30, 60},
	{30, 65},
	{40, 100} 
}};


https://github.com/reborn90/mako/blo...mako_hotplug.c

Smooth thermal throttling:
When the temperature hits the threshold, the frequencies won't be limited immediately but scaled down step by step to prevent lagspikes from jumping between 1,5 and 1GHz (if the current temperature allows it). This mod is absolutely not made for benchmarks because my solution is as agressive as the original one. There are other good kernels to melt your device.

https://github.com/reborn90/mako/blo.../msm_thermal.c

Recommended settings (default):
thermal threshold: 65

Hotplug:
high load: 60
low load: 30
cores on touch: 2

Interactive governor:
dynamic_scaling: true
input_boost_freq: 1134MHz
input_boost_freq_duration: 1500

Interactive gpu governor:
up_threshold: 60
down_threshold: 25

Per app settings tipp:
Set input_boost_freq to the lowest frequency for games.

Github:
https://github.com/reborn90/mako/tree/nightlies-4.4


MD5

bbe66dc7ac213081f423eb0435495ad6 franco.Kernel.Plus-r193-1110-JSS.zip
8c2428486e1b0492e494ebd6252e83ed franco.Kernel.Plus-r193-1110-JSS-CAF.zip
d674f49b81586a342be73b315dc30af3 franco.Kernel.Plus-r193-1110-JWR.zip
9a1300d5103cfa4d26ed0c7fce0b2b4e franco.Kernel.Plus-r194-1121-KRT.zip
a06c7609c9b79c36cedd933f6ea57ae5 franco.Kernel.Plus-r194-1127-KRT.zip
3e53f4bda0d3ae8716187bc8bd7a3f18 franco.Kernel.Plus-r198-1209.zip
eec2e964e417d76105b13cf3f700056b franco.Kernel.Plus-r200-0101.zip
ca227545fb5efe75c05836041f396e98 franco.Kernel.Plus-r203-0124.zip


Hit thanks if you like it.
Buy Franco's app or just a coffee for me.

I'm testing all my builds and use them daily, but I am not responsible for any kind of damage on your device.

Which version should I choose?
- JWR for stock 4.3
- JSS for JLS roms
- JSS-CAF for cm 10.2
- builds >= r194 are for Android 4.4 Kitkat (KRT)
- builds >= r198 are for Android 4.4.1 and 4.4.2 Kitkat (KOT)
- KRT is compatible with KOT and vice versa
- cm 11 is not compatible

r203 RC1 (02/04): http://forum.xda-developers.com/show...&postcount=835
r203 RC2 (02/09): http://forum.xda-developers.com/show...&postcount=848
r203 RC3 (03/15): http://forum.xda-developers.com/show...&postcount=890

The recommended settings above are not made for the release candidates.

Recommended ROM: AOSPA PARANOIDANDROID 4.0
The Following 223 Users Say Thank You to aventu For This Useful Post: [ View ] Gift aventu Ad-Free
 
 
20th August 2013, 09:25 PM |#2  
aventu's Avatar
OP Senior Member
Thanks Meter: 790
 
More
Current changelog:

based on r203
- updated franco's interactive gpu governor
- lowered threshold for 4th cpu core
- added (modified) generic touchboost driver from franco
- updated FauxSound to version 3.2

regular changelog:
http://192.241.177.15/Nexus4/4.4/appfiles/changelog.xml


Old changelogs:

Code:
(01/01)
based on r200
- new dynamic hotplug values
- awesome row io scheduler improvements

(12/09)
based on r198
- 4.4.1 update
- hotplug and interactive gov update
- dynamic io_is_busy decision
- fix for wrong load calculation while the device is throttled

(11/27)
based on r194
- (re)added FauxSound and FauxSpeaker

(11/21)
based on r194
- Kitkat update
- quick fix: I forgot to disable some debug logs, sry!

(11/10)
based on r193
- new dynamic touchboost
- hotplug speed is now based on gpu_idle

(10/28)
based on r193
- MultiROM is activated now
- hotplug tweaks

(10/15)
based on r191
- reverted interactive governor

(10/13)
based on r191 (test release)
- new interactive governor, not fully optimized jet
- phone wakeup tweaks, again

(10/03) 
based on r188
- fixed a bug which caused way too high gpu frequencies
- tweaked hotplugging at wakeup a bit
- more conservative hotplug values (+20) if gpu_idle and dynamic_scaling are true

(9/23) 
based on r184
- only upstream merge

(9/16) 
based on r183
- reimplemented gpu_idle detection with interactive gpu governor
- merging and syncing 
- raised min voltage to 650

(9/12) 
based on r182
- Advanced Dynamic Scaling
- touchboost tweaks
- touchboost duration reduced to 1500ms
- much better gaming performance
- FauxSound

(8/04) 
based on r182
- Interactive: removed unused hispeed freq
- no ondemand for now, needs way too much battery

(8/31) 
based on r178
- Smart Touchboost added
- instant touchboost without waiting for governor
- touchboost duration raised to 2sec
- better performance for low end games (Doodle Jump)
- little bugfixes

(8/24) 
based on r178
- enabled wakelock stats

(8/20) 
based on r176
- new hotplug driver
- new thermal throttling
- correct load calculation while throttled
- interactive gov: new dynamic tunables
- gpu driver: new average load calculation
- new frequencies 270MHz and 162MHz
- lower minimum voltages 600mV
- instant touchboost when unlocking the device
The Following 33 Users Say Thank You to aventu For This Useful Post: [ View ] Gift aventu Ad-Free
20th August 2013, 09:39 PM |#3  
yethz's Avatar
Senior Member
Flag Tagbilaran City
Thanks Meter: 545
 
Donate to Me
More
1st one to drop and say thanks a lot
The Following 2 Users Say Thank You to yethz For This Useful Post: [ View ] Gift yethz Ad-Free
20th August 2013, 09:49 PM |#4  
Senior Member
Massachusetts
Thanks Meter: 137
 
More
Any deadlock issues?

Sent from my Nexus 4 using xda app-developers app
20th August 2013, 09:50 PM |#5  
aventu's Avatar
OP Senior Member
Thanks Meter: 790
 
More
Quote:
Originally Posted by Deggy

Any deadlock issues?

Sent from my Nexus 4 using xda app-developers app

Same as the original ones.
The Following User Says Thank You to aventu For This Useful Post: [ View ] Gift aventu Ad-Free
20th August 2013, 09:51 PM |#6  
hughfollett's Avatar
Senior Member
Thanks Meter: 934
 
More
Quote:
Originally Posted by Deggy

Any deadlock issues?

Sent from my Nexus 4 using xda app-developers app

Only on jss I think..!

Inviato dal mio Nexus 4 usando Tapatalk 4
20th August 2013, 10:08 PM |#7  
ironjon's Avatar
Senior Member
Flag Somewhere in time
Thanks Meter: 502
 
More
Module support is enabled?

Enviado desde mi Nexus 4 usando Tapatalk 4
20th August 2013, 10:11 PM |#8  
aventu's Avatar
OP Senior Member
Thanks Meter: 790
 
More
Quote:
Originally Posted by ironjon

Module support is enabled?

Enviado desde mi Nexus 4 usando Tapatalk 4

Same as Franco or, if I have to do that, not jet.
The Following User Says Thank You to aventu For This Useful Post: [ View ] Gift aventu Ad-Free
20th August 2013, 10:17 PM |#9  
Senior Member
Flag Bombay
Thanks Meter: 173
 
More
Are kernel wake lock stats available as well ?

Sent from my Nexus 4
20th August 2013, 10:35 PM |#10  
aventu's Avatar
OP Senior Member
Thanks Meter: 790
 
More
Quote:
Originally Posted by joshuab227

Are kernel wake lock stats available as well ?

Sent from my Nexus 4

good idea, I will readd them :P
The Following 3 Users Say Thank You to aventu For This Useful Post: [ View ] Gift aventu Ad-Free
21st August 2013, 12:53 AM |#11  
KiD3991's Avatar
Senior Member
Thanks Meter: 395
 
More
Awesome. More toys! :P
And I like what the first thing said, more battery life. Still searching for the ROM that can give me 8 hours SOT.
The Following 2 Users Say Thank You to KiD3991 For This Useful Post: [ View ] Gift KiD3991 Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes