After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 690712 - g-c-m not loading .icc lacking vcgt tag
g-c-m not loading .icc lacking vcgt tag
Status: RESOLVED NOTGNOME
Product: gnome-color-manager
Classification: Core
Component: general
3.6.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-color-manager-maint
gnome-color-manager-maint
Depends on:
Blocks:
 
 
Reported: 2012-12-25 16:25 UTC by Tetrapilot
Modified: 2013-01-05 17:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
color profile without vcgt tag (788 bytes, application/vnd.iccprofile)
2012-12-25 16:25 UTC, Tetrapilot
Details

Description Tetrapilot 2012-12-25 16:25:45 UTC
Created attachment 232214 [details]
color profile without vcgt tag

Hi,

I have a fresh Arch Linux install on a Lenovo Notebook and use Gnome. The display appears blueish. This seems to be the case, because the .icc color profile I would like to use could not be loaded and hence no gamma-correction is done.

I tried to load various .icc files in the gcm:
- The default file
- A file delivered by Lenovo
- A file created with lprof
- A file created with lprof, fakeread and colprof
- Various files I found on the system.

The only ones that worked were two profiles I found on the system called pink.icc and blueish.icc. The screen appeared more pink and blueish, respectively.

Loading the files with other .icc-loaders (dispwin, xcalib) yielded the same results, except that a warning appeared for the files, that cold not be loaded succesfully:

$ dispwin profile.icc
Dispwin: Warning - No vcgt tag found in profile - asuming linear

I did some research on the 'vcgt tag' and found, that it is an easy-to-use Gamma-correction handle that is not in the icc-standart (but introduced by apple.inc). It is just an add-on to the icc-standard. The latter stores gamma-correction in some other way.

So to me it seems like g-c-m is not able to handle .icc-files that lack a vcgt tag. A solution would be to create some kind of tool that calculates a vcgt tag from the gamma correction information and stores it in the .icc file, like this one: http://www2.chromix.com/ColorSmarts/smartNote.cxsa?snid=1027 (PPC only).

I attatch a color that I created with lprof and that does not have a vcgt tag so you can try to reproduce the problem.

So, any help is appreciated to make all the gnome-lenovo-combinations out there less blueish.

Tetrapilot
Comment 1 Richard Hughes 2012-12-29 20:12:40 UTC
(In reply to comment #0)
> The only ones that worked were two profiles I found on the system called
> pink.icc and blueish.icc. The screen appeared more pink and blueish,
> respectively.

Right, these are probably the only files on your system that have "Display Correction: Yes" (look in the Details... for the profile).

> So to me it seems like g-c-m is not able to handle .icc-files that lack a vcgt
> tag. 

It just treats them as linear gamma, as it should.

> A solution would be to create some kind of tool that calculates a vcgt tag
> from the gamma correction information and stores it in the .icc file, like this
> one: http://www2.chromix.com/ColorSmarts/smartNote.cxsa?snid=1027 (PPC only).

What gamma correction info would you embed?

> So, any help is appreciated to make all the gnome-lenovo-combinations out there less blueish.

When you create the profile you need to calibrate the display before you characterize. See http://www.argyllcms.com/doc/calvschar.html for more details.

It sounds like you need to either purchase a calibration device, or create a profile using cd-create-profile and then matching it by eye.
Comment 2 Tetrapilot 2013-01-01 17:09:39 UTC
Thank you for your comment. I will try this as soon as I have access to my notebook again.

Tetrapilot.
Comment 3 Tetrapilot 2013-01-05 17:05:20 UTC
I have seen other gnome installations on Lenovo notebooks that suffer the same problem, so I stick a little to this topic in case someone decides to google this problem. For users that are not into this color-business it is not always too easy to understand the manpages and the online help.

> When you create the profile you need to calibrate the display before you
> characterize. See http://www.argyllcms.com/doc/calvschar.html for more details.

So, now I found out that what I want to do is to calibrate my monitor. This has a priori nothing to do with .icc-profiles. Nevertheless for convinience the result of the calibration-procedure is also stored in the .icc-profile, namely in the video card gamma table (vcgt-tag).

To determine the vcgt-tag that modifies the signal of my video card in the correct way (i.e. in a way that my monitor reproduces colors more or less correctly) I can either use a calibration device (I assume a colorimeter), or -as a workaround if such a device is not available- my eye:

> It sounds like you need to either purchase a calibration device, or create a
> profile using cd-create-profile and then matching it by eye.

I can pass various options to cd-create-profile. Those that seem crucial for my problem might be:

$ man cd-create-profile
  --srgb-palette
  Specifies a comma seporated values file that is used for the named color. The format of the CSV file must be "Color Name",0-255(red),0-255(green),0-255(blue).

$ cd-create-profile -h
  --named-color-palette     Named color CSV filename
  --xorg-gamma              A gamma string, e.g. '0.8,0.8,0.6'

--srgb-palette: is not recognized by my version of cd-create-profile.
--named-color-file: might be the current name of this option, yet I do not have such a .csv-file (and it might not be what I want to do, because these options might be related to characterization rather than calibration.)

So I used gamma values that I determined with lprof and did the following:

$ cd-create-profile -o test.icc --xorg-gamma 2.49,2.27,2.73

These gamma-values seem to be terribly wrong. However, I get a profile that indeed has the option "Display correction: yes" and modifies the colors of my display -- however, not in the desired way.

I recognized that the gamma strings from the example delivered by $ cd-create-profile -h are not in the range of the lprof gamma-values (1.61 < gamma < 4.0).

So, is it possible to convert "lprof"-gamma to "cd-create-profile"-gamma?
What other method would you suggest to calibrate the monitor "by eye"?
Is there any chance of a somewhat accaptable profile by such a method?

Thank you for your help so far and onward,
Tetrpilot

NB: I currently use an .icc-profile from an old MacBook1.1 that delivers somewhat accaptable colors.