Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,811,995 Members 49,729 Now Online
XDA Developers Android and Mobile Development Forum

[HACK] Calibration profile for Nexus One v5.1, now with 100% less Sith!

Tip us?
 
storm99999
Old
(Last edited by storm99999; 15th November 2010 at 06:11 AM.)
#1  
Senior Member - OP
Thanks Meter 14
Posts: 365
Join Date: Nov 2007
Default [HACK] Calibration profile for Nexus One v5.1, now with 100% less Sith!

One of the most common criticisms of the Nexus One is its screen. Beyond a few touchscreen problems, a lot of people have had problems with the screen being too blue. This mod attempts to correct this color cast.



The top is with my hack, the bottom is without. This is a color accurate version. The weird green band is just the combination of my camera and what is on the page.

Here is a screenshot of the .apk:

UI, on Flickr


Currently, the color cast is corrected for most people's taste and there is an app to configure it.

Beyond color casts, it is theoretically possible to fix the gamma. It is currently 1.5 when it should be 2.2. That is a fairly bad setting. The roadblock to the implementation of this is that SurfaceFlinger, the window control application in Android, would have to be converted to OpenGL ES 2.0, which some devices don't support, and I would have to figure out how to write the right shader. If you or someone you know is experienced in GLSL for mobile devices, let me know.

Installation:

Anything earlier than Froyo is not supported. If you really want me to add support, let me know, but I'm not putting the time in unless there is a strong need.

For CM6 Nightlies (after Aug 8th) or CM6 final you don't need to flash anything, just install the CM .apk.

For most other roms, you want Universal .zip and normal .apk.

If universal doesn't work due to a failure to flash (so far, this is confirmed for eVIL's Sense V1.00 rom, but not later versions), try the one labeled Sense.

After you install the .zip and there are no errors during flashing, then install the Calibrator Control app.

Use:

To control it, open the Calibration Settings app and just change the numbers. Let me know what numbers you find pleasing to your eye. We currently use: Red = 975, Green = 937, Blue = 854 for the settings for reference. It will save your settings and load them on boot. This feature only works if you have the app installed on the phone and not on the SD card.

As always, there is no warranty with regards to this hack.

Credit goes to Cyanogen and his team for maintaining the source I based my small tweak off of and the authors of the original source, RixKliq for the great icon, and xenio2000 for the UI improvements and help with presets.

Changelog:

V1.0 - First hacky implementation
V2.0 - Cleaned up implementation, integrated better
V2.0b - Fixed signing issues.
V3.0 - Added 3 presets, of which the neutral one loads at boot.
V3.1 - Moved presets slightly cooler, added low red mode for low brightness screens and those who hate red.
V3.2 - Changed profile to be significantly more accurate and fixed multilingual bug.
V4.0 - API not changed, but new .apk allows on boot loading of any color setting you want.
V4.1 - API changed, but only to add a wider rom support. It still requires froyo though.
V4.2 - API not changed, added support for roms that moved libraries to /data/lib, enhanced UI.
V5.0 - API not changed, sadly, but added presets, major UI overhaul to .apk.
V5.1 - Bugfixes galore!

(Still) Planned:
Adding gamma, much less likely than I thought.

Adding dynamic red decrease as the backlight goes down.

Downloads

V5.1 is an .apk fix only, so no need to get the .zip file.

Universal (AOSP) Download:
http://dl.dropbox.com/u/9780975/cali...-Universal.zip

Sense (Desire) Download:
http://dl.dropbox.com/u/9780975/cali...d-42-Sense.zip

Calibrator Controller V5.1 Normal Download:
http://dl.dropbox.com/u/9780975/Cali...-Universal.apk

Calibrator Controller V5.1 CM Nightly (and Final) Download:
http://dl.dropbox.com/u/9780975/Calibrator-5.1-CM6.apk

Known Bugs

If calibration is enabled, Spare Parts will crash when Render Settings is opened.

Some versions may have logcat spam. Let me know if this happens to you.
The Following 7 Users Say Thank You to storm99999 For This Useful Post: [ Click to Expand ]
 
stuff
Old
#2  
stuff's Avatar
Senior Member
Thanks Meter 49
Posts: 1,095
Join Date: Apr 2007
Is there any way to test this feature without CM6?
Red Samsung Galaxy S III

Google Nexus 7

 
jblparisi
Old
#3  
Senior Member
Thanks Meter 482
Posts: 465
Join Date: Jun 2007
Any risk of damaging the display? Sorry, had to ask

I am willing to give it a try.
 
storm99999
Old
(Last edited by storm99999; 4th August 2010 at 08:42 PM.)
#4  
Senior Member - OP
Thanks Meter 14
Posts: 365
Join Date: Nov 2007
Quote:
Originally Posted by stuff View Post
Is there any way to test this feature without CM6?
It's possible, I just put CM6 as that is what I had on my phone to test it with and that is what source I built it from. Any rom that allows you to change the render effect should be compatible but really, all I can do is upload the code and see who would want to implement it in their rom.

Quote:
Originally Posted by jblparisi View Post
Any risk of damaging the display? Sorry, had to ask

I am willing to give it a try.
It shouldn't be a problem, it runs the blue OLEDs at a lower brightness, so it shouldn't go out of spec. In fact, it should increase the display life, but these are all "should"s.
 
stuff
Old
#5  
stuff's Avatar
Senior Member
Thanks Meter 49
Posts: 1,095
Join Date: Apr 2007
Cool. My rom doesn't allow the rendering effect, unfortunately. I want to try this
Red Samsung Galaxy S III

Google Nexus 7

 
dogiedogie
Old
#6  
Senior Member
Thanks Meter 0
Posts: 318
Join Date: Mar 2010
Quote:
Originally Posted by stuff View Post
Cool. My rom doesn't allow the rendering effect, unfortunately. I want to try this
I think like me your forgetting you can do a full nandroid + ext, wipe, install cm6, install mod, play around a bit, nandroid + ext, wipe, restore in about 20-30 mins
 
stuff
Old
#7  
stuff's Avatar
Senior Member
Thanks Meter 49
Posts: 1,095
Join Date: Apr 2007
Quote:
Originally Posted by dogiedogie View Post
I think like me your forgetting you can do a full nandroid + ext, wipe, install cm6, install mod, play around a bit, nandroid + ext, wipe, restore in about 20-30 mins
yeah i know. but I just have all my settings exactly as I like. in fact, my phone almost feels completely tuned in terms of performance. i just know any rom that I flash, I won't like as much as the one I have.
Plus I'm just waiting for CM6 final.
Red Samsung Galaxy S III

Google Nexus 7

 
alapapa
Old
#8  
alapapa's Avatar
Senior Member
Thanks Meter 7
Posts: 453
Join Date: Dec 2007
nice. I've thought it was way too cool since I powered it on the 1st time.

I'll give this a go in a bit.
thx for sharing.
I can help you become more human

 
persiansown
Old
#9  
Recognized Developer
Thanks Meter 718
Posts: 853
Join Date: Jan 2007
Once you get all this fixed up, send me a pull request on github and I'll merge it into CM
I do CyanogenMod stuff.

Circle me on Google+
 
EarthsiegeTA
Old
#10  
Member
Thanks Meter 2
Posts: 95
Join Date: Jan 2010
Location: Milwaukee, WI
I'd love to try this myself, but I won't have access to my Android SDK computer until this weekend.

I'm curious, would you happen to have any comparison pictures?

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes