Gentoo Archives: gentoo-user

From: Devrin Talen <dct23@×××××××.edu>
To: gentoo-user@l.g.o
Subject: [gentoo-user] X-rite color calibrator not working
Date: Sun, 11 Sep 2016 13:06:30
Message-Id: CA+FDhMOnFymPdpT2sDLvZzXDM0-+i7GSxJ65xzj6-q_++jOEjQ@mail.gmail.com
1 I'm trying to use an X-rite i1 Display 3 to calibrate my laptop screen
2 in gnome 3 and running into some trouble. The color calibration
3 settings screen opens up as soon as I plug in the calibrator, and the
4 first error I see is after I've gone through all the options and
5 clicked the start button to actually begin calibrating.
6
7 At that point the error message is:
8
9 An internal error occurred that could not be recovered.
10 You can remove the calibration device.
11
12 This error occurs immediately after clicking the button.
13
14 So I googled around and I found a few links to folks having similar issues:
15
16 [1]: https://github.com/hughsie/colord/pull/29
17 [2]: https://bugzilla.redhat.com/show_bug.cgi?id=1297167
18 [3]: https://bugzilla.redhat.com/show_bug.cgi?id=1000910
19
20 Out of those, the third seems to be the closest to the issue I'm
21 having. From what I can see, the USB device is enumerated properly by
22 the kernel:
23
24 % dmesg # snipped the relevant stuff:
25 [ 2406.995020] usb 1-1.2: new full-speed USB device number 8 using ehci-pci
26 [ 2407.083266] usb 1-1.2: New USB device found, idVendor=0765, idProduct=5021
27 [ 2407.083275] usb 1-1.2: New USB device strings: Mfr=1, Product=2,
28 SerialNumber=0
29 [ 2407.083279] usb 1-1.2: Product: i1Display3 Bootloader
30 [ 2407.083283] usb 1-1.2: Manufacturer: X-Rite Inc.
31 [ 2407.086060] hid-generic 0003:0765:5021.0004: hiddev0,hidraw0: USB
32 HID v1.11 Device [X-Rite Inc. i1Display3 Bootloader] on
33 usb-0000:00:1a.0-1.2/input0
34 [ 2407.842362] usb 1-1.2: USB disconnect, device number 8
35 [ 2408.019082] usb 1-1.2: new full-speed USB device number 9 using ehci-pci
36 [ 2408.107524] usb 1-1.2: New USB device found, idVendor=0765, idProduct=5020
37 [ 2408.107531] usb 1-1.2: New USB device strings: Mfr=1, Product=2,
38 SerialNumber=0
39 [ 2408.107535] usb 1-1.2: Product: i1Display3
40 [ 2408.107538] usb 1-1.2: Manufacturer: X-Rite, Inc.
41 [ 2408.109804] hid-generic 0003:0765:5020.0005: hiddev0,hidraw0: USB
42 HID v1.11 Device [X-Rite, Inc. i1Display3] on
43 usb-0000:00:1a.0-1.2/input0
44
45 And udev seems to be happy about it:
46
47 % udevadm monitor --environment --udev # plugging in the device:
48 monitor will print the received events for:
49 UDEV - the event which udev sends out after rule processing
50
51 UDEV [3659.893310] add /class/usbmisc (class)
52 ACTION=add
53 DEVPATH=/class/usbmisc
54 SEQNUM=3434
55 SUBSYSTEM=class
56 USEC_INITIALIZED=3659893139
57
58 UDEV [3659.894709] add
59 /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2 (usb)
60 ACTION=add
61 BUSNUM=001
62 DEVNAME=/dev/bus/usb/001/012
63 DEVNUM=012
64 DEVPATH=/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2
65 DEVTYPE=usb_device
66 DRIVER=usb
67 ID_BUS=usb
68 ID_MODEL=i1Display3_Bootloader
69 ID_MODEL_ENC=i1Display3\x20Bootloader
70 ID_MODEL_ID=5021
71 ID_REVISION=0001
72 ID_SERIAL=X-Rite_Inc._i1Display3_Bootloader
73 ID_USB_INTERFACES=:030000:
74 ID_VENDOR=X-Rite_Inc.
75 ID_VENDOR_ENC=X-Rite\x20Inc.
76 ID_VENDOR_FROM_DATABASE=X-Rite, Inc.
77 ID_VENDOR_ID=0765
78 MAJOR=189
79 MINOR=11
80 PRODUCT=765/5021/1
81 SEQNUM=3431
82 SUBSYSTEM=usb
83 TYPE=0/0/0
84 USEC_INITIALIZED=3659894455
85 ...
86
87 But the calibration isn't working. Here's the bit of the journal
88 showing gnome complaining when I hit the start button:
89
90 % journalctl -xb # here's the relevant part:
91 Aug 30 22:36:23 luigi colord[1036]: (colord:1036): Cd-WARNING **: the
92 child exited with return code 1
93 Aug 30 22:36:23 luigi gnome-session[1374]:
94 (gnome-control-center:1829): color-cc-panel-WARNING **: calibration
95 failed with code 1: argyll-spotread exited unexpectedly
96 Aug 30 22:36:24 luigi colord[1036]: (colord:1036): Cd-WARNING **: no
97 child pid to kill!
98 Aug 30 22:36:24 luigi gnome-session[1374]:
99 (gnome-control-center:1829): color-cc-panel-WARNING **: failed to
100 start calibrate: failed to calibrate
101
102 So when I saw that I started running argyll-spotread on its own to see
103 if that would still fail:
104
105 % argyll-spotread -v -D4
106 usb_check_and_add: found instrument vid 0x0765, pid 0x5020
107 new_inst: called with path '/dev/bus/usb/001/013 (X-Rite i1
108 DisplayPro, ColorMunki Display)'
109 Connecting to the instrument ..
110 i1d3_init_coms: called
111 i1d3_init_coms: About to init USB
112 usb_open_port: open port '/dev/bus/usb/001/013' succeeded
113 i1d3_command: Sending cmd 'GetStatus' args '00 01 00 00 00 00 00 00'
114 coms_usb_transaction: Submitting urb to fd 3 failed with -1
115 i1d3_command: response read failed with ICOM err 0x20000
116 coms_usb_transaction: Submitting urb to fd 3 failed with -1
117 i1d3_init_coms: failed with rv = 0x70062
118 Failed to initialise communications with instrument
119 or wrong instrument or bad configuration!
120 ('Communications failure' + 'Communications failure')
121 urb_reaper: cleared requests
122
123 And when that happens I see this out in dmesg (the USB IDs may not
124 line up since I plugged and unplugged this many times):
125
126 % dmesg
127 [ 232.711891] usb 1-1.2: usbfs: usb_submit_urb returned -28
128 [ 232.711910] usb 1-1.2: usbfs: usb_submit_urb returned -28
129 [ 232.784675] usb 1-1.2: reset full-speed USB device number 7 using ehci-pci
130
131 My questions are:
132
133 1. Has anyone successfully used this model of calibrator to
134 successfully calibrate their display with the gnome tools?
135
136 2. Am I missing some dependency or USE flag that isn't getting pulled
137 in for me? Or maybe a kernel config option?
138
139 Thanks everyone in advance for any help.