Bug 1043464

Summary: Color calibration fails with internal error (ColorHug)
Product: Red Hat Enterprise Linux 7 Reporter: Martin <mholec>
Component: colordAssignee: Richard Hughes <rhughes>
Status: CLOSED CANTFIX QA Contact: Desktop QE <desktop-qa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.0CC: jskarvad, tpelka
Target Milestone: rc   
Target Release: 7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-16 14:41:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Martin 2013-12-16 11:42:27 UTC
Description of problem:
Color calibration fails with internal error. (ColorHug)

Version-Release number of selected component (if applicable):
colord-1.0.4-1.el7.x86_64
colord-gtk-0.1.25-1.el7.x86_64

$ colorhug-cmd get-firmware-version
1.1.8
$ colorhug-cmd get-hardware-version
Hardware Version 1

How reproducible:
always

Steps to Reproduce:
Run Color calibration in Gnome

Actual results:

(gnome-control-center:12694): color-cc-panel-WARNING **: calibration failed with code 1: /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2: Invalid read: retval=0x19 [Invalid calibration] cmd=0x23 (expected 0x23 [take-reading-xyz]) len=2 (expected 14 or 64)

$ colorhug-cmd take-readings
Integral:	0xffff
R:6.45447 G:21.42334 B:28.24402

$ colorhug-cmd take-reading-raw
There were 2 failures: /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2: Invalid read: retval=0x01 [Unknown command] cmd=0x37 (expected 0x37 [get-measure-mode]) len=2 (expected 3 or 64), /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2: Invalid read: retval=0x00 [Success] cmd=0x21 (expected 0x21 [take-reading-raw]) len=4 (expected 6 or 64)

colorhug-cmd take-reading-array
1.	8	[******#*     ]
2.	9	[******#**    ]
3.	5	[***** .      ]
4.	4	[****  .      ]
5.	6	[******.      ]
6.	6	[******.      ]
7.	7	[******#      ]
8.	7	[******#      ]
9.	4	[****  .      ]
10.	8	[******#*     ]
11.	8	[******#*     ]
12.	4	[****  .      ]
13.	4	[****  .      ]
14.	3	[***   .      ]
15.	7	[******#      ]
16.	6	[******.      ]
17.	6	[******.      ]
18.	6	[******.      ]
19.	5	[***** .      ]
20.	7	[******#      ]
21.	9	[******#**    ]
22.	3	[***   .      ]
23.	4	[****  .      ]
24.	7	[******#      ]
25.	8	[******#*     ]
26.	5	[***** .      ]
27.	3	[***   .      ]
28.	13	[******#******]
29.	7	[******#      ]
30.	6	[******.      ]
Standard deviation: 1.517

Comment 2 Richard Hughes 2013-12-16 14:41:05 UTC
It looks like the calibration matrix inside the colorhug has got corrupted somehow, sorry about that. Simply run colorhug-ccmx on the LiveCD (after you've got an internet connection) and the tool should detect the problem and re-download the calibration file from hughski.com. If it does not detect the corruption, you can run "colorhug-ccmx --repair" from a terminal to force things.

If you want to use RHEL to do this, the F18/F19 colorhug-client should install fine, or you can compile from source. You can also use colorhug-flash to update the firmware to the latest version, although check the version of argyllcms on RHEL if you do that.

NOTE: argyllcms isn't available in the RHEL repos, so you'll either need to download it manually or use the Fedora package if you want to calibrate natively.

If you get stuck recovering, ping us an email on the colorhug-users mailing list and we'll do our best to help. I'll close this bug as I'm 99% sure it is really a hardware error.