yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Q&A, Help & Troubleshooting] molesarecoming:
sure, that can be done. but not by me. if you go that route you'll have to make new zips every time your rom maker makes a new release or people will trash their roms with it, it goes out of sync.
[Nexus 4 Q&A, Help & Troubleshooting] meangreenie:
darn it, it just occured to me that it probably looked more blue because i had been using your 'holoblue' all day.
[Nexus 4 Q&A, Help & Troubleshooting] Chochiwpg:
Re: Let's calibrate Mako | 09Feb: new preset HALFBREED

Thanks, I think I will give PA another try when 3.0 is released. It's a very unique ROM, but the first time I tried it was kinda overwhelming. Thanks again
[Nexus 4 Q&A, Help & Troubleshooting] molesarecoming:
i had one that was literally glowing. and thats so easy said, but i mean it, glowing. it was the craziest thing i've ever seen a display do. the glow was pink though and from trying to tint it blue instead i've lost that setting. holoblue was supposed to be like that, sigh.
[Nexus 4 Q&A, Help & Troubleshooting] molesarecoming:
we're in contact with a channel making instructional videos. i totally undertstand pa can be overwhelming. it doesnt function like normal roms.
[Nexus 4 Q&A, Help & Troubleshooting] FatalityBoyZahy:
I'm getting some slight screen flicker with the contrasty kernel on stock o_O Looks amazing though
[Nexus 4 Q&A, Help & Troubleshooting] molesarecoming:
flicker? in what way ...
[Nexus 4 Q&A, Help & Troubleshooting] deezid:
AW: Let's calibrate Mako | 09Feb: new preset HALFBREED

Halfbreed looks horrible to me. Even bright colors are dark. Orange for instance looks like a brown tone... Grays are almost black (because this isn't an amoled screen there isn't any difference between dark grays and blacks anymore) :(

Whites are still a bit too cold. A little bit less blue would do the trick. ;)

Sorry for complaining.

Switching back to version 2 rev. 1 (bright) for now with my own RGB-values ;) (251,246,239)

Gesendet von meinem Nexus 4 mit Tapatalk 2
[Nexus 4 Q&A, Help & Troubleshooting] molesarecoming:
i think you're too much hung up on that app. deinstall it.

longpress homescreen, tap wallpapers, tap launcher, tap the orange JB wallpaper. you wanna tell me its brown? ;) you see these values, its the same base set, it does nothing to colors, its pretty neutral actually.

as for rgb, - my screen is different from yours. your values turn mine into an orange mess. but thats normal - and easy to fix via trickstermod. it applies to any kernel, including google stock. whites too cold or too warm will vary from screen to screen. as you see, the base set does not use individual values for each colorchannel. all three get the same values.
[Nexus 4 Q&A, Help & Troubleshooting] dannaoj:
thank you for this super awesome kernel moles, this is the best kernel in terms of display

it just look stunning, i was using faux kernel and was just curious about this kernel so i tried it since i was also using PA rom

and after seeing how stunning the display is, i decided to use this as my kernel

it would be great if this kernel can do what other kernels can like, turning off mpdecision, improving battery, UV. thats the only thing that is keeping me to think if i should go back to faux

sorry if i am asking to much or if i have misunderstood how this super amazing kernel should be
[Nexus 4 Q&A, Help & Troubleshooting] apascual89:
Re: Let's calibrate Mako | 09Feb: new preset HALFBREED

Hey moles, the last values pushed to github look great to me. Great balance and contrast.

If you don't mind, how does trickstermod work different than the faux app regarding colors? Why can one be used and the other not?

Thanks
[Nexus 4 Q&A, Help & Troubleshooting] molesarecoming:
both are the same. you can set rgb values. the problem is/was that faux does include contrast & brightness in its calibration but pushes a whole set into the kernel. that means every change you make sets you back to googles base set. every time you switch screen off/on as well. when you extends his app to include all 9 values then that'll be fixed. for now i have killed the exposed interfaces in the pa kernel so you can safely use faux, it wont even show its amp0 & 1.
[Nexus 4 Q&A, Help & Troubleshooting] deezid:
AW: Let's calibrate Mako | 09Feb: new preset HALFBREED

Looks even better with the bright kernel. ;)

