yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] juicyjones:
I just made a short post with the most common settings and answers to questions in this thread to answer just the most obvious questions people are asking as of 4.2.2 and r83 about the governor, voltages and screen calibration. Really just a mini-faq.

Nexus 4 performance tweaks

Android Jelly Bean 4.2.2 w/Franco r83

(I'm using Paranoid Android 3 Feb 15)

If you want the very most recent 4.2.2 kernel releases regardless of what the franco.kernel updater says, bookmark this URL:

http://minooch.com/franciscofranco/Nexus4/4.2.2/

Yes the franco kernel works with Cyanogenmod and Paranoid Android, as well as others, I'm sure. The default Governor is Interactive.

What you need:

Just pay the man his $5

franco.kernel updater

https://play.google.com/store/apps/details?id=com.franco.kernel

Optional

CPU Spy

https://play.google.com/store/apps/details?id=com.bvalosek.cpuspy
​

CPU Frequencies

If you're having problems with battery life, you can limit the top speed of the CPU. There's not much reason to change the minimum frequency, your phone already spends most of it's time in deep sleep or at the minimum frequency of 384MHz. Lowering the maximum frequency from 1512 MHz to 1026 MHz or 1188 MHz can save a lot of power, and will only have a modest effect on performance. Start by capping it at 1026 MHz, and if you notice the slowdown, step it up to 1188 MHz and so on until you get the balance you like.

Voltages

Changing voltages lowers the battery use and temperature of your phone. Different phones have different tolerances for changing voltages. Just because a set of values works on someone else's phone doesn't guarantee that it'll work on yours, so it's important to experiment with these until your phone is stable. And remember, start high and go lower.

Stock Values

384 MHz -- 850 mV

486 MHz -- 875 mV

594 MHz -- 900 mV

702 MHz -- 925 mV

1026 MHz -- 950 mV

1188 MHz -- 1100 mV

1350 MHz -- 1125 mV

1512 MHz -- 1150 mV

A Stable One

384 MHz -- 750 mV

486 MHz -- 750 mV

594 MHz -- 800 mV

702 MHz -- 900 mV

1026 MHz -- 925 mV

1188 MHz -- 1000 mV

1350 MHz -- 1025 mV

1512 MHz -- 1050 mV

Slightly Lower Voltages

384 MHz -- 725 mV

486 MHz -- 750 mV

594 MHz -- 775 mV

702 MHz -- 800 mV

1026 MHz -- 900 mV

1188 MHz -- 975 mV

1350 MHz -- 1000 mV

1512 MHz -- 1025 mV

My personal Voltages

384 MHz -- 725 mV

486 MHz -- 750 mV

594 MHz -- 775 mV

702 MHz -- 800 mV

1026 MHz -- 900 mV

1188 MHz -- 975 mV

1350 MHz -- 1025 mV

1512 MHz -- 1050 mV
​

Screen calibration (r83)

AMOLED by Kel Ghu (r83)

RGB 255

Grays 0

Mids 64

Blacks 255

Contrast 255

Brightness 0

Saturation 214

Whites 60

AMOLED by obsanity

RGB 255

Whites 45

Mids 255

Blacks 255

Contrast 0

Brightness 0

Saturation 255

Grays 0

"Correct" by Visceralpsyche (r83)

50% brightness

Red 175

Green 170

Blue 165

Whites 20

Mids 20

Blacks 255

Contrast 0

Brightness 3

Saturation 7

Grays 0
​

* Updated for r83

* Updated colors by obsanity and visceralpsyche
[Nexus 4 Original Android Development] :
AW: [KERNEL][GPL][N4] franco.Kernel - r82

My kernel colors are still being reset after every boot. Is this expected behavior?

One question regarding hotplugging. The hotplugging mode in r82 is still: 2 cores on when screen is on and cores 2 and 3 are hotplugged each on their own. Independent from another, right?
[Nexus 4 Original Android Development] obsanity:
Re: [KERNEL][GPL][N4] franco.Kernel - r82

OK I sent a pm here at xda.

Sent from my Nexus 4
[Nexus 4 Original Android Development] SacredAce:
Re: [KERNEL][GPL][N4] franco.Kernel - r82

Still on 4.2.1 and every time I try to flash r72 directly from Franco kernel updater getting a FC, also on loading Color Profile. App version 8.7. Does 8.7.1 solves this issue?
[Nexus 4 Original Android Development] steviewevie:
Re: [KERNEL][GPL][N4] franco.Kernel - r82

Remember that the stock voltages are in two groups - one for slow/nominal and another for fast/faster.

Sent from my Nexus 4
[Nexus 4 Original Android Development] ceejay83:
Re: [KERNEL][GPL][N4] franco.Kernel - r82

Doesn't load older profiles
[Nexus 4 Original Android Development] franciscofranco:
Loading older profiles doesn't work, I didn't find a quick solution and the two issues I fixed on r8.7.1 were far more critic. Just delete your old profiles and make a new one.
[Nexus 4 Original Android Development] SacredAce:
Thx for the input!

What about r72 flashing, any special reason the app crashes every time I try to do it?
[Nexus 4 Original Android Development] mjehan:
Does that mean no values were preset in the kernel ? Does everyone need to enter in the default values ?
[Nexus 4 Original Android Development] zakoo2:
could you please post a link on where to get more info on that?
[Nexus 4 Original Android Development] juicyjones:
I wonder which those are. I just got them from a screenshot posted earlier in the thread.
[Nexus 4 Original Android Development] franciscofranco:
It doesn't crash on v8.7.1, I just tried and it worked.

Kernel has the values set, I just accidentally removed 3 lines that read the values from the kernel and write the values in the edittext boxes.
[Nexus 4 Original Android Development] shinodoigt:
When I'm checking how many cores are enabled on idle, I see that 2 are always on, I remember seeing just one on previous versions. What do I have to change to have the same settings as before ?
[Nexus 4 Original Android Development] bruc3lee:
Re: [KERNEL][GPL][N4] franco.Kernel - r82

Keep up the great work Franco.
[Nexus 4 Original Android Development] The-Nazgul:
Running r14 and everything is good so far. Thanks!
[Nexus 4 Original Android Development] lowveld:
Given that the UI runs on the foreground, which is dominated by the screen on usage, I doubt that battery usage will have significant impact at all.

As for some apps running smoother, that may very well be. But some apps won't run at all. And not because of usage, just because there are no safe guards on the SDK against forced GPU rendering.
[Nexus 4 Original Android Development] Locksmith81:
Thanks for all you do Franco
[Nexus 4 Original Android Development] :
Hey Franco. Just wanted to say I love your kernel. I remember my other colleagues used to talk in the office about your kernel (I had P990 that time) and how good it was. I thought to myself 'it can't be that good'. Now since I own N4 and tried your kernel i must say I am proud user of your kernel. Well done mate. And r14 is wicked. White really looks like white now. I can't believe it- how come Google didn't get that right..? Bought both apps to support. Keep up the good job.
[Nexus 4 Original Android Development] xploder270:
"How come X didn't get that right..?" is the essence of why we are xda users :good:
[Nexus 4 Original Android Development] zephiK:
lol thats very interesting :p i was just quoting a person on another forum who said custom kernels doesn't make a 'notable' difference (it was on the galaxy nexus forums though)

i love this community though, so talented and so much support all for free.
[Nexus 4 Original Android Development] ipnekgs:
The colors on the latest, they look so good! No, they don't look good, they look AMAZING! :thumbup:

Thanks you very much franco
[Nexus 4 Original Android Development] meanwhile:
Right #13, #14 gave me error whilst in public place accessing WiFi, particularly going into settings of WiFi part. Says something between the lines - unfortunately settings has crashed. Is it me alone? Restored stock kernel, problem gone.

Sent from microwave
[Nexus 4 Original Android Development] zephiK:
A kernel wouldn't effect your ROM settings to be crashing unless your ROM is incompatible with the kernel. What ROM are you using?
[Nexus 4 Original Android Development] franciscofranco:
There are no differences in Wi-Fi between stock and my kernel.
[Nexus 4 Original Android Development] meanwhile:
Will give it a go with fix permissions, love colors!

Sent from microwave

---------- Post added at 09:30 PM ---------- Previous post was at 09:30 PM ----------

Stock

Sent from microwave
[Nexus 4 Original Android Development] ssauger:
Franco did you read my question here? http://xdaforums.com/showpost.php?p=35363253&postcount=1135

Or is it nothing you like to spend your time? So i will never spam :) about it here.
[Nexus 4 Original Android Development] franciscofranco:
Sorry didn't see it. I can do that yes, shouldnt be a problem.
[Nexus 4 Original Android Development] vomer:
Would FM not also require an app to control? I am assuming there are options for it in the play store.
[Nexus 4 Original Android Development] ssauger:
That sounds great. I will write Mike (spiritfm) maybe he can contact you also. He has no N4 i think but i would test kernel/app. FANTASTIC!

