Monday, 7 May 2012

Profiling Small Gamut Laptop Screen

Color gamut for some of the  laptop monitor screens is known to be smaller than that for normal desktop LCD screens. One of the reason is due to lower voltage used for powering the LCD screen of the laptop PC.

Calibrating a Small Color Gamut LCD Screen
The brightness setting for the backlighting could be crucial when calibrating a laptop PC. With repetitive testing and modifying the calibration data that was to be loaded into video LUT, I was convinced that the invalid error was not caused by the calibration but it was due to MS Windows refuses to accept the generated data. Related information can be found at http://comments.gmane.org/gmane.comp.graphics.argyllcms/7983. Such error was encountered when my laptop PC was operating in battery mode and that I could not calibrate it successfully unless the screen brightness was lowered substantially. Here are the typical error messages flagged by some of the profilers.
basiCColor Display 5


i1Profiler 1.3.1


Argyll cms 1.4
Behaviour of Calibration Curves for Small Gamut LCD Screen
The calibration test was carried out with Argyll CMS,  i1Display Pro, and with Asus 1215b laptop running on battery mode. The calibration curves were determined in turn, with LED adjustable brightness set to, from step 1 (BL1) to step 10 (BL10), where BL10 being the brightest possible output for the monitor screen.
BackLight Brightness Setting
The first diagram below shows the calibration curve with LED brightness set to BL1 through BL5, and that LED brightness for  second diagram was set to BL6 through BL10. All the calibration data were obtained with the same command line dispcal -v -yl -m -ql -t6500 -G2.2 test1, and with both the white and black luminance default to monitor native. You may have noticed that there is an abrupt change on the calibration curve when backlight was adjusted from BL5 to BL6, or vice verse.
LUT curve with dispcal -v -yl -ql -m -t6500 -G2.2 test1
(For backlight settings BL1, BL2,BL3, BL4 and BL5)

LUT curve with dispcal -v -yl -ql -m -t6500 -G2.2 test1
(For backlight settings BL6, BL7, BL8, BL9 and BL10)

It was observed that when white luminance (with option -b80, for example,  to set maximum white luminance to 80cd/m² ) was defined in the command line, and with LED brightness adjusted to BL6 or higher, the resulting calibration data cannot be loaded into the video LUT with command dispwin test1.cal. With trial and error, the highest possible white luminance was determined to be about 58 cd/m² (dispcal option -b 58) for this laptop PC running on battery mode and with brightness set to BL5. Following diagram illustrates the resulting calibration curve.
LUT curve with dispcal -v -yl -ql -m -t6500 -G2.2 -b57 test1
(monitor BackLight set to BL5)

Wednesday, 2 May 2012

Monitor Calibration with Argyll CMS

How to get to Windows Command Prompt

Method 1: Under Windows 7, go to START and type cmd into the search bar and hit Enter.

Method 2: In windows, navigate to the folder which you want to open a command prompt, hold down the SHIFT key, right click on the folder, select from the menu Open command window here and click on it to start a new instance of the command prompt. 
 

Preliminary Setup
.  Download latest version of Argyll CMS for Windows HERE.
.  Create folder cms in root directory of c: and unzip content of the downloaded file into this directory.
.  Install USB driver for the measuring device, refer to the following USB installation notes.

Installation of USB Driver
Your present measuring device may work with either basiCColor display 5 or i1Profiler, but it may not communicate with Argyll CMS. The Argyll USB drivers can be found in c:\cms\usblib1 if the above setup procedure is followed. To install Argyll CMS device driver, a Filter driver is needed and such driver can be downloaded from libusb-win32-releases. Click libusb-win32-info and microsoft filter drivers for related information and on how to install the corresponding driver for working with Argyll cms.

Here is the argyll command for testing of device connectivity:
dispcal –r    (testing calibrated monitor)
dispcal -R    (testing uncalibrated monitor)