If you tone down orange tones (was browsing slashcam.de and using tapatalk) you get brown tones. ;)

The biggest problem with Halfbreed and Dark kernel still is: nearly no difference (contrast) between dark colors and blacks.

And I'll continue to do that. :)

With these values and your bright kernel My Nexus4 looks comparable to my iPad3 and my calibrated NEC IPS-Panel. Pretty warm (like every 6500k calibrated display) but perfect too look at and even work with :D

Gesendet von meinem Nexus 4 mit Tapatalk 2
[Nexus 4 Q&A, Help & Troubleshooting] kennynguyen20:
How do you extend his app to all 9 values when we are using your kernel? It only shows 3
[Nexus 4 Q&A, Help & Troubleshooting] molesarecoming:
thats what rgb calib is for. i for one would always prefer an icy display. especially on android which is icy to begin with (cold blue accents). the final-final kernel will probably come with 255-255-255. that way i can stop worrying.
[Nexus 4 Q&A, Help & Troubleshooting] molesarecoming:
his app has support for rgb, contrast and gamma. thats not enough. i crippled my kernel so faux will not be able to use it. if i would open up the interfaces faux would overwrite my base set with googles, which would be kinda pointless as we all know by now. what im saying is, i hope they will extend their apps. amp0 & 1 will not generate usable results. we need 9 for each channel.
[Nexus 4 Q&A, Help & Troubleshooting] deezid:
AW: Let's calibrate Mako | 09Feb: new preset HALFBREED

RGB values aren't a big problem. The bright kernel looks almost perfect. ;)

