maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   [howto] adjust screen color profile (https://talk.maemo.org/showthread.php?t=89646)

mcbook 2013-03-30 09:32

[howto] adjust screen color profile
 
Hey guys,

I was wondering if there is a way on the N9 to change the color settings of the screen

I have 2 N9 and one of them has a more reddish tint to it whereas the other is bright white

it's not that big of a deal but i thought i'd ask...


[HOWTO]

There are 3 color profiles (Neutral, Vivid and Subdued) that you can choose from the settings menu

In order to change the color profile of your screen (to remove the reddish tint or ...) you need to edit mce.ini in /etc/mce/ as root.

Best way to do this is imho to connect to your N9 using ssh and then gain root privileges.
Code:

ssh user@ip_of_your_N9 (password)
devel-su (password)

You can check your screens hardware revision (Thanks to Kallela!)

Code:

dmesg | grep -i pyrenees
pyrenees may be the codename of the screen

you have either a fe* or c1* screen

Code:

[    0.307434] panel-nokia-dsi display0: pyrenees panel revision c1.8b.96
[  11.115112] atmel_mxt 2-004b: firmware: requesting RM-696_Pyrenees_LGD_V1_1.bin


MAKE A BACKUP

Code:

cp mce.ini mce.ini_org
I use nano to edit files but you can use whatever editor you are comfortable with
Code:

cd /etc/mce/
nano mce.ini


Now at the bottom of the file there are the 2 display sections (for c1 and fe hardware revisions)

looks like this:
Code:

[Display-c1]

# Color phase adjustments for the c1.* display revision
# Each value consists of sets of 12 numbers, each forming a entry for certain
# brightness range, the sets contain, brightness values in lux*3.3
# (330 = 100 lux):
#  - brightness range lower limit (one of the ranges should start from 0)
#  - brightness range upper limit (one of the ranges should have -1 = unlimited)
#  - high brightness mode level
#  - 3 coefficients for output red channel (red, green, blue)
#  - 3 coefficients for output green channel (red, green, blue)
#  - 3 coefficients for output blue channel (red, green, blue)

Neutral=0;330;0;195;48;13;22;206;28;8;8;240;330;9900;0;195;48;13;22;206;28;8;8;240
Vivid=0;33000;0;255;0;0;0;255;0;0;0;255;33000;-1;0;275;-10;-10;-10;275;-10;-10;-10;275;33000;-1;1;295;-20;-20;-20;295;-20;-20;-20;295;33000;-10;2;315;-30;-30;-30;315;-30;-30;-30;315
Muted=0;-1;0;156;79;21;40;165;51;32;32;192

[Display-fe]

# Color phase adjustments for the fe.* display revision
# See above for details

Neutral=0;330;0;199;28;28;8;209;38;8;8;239;330;9900;0;199;28;28;8;209;38;8;8;239
Vivid=0;33000;0;255;0;0;0;255;0;0;0;255;33000;-1;0;275;-10;-10;-10;275;-10;-10;-10;275;33000;-1;1;295;-20;-20;-20;295;-20;-20;-20;295;33000;-10;2;315;-30;-30;-30;315;-30;-30;-30;315
Muted=0;-1;0;159;48;48;15;167;73;32;32;191

There are sets of values for the 3 color profiles i talked about earlier. You need to edit those values..

A set of values for a profile looks like this

- 3 values for brightness (lower limit, upper limit, high brightness -> I wouldn't touch those numbers as I don't know what they are doing)
-3 values for the red color channel (R;G;B)
-3 values for the green color channel (R;G;B)
-3 values for the blue color channel (R;G;B)

3 + 3 + 3 + 3 makes a set consisting of 12 values and there is more than one set in the vivid profile (why? here)

Now, in order to tone down for example the reddish tint you need to decrease the red values (R) of the red channel for the profile you are using (I'd do it for all profiles!) for your hardware revision

e.g
Neutral=0;330;0;175;48;13;22;206;28;8;8;240;330;9900;0;175;48;13;22;206;28;8;8;240

When you have changed all the numbers to your liking, save the file and reboot.
If you are not satisfied play with the values until you are.

Edit:
As thedead1440 pointed out it may not be necessary to reboot
Code:

/sbin/stop mce
/sbin/start mce

should do the trick

Be extremly careful what you edit and don't make any typos or you could end up with a brick and would need to do a full reflash of your device. I am not accountable for anything!

Have a nice day ;)

thedead1440 2013-03-30 09:54

Re: adjust gamma - xorg.conf
 
I wonder if /etc/mce/mce.ini's [Display] section towards the bottom of the file for the 3 colour profiles allow changes that may allow the redish tint to be adjusted or is it just a poor quality screen you are stuck with it...

mcbook 2013-03-30 10:00

Re: adjust gamma - xorg.conf
 
well it's a black 64 gb N9 and it's not some chinese version or somthing
but still

i will look into the file you've pointed out

any further help would be awesome

XiliX 2013-03-30 10:41

Re: adjust gamma - xorg.conf
 
looks risky, as MCE is a entity that doesnt allow errors in its ini file..
screw up and its a re-flash for you...

thedead1440 2013-03-30 10:44

Re: adjust gamma - xorg.conf
 
Quote:

Originally Posted by XiliX (Post 1332944)
looks risky, as MCE is a entity that doesnt allow errors in its ini file..
screw up and its a re-flash for you...

If in openmode, just replace the file with the original via mounting your partitions on PC so not really a biggie but I wonder if its really that file...

mcbook 2013-03-30 11:33

I've been scouring the web for the past 2 hours and found nothing!
I thought this was linux? where are the xserver settings then ? ;)
probably hardcoded or something

