yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Q&A, Help & Troubleshooting] jimmyStoo:
does anyone notice a difference?

I'm not sure if I'm doing this wrong. I flashed the JSS15J kernel in recovery and I took a before and after picture to compare. The phone was put at full brightness and same camera settings were used on all pictures.

I have attached the files since I'm a new user and cannot post outside links.

Maybe I did it wrong but I don't notice a difference. :confused:
[Nexus 4 Q&A, Help & Troubleshooting] tiru.adi13:
Moles I love you!!!!! All that's left now is touch control :thumbup:

Sent from my Nexus 4
[Nexus 4 Q&A, Help & Troubleshooting] cocchiararo:
[MENTION=2264523]moles[/MENTION]:

Before you used to compile these kernel with TouchControl compatibility

Could you do it again for 4.3 ?
[Nexus 4 Q&A, Help & Troubleshooting] molesarecoming:
you can't make screenshots of it :D the pixel color remains the same of course, but the way the display interprets that differs. when you come from stockand you flash that kernel you see an immediate punch, blacks seem deeper, colors are more alive and vibrant, the washed out look is completely gone. perhaps you can make pictures with a dslr on manual whiteballance and shutterspeed, that should work.
[Nexus 4 Q&A, Help & Troubleshooting] molesarecoming:
why not, i can try. i think i got compiling issues though when activating modules .......
[Nexus 4 Q&A, Help & Troubleshooting] Sgace:
Just flashed the jwr build.

Brilliant, as always moles!:D

Thnx a million!!

Cheers
[Nexus 4 Q&A, Help & Troubleshooting] nyyankees3511:
are the downloads not working for anyone else?
[Nexus 4 Q&A, Help & Troubleshooting] molesarecoming:
someone changed the filenames. i had them on goo, too, links are updated.
[Nexus 4 Q&A, Help & Troubleshooting] matus201:
Thank you for this!

I'm enjoying the better saturation a lot. There is only one thing - with original colors, the "automatic brightness" was adequate; however, with these half-breed colors, I seem to require higher brightness settings. Any idea how to increase the "automatic brightness" levels?
[Nexus 4 Q&A, Help & Troubleshooting] danslecarton:
You can do that on the PA ROM ;)
[Nexus 4 Q&A, Help & Troubleshooting] molesarecoming:
its a rom thing.

the vendor (LG) gave google two things, the kernel, with a decent calibration and an overlay that defines the autobrightness values to go along with that. when google screwed up the kernel they had to mess with the brightness settings aswell, making them darker since their new kernel had brightness cranked to max. PA has that fixed out of the box and most roms give you a panel to finetune these values. for stock its a bit of a bummer.
[Nexus 4 Q&A, Help & Troubleshooting] matus201:
Yeah, I wish there was a way to change that. I found Lux Brightness, but don't really want another app running on my phone.. I like the idea of being as stock as possible, without too many apps running in background. But tweaked :P
[Nexus 4 Q&A, Help & Troubleshooting] rolear8:
[MENTION=2264523]moles[/MENTION] can you support Touch control on JSS kernel please?
[Nexus 4 Q&A, Help & Troubleshooting] thesebastian:
I picked up framework-res.apk from stock 4.3 JWR ROM. And changed the autobrightness values with these values. (For Halfbreed).

To install:

1) Make a Nandroid backup with CWM (to be able to restore/rollback in case it fails, very important).

2) Use Es Explorer to copy the framework-res.apk and paste it on /system/framework/ folder. (It will automatically reboot after the replace process is finished using Es Explorer).

JWR66V

Download framework-res.apk JWR66V PA Autobrightness

JWR66Y:

Download framework-res.apk JWR66Y PA AutoBrightness

If you want to create your own framework-res.apk i used information within this guide to know how to decompile/build the APK:

http://xdaforums.com/showthread.php?t=2306742
[Nexus 4 Q&A, Help & Troubleshooting] frgr:
NFC service and phone errors after flashing

I've gone from a fresh install of stock 4.3 --> CM 10.2 (Aug 13) and flashed 4.3 gapps + 4.3 JSS PA kernel but upon boot I get errors that NFC service and android phone service stopped work.

