yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Themes and Apps] bikeryder007:
Man, this improved the screen of my phone so much. Thanks a ton for posting that.

For me, I did think my screen looked too yellow on stock or too blue with Franco's color.

But on stock, my screen had a washed out look sometimes especially with text. Text was

way too light on my screen, and with these settings the blacks really pop now. Thanks again.
[Nexus 5 Themes and Apps] the1dynasty:
Dude you must have been looking at my phone last night because I had similar settings too lol
[Nexus 5 Themes and Apps] liperus:
Maybe I work for the NSA and had a look at your settings :p
[Nexus 5 Themes and Apps] thetechnogeek:
This works well for me, and thanks for taking the time to post all values- I'd urge others to do the same
[Nexus 5 Themes and Apps] ChazzMatt:
Exactly. On stock the blacks are too high, the colors too washed out. Deeper blacks really make pictures and videos look better. This was the one advantage plasmas had over LCD in the HDTV race. But LCDs have improved. This is an 5" 1080p LCD 120 Hz display. You would't accept this crappy out-of-the-box picture on a new TV, don't accept it on your smartphone.

2.2 is good. 2.4 even better. But out of the box was 2.0. Ugh.
[Nexus 5 Themes and Apps] loganno:
the same thing for me, although I still have the r14 kernel of Franco. all these values ​​do not fit. too yellow. how do you?
[Nexus 5 Themes and Apps] yorici:
Hi guys,

As i read through the 34 pages, no one seem to explain why only 3 values were changed every time (and not the other 20). So i decided to try some settings for myself.

I went mathematical here: If you take stock values and plot it in a graph. You can clearly see a graph containing two segments: One going up, another one going down. The top is at the median, the 12th value.

As we have two segments and the range being 0 to 255, i divided 255 by 2. Now divide this number by 11 (23-1(the top)/2) and you get the factor for our incremental steps. This being 11,6.

This doesn't get us gamma 2.2, but the graph is linear now. If you would divide 255 not by 2, but by other values ('Tweakvalue T'), you can get gamma's of 2.2.

Though these settings lack saturation. So I looked again at the stock values and noted that these don't start (and end) at 0 (except for red). So instead of incremental steps of ~12, i reduced this to ~6, starting with 4.5*6. Tweaking these settings to gamma 2.2, got me the right colors and the right saturation. With displaytester I can still see square 254 and square 1 (under saturation).

As each devices is different, I made an excel spreadsheet. You only tweak 'Tweak value T', and it automatically calculates the values you should type. I found 'Tweak value T' to be different for blue compared to red and green. I made no difference to the negative and positive gamma's.

TL;DR

Try this!:D

1) Download excel-sheet

2) Try out a value between 1,6 and 2,2 for 'Tweakvalue T'

3) Measure gamma with display-testerapp

NOTE: Keep brightness at the same level for testing, as it shifts the gamma (optically?)!

NOTE: If you change the white point, you will need to redetermine all of your previous values(same thing as above). So it's easier to keep it at 32.

4) If the gamma is too high, the 'Tweakvalue T' should be lower (and vice versa)

5) Tweak this for red, green and blue. (I didn't do separate values for positive and negative as difference only messes up your whites..)

6) Have fun;)

Imo this could be a more 'valid' approach to all the different screens as you don't change single values, but the whole of them.

NOTE: White point:

White point is another definition for color temperature. This was measured to be 6500K which is a great value, so I think we should keep it at that. If you change it anyway, your results must be recalculated as the gamma's have shifted.

My Tweakvalue T:

Red & green: 1,74

Blue: 1,81

Disclaimer:

This may be complete nonsense xD I'm really not an expert at display calibration, but these were the results I found:angel:...
[Nexus 5 Themes and Apps] ChazzMatt:
How about gamma 2.4? Can calculate with this? What if we want better than 2.2?

_______