So should i write here or PM you for that?
[Nexus 4 Original Android Development] drawde40599:
Stock kernel is junk !!! Fastboot boot boot.img this kernel, if u don't like just reboot and its back to stock . u will like tho !!
[Nexus 4 Original Android Development] franciscofranco:
Email please.
[Nexus 4 Original Android Development] ssauger:
Thanks again, i write my mail via PM to you.

Ups, you don't allow PMs :)
[Nexus 4 Original Android Development] franciscofranco:
Dont do that, I dont use PMs.
[Nexus 4 Original Android Development] ssauger:
mailed to your paypal donation adress, hope its ok.
[Nexus 4 Original Android Development] yokuyuki:
I don't think you can. On hotplugging, there's always two on.
[Nexus 4 Original Android Development] Arstoien:
Otherwise lags happen when the second core onlines, which is needed quite often.
[Nexus 4 Original Android Development] shinodoigt:
Why is there a "Dual Core" setting then ? Having two cores is useless screen off or in idle.
[Nexus 4 Original Android Development] Ok_Kaleidoscope5109:
How do I make my init.d script run?

# RGB colours
echo "175 175 175" > /sys/devices/platform/kcal_ctrl.0/kcal

# Gamma settings
# -------------------$$$$$$------------------
# Based on
# g_white 20
# g_mids 100
# g_black 255
# g_contrast 0
# g_brightness 0
# g_saturation 200
# g_greys 0
# --------------Setting gamma presets--------