But with Halfbreed and dark (didn't try holoblue though) you loose too much shadow detail, which isn't even completely recoverable when turning the brightness up (which consumes much more battery as well, which brightens up the blacks, why you even loose contrast... and so on)

Don't get me wrong. The contrast between dark colors and whites gets stronger while the contrast between dark colors and blacks gets crushed when pushing gamma values to the limit. This still isn't an amoled, only an IPS panel with maybe contrast value of 1000:1!

Gesendet von meinem Nexus 4 mit Tapatalk 2
[Nexus 4 Q&A, Help & Troubleshooting] FatalityBoyZahy:
If the screen is on, you will notice the backlight flickering. I restored the factory image so I'm good now. lol
[Nexus 4 Q&A, Help & Troubleshooting] rskyline:
Re: Let's calibrate Mako | 09Feb: new preset HALFBREED

Halfbreed right now is awesome. Even with autobright that is a little bit buggy colors look perfect! Every color looks like it should look. And screen looks sharper because of that.

Enviado desde mi Nexus 4 usando Tapatalk 2
[Nexus 4 Q&A, Help & Troubleshooting] wera750:
Moles, in my source I don't have device/lge/mako/overlay/frameworks/base/core/res/config.xml?
[Nexus 4 Q&A, Help & Troubleshooting] zellleonhart:
Re: Let's calibrate Mako | 09Feb: new preset HALFBREED

I am getting great colors using halfbreed, with my own RGB values the white is really white and colors are popping without sacrificing auto brightness.

Sent from my very paranoid and harsh Nexus 4
[Nexus 4 Q&A, Help & Troubleshooting] rskyline:
In halfbreed, the blues are a little bit dark, i think is the only downside right now. Low Brightness make the issue more noticeable.
[Nexus 4 Q&A, Help & Troubleshooting] mikeyinid:
Re: Let's calibrate Mako | 09Feb: new preset HALFBREED

Yes you do. I already built with his backlight settings.
[Nexus 4 Q&A, Help & Troubleshooting] SaviorXD:
Re: Let's calibrate Mako | 09Feb: new preset HALFBREED

Rev2 contrasty one is the best for me, I'm getting r2.2, g2.2, b2.1
[Nexus 4 Q&A, Help & Troubleshooting] tarroyo:
Would anyone be willing to take a pic of the before and after of this tweak? A video would be great also.
[Nexus 4 Q&A, Help & Troubleshooting] mikeyinid:
Re: Let's calibrate Mako | 09Feb: new preset HALFBREED

Its a kernel. Flash them and see for yourself
[Nexus 4 Q&A, Help & Troubleshooting] mkamal23:
Hey i usually like the way you have your settings. Mind letting me know what ur RGB values are? :D
[Nexus 4 Q&A, Help & Troubleshooting] Arstoien:
As said previously, it would be pointless, since different screens need different colour calibration. His good values might even make your colours worse.
[Nexus 4 Q&A, Help & Troubleshooting] zellleonhart:
Re: Let's calibrate Mako | 09Feb: new preset HALFBREED

My preference changes from time to time and might not suit you or your device. Anyway, my RGB is 252 247 250

Sent from my very paranoid and harsh Nexus 4
[Nexus 4 Q&A, Help & Troubleshooting] pyr0sphere:
What are you guys using to determine the gamma settings and how closely they approximate to 2.2 (which from what I've read is perfect)?
[Nexus 4 Q&A, Help & Troubleshooting] Exidrion:
Re: Let's calibrate Mako | 09Feb: new preset HALFBREED

I think moles should ship PA with 2nd rev contrasty. So beautiful with full brightness. :)
[Nexus 4 Q&A, Help & Troubleshooting] AppReviewBros:
Re: Let's calibrate Mako | 09Feb: new preset HALFBREED

Here, https://play.google.com/store/apps/details?id=com.gombosdev.displaytester
[Nexus 4 Q&A, Help & Troubleshooting] johnhany97:
I am the developer of ReVolt ROM which is based on AOKP ... I added the Auto Brightness fix to the ROM if you don't mind and I added your setting in Faux's Kernel which is built with the ROM ... Is it Ok with you ??
[Nexus 4 Q&A, Help & Troubleshooting] xfactor2000:
AW: Let's calibrate Mako | 09Feb: new preset HALFBREED

Is msm_hsic_host fixed in This kernel?

Gesendet von meinem Nexus 4 mit Tapatalk 2
[Nexus 4 Q&A, Help & Troubleshooting] nory82688:
Re: Let's calibrate Mako | 09Feb: new preset HALFBREED

This is Google's stock kernel, so If the wake lock is present there, its present here ;)
[Nexus 4 Q&A, Help & Troubleshooting] derPianist:
AW: Let's calibrate Mako | 09Feb: new preset HALFBREED

Halfbreed is too dark. :(

via my ∞ awesome Nexus 4

Ready for more Android awesomeness? ...check this out! ?
[Nexus 4 Q&A, Help & Troubleshooting] Poiuytrewqasdfghjkl:
Just flashed rev2 contrasty and wow! Thanks Moles!

i was using harsh kernel before flashing this one and i had great battery improvement with that kernel. Im just wondering if it is possible to use the colors with harsh kernel so i dont need to sacrifice a better battery life?
[Nexus 4 Q&A, Help & Troubleshooting] molesarecoming:
Why am I sharing this, of course you take it. :)
[Nexus 4 Q&A, Help & Troubleshooting] xfactor2000:
AW: Let's calibrate Mako | 09Feb: new preset HALFBREED

Yes that would be very nice

Gesendet von meinem Nexus 4 mit Tapatalk 2
[Nexus 4 Q&A, Help & Troubleshooting] molesarecoming:
small changes to halfbreed. slightly brighter, slightly brighter mids. still its going to be off gamma by design, tending to be darker in nature. rgb is back to 255. calibrate that yourself, makes no sense to set it to this and that value.

Fourth revision, HALFBREED

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

Download: http://www.mediafire.com/?hcr6o28e5dq88h7

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
[Nexus 4 Q&A, Help & Troubleshooting] TylerDurden1999:
Re: Let's calibrate Mako | 09Feb: new preset HALFBREED

Flashed the halfbreed kernel and it is a little bit brighter than the the contrasty kernel i was using. It's awesome no doubt.

But let me get this straight, you can implement this awesome colors in pa 3.0 without flashing the kernel?

That be awesome. Once again you outdid yourself moles.
[Nexus 4 Q&A, Help & Troubleshooting] kurt.gomez:
yes... the halfbreed kernel will be integrated into the rom... up until now they were using the stock kernel with the rom... i can't wait to try this... my n4 is coming in 2 weeks
[Nexus 4 Q&A, Help & Troubleshooting] Crisisx1:
Re: Let's calibrate Mako | 09Feb: new preset HALFBREED

Full brightness gives me a headache lol
[Nexus 4 Q&A, Help & Troubleshooting] jdrials:
Re: Let's calibrate Mako | 09Feb: new preset HALFBREED

Any way I can get the init d script from this boot IMG?... All the messing around with this glorious phone has convinced me to change my major to programming... Lol:)
[Nexus 4 Q&A, Help & Troubleshooting] cocchiararo:
the faux ones work for sure in fauxkernel