Any ideas?
[Nexus 4 Q&A, Help & Troubleshooting] rAndroid3:
How can I get the kernel "build 1 #1"??? For jss 4.3 ROM .
[Nexus 4 Q&A, Help & Troubleshooting] tiru.adi13:
Moles, would it be possible for you to enable touch control(s2w) support for the JWR kernel, when and if you have the time? Thanks a lot!

Sent from my Nexus 4
[Nexus 4 Q&A, Help & Troubleshooting] thesebastian:
FYI: If you try to update JWR66V to JWR66Y (1.8MB new OTA) with my modified Framework-res.apk.

You will get this error:

I'm going to change the new modified framework-res.apk and re-upload later.

Restore your original framework-res.apk or flash system.img (fastboot flash system system.img).
[Nexus 4 Q&A, Help & Troubleshooting] matus201:
thanks [MENTION=4864772]thesebastian[/MENTION], I was just going to ask you if you could do this for us!

(a bit off topic.. so the new 1.8MB OTA doesn't change kernel? does it unroot your phone?)
[Nexus 4 Q&A, Help & Troubleshooting] thesebastian:
Here you are... "JWR66Y framework-res.apk" edited with PA arrays.xml autobrightness.

Download framework-res.apk JWR66Y PA AutoBrightness

If you want to create your own framework-res.apk i used information within this guide to know how to decompile/build the APK:

http://xdaforums.com/showthread.php?t=2306742
[Nexus 4 Q&A, Help & Troubleshooting] DirgeExtinction:
Does the JWR66V kernel work on JWR66Y?
[Nexus 4 Q&A, Help & Troubleshooting] blahquader:
Yes, works fine here.
[Nexus 4 Q&A, Help & Troubleshooting] thesebastian:
Kernel didn't changed with the latest OTA so don't worry about that. It's the same kernel.
[Nexus 4 Q&A, Help & Troubleshooting] tiru.adi13:
Would touch control (s2w) support on this kernel?

Sent from my Nexus 4
[Nexus 4 Q&A, Help & Troubleshooting] waleedshiekh:
What are the values for HALFBREED Calibration in CyanoGenMOD(10.2) gamma control? Thanks.
[Nexus 4 Q&A, Help & Troubleshooting] urcindalo:
I'm on PA 3.99-rc1. Build number is 4.3 JSS15Q.

Is the 4.3 JSS15J kernel in the first page suitable for PA 3.99-rc1?

Thanks in advance.
[Nexus 4 Q&A, Help & Troubleshooting] fahadsul3man:
help whenever i open the download links it says file you requested was not found :S
[Nexus 4 Q&A, Help & Troubleshooting] MaxFTW:
Halfbreed is a preset made by PA Team so its the same

No, PA uses JWR

Anyway, stock PA kernel already had calibrated color

== Sent from my CarbonMako ?? ==

---------- Post added at 11:12 PM ---------- Previous post was at 11:11 PM ----------

No, stock doesnt have s2w feature

== Sent from my CarbonMako ?? ==
[Nexus 4 Q&A, Help & Troubleshooting] porfetx:
Could you please upload pa_mako-Kernel-4.3_JWR66V_HALFBREED.zip again?

Because on goo.im it's not available anymore.. thanks!
[Nexus 4 Q&A, Help & Troubleshooting] :
I second that, please reupload thanks
[Nexus 4 Q&A, Help & Troubleshooting] tiaoalvino:
Any plans for a 4.4 KitKat HALFBREED? :laugh:
[Nexus 4 Q&A, Help & Troubleshooting] anto.danny:
+1 :highfive:
[Nexus 4 Q&A, Help & Troubleshooting] porfetx:
+1.. kk stock colors now seem so washed out..!
[Nexus 4 Q&A, Help & Troubleshooting] tatnai:
couldn't agree more. moles we need you :crying::fingers-crossed:
[Nexus 4 Q&A, Help & Troubleshooting] spiderman3:
Halfbreed for nexus 4 on Kitkat would be awesome indeed!!

:angel::angel:
[Nexus 4 Q&A, Help & Troubleshooting] anto.danny:
guess he is busy with PA rom :D
[Nexus 4 Q&A, Help & Troubleshooting] spiderman3:
Halfbreed colors for Nexus 4

I have uploaded a kernel with the Halfbreed color calibration compiled from stock 4.4 [KRT16S] source here.

Enjoy!!
[Nexus 4 Q&A, Help & Troubleshooting] maverickronny:
is it ok if i just input numbers from pa half breed here http://xdaforums.com/showpost.php?p=41525699&postcount=1113

i did not understand the warning regarding manually inputting numbers in the 1st posts :confused:
[Nexus 4 Q&A, Help & Troubleshooting] spiderman3:
If you have a kernel that supports color calibration and have Trickster then the screen color result should be the same as from the kernel I posted.
[Nexus 4 Q&A, Help & Troubleshooting] maverickronny:
I am using stock 4.4 kernel, does it support?
[Nexus 4 Q&A, Help & Troubleshooting] spiderman3:
I don't think so (More experienced people, please correct me if I'm wrong).
[Nexus 4 Q&A, Help & Troubleshooting] faddyie:
any luck for 4.4.2 stock kernel
[Nexus 4 Q&A, Help & Troubleshooting] soorajj:
http://xdaforums.com/showthread.php?t=2584064
[Nexus 4 Q&A, Help & Troubleshooting] jimmyStoo:
Wow it's been long since I've logged into my account...sorry for this late reply haha.