echo "20" > /sys/class/misc/gammacontrol/whites
echo "100" > /sys/class/misc/gammacontrol/mids
echo "255" > /sys/class/misc/gammacontrol/blacks
echo "0" > /sys/class/misc/gammacontrol/contrast
echo "0" > /sys/class/misc/gammacontrol/brightness
echo "200" > /sys/class/misc/gammacontrol/saturation
echo "0" > /sys/class/misc/gammacontrol/greys

echo 70 > /sys/class/timed_output/vibrator/amp

# -----------------end-----------------------

I name it 77colors and stick it in system/etc/init.d and give it 755 permissions... anything else?
[Nexus 4 Original Android Development] Arstoien:
Dual and Quad core modes keep only one core when screen is off. When screen is on Dual core keeps only two cores online (not more); and Quad core mode keeps four.
[Nexus 4 Original Android Development] yokuyuki:
Because hotplugging can activate the 3rd and 4th core when needed. Dual core setting can't. None of the modes have more than one core on when the screen is off.
[Nexus 4 Original Android Development] smanthrav:
Re: [KERNEL][GPL][N4] franco.Kernel - r82

Hey guys...I was wondering if there's any particular reason why r82 isn't available on the franco app. I'm just able to download r72.

Edit: nevermind..l thought I updated the app but it didn't happen for some reason.
[Nexus 4 Original Android Development] drawde40599:
Nevermind I thought 82 was a test build :P
[Nexus 4 Original Android Development] flxdms:
and you reboot. As far as I know, it should work. There's someone who reported bootloops, but I think franco fixed it on r82.
[Nexus 4 Original Android Development] Arstoien:
--deleted--
[Nexus 4 Original Android Development] Vangelis13:
Re: [KERNEL][GPL][N4] franco.Kernel - r82

A random reboot while in settings. Phone was feeling fairly sluggish prior to the reboot, was odd.