Sent from my Nexus 5 (LG-D820)
[Nexus 5 Themes and Apps] F4M0U569:
I'm looking for more saturated colors, anybody?
[Nexus 5 Themes and Apps] resynx:
Awesome settings right here :good:
[Nexus 5 Themes and Apps] DoesntPostAThing:
I'm getting the feeling that having everything at the desired gamma value isn't the way to go. Every setting that I've tried that claims to have "everything at 2.2" results in banding for me. If you look at the stock gamma chart in Erica Griffin's N5 review, you'll see that red is quite a ways below blue and green. With my current settings, it is the same way. I'm using these settings: http://xdaforums.com/showpost.php?p=48055076&postcount=171 and I find the colors very nice. Whites are white, no banding, no red tint. And the gammas? White is at 2.1, red is at 2.0, green and blue are at 2.3. What I find matters more than individual gammas is the average of RGB. For example, if you take 2.0 + 2.3 + 2.3 and divide by 3, you get 2.2. I think that red is supposed to be lower, and as long as the average is close to 2.2 you'll get accurate colors. Of course, I'm not going for the enhanced saturation as I've had enough of that from my Galaxy Nexus. Accurate colors and non-yellow whites and I'll be happy :) If you want to aim for gamma 2.4 then try making the average of the RGB values equal to 2.4.
[Nexus 5 Themes and Apps] Moh_Jay:
Trying this out now just one question, do you set red + and - to the same values (and so on with green and blue)
[Nexus 5 Themes and Apps] tkoreaper:
Yes... And all I have to say about the spreadsheet is AMAZING! He figured out the system. Someone give this guy a prize.
[Nexus 5 Themes and Apps] tkoreaper:
I am noticing that with everything calibrated to 2.2 (Using yorici's spreadsheet BTW) the dark gray on the gray test is almost like a dark green. It becomes this way after setting blue to 2.2 so maybe blue needs to be adjusted differently? Anyone else experience this? I also discorvered that white point doesn't make a difference for this issue... As first I thought it was the case.
[Nexus 5 Themes and Apps] DoesntPostAThing:
As I said before, I don't think 2.2 across the board is a good idea. If you look at the stock settings where colors are "right" (not perfect, but not obviously wrong) you'll find that red is lower than 2.2 and green and blue are higher. What matters is that the average is around 2.2. Right now red is at 2.0 for me and green and blue are at 2.3, and it averages out to a perfect 2.2. The display looks fine with these settings. So I'd say aim for 2.0/2.3/2.3 for RGB values.
[Nexus 5 Themes and Apps] tkoreaper:
Still doesn't help. With red at 2.1 and the others at 2.4 my dark gray is still a dark green.

My display must also be completely different from yours because at stock my colors are 1.8/1.7/1.8
[Nexus 5 Themes and Apps] DoesntPostAThing:
No, my stock colors were around that too. Right now I'm using these settings.
[Nexus 5 Themes and Apps] Striatum_bdr:
Thanks [MENTION=4809179]yorici[/MENTION] ! Great job.

With brightness at max level, and your xls spreadsheet (kept your Tweak values) I have very good results (white point at 32).

Don't forget that screen automatic brightness will interfere with gamma obviously.

I'll try those settings for a while.
[Nexus 5 Themes and Apps] tkoreaper:
While that may work and look okay, there is severe banding because you aren't creating a curve by only changing 2, out of several, values. Yorici has the right idea and we're on the right track, but i think his formulas for the curve are a little off.
[Nexus 5 Themes and Apps] escknx:
I'm trying to adjust row 1 column 1 of each page and nothing changes at all.

Only white point works.

for example

Red + (0, 91, 109)

which registers should I update on red positive page?
[Nexus 5 Themes and Apps] tkoreaper:
You are on the right track for sure, but i think your formulas are a little off. I think each specific color uses a different formula to create a curve. If you could figure that out I bet it will look even better. I say this because if you look at the stock colors you will see the gamma is set to 18/1.7/1.8 RGB and if you look at each colors values you see that red is completely different from the others.

For example, red starts at 0 and ends at 22... It high point also isn't the 12th spot, but the 13th. Green starts at 71 and ends at 21 with the high point in the 12th spot. Blue starts at 86 and ends at 21 with the high point in the 12th spot.

So a couple things stick out by looking at this: Each colors ends in the low 20's, red starts at 0, and all but Red have their high point in the 12th position.

If you could build the spreadsheet to keep the curves of each individual color then I think we'd be golden. I'm not exactly sure how a gamma curve works (if it constricts, contracts, or moves up and down), but I think that as long as we keep each colors curve relatively the same and only adjust what is needed to effect gamma (constrict, contract, or up/down) then we'd be much closer to figuring this thing out.

---------- Post added at 03:07 AM ---------- Previous post was at 03:05 AM ----------

you need to turn the display off then back on to see changes. white point is the only exception to this.
[Nexus 5 Themes and Apps] Moh_Jay:
I used this across all gammas with white point at 32. Not perfect 2.2 gamma (red 2.2, green 2.0, blue 2.1) Only side effect is grey is ever so slightly bluer. No banding, no red greys, no yellow tint.
[Nexus 5 Themes and Apps] yorici:
Ow yeah, easily:) Just set the the Tweakvalue T lower. I have had 2.6 before. Try Tweakvalue T = 1,6 perhaps? Maybe lower, maybe higher. As I don't own two nexus 5's I'm not sure how big the differences are