That by the way was not a screen-shot. I guess my photography skills are that good? ;) I took those pics with the lights off and same camera settings.
[Nexus 4 Q&A, Help & Troubleshooting] molesarecoming:
maybe i used the wrong term. but this is base configuration. its not the same as calibrating a display. spyder calibration can only be done individually, there is no way you can get rgb values that work for all screens. spyder is used by graphic designers and photographers, they pay 300 $ and calibrate their screens. on photography plattforms its usual that those who own spyder calibrate for those that live in reach. in short, forour purposes calibration cannot be done, but base configuration can be done, that means getting a good set together that makes good use of the panel. afterwards you calibrate via spyder, if you really must have a pitch perfect display.

with googles base config calibration will prove impossible, not even spyder will be able to help you because the blue gamma channel is crippled. with our presets it will be possible to get an actual calibrated screen.
[Nexus 4 Q&A, Help & Troubleshooting] molesarecoming:
thats probably just rgb tweaking. if you have good values i can make a third revision.
[Nexus 4 Q&A, Help & Troubleshooting] nyyankees3511:
now that I've tried them more I definitely like variant 2 more though just a touch dark. I wonder if the optimus g values would help? That screen though the same has some beautiful colors.
[Nexus 4 Q&A, Help & Troubleshooting] deezid:
Maybe I'm crazy, but based on Version 2 Rev.2 whites do look similar to my (spyder) calibrated NEC 2690 WUXi IPS LCD (which I think is looking amazing) when I set RGB values to:

R: 255

G: 246

B: 238

(using trickster mod - market version without Gamma settings)

HMM :D

And the screen still seems very cold compared to my 26" NEC Screen, lol (and a bit too dark, V.2 Rev.1 was better)
[Nexus 4 Q&A, Help & Troubleshooting] tatltael:
Re: Let's calibrate Mako

Hey guys is there a difference between

pa_mako-PAKernel_2ndRev_contrasty.zip

And

pa_mako-PAKernel20130206_contrasty.zip
[Nexus 4 Q&A, Help & Troubleshooting] TR2N:
I am on PA Feb06 build and switched the kernel to Second revision, 2nd variant. I like the darker display and the colors are awesome! Thanks for the work, moles! Danke!
[Nexus 4 Q&A, Help & Troubleshooting] molesarecoming:
i tried them. its a bitt cartoony, they push saturation to 0x50 and a bit gray (whitepoint over 0x70) but the real problem is banding, it gets beyond terrible especially when you crank contrast. this is what prompted google to make that change in the end. i have found that mixing both settings can reults in rich colors without the banding issues, at least no more than the stock kernel already has (except a tinybit more in the green/cyans)
[Nexus 4 Q&A, Help & Troubleshooting] eep2378:
Re: Let's calibrate Mako