The others might work here in stock, not sure (the scripts i found came from a guy using motley, and did not work in franko)

you can run them from terminal, and see the output
[Nexus 4 Q&A, Help & Troubleshooting] warfexion:
Anyone have a script of the brighter preset that works on faux kernel? Half breed looks awesome but I prefer a more brighter screen.
[Nexus 4 Q&A, Help & Troubleshooting] cocchiararo:
Re: Let's calibrate Mako | 09Feb: new preset HALFBREED

I posted all four presets from moles

Enviado desde mi Nexus 7 usando Tapatalk 2
[Nexus 4 Q&A, Help & Troubleshooting] meangreenie:
what are the two unknowns set to ? the first is normally set to 0 on everyone i have seen, but the 2nd (last one) i have seen set to either 1,2 or 3, but never 0
[Nexus 4 Q&A, Help & Troubleshooting] warfexion:
Can't find it, II downloaded one with half breed v2 not the brighter one, mind linking me?
[Nexus 4 Q&A, Help & Troubleshooting] molesarecoming:
they are a mystery to me. first zero row set to 1 seems to lessen banding in the whites a bit but could be placebo. theres a terrible banding in some of these kernels if you open gtalk - now i know that google loves to operate with low quality, stretched pngs and i've got the same banding with the google stock kernel but i believe 0x01 has maybe reduced it a bit. holoblue almost extinguishes it aswell for some reason. i guess we will really only know what this stuff is when kernel apps allow us to change values on the fly. right now im not even sure about all values we've got, like mids. its just a wild guess.
[Nexus 4 Q&A, Help & Troubleshooting] brolic925t:
I made my own version its a mix of halfbreed n contrasty bright ahh I love ITT. Moles do you want me to send it to you?
[Nexus 4 Q&A, Help & Troubleshooting] ghost_og:
Re: Let's calibrate Mako | 09Feb: new preset HALFBREED

Post em, that's what the thread is for ;)

Sent from my Nexus 4
[Nexus 4 Q&A, Help & Troubleshooting] molesarecoming:
sure man, post em. i tried all values that were posted here. i notice most were going for bright 2.2 and thats not so much my thing but still nice to see.
[Nexus 4 Q&A, Help & Troubleshooting] SlasheI2:
How do I get the gamma values from my phone? My old nexus has much better calibration than my new one and I want to get the values from the old one.
[Nexus 4 Q&A, Help & Troubleshooting] danslecarton:
I don't know if you guys already have seen this, but faux released his display calibration app.

https://play.google.com/store/apps/...wxLDIxMiwiY29tLnRlYW1rYW5nLmZhdXhkaXNwbGF5Il0.