---------- Post added at 09:30 AM ---------- Previous post was at 09:26 AM ----------

See my post #340 :) I got pretty good saturation. I could easily see square 1 and 254 on the displaytesterapp

---------- Post added at 09:37 AM ---------- Previous post was at 09:30 AM ----------

Yeah, I have set the same values for negative and positive. If you differentiate between these two, you will end up with reddish/blueish/greenish whites
[Nexus 5 Themes and Apps] neriamarillo:
[MENTION=4809179]yorici[/MENTION] Thanks for the spreadsheet. Results using it with your T values for each color:

Red 2.4

Green 2.3

Blue 2.2

Gray (whites) 2.2

Seems good!

BTW whites are white white white! And grays stay gray. Awesome!
[Nexus 5 Themes and Apps] yorici:
Yeah I have also the feeling that the overall brightness is higher (Not my goal, as it was already too high for me. I think if you set all the gamma's higher, you are boosting the whites a bit, resulting in optically higher brightness. But I'm not sure
[Nexus 5 Themes and Apps] myfluxi:
That was my original approach when I started working on this, thanks for picking it up.

[MENTION=350276]faux[/MENTION]: If this is spot on we should revert the distinction between positive and negative polarities and write both registers in sync.
[Nexus 5 Themes and Apps] Batfink33:
That's getting close to Francos old kernel colour for me. I also decreased the white gamma value to 30.
[Nexus 5 Themes and Apps] supguise:
These settings are really good for those looking for a cooler tint.
[Nexus 5 Themes and Apps] tkoreaper:
I've figured it out. For each value you essentially have to level each color out so that you produce a shade of gray together.

The way I did it was start by adjusting row 3 column 1 until I got 2.2 and then worked backwards evenly while ending at row 1 column 1 with a value of 0. And went forwards to row 5 column 3 Ending in 20-22. Then you adjust as necessary. After you work backward you may have to readjust your row 3 column 1 value until you get back to 2.2

You want to keep each step forward and back as even as possible to prevent banding.
[Nexus 5 Themes and Apps] myfluxi:
You may want take commit history in consideration: https://github.com/myfluxi/kernel_m...8974-hammerhead/msm8974-hammerhead-panel.dtsi

LGE applied these patches (in this order):

arm/dt: hammerhead: Set the default gamma setting for ORISE LCD

arm/dt: hammerhead: Update the default gamma setting for ORISE LCD

arm/dt: hammerhead: Update the gamma setting for ORISE LCD

arm/dt: hammerhead: Adjust the gamma setting for ORISE LCD

arm/dt: hammerhead: Update the gamma setting for ORISE LCD

Please check for patterns and if your findings still make sense.
[Nexus 5 Themes and Apps] ChazzMatt:
GREAT. Thanks. Yeah, I think we should have the choice of range past 2.2. Some movies (videos) are made for 2.4. I prefer that look, to be honest. Crisper blacks, colors with more pop. So, we probably need a range all the way to 2.6, and people can choose what they want.

These values below have been working for me very well over the past few days, but I have not tried again with your tool.

http://xdaforums.com/showpost.php?p=48146580&postcount=300
[Nexus 5 Themes and Apps] yorici:
I actually didn’t see that post:P I just started to mess around in excel.

Banding:

To solve banding I think we need to create a half circle (instead of a upsidedown V) shape with the equation: y= √(1-x^2). Editing the shape can be done the best by editing the K factors (see excel)

Starting point:

When I started experimenting, I started with 0. If all colors start at 0, saturation will be lost. So my guess is that if you start with red at 0, it will affect your whites (and blacks, though less noticeable to they eye)

Formula and app:

If we can create the best formula and this is the best calibration method, the only thing the user has to edit are the Tweakvalues T’s for each color. This is very easy then for the app

Negative/positive:

With this method, the negative and positive values are indeed needless. If you differentiate these, your whites (again most noticeable) will shift to for example red.

My questions unanswered yet:

As the shape now is a Vshape, I still do not fully understand the difference between the legs of the V. If you would for example change value 13-23, the blacks and whites are most effected. What is the connection? Do values 13-23 take care of the whites, while 1-11 of the blacks?

And should we start/end at different points for different colors? What the effect/advantage of it?
[Nexus 5 Themes and Apps] tkoreaper:
I'm hoping, and its just a guess, but if we take the stock curvature of each colorn and adjust it proportionately up/down to obtain 2.2 we may be good. Again I'm just hoping that's all that is needed and it may work.

Another idea is to keep the beginning and end the same for each color and "stretch" the curve proportionately to achieve desired gamma.

I have gotten extremely close now by trying to keep things proportionate but its rather difficult without some formula/guide to help, but I can say that 2.2 (from what I've achieved so far) is gorgeous. I really don't thing you'd need 2.3 or 2.4 as 2.2 is already very well saturated with color.

Another thing to note is that reds peak is the 13th spot and I've found that its very important otherwise the darker grays appear greenish.
[Nexus 5 Themes and Apps] DoesntPostAThing:
Actually, there is no banding at all for me.

Sent from my Nexus 5
[Nexus 5 Themes and Apps] Bestevaer:
I'm quite near 2.2 with all the colers except cyan (2.1). But when I compare my screen to my nexus 7 2013 ( which is spot on 2.2 on all colors) the colors seems to by a bit of. The nexus is whiter and has more contrast.

Who achieved perfect 2.2 with the nexus?
[Nexus 5 Themes and Apps] Vincent Law:
Am I the only one who thinks people should perhaps consider not breaking their device's carefully calibrated color?

Seriously, Anandtech even did a full-fledged workup on the display and found it to be one of the most color accurate displays on a smartphone, ever. No, it's not as "vibrant" or "blue" as other phones you used. This is 100% because the other devices you have used had INCORRECT, BAD calibration. Your saturation and brightness shouldn't be so high that you lose detail entirely. People's skin shouldn't look like they're always under a fluorescent light.

If you really want to mess with the color of your screen, fine. But at least give it a few weeks for you to adjust first before you make decisions. The screen is actually accurate, and unless we stop blaming the Nexus 5 for other devices' problems, manufacturers will keep making poorly calibrated devices.
[Nexus 5 Themes and Apps] ganeshp:
The problem is not every phone has accurate displays as the anandtech guys.. I'm saying this because.. Whatever gamma values the phone has is completely same across all phones.. And for those values each of 3 phones in my office has 3 different displays.. So yeah it does make sense if your display is off.. In my case it's yellowish
[Nexus 5 Themes and Apps] tkoreaper:
Actually, you're wrong. It's not accurate and the display tester shows that. No one is saying that the display is horrible by any means and I'm pretty sure that Anandtech article you're speaking of was talking about the Droid MAX or something... it used the same display. But, again, that doesn't mean it's as accurate because ours is calibrated differently. Heck, it's even been seen in this thread that not everyone's display is the same. If it were accurate, they'd all be the same.
[Nexus 5 Themes and Apps] yorici:
Okay, I have tried to create a quadratic function. The starting point is ~60 and the top ~130.

De function is = (10-4,5)/(12-1)^2 * (x-12)^2 + 10

Shortened: 0,045(x-12)^2 -10

Explaination:

A standard quadratic function is x^2, to open it downwards ==> -x^2

To create a y-offset -x^2 + 10 (Top is now at factor 10)

To create a x-offset -(x-12)^2 + 10 (The top is now at x=12, instead of x=0)

To set the beginning point at 4,5 (equaling 60 in app) you have to add (10-4,5)/(12-1)^2

Resulting in the formula's above

Graph quadratic function vs linear

I haven't fully tested it, but that's the kind of function you would get with curved lines (with starting point=ending point)
[Nexus 5 Themes and Apps] Vincent Law:
No, I am talking about the Anandtech article about the Nexus 5 that specifically reviewed the Nexus 5's screen on their review device. Seriously.

There are always variances in screens. Unless each panel is individually calibrated, you're not going to be perfect. Even $1000+ displays from Dell and the like, known for professional-level color accuracy, must be individually color calibrated to achieve greater than sRGB calibration. Luckily for us, though, we're not aiming for such high standards. We're only using sRGB anyway, which these panels can meet.

Anyway, it's MUCH better than anything you could achieve with your eyes. Attempting to "improve" color calibration using just your eyes, ESPECIALLY since most, if not all of you are not color experts, will only ruin the calibration it already has. You absolutely need a proper color metering device.

If your screen is vastly more yellow than another Nexus 5, that's not a calibration problem, nor one calibration can fix. It's a defective device and needs to be RMA'ed.
[Nexus 5 Themes and Apps] tkoreaper:
Could you create a second function for Red with the starting point at 0 and top at 130? Also, is there any way you can limit the last value to 20? They all seem to not got below 20 so maybe their's a reason for it. So after the peak you can have it use a different function with a top of 130 and and ending point of 20-22.

---------- Post added at 11:30 AM ---------- Previous post was at 11:27 AM ----------

That's why we're using a display tester.
[Nexus 5 Themes and Apps] Vincent Law:
You're handing one out to every user in this thread? Thanks!
[Nexus 5 Themes and Apps] tkoreaper:
If you're not here to help contribute then you should just leave. Thanks.
[Nexus 5 Themes and Apps] neriamarillo:
If you're not here to help and contribute feel free to look for other threads. Here people actually want to help and to contribute to get the best display we want. If you feel yours is awesome already please leave those who don't alone. Thank you and have a nice day.
[Nexus 5 Themes and Apps] tkoreaper:
I calibrated red and green using the new spreadsheet and there is severe banding. I am confident that it has to do with the downward slop not being steep enough. The curve leading up the to peak should be ok, but it's when it goes back down that probably needs adjusted. A quick look on the internet for a gamma curve shows this:

This would suggest that it's not a very even curve. I think we need the curve to quickly go down to the low 20's after it hits it's peak.
[Nexus 5 Themes and Apps] ChazzMatt:
We aren't just "using our eyes". Read the thread BEFORE YOU POST. OK? We have display measurements which tell us the gamma on our displays.

For most people, their Nexus 5 is about 2.0 out of the box, which is less than ideal. That will result in washed out blacks and less color saturation. 2.2 gamma is ideal for most people, but some movies/videos are created to be watched with 2.4 gamma. I prefer that -- with darker, crisper blacks and more color saturation.

Our Nexus 5 is REALLY a 5" full HD 1080p 120 Hz display. Think of it as a small HD monitor, comparable with an HDTV. I would not accept 2.0 gamma on my 1080p HDTV and we should not accept 2.0 gamma on our Nexus 5... Especially when we can EASILY correct it with this app.

If you download the

Display Tester app from Google Play market

and YOUR Nexus 5 shows 2.2 - 2.4, then YES your Nexus 5 display is about perfect. Otherwise, it will need adjustment.

Here's a grey scale example from the app, but you can also see red, green, yellow, etc. It's not guessing. This will show you specifically what you screen is displaying.
[Nexus 5 Themes and Apps] tkoreaper:
I wish our refresh rates were 120Hz, that would be awesome. Unfortunately it's only 60.
[Nexus 5 Themes and Apps] ChongoDroid:
Can someone screenshot the ideal settings, kinda confused by this still. Maybe it's because I'm retarded
[Nexus 5 Themes and Apps] Daniel 07:
How do I apply these settings? The app is not showing anything else than some links, or I'm just dumb ;)
[Nexus 5 Themes and Apps] faux123:
You need to install my kernel :p
[Nexus 5 Themes and Apps] ChongoDroid:
Thanks babe ;)
[Nexus 5 Themes and Apps] Daniel 07:
Latest one I suppose then, I've got the stable non-overclocked one running of yours ;)
[Nexus 5 Themes and Apps] tomzefi:
For the bold and beautiful......I have both so I will be breaking things. ;)
[Nexus 5 Themes and Apps] karendar:
No wipe needed, just a reboot resets settings.
[Nexus 5 Themes and Apps] franciscofranco:
Nice job [MENTION=4152171]myfluxi[/MENTION] and thanks [MENTION=3332811]faux123[/MENTION] for the polarity positive/negative patch.

Maybe we should keep the sysfs interface to something more user readable like /sys/kernel/gamma/*

https://github.com/franciscofranco/hammerhead/commit/163a1d6dc4ef40e339b173522d76970ebe1a6b1e
[Nexus 5 Themes and Apps] undercover:
Hey Faux, been waiting for this. What was your gamma to start with and am I safe to assume you used good old Display Tester to establish it. With that app my gamma shows to be pretty uniform, ranging around 2.0+/- a bit.

P. S. Might finally root my N5.. Or not... :p

P. P. S. Waiting patiently for stock enhanced... *tapping fingers
[Nexus 5 Themes and Apps] faux123:
Yes. I used display tester pro. Yes my starting gamma was almost 2.0 (except red). The hardest to adjust was red gamma. It was around 1.8~1.9 and for overall gamma register it was already maxed at 0. I had to adjust the gamma brightness register to bring it back in reasonable range.
[Nexus 5 Themes and Apps] undercover:
[MENTION=3332811]faux123[/MENTION], can't quote for some reason. Anyway, out of interest, can you take a pic of display before and after? I'm sure camera will have hard time capturing such a minor difference, but side by side it might be visible. Pure curiosity, so if busy don't worry about it.