MSameer 2013-03-30 11:49

Re: adjust gamma - xorg.conf
 
Perhaps color profiles? Settings -> Device -> Display -> Color profile would do it.

mcbook 2013-03-30 11:56

Nop, already tried it.. still kinda reddish!
I mean it's not annoying or anything but i would like to know if it's even possible to change these settings somewhere...

edit: I looked at the last few lines of mce.ini and tried to understand what's behind all of these values.... No luck so far
If anyone has a clue how this works, let me know

knobtviker 2013-03-30 13:43

Very interesting. Maybe an app like Redshift or Flux from desktops could be made with this.
But do we edit profiles under -c1 or -fe display section?

Editing mce.ini in realtime without Inception isn't possible,no? :)

knobtviker 2013-03-30 13:49

Code:

[Display-c1]

# Color phase adjustments for the c1.* display revision
# Each value consists of sets of 12 numbers, each forming a entry for certain
# brightness range, the sets contain, brightness values in lux*3.3
# (330 = 100 lux):
#  - brightness range lower limit (one of the ranges should start from 0)
#  - brightness range upper limit (one of the ranges should have -1 = unlimited)
#  - high brightness mode level
#  - 3 coefficients for output red channel (red, green, blue)
#  - 3 coefficients for output green channel (red, green, blue)
#  - 3 coefficients for output blue channel (red, green, blue)

Neutral=0;330;0;195;48;13;22;206;28;8;8;240;330;9900;0;195;48;13;22;206;28;8;8;240
Vivid=0;33000;0;255;0;0;0;255;0;0;0;255;33000;-1;0;275;-10;-10;-10;275;-10;-10;-10;275;33000;-1;1;295;-20;-20;-20;295;-20;-20;-20;295;33000;-10;2;315;-30;-30;-30;315;-30;-30;-30;315
Muted=0;-1;0;156;79;21;40;165;51;32;32;192

[Display-fe]

# Color phase adjustments for the fe.* display revision
# See above for details

Neutral=0;330;0;199;28;28;8;209;38;8;8;239;330;9900;0;199;28;28;8;209;38;8;8;239
Vivid=0;33000;0;255;0;0;0;255;0;0;0;255;33000;-1;0;275;-10;-10;-10;275;-10;-10;-10;275;33000;-1;1;295;-20;-20;-20;295;-20;-20;-20;295;33000;-10;2;315;-30;-30;-30;315;-30;-30;-30;315
Muted=0;-1;0;159;48;48;15;167;73;32;32;191

Instructions are selfexplanatory. 3 brightness numbers in lux units, followed by RGB format color, 3 numbers. Semicolon is a delimiter.


All times are GMT. The time now is 05:32.

vBulletin® Version 3.8.8