What do you say?
[Nexus 4 Q&A, Help & Troubleshooting] molesarecoming:
looks really nice. i wanted to try but it told me license not valid. :(

from the screenshots it looks really really well made and infinitely better than dorking around with hex values without knowing what they are
[Nexus 4 Q&A, Help & Troubleshooting] mikeyinid:
Re: Let's calibrate Mako | 09Feb: new preset HALFBREED

The details say it only works with his kernel and stock. That sucks.
[Nexus 4 Q&A, Help & Troubleshooting] Poiuytrewqasdfghjkl:
After flashing this kernel i had major battery drain. Android OS used 48% of my battery overnight. Awake for 8and a half hours. Thoughts?
[Nexus 4 Q&A, Help & Troubleshooting] molesarecoming:
what thought. this is google stock. night gives me a flatline, no airplanemode, wifi on all the time. youre dealing with a rogue app causing wake locks.
[Nexus 4 Q&A, Help & Troubleshooting] Stryder5:
It's a glitch with the Play store since the app was just released. He pushed out an update that should take care of the license issue.
[Nexus 4 Q&A, Help & Troubleshooting] rskyline:
Normally Google stock has a kernel wakelock issue with msm_hsic_host. Is present obviously here, but you have to choose, the best colors ever/poor battery life or average screen/good battery. Till some kernel dev start working with moles research!
[Nexus 4 Q&A, Help & Troubleshooting] ruzkay:
AW: Let's calibrate Mako | 09Feb: new preset HALFBREED

Same but its some other random app for me, no idea if its just a visual bug or it really used that much battery.
[Nexus 4 Q&A, Help & Troubleshooting] brolic925t:
These colors look pretty sick. Its a script for faux so idk up to you guys to use values.

Unzip n run script in terminal

BTW whoever has faux clock click custom in screen calibration n they'll stick
[Nexus 4 Q&A, Help & Troubleshooting] meangreenie:
wow, that looks like the ticket!
[Nexus 4 Q&A, Help & Troubleshooting] NorthWestSouthWest:
I tried flashing the second revision (brighter) and the fourth revision (halfbreed) and I don't see any change. Why?

This happened on stock rom and CM10.1. I even wipe both cache and dalvik before and after flashing to be sure.

I'm sad :$
[Nexus 4 Q&A, Help & Troubleshooting] Stryder5:
Can someone post the default values for FauxDisplay that is in PA 3.0 please?
[Nexus 4 Q&A, Help & Troubleshooting] mundixx:
Re: Let's calibrate Mako | 09Feb: new preset HALFBREED

+1

Sent from my AOSPA Nexus 4
[Nexus 4 Q&A, Help & Troubleshooting] brolic925t:
I need help. A couple of posts up i posted my last script... How do ii make it permanent?
[Nexus 4 Q&A, Help & Troubleshooting] chrisnk204:
Re: Let's calibrate Mako | 09Feb: new preset HALFBREED

Wiping the caches doesnt do anything when flashing kernels

---------- Post added at 02:24 AM ---------- Previous post was at 02:20 AM ----------

It doesn't work like that it's way more in depth. faux's app only utilizes amp 0 and amp 1 gammas. moles has altered a lot more than just that
[Nexus 4 Q&A, Help & Troubleshooting] _KP:
Re: Let's calibrate Mako | 09Feb: new preset HALFBREED

Wait I thot the new faux display app fixed that ? Its has more options now.
[Nexus 4 Q&A, Help & Troubleshooting] Stryder5:
You are thnking about FauxClock. FauxDisplay has more control over the display.
[Nexus 4 Q&A, Help & Troubleshooting] chrisnk204:
Re: Let's calibrate Mako | 09Feb: new preset HALFBREED

Oh idk then if thats the case didnt know faux updated his app already to support these changes
[Nexus 4 Q&A, Help & Troubleshooting] _KP:
Re: Let's calibrate Mako | 09Feb: new preset HALFBREED

No its a completely new app separate from Faux clock.
[Nexus 4 Q&A, Help & Troubleshooting] molesarecoming:
That's strange. The difference is quite huge. I was under the impression it would work on cm.
[Nexus 4 Q&A, Help & Troubleshooting] danslecarton:
AW: Let's calibrate Mako | 09Feb: new preset HALFBREED

Just for your information, the faux display app has been updated in Google play so no license problems anymore :)
[Nexus 4 Q&A, Help & Troubleshooting] rskyline:
Re: Let's calibrate Mako | 09Feb: new preset HALFBREED

It works. I'm testing your kernels over cm and i can see every change.

Enviado desde mi Nexus 4 usando Tapatalk 2
[Nexus 4 Q&A, Help & Troubleshooting] dexterboygenius:
snip/
[Nexus 4 Q&A, Help & Troubleshooting] rockvoid:
great work molesarecoming!

i wonder if google will ever fix this in stock-kernels (nexus 4 and nexus 7)...
[Nexus 4 Q&A, Help & Troubleshooting] ruzkay:
moles you have some kind of calibration tool? or you manage to get these awesome colors just by trying around?
[Nexus 4 Q&A, Help & Troubleshooting] deezid:
AW: Let's calibrate Mako | 09Feb: new preset HALFBREED

