Difference between revisions of "Colour profile"

From ThinkWiki
Jump to: navigation, search
m (Unpack and find your colour profile)
Line 3: Line 3:
 
IBM and Lenovo have been providing colour profile packages for years, unfortunately they are stuck away in Windows .exe files, so you need wine or a windows machine to unpack them.
 
IBM and Lenovo have been providing colour profile packages for years, unfortunately they are stuck away in Windows .exe files, so you need wine or a windows machine to unpack them.
 
{{Todo|simplify the procedure for finding the right colour profile to load}}
 
{{Todo|simplify the procedure for finding the right colour profile to load}}
 +
 
==Unpack and find your colour profile==
 
==Unpack and find your colour profile==
Unpack the "ThinkPad Monitor INF File" .exe file using Wine.  The profiles will be located in {{path|~/.wine/drive_c/DRIVERS/WIN/MONITOR/}}, or in {{path|~/.wine/drive_c/DRIVERS/WIN/MONITOR/WINXP}} for older models.  In that directory you will find the {{path|TPLCD.INI}} file ({{path|IBMTPLCD.INI}} for older models)  with a mapping of the LCD vendor to colour profile.  
+
Unpack the "ThinkPad Monitor INF File" .exe file using Wine.  The profiles will be located in {{path|~/.wine/drive_c/DRIVERS/WIN/MONITOR/}}, or in {{path|~/.wine/drive_c/DRIVERS/WIN/MONITOR/WINXP}} for older models<sup><small>'''[[Colour_profile#Footnotes|1]]'''</small></sup>.  In that directory you will find the {{path|TPLCD.INI}} file ({{path|IBMTPLCD.INI}} for older models)  with a mapping of the LCD vendor to colour profile.  
  
 
But first you need to know which LCD you have. Unfortunately xrandr does not provide the vendor information, but monitor-edid from the monitor-edid RPM (on Fedora) does.
 
But first you need to know which LCD you have. Unfortunately xrandr does not provide the vendor information, but monitor-edid from the monitor-edid RPM (on Fedora) does.
Line 83: Line 84:
 
* {{X40}}, {{X41}}, {{X41 Tablet}}
 
* {{X40}}, {{X41}}, {{X41 Tablet}}
 
* {{TransNote}}
 
* {{TransNote}}
 +
 +
== Footnotes ==
 +
# There are actually four paths extracted {{path|./WIN98}}, {{path|./WINME}}, {{path|./WIN2000}}, {{path|./WINXP}}, but the {{path|IBMTPLCD.INI}} file in each is essentially identical--any of them will work for the purposes of this article.

Revision as of 19:51, 14 December 2009

Linux distributions are starting to get support for Colour profiles with gnome-color-manager which is planned to be part of Fedora 13 [1].

IBM and Lenovo have been providing colour profile packages for years, unfortunately they are stuck away in Windows .exe files, so you need wine or a windows machine to unpack them.

TODO
simplify the procedure for finding the right colour profile to load

Unpack and find your colour profile

Unpack the "ThinkPad Monitor INF File" .exe file using Wine. The profiles will be located in ~/.wine/drive_c/DRIVERS/WIN/MONITOR/, or in ~/.wine/drive_c/DRIVERS/WIN/MONITOR/WINXP for older models1. In that directory you will find the TPLCD.INI file (IBMTPLCD.INI for older models) with a mapping of the LCD vendor to colour profile.

But first you need to know which LCD you have. Unfortunately xrandr does not provide the vendor information, but monitor-edid from the monitor-edid RPM (on Fedora) does.

$ monitor-edid
EISA ID: LEN4022
Screen size: 28.6 cm x 21.4 cm (14.06 inches, aspect ratio 4/3 = 1.34)
Gamma: 2.2
Digital signal

	# Monitor preferred modeline (60.0 Hz vsync, 64.0 kHz hsync, ratio 4/3, 124 dpi)
	ModeLine "1400x1050" 108 1400 1448 1560 1688 1050 1051 1054 1066 -hsync -vsync

	# Monitor preferred modeline (50.0 Hz vsync, 53.3 kHz hsync, ratio 4/3, 124 dpi)
	ModeLine "1400x1050" 89.97 1400 1448 1560 1688 1050 1051 1054 1066 -hsync -vsync

As you can see from the above, I have a LEN4022. If I then look at the INF file

$ grep LEN4022 TPLCD.INF 
%TPSXGAP%   = TPLCDSXGAP.Install,    Monitor\LEN4022   ; 14"   SXGA+     TFT               1400x1050
%TPSXGAP%   = TPLCDSXGAP.Install.NTx86,    Monitor\LEN4022   ; 14"   SXGA+     TFT               1400x1050
%TPSXGAP%   = TPLCDSXGAP.Install,    Monitor\LEN4022   ; 14"   SXGA+     TFT               1400x1050

You will see this maps to TPLCDSXGAP

We now need to find what colour profile that maps to.

$ grep -A 2 \\[TPLCDSXGAP.Install] TPLCD.INF
[TPLCDSXGAP.Install]                   ; SXGA+ 1400x1050
DelReg=DEL_CURRENT_REG
AddReg=1400, DPMS, ICM

As you can see on the last line, it refers to a ICM colour profile. Now to finally find out which file we need to use

$ grep  -A 1 \\[ICM] TPLCD.INF
[ICM]
HKR,,ICMProfile,0,"TPLCD.icm"

As you can see above the ICM colour profile, maps to the TPLCD.icm file, so that is the file I need to load in gnome-color-manager for my ThinkPad LCD.

Recent ThinkPads

Download monitor profiles

Supported ThinkPads

Old ThinkPads

Download monitor profiles

Supported ThinkPads

Footnotes

  1. There are actually four paths extracted ./WIN98, ./WINME, ./WIN2000, ./WINXP, but the IBMTPLCD.INI file in each is essentially identical--any of them will work for the purposes of this article.