Great thread. I'm using an init.d script now for my rgb and gamma values. I'm assuming I should delete it before flashing this or can I use it along with this?

Sent from the Nodes of Ranvier
[Nexus 4 Q&A, Help & Troubleshooting] molesarecoming:
better, or you overwrite values. the testkernel exposes for init.d though
[Nexus 4 Q&A, Help & Troubleshooting] undercover:
Thanks for this thread moles.

There is only one problem with calibration. Screens are too different. So great looking colours for one can be completely off for someone else. :(

However, if some average can be found, that can provide a good base for slight adjustments. To find that good average, people would have to post their gamma output (Display Tester). It doesn't mean they will like the colou (too subjective)r, but at least we'd get a solid average.
[Nexus 4 Q&A, Help & Troubleshooting] kin24173493:
Yea I wanna know as well. It's quite confuse.
[Nexus 4 Q&A, Help & Troubleshooting] molesarecoming:
no, i said this before. this is factory calibration, it differs from your calibration at home. this deals with adjusting the panel, not the colors. you tweak rgb individually. color spectrum for instance is a physical property - if i cut yours in half, like google did, you can sit all day and try to calibrate with your spyder but it just wont do because the spectrum is missing. getting these basic properties right thats the whole purpose.

take a look here: https://android.googlesource.com/kernel/msm/+/c1be92b7967f05ed5c6ea3b9c31060617541f96a^!/#F0

this is lg and google trying to get a good base set. red is lg, green is google. from these 27 values kernels out there let you tweak either 0 or 6. that is why until now no preset really worked.
[Nexus 4 Q&A, Help & Troubleshooting] graffixnyc:
Is there much banding on the "Second revision, 2nd variant" version?
[Nexus 4 Q&A, Help & Troubleshooting] molesarecoming:
almost none. less than stock.
[Nexus 4 Q&A, Help & Troubleshooting] molesarecoming:
figured out another value, the one before the last is controlling grays. i will probably make new revisions for today, the dark one im running right now is killing it. i want to tint the whites blue still but havent figured out how.
[Nexus 4 Q&A, Help & Troubleshooting] newcastle9:
Re: Let's calibrate Mako

Can this work on stock rom
[Nexus 4 Q&A, Help & Troubleshooting] kennynguyen20:
Yes
[Nexus 4 Q&A, Help & Troubleshooting] jazzboyrules:
Thanks for your experiments moles. Please keep the first post updated with new set of rgb and g_* define values.
[Nexus 4 Q&A, Help & Troubleshooting] meangreenie:
I'm pretty sure it can't, since kernel devs had to include the interface commits to their kernels in their latest versions.

Could be wrong though.
[Nexus 4 Q&A, Help & Troubleshooting] italia0101:
i would also like to know if it can be done on stock rom .... if so ... how?
[Nexus 4 Q&A, Help & Troubleshooting] deelz001:
I dont use the kernels mentioned here as it doesnt work with Faux kernel, but i do use PA, just want to say great job moles, keep the innovation coming!

I think i speak for everyone here saying u are doing a great job and deserve a lot of credit!
[Nexus 4 Q&A, Help & Troubleshooting] molesarecoming:
that is the stock kernel actually. it should work.
[Nexus 4 Q&A, Help & Troubleshooting] eep2378:
Re: Let's calibrate Mako

This ^^^ I'm assuming all you need is cwm(root) to flash this on stock ROM:)

Sent from the Nodes of Ranvier
[Nexus 4 Q&A, Help & Troubleshooting] apatal:
Re: Let's calibrate Mako

Just for clarification, the kernels posted here are stock but with the calibrated colors, correct? I was having second thoughts flashing them before as the filename says "PA". Thanks. :)
[Nexus 4 Q&A, Help & Troubleshooting] KrizTM:
Hi,

So, I just downloaded the pa_mako-2.99-06FEB2013-104007.zip rom and have a question. Does this rom comes with the rgb and gamma modification kernel? If so, which one?

Thanks!