Halfbreed still really dark. Too dark for my taste at least. Compared to a calibrated monitor colors look really bad. Bright was much better and ate less battery (No need to raise the display brightness to compensate the darkness). :(

Is it possible to just adjust the colors (make them brighter) without touching grays?

Gesendet von meinem Nexus 4 mit Tapatalk 2
[Nexus 4 Q&A, Help & Troubleshooting] molesarecoming:
use whatever you like dude. its not "too dark" -- its a preference. use the brighter one by all means, thats why i made them. i do not care at all about that display app and its silly numbers - i chuckle and do what looks right for my eyes. but i know that taste differs, so i made several revisions and shared all presets. youre all for bright and orange, make it bright and orange. :)

one last thing, that display is not fit to display the same level of detail in the blacks as youre used to, this is not an expensive photographic display. if you dont believe me flash googles kernel and see how the entire last black-saturation row turns invisible in the display-tester app, even in full brightness. although some of these kernels are dark, i believe they still have more detail. i am a photographer myself, my screens costs thousands of dollars, its not something you can compare to a puny cellphone.

trying around. putting online, waiting for responses. when i get 1000 people saying "awesome" and 3 that say "horrible!!1" i know i did something right. and i'll simply assume these 3 are blind. : P
[Nexus 4 Q&A, Help & Troubleshooting] zellleonhart:
Latest halfbreed settings is really good. I don't think I want to change my colors anymore, it is close to perfect to my eyes :D

Using with Harsh kernel by the way.
[Nexus 4 Q&A, Help & Troubleshooting] mundixx:
Re: Let's calibrate Mako | 09Feb: new preset HALFBREED

Can you share the init.d for the halfbreed one? :D

Sent from my AOSPA Nexus 4
[Nexus 4 Q&A, Help & Troubleshooting] -iNSiGhT-:
Re: Let's calibrate Mako | 09Feb: new preset HALFBREED

Hi,

Can you give to me (and other who want) the content of the script which gives you Halfbreed colors with Harsh kernel?

Because the code lines Moles gives for his halfbreed kernel doesn't match with the script I was using with previous Moles' color settings...

Thanks!

ÉDIT : OK, I'm not the only one... ^_^

Paranoid Nexus 4
[Nexus 4 Q&A, Help & Troubleshooting] suua:
Re: Let's calibrate Mako | 09Feb: new preset HALFBREED

Hey guys and thx moles for your awsome work dude.

Quick question the first kernel on the OP is used on the feb5 build 2.99+ rigt? Correct me if i am work?
[Nexus 4 Q&A, Help & Troubleshooting] yethz:
Re: Let's calibrate Mako | 09Feb: new preset HALFBREED

Mind sharing the script for init.d?

I use harsh kernel also... Thanks and to molesarecoming for this awesome findings, for sharing to us.

I love my Samsung Galaxy S3 (GT-I9300) but I have found

a real phone for me, Google Nexus 4 (LG-E960), So awesome!
[Nexus 4 Q&A, Help & Troubleshooting] zellleonhart:
Okay, this is my current init.d script.

#!/system/bin/sh

# First we set colors
echo "252 247 250" > /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 0 25 4 66 48 2" > /sys/devices/platform/mipi_lgit.1537/kgamma_r
echo "210 64 68 118 0 25 4 66 48 2" > /sys/devices/platform/mipi_lgit.1537/kgamma_g
echo "212 64 68 118 0 25 4 66 48 2" > /sys/devices/platform/mipi_lgit.1537/kgamma_b

Off topic: my xda app doesn't load my participated threads, even after I clear cache and data :(
[Nexus 4 Q&A, Help & Troubleshooting] mundixx:
Re: Let's calibrate Mako | 09Feb: new preset HALFBREED

Thanks, mate. This is halfbreed, right? I guess the only difference is that moles ships the rgb at 255 in PA 3.0..

Sent from my AOSPA Nexus 4
[Nexus 4 Q&A, Help & Troubleshooting] -iNSiGhT-:
Re: Let's calibrate Mako | 09Feb: new preset HALFBREED

Strange that you don't have 255 values for rgb like Moles in his halfbreed kernel... Isn't it?
[Nexus 4 Q&A, Help & Troubleshooting] zellleonhart:
The 255 RGB is just a value, it has to be adjusted for different device and kernels. The script I posted is for my device using harsh kernel. I don't flash moles' kernel.