http://pastebin.com/XHc2EV6P

On latest Liquid, r82 (attached pic are only changes, rest is as it comes), latest updated kernel app. Interesting is that supersu askes for approval several times as I enter your app, the first one takes a while before it comes up.
[Nexus 4 Original Android Development] drawde40599:
I was liquid yesterday and had multiple issues , none with stock or aokp 4.2.2 not saying its the ROM but haven't had any weird issues since I stopped using liquid
[Nexus 4 Original Android Development] Kajover:
Are you sure? 375 - 275 - 125 are the settings I have without changing anything.
[Nexus 4 Original Android Development] Ok_Kaleidoscope5109:
i did... no good :(

The vibrate settings seem to apply, but not the colors.
[Nexus 4 Original Android Development] masque3000:
Re: [KERNEL][GPL][N4] franco.Kernel - r82

I'm on cm 4.2.2 running kernel #53 & want to update, but don't need the display settings. Which kernel version should I upgrade to that will not effect my default display settings? Or do I need to update at all (I thought I read that I need a kernel compatible with 4.2.2)?
[Nexus 4 Original Android Development] pyr0sphere:
Re: [KERNEL][GPL][N4] franco.Kernel - r82

Same, also have 275 for the second value
[Nexus 4 Original Android Development] Vangelis13:
Re: [KERNEL][GPL][N4] franco.Kernel - r82

Fair enough, let's see if the boss finds something else of interest. It'd be a shame to leave it, nice rom.
[Nexus 4 Original Android Development] Prod1702:
Its on the latest version of the Franco App. You need to be on 4.2.2 to download it. the app knows if you are on 4.2.1 or 4.2.2.
[Nexus 4 Original Android Development] rxmxsh:
Re: [KERNEL][GPL][N4] franco.Kernel - r82

Display isn't affected until you affect it.
[Nexus 4 Original Android Development] Bluewall:
Re: [KERNEL][GPL][N4] franco.Kernel - r82

Am I fool or the colors of r82 are not the same as stock 4.2.2?

Envoyé depuis mon Nexus 4 avec Tapatalk
[Nexus 4 Original Android Development] meangreenie:
make sure it's unix formated, open it once with es file exporer or similar make sure enter is pressed at the end of every line, save, reset permisions.
[Nexus 4 Original Android Development] Testraindrop:
They are the same as on franco r14++, so not the same as stock...
[Nexus 4 Original Android Development] thesebastian:
I wanted to ask, it's possible to edit the gamma of the "Google (occam) stock 4.2.2 kernel" using the latest version of "franco.Kernel updater"? (I didn't buy the app yet!).
[Nexus 4 Original Android Development] ÜBER™:
Re: [KERNEL][GPL][N4] franco.Kernel - r82

No

Sent from my Nexus 4
[Nexus 4 Original Android Development] Ok_Kaleidoscope5109:
lol yeah the first line... as for the sleep timer, does it matter how long that sleep timer is set for or does it require the sleep timer just to be there?
[Nexus 4 Original Android Development] CrimsonSmear:
I chose sleep 5 because it put me past the Google screen (past where it looped).
[Nexus 4 Original Android Development] zakoo2:
Re: [KERNEL][GPL][N4] franco.Kernel - r82

franco! could you please implement the option to save the voltage/hotplug settings in the power mode? :)

sent from my Nexus 4...
[Nexus 4 Original Android Development] cguru:
That's very interesting! Removing the sleep timer results in a bootloop? If yes, do you have any explanation for that?