Just download the .zip file, reboot into recovery and flash the file. :)
[Nexus 4 Q&A, Help & Troubleshooting] italia0101:
thanks, jw , is it a kernel replacement ? or is it just modding my current?
[Nexus 4 Q&A, Help & Troubleshooting] KrizTM:
If I understand correctly, it will replace your current kernel but it is just like the stock google one but with the color modifications.
[Nexus 4 Q&A, Help & Troubleshooting] molesarecoming:
i use them for pa but i dont strive to make kernels thats for sure. i have to supply one that is all and to make it easy on me im using googles trusty stock kernel + pa factory preset ofc.

the bright one. i would love to include the dark one but i get *****slapped with "off chart" gamma numbers if i do. : P
[Nexus 4 Q&A, Help & Troubleshooting] johnhany97:
Ok .... so, can this be added to the enhanced stock kernel by Faux 123 ?? I have the source, where should I add it ?
[Nexus 4 Q&A, Help & Troubleshooting] italia0101:
installed Second revision, 2nd variant on stock ... it does look nice !
[Nexus 4 Q&A, Help & Troubleshooting] zellleonhart:
I used script from http://xdaforums.com/showpost.php?p=37673702&postcount=1546 to load the settings (rev 2 ver 2) but I get result like this on harsh kernel:

Red gamma values:

208 64 68 118 0 26 0 72 48 2

Green gamma values:

210 64 68 118 0 26 0 72 48 2

Blue gamma values:

212 64 68 118 0 26 0 72 48 2

but the first values (208, 210, 212) is the old settings in gamma, I manually edit to 398 (motley kernel people are getting 398) it will revert back. Any idea?
[Nexus 4 Q&A, Help & Troubleshooting] molesarecoming:
arch arm mach-msm lge mako board-mako-diplay

and

arch arm mach-msm lge devices_lge

watch out for fauxclock though, currently it reverts all changes at screenoff.
[Nexus 4 Q&A, Help & Troubleshooting] deezid:
AW: Let's calibrate Mako

The whites already have too much blue. ;)

Gesendet von meinem Nexus 4 mit Tapatalk 2
[Nexus 4 Q&A, Help & Troubleshooting] danslecarton:
AW: Let's calibrate Mako

You should add the information that your kernel only replaces the color settings in the stock kernel in OP. Just that people know.
[Nexus 4 Q&A, Help & Troubleshooting] jazzboyrules:
That first column of number is simply checksum. It varies because it is done differently in motley and Harsh's kernels. All other numbers other than the first column would match.
[Nexus 4 Q&A, Help & Troubleshooting] johnhany97:
Ok .... So I went there .. What should I edit, which one ?? i am not a kernel expert but I want to include this in my ROM, ReVolt ROM .... COuld you help me ?
[Nexus 4 Q&A, Help & Troubleshooting] molesarecoming:
its not about the kernel, im not trying to push kernels. its only about the values. :)
[Nexus 4 Q&A, Help & Troubleshooting] molesarecoming:
just copy the code.

this goes into devices.c

kcal_r = 245;

kcal_g = 244;

kcal_b = 240;

and this into boarddisplay.c

#define g_white 0x40

#define g_mids 0x44

#define g_black 0x76

#define g_contrast 0x1A

#define g_brightness 0x00

#define g_saturation 0x48

static char p_gamma_r_setting[10] = {0xD0, g_white, g_mids, g_black, 0x00, g_contrast, g_brightness, g_saturation, 0x30, 0x02};

static char n_gamma_r_setting[10] = {0xD1, g_white, g_mids, g_black, 0x00, g_contrast, g_brightness, g_saturation, 0x30, 0x02};

static char p_gamma_g_setting[10] = {0xD2, g_white, g_mids, g_black, 0x00, g_contrast, g_brightness, g_saturation, 0x30, 0x02};

static char n_gamma_g_setting[10] = {0xD3, g_white, g_mids, g_black, 0x00, g_contrast, g_brightness, g_saturation, 0x30, 0x02};

static char p_gamma_b_setting[10] = {0xD4, g_white, g_mids, g_black, 0x00, g_contrast, g_brightness, g_saturation, 0x30, 0x02};