Can Arygll CMS driver and Windows HID/Inbox driver co-exist?
Yes, with the Filter driver, both baiCColor display 5 and Argyll CMS can work with i1Display pro without the need for re-installing the usb driver when running the different profilers.
As for i1pro, to switch between x-rite and argyll driver, you must go to device manager to re-install the device driver.
a) run inf-wizard in libusb-win32 to switch driver for Eye-One to Argyll i1Pro driver.
b) run x-rite XRDManager version 2.3.1 or higher version to remove and then re-install the driver.

DOS Path
PATH c:\csm\bin
All Argyll 's executable files are located in c:\cms\bin.  For ease of access, setup a PATH in DOS to c:\cms\bin with the above command.

Working Directory
Use c:\cms as the working directory. All generated files will be contained in this folder.
Go to the working directory by entering the command cd c:\cms

Argyll CMS Command Interface

Step 1: Calibration
            dispcal -v -yn -m -qh -t6500 -G2.2 -b100 cal1 
  where
  -yn       set monitor type to LCD, -yn for i1Display Pro, -y1 for i1Pro
  -m       skip monitor control adjustment, typical for laptop PC
  -qh      set calibration quality to High (Low, Medium, High, Ultra high)
  -t6500 set daylight color temperature to 6500K, default to monitor native if this option is ignored.
  -G2.2  set target effective gamma to 2.2
  -b100  set target white brightness to 100 cd/m²
Notes:
a)   set  screen brightness to its maximum before executing the above command.
b)  video LUT will be initialised automatically before start of calibration.
c)  cal1.cal will be created upon successfully completion of this step.
d)  -K should not be specified for i1display pro or else command line becomes invalid.

Step 2: Creation of Test Patches (for icc profiling)
            Skip this step if test patches (.ti1) has been generated.
            targen -v -d3 -g31 -f200 patch200 
where
-d3      for video RGB colorants or monitor mode
-g31    include 31-step gray scale
-f200   define total of 200 test patches

Step 3: Creation of Chart Reading File .ti3
            dispread -v -yn -k cal1.cal patch200

The option -k cal1.cal  will direct the command to save the calibration data into the vcgt tag which is preferably, to be included in patch200.ti3. If this option is unspecified, vcgt tag would be ignored from the icc profile created with colprof and that the display will be read in whatever calibration state it is in. So, use dispwin cal1.cal to load calibration data manually into video LUT, if -k option is unspecified.

Step 4: Creation of icc Profile
            colprof -v -D"2012-05-01_argyll-as" -qh -as patch200
   where
   -D   profile internal name “2012-05-01_argy11-as”
   -qh  create profile of High quality (Low, Medium, High, Ultrahigh)
   -as   use sharper+matrix algorithm, for minimum dE color difference.

The above command will generate the icc profile based on the information in patch200.ti3.
Upon successfully completion of the profile creation, patch200.icm will be generated.

Configure Windows 7 Monitor Profile
In Windows, right click and install profile patch200.icm. The file will be copied to the system color profile directory. Now go to  Control Panel   >  Color Management and at the Devices menu, click on the Add... button, select patch200.icm and set it as the Selected Default Profile.

General Information
Recommended Settings for Monitor Calibration & Profiling
Whitepoint: 6500K
White level: 120cd/m² for working in an good brightness environment
                    100cd/m² for darker viewing condition
Black level:  use monitor native
Gamma:       2.2
Profile type: –as uses sharper+matrix algorithm, for minimum dE color difference.
                   -ag uses gamma+matrix algorithm, for smoother color rendering.

Commands for Testing Calibration file (.cal)
Clear video LUT: dispwin -c
Setup video LUTl: dispwin cal1.cal

Command for switching Background/Foreground Colors in DOS shell
COLOR 9F
This command changes Background to LIGHT BLUE and foreground to BRIGHT WHITE (Light Blue=9, Bright White=F). If no argument is specified, colors will be restored to DOS default.

Realated Argyll's Commands and theirs References
dispcal     http://www.argyllcms.com/doc/dispcal.html
targen      http://www.argyllcms.com/doc/targen.html
dispread  http://www.argyllcms.com/doc/dispread.html
colprof     http://www.argyllcms.com/doc/colprof.html
dispwin    http://www.argyllcms.com/doc/dispwin.html