Perhaps a good hint for franco, where the source of that problem lies!
[Nexus 4 Original Android Development] CrimsonSmear:
Bootloop without sleep timer... possible the values being changed not written yet (don't know for sure).
[Nexus 4 Original Android Development] Dan53:
Re: [KERNEL][GPL][N4] franco.Kernel - r82

The kernel tries to load files but times out because it wants to set gamma too (something like that anyway). So sleeping before setting the gamma settings stops it from screwing around.

Or the post above. Either way the kernel timeout because it takes too long.
[Nexus 4 Original Android Development] CrimsonSmear:
This "solution" at minimum breaks the dictionary (auto correct).

---------- Post added at 07:17 PM ---------- Previous post was at 07:13 PM ----------

Regardless of why or how, the sleep timer will not impact the boot time and will implement the change before the home screen comes up.

Init.d shouldn't be processed until after the Google screen anyway.... and not at all for any boot process aside from Android system (ie, fastboot/recovery).
[Nexus 4 Original Android Development] yokuyuki:
Is there a new apk that lets you select between these colors?
[Nexus 4 Original Android Development] CrimsonSmear:
Not that I'm aware of. That is my personal functioning file with the most requested color profiles
[Nexus 4 Original Android Development] Ok_Kaleidoscope5109:
I must be stupid or something. I did the following:

1) Copied pasted your whole script and made it "77colors" in my /system/etc/init.d

2) Set permissions to 755

3) Reboot

now the vibration intensity doesn't even set. I removed the "" because I didn't have that earlier still no good..... the gamma isn't setting either...

When I execute the script in ScriptManager, here's what I see:
[Nexus 4 Original Android Development] sahilarora911:
Finally got the init.d script to work. I like the color settings by obsanity. Thanks to CrimsonSmear and meangreenie.

Rev 82 is really smooth. Awesome work Franco!!
[Nexus 4 Original Android Development] franciscofranco:
That is planned!

My main app does that if you do not wish to use terminal commands.
[Nexus 4 Original Android Development] CrimsonSmear:
Not to seem rude but you do have franco's kernel installed and root permissions, correct?

Check each line for trailing spaces.

The quotations are merely for uniformity.
[Nexus 4 Original Android Development] sahilarora911:
Use what is stated below. I used 'es note editor' within 'es file explorer' and pressed enter after every line, saved and reset permissions. It worked.
[Nexus 4 Original Android Development] iscraigh:
I have played around with it a bit hope you dont mind. A suggestion perhaps simply link to a post on each subject or question. A collection of links (only one for each subject/question) The links could be changed as a better more descriptive post is made. Then when people ask a repetitive question they could be referred to your spreadsheet for the answer. The hope would be that for the next question they would check the spreadsheet first. Then instead of trashing someone for asking a question we could post the link saying "have a look here".

Craig
[Nexus 4 Original Android Development] Shawtux:
Re: [KERNEL][GPL][N4] franco.Kernel - r82

Hi guys!

Love the kernel Franco!

I have the following question. Is there a zip to return to stock for 4.2.2? I just updated to 4.2.2 and there is no flashable zip like in 4.2.1? Searched but could find no flash file.

I like having a backup plan just in case.
[Nexus 4 Original Android Development] drawde40599:
Not sure about a zip yet but just pull boot.IMG from factory .IMG its good have a copy anyway just in case something happens https://developers.google.com/android/nexus/images u can also back up the kernel threw francos app

Edit --- actually just found one with just kernel but I'm NOT posting here if u want link pm me
[Nexus 4 Original Android Development] scream4cheese:
Re: [KERNEL][GPL][N4] franco.Kernel - r82

There is a zip file. Just keep looking.
[Nexus 4 Original Android Development] Vanhoud:
Re: [KERNEL][GPL][N4] franco.Kernel - r82

Here you go

http://db.tt/IuwyCcIA
[Nexus 4 Original Android Development] jmudrick:
Re: [KERNEL][GPL][N4] franco.Kernel - r82

Perhaps I've got this wrong, I thought because of changes to the screen in 4.2.2 that all the profiles (except for Obsanity's revision) would need to be recalibrated. I haven't seen updates from Visceralpsyche since 4.2.2 rolled out.
[Nexus 4 Original Android Development] sailfast:
getting a stock thermald

Does anyone know where I can find a stock thermald?

This kernal uses a non stock one which is preventing an upgrade to 4.2.2
[Nexus 4 Original Android Development] Luigiesin:
Re: [KERNEL][GPL][N4] franco.Kernel - r82

Flash stock kernel then..

I suppose you need kernel for 4.2.1:

http://db.tt/5o4RKtBA

Sent from my Rock & Roll Nexus 4 \m/

ROM: PA 3.0 (Feb15)