static char n_gamma_b_setting[10] = {0xD5, g_white, g_mids, g_black, 0x00, g_contrast, g_brightness, g_saturation, 0x30, 0x02};

these files are not big, you find the structures you need to exchange by scrolling down quickly.
[Nexus 4 Q&A, Help & Troubleshooting] graffixnyc:
Don't lie.. You're a kernel pusher!!! hahah just don't go pushing it around schools and you should be ok :D
[Nexus 4 Q&A, Help & Troubleshooting] zellleonhart:
Ahh I see, feel much better now. Sorry for asking twice, in the motley's thread as well :P

Thanks a bunch!
[Nexus 4 Q&A, Help & Troubleshooting] molesarecoming:
rgb calibration differs. you must eliminate it at home.

what im looking for is a preset that will tint your screen so that you, at home, won't be able to rectify it. but its harder than i thought.
[Nexus 4 Q&A, Help & Troubleshooting] cocchiararo:
i see you still insist in getting that (for my taste) awful trinity color :P

that sounds evil :crying:
[Nexus 4 Q&A, Help & Troubleshooting] DynamicRam:
Moles, wouldn't it be easier to adjust the midtones instead of black/white point ?
[Nexus 4 Q&A, Help & Troubleshooting] johnhany97:
Ok ... I went to the folder you told me earlier but didn't find these files .....

Could you like give their directory ??? Sorry for being so pushy
[Nexus 4 Q&A, Help & Troubleshooting] eep2378:
Re: Let's calibrate Mako

Deleted

Sent from the Nodes of Ranvier
[Nexus 4 Q&A, Help & Troubleshooting] molesarecoming:
c'mon dude

board-mako-display.c

devices_lge.c

in the same directories i told you

:)
[Nexus 4 Q&A, Help & Troubleshooting] johnhany97:
LOL :D

I feel like a Noob :silly: :eek:
[Nexus 4 Q&A, Help & Troubleshooting] tatltael:
Re: Let's calibrate Mako

Moles I was just wondering if there's any difference between these 2 kernels. One is from the mediafire link in this thread and the other is in the PA ROM directory.

pa_mako-PAKernel_2ndRev_contrasty.zip

And

pa_mako-PAKernel20130206_contrasty.zip
[Nexus 4 Q&A, Help & Troubleshooting] graffixnyc:
Which source are you using? I haven't tried to sync AOSP because I remember reading a post by JQB that the Nexus 4 code isn't a part of AOSP yet so I didn't even bother syncing it.
[Nexus 4 Q&A, Help & Troubleshooting] johnhany97:
AOKP Sources then got Faux123's enhanced_stock kernel ..... To build it inline

Then I went and modified the details like he told me !
[Nexus 4 Q&A, Help & Troubleshooting] italia0101:
Re: Let's calibrate Mako

Which version in the first post are people liking the most
[Nexus 4 Q&A, Help & Troubleshooting] undercover:
Let's calibrate Mako

Oh, i see. So we are looking at presets like Google or LG. Sorry, must have overlooked you mentioning it. Will look into it when i get more time, but it looks that you are well ahead of me in this game .:) Nice work.
[Nexus 4 Q&A, Help & Troubleshooting] mikeyinid:
I flashed the 3rd one you posted in the op. i cant beleive how good it looks. thanks for sharing
[Nexus 4 Q&A, Help & Troubleshooting] Tones1971:
So glad to hear you say that. So many times i have been told on here that the screen is fine and natural and i was just to used to saturated colours. The only thing i havent liked about the N4 was the washed out display.

Going to try a few of these out now, thanks for your work.

EDIT: Started off wioth the 3rd kernel and im stunned. Its much better than the settings i had from that public spreadsheet with faux kernel, which was much better than stock. Its not washed out now at all. The colors are beautiful. Superb work.
[Nexus 4 Q&A, Help & Troubleshooting] nbeebe24:
Re: Let's calibrate Mako

I like what you're doing here moles. My only gripe is too much red. I prefer a cooler temperature, but that's just me.
[Nexus 4 Q&A, Help & Troubleshooting] rskyline:
There's any risks to flash every test kernel? And this should work on CM right?