[Nexus 4 Q&A, Help & Troubleshooting] molesarecoming:
ROMS ON 4.3 JSS15J

http://goo.im/devs/paranoidandroid/roms/mako/pa_mako-Kernel-4.3_JSS15J_HALFBREED.zip

4.3 STOCK ANDROID (OR 4.3 ROMS ON JWR66V)

http://goo.im/devs/paranoidandroid/roms/mako/pa_mako-Kernel-4.3_JWR66V_HALFBREED.zip

WHAT IS THIS?

This is the kernel that first calibrated the Nexus 4, and to this day it still might do a great job at that.

The Kernel is left untouched/stock otherwise.

The difference is not marginal, this will squeeze out the best that your display is capable of.

"but, but the stock colors are so natural!" - that crosses your mind and you're out, please just go elsewhere and enjoy your day!

For those that stay and want to help, here's where we're at,

Mako has a f*cked up calibration thanks to mr. muramatsu. We all know it. Google knows it. Every tech page on this planet reported it. Why Google cranked gamma and risked washed out colors? Pure terror of banding, since LG's original calibration is terrible, too. One thing we all can agree to, this is not how IPS looks, this is not how LG shipped Mako, this is not how they ship Optimus G, its not natural, its not good.

There are virtually no good presets at this point, this device is out for months and all we have is simple RGB calibration which is absolutely useless. Some kernels allow for more but at most that's still just 2 values out of nine, missing out on such aspects as whitepoint, blackpoint, saturation, etc. All values are exposed but i've seen no real use of them.

The LG kernel gives us three channels to play with, R, G and B. Each channel exposes 9 values to tweak gamma. The task here is to find out what these values are and create reasonable presets, possibly the very first ones on this plattform that make any sort of sense.

2nd rev, brighter, rich colors but less saturation, less banding

Download: http://goo.im/devs/paranoidandroid/roms/mako/pa_mako-Kernel422_CalibratedBright.zip

Values, some deciphered already,

kcal_r = 245;
kcal_g = 244;
kcal_b = 240;

// R G B
#define g_white 0x39 //Whitepoint, LG=0x72, GOOG=0x40,40,20 Low values=extreme whites, risk of blown out highlights
#define g_mids 0x15 //Mids?, LG=0x15, GOOG=0x44,44,23
#define g_black 0x76 //Blackpoint, LG=0x76, GOOG=0x76,76,74 Low values=cut out, banding in the shadows
#define g_contrast 0x1F //Contrast, LG=0x00, GOOG=0x00,00,1F
#define g_brightness 0x09 //Brightness, LG=0x00, GOOG=0x00,00,10
#define g_saturation 0x48 //Saturation, LG=0x50, GOOG=0x30,30,50

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};

2nd rev, 2nd variant: Dark, contrasty, rich colors, brightest whites, sureal, even grays

This is the one you try first, just to see what IPS can really do. Then you try the one highlighted in green

Download: http://goo.im/devs/paranoidandroid/roms/mako/pa_mako-Kernel422_CalibratedContrasty.zip

kcal_r = 245;
kcal_g = 244;
kcal_b = 240;

#define g_white 0x40
#define g_mids 0x44
#define g_black 0x76
#define g_contrast 0x1A
#define g_brightness 0x00
#define g_saturation 0x48

Third revision, HOLOBLUE, color incorrect special purpose kernel, work in progress

dark, constrasty, eyepopping colors, eyescorching tinted blue/red/purple whites, oversaturated blues

Download: http://goo.im/devs/paranoidandroid/roms/mako/pa_mako-Kernel422_CalibratedHoloBlue.zip

kcal_r = 249;
kcal_g = 249;
kcal_b = 255;

#define g_white 0x38
#define g_mids 0x44
#define g_black 0x74
#define g_contrast 0x1C
#define g_brightness 0x00
#define g_saturation 0x38
#define g_greys 0x0A

static char p_gamma_r_setting[10] = {0xD0, g_white, g_mids, g_black, 0x00, g_contrast, g_brightness, g_saturation, g_greys + 0x10, 0x01};
static char n_gamma_r_setting[10] = {0xD1, g_white, g_mids, g_black, 0x00, g_contrast, g_brightness, g_saturation, g_greys + 0x10, 0x01};
static char p_gamma_g_setting[10] = {0xD2, g_white, g_mids, g_black, 0x00, g_contrast, g_brightness, g_saturation, g_greys + 0x10, 0x01};
static char n_gamma_g_setting[10] = {0xD3, g_white, g_mids, g_black, 0x00, g_contrast, g_brightness, g_saturation, g_greys + 0x10, 0x01};
static char p_gamma_b_setting[10] = {0xD4, g_white, g_mids, g_black, 0x00, g_contrast - 0x10, g_brightness + 0x02, g_saturation+0x20, g_greys, 0x01};
static char n_gamma_b_setting[10] = {0xD5, g_white, g_mids, g_black, 0x00, g_contrast - 0x10, g_brightness + 0x02, g_saturation+0x20, g_greys, 0x01};

Fourth revision, HALFBREED

this is the kernel used in ParanoidAndroid 3.+ perfect cross between contrasty and bright

Download: http://goo.im/devs/paranoidandroid/roms/mako/pa_mako-Kernel422_CalibratedHalfbreed.zip

kcal_r = 255;
kcal_g = 255;
kcal_b = 255;

#define g_white 0x40
#define g_mids 0x44
#define g_black 0x76
#define g_contrast 0x19
#define g_brightness 0x04
#define g_saturation 0x42
#define g_greys 0x20

If you like to help out...

Report back on your findings please!

To those that want to play around with these numbers in their own scripts, moving values higher and lower by hand, WARNING, stick to the defaults you see LG and Google using. Don't burn your device please. If you flash the kernels i link here you are safe, i do not cross the lines, even if i probably could.