Kernel: Franco r82

T-Mobile
[Nexus 4 Original Android Development] CrimsonSmear:
Delete /system/lib/hw/power.msm8960.so

Rename power.msm8960.so.fkbak to power.msm8960.so

Change the permissions to 644 / rw-r--r--
[Nexus 4 Original Android Development] sailfast:
Thanks, but I already flashed the stock roll back kernel

Didn't touch the thermald file... It seems that Franco changes it and the stock roll back doesn't get it.
[Nexus 4 Original Android Development] EnIXmA:
Re: [KERNEL][GPL][N4] franco.Kernel - r82

Omg, all I can say is wow.

Thsnks
[Nexus 4 Original Android Development] Ok_Kaleidoscope5109:
I can't believe that's all... Ugh. I used Notepad++ which is a great text editor in Windows, but when I opened it on my phone i found mini spaces hidden after each line. Probably a formatting/encoding issue. But dang! That fixed everything.
[Nexus 4 Original Android Development] scream4cheese:
Check this out.

http://www.androidauthority.com/nexus-4-overheating-problem-156835/
[Nexus 4 Original Android Development] Kajover:
Re: [KERNEL][GPL][N4] franco.Kernel - r82

Maybe a silly question..or a new feature request ;) is the app pushing a notification in case of new kernel releases, so that a manual update check is not necesary? Planning to flash this kernel on a device of a less experienced user, who is not going to check every day whether or not there is an update.
[Nexus 4 Original Android Development] obsanity:
Re: [KERNEL][GPL][N4] franco.Kernel - r82

I bumped whites and adjusted saturation to proper max to avoid any overflow. I don't think that last bit is used by anything anyway but it doesn't hurt. See my sig for link to those new gamma.

Sent from my Nexus 4
[Nexus 4 Original Android Development] CheesyNutz:
Re: [KERNEL][GPL][N4] franco.Kernel - r82

Cool I'll have a go
[Nexus 4 Original Android Development] juicyjones:
Re: [KERNEL][GPL][N4] franco.Kernel - r82

If you check out my post from a page or two ago I have summarized his most recent post r80 colors. Those for r72 no longer work correctly. I also listed the "AMOLED" settings.

- Nexus 4 / PA 3 / Franco r82 -
[Nexus 4 Original Android Development] mrfrag1337:
Re: [KERNEL][GPL][N4] franco.Kernel - r82

Hi guys, I was testing all options and I tweak the Nexus 4 display with my u2412m and my iPad 3 as reference. The default values of 4.2.2 r82 are nice but need to lower the color values because the whites are saturated and this is not gamma white problem. So try to put RGB sliders around 200-220.

I have them in 220-210-215 set as your preferences. All Nexus 4 needs lower down the green value I think.

I waste my time sliding white gamma, saturation, contrast bla bla and the best values was the default ones but tweaking the color sliders.
[Nexus 4 Original Android Development] jtwlbz:
That's about what I do as well. Gamma was allright to begin with
[Nexus 4 Original Android Development] franciscofranco:
No no, thats the PowerHAL. Thermald is a binary from Qualcomm to control the thermal throttle, different things.

Answering the other user, the binary is in /system/bin/thermald

That is planned :)
[Nexus 4 Original Android Development] CheesyNutz:
like the new color set up will try it out for a few days
[Nexus 4 Original Android Development] jarjar124:
Re: [KERNEL][GPL][N4] franco.Kernel - r82

I was having this...
[Nexus 4 Original Android Development] Lowkey1:
Love the kernel,

Could anyone recommend a good settings for power saving/battery optimizing?
[Nexus 4 Original Android Development] franciscofranco:
The overheating is mostly related to mpdecision and how they aggressively manage the cpu frequencies with Ondemand - we don't have that problem here :)
[Nexus 4 Original Android Development] scream4cheese:
Lucky us! LOL
[Nexus 4 Original Android Development] magictwins:
with r82, the hsic wakelock(14%) is much more than its counterpart in stock kernel(8%). is this expected?
[Nexus 4 Original Android Development] penzoilguy:
yup no heat with franco's :D averanging below 40c