Unable to calibrate monitors through Gnome Control Center->Color [calibration failed with code 1: no sensor->get_sample]

Bug #1719143 reported by Robert Hutton
114
This bug affects 20 people
Affects Status Importance Assigned to Milestone
gnome-control-center (Ubuntu)
Confirmed
High
Unassigned

Bug Description

Fresh install of Artful, using gnome-session to access vanilla GNOME session on Wayland (also tried on xorg). Attempting to calibrate monitors through Gnome Control Center->Devices->Color. All attempts ended at the point where I was asked to put the device onto the monitor, with the error:

Calibration failed!
An internal error occurred that could not be recovered. You can remove the calibration device.

Syslog:
Sep 24 12:19:31 desktop kernel: [ 262.849675] usb 3-6: new full-speed USB device number 7 using xhci_hcd
Sep 24 12:19:32 desktop kernel: [ 262.990880] usb 3-6: New USB device found, idVendor=0971, idProduct=2007
Sep 24 12:19:32 desktop kernel: [ 262.990882] usb 3-6: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Sep 24 12:19:32 desktop kernel: [ 262.990884] usb 3-6: Product: colormunki
Sep 24 12:19:32 desktop kernel: [ 262.990885] usb 3-6: Manufacturer: X-Rite
Sep 24 12:19:32 desktop pulseaudio[953]: W: [pulseaudio] sink-input.c: Failed to create sink input: sink is suspended.
Sep 24 12:19:32 desktop gnome-shell[876]: drmModeSetCursor2 failed with (Permission denied), drawing cursor with OpenGL from now on
Sep 24 12:19:32 desktop pulseaudio[953]: W: [pulseaudio] sink-input.c: Failed to create sink input: sink is suspended.
Sep 24 12:19:32 desktop org.gnome.SettingsDaemon.Color.desktop[1000]: libEGL warning: wayland-egl: could not open /dev/dri/card0 (Permission denied)
Sep 24 12:19:32 desktop org.gnome.SettingsDaemon.Color.desktop[1000]: libEGL warning: wayland-egl: could not open /dev/dri/card0 (Permission denied)
Sep 24 12:19:32 desktop org.gnome.SettingsDaemon.Color.desktop[1000]: VA error: wayland: failed to open /dev/dri/card0: Permission denied (errno 13)
Sep 24 12:19:32 desktop org.gnome.SettingsDaemon.Color.desktop[1000]: libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
Sep 24 12:19:32 desktop org.gnome.SettingsDaemon.Color.desktop[1000]: libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
Sep 24 12:19:32 desktop org.gnome.SettingsDaemon.Color.desktop[1000]: VA error: wayland: failed to open /dev/dri/card0: Permission denied (errno 13)
Sep 24 12:19:32 desktop org.gnome.SettingsDaemon.Color.desktop[1000]: libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)

I attempted to fix the permissions error for /dev/dri/card0. Current permissions:
rwh@desktop:~$ ls -l /dev/dri/card0
crw-rw----+ 1 root video 226, 0 Sep 24 12:15 /dev/dri/card0

Tried adding my user to video group, which made no difference. Then made file world r/w:
rwh@desktop:~$ sudo chmod o+rw /dev/dri/card0

Which fixed that problem. Now, in the calibrate wizard, on the second step (Display Type) I am offered three options (LCD, CRT, Projector) where I only saw LCD previously. However, the calibration step failed the same as before. Syslog:

Sep 24 12:36:46 desktop kernel: [ 1298.430546] usb 3-6: new full-speed USB device number 12 using xhci_hcd
Sep 24 12:36:46 desktop kernel: [ 1298.571756] usb 3-6: New USB device found, idVendor=0971, idProduct=2007
Sep 24 12:36:46 desktop kernel: [ 1298.571759] usb 3-6: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Sep 24 12:36:46 desktop kernel: [ 1298.571760] usb 3-6: Product: colormunki
Sep 24 12:36:46 desktop kernel: [ 1298.571762] usb 3-6: Manufacturer: X-Rite
Sep 24 12:36:46 desktop pulseaudio[953]: message repeated 3 times: [ W: [pulseaudio] sink-input.c: Failed to create sink input: sink is suspended.]
Sep 24 12:36:47 desktop gnome-control-c[5206]: Unable to initialize Clutter: Unable to initialize the Clutter backend: no available drivers found.
Sep 24 12:36:47 desktop gnome-control-c[5201]: Unable to initialize Clutter: Unable to initialize the Clutter backend: no available drivers found.
Sep 24 12:36:47 desktop gnome-control-c[5201]: Error 71 (Protocol error) dispatching to Wayland display.
Sep 24 12:36:47 desktop gnome-control-c[5206]: Error 71 (Protocol error) dispatching to Wayland display.
Sep 24 12:37:21 desktop dbus-daemon[4121]: Activating via systemd: service name='org.freedesktop.ColorHelper' unit='colord-session.service'
Sep 24 12:37:21 desktop systemd[3601]: Starting Color management helper...
Sep 24 12:37:21 desktop dbus-daemon[4121]: Successfully activated service 'org.freedesktop.ColorHelper'
Sep 24 12:37:21 desktop systemd[3601]: Started Color management helper.
Sep 24 12:37:21 desktop gnome-control-c[4627]: GtkDialog mapped without a transient parent. This is discouraged.
Sep 24 12:37:34 desktop gnome-control-c[4627]: calibration failed with code 1: no sensor->get_sample
Sep 24 12:37:35 desktop gnome-control-c[4627]: failed to start calibrate: failed to calibrate

I also attempted the same process using a ColorHug, syslog output:

Sep 24 13:40:20 desktop kernel: [ 5112.073831] usb 3-5: new full-speed USB device number 27 using xhci_hcd
Sep 24 13:40:20 desktop kernel: [ 5112.216193] usb 3-5: New USB device found, idVendor=273f, idProduct=1001
Sep 24 13:40:20 desktop kernel: [ 5112.216198] usb 3-5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Sep 24 13:40:20 desktop kernel: [ 5112.216201] usb 3-5: Product: ColorHug
Sep 24 13:40:20 desktop kernel: [ 5112.216204] usb 3-5: Manufacturer: Hughski Ltd.
Sep 24 13:40:20 desktop kernel: [ 5112.218554] hid-generic 0003:273F:1001.0012: hiddev0,hidraw0: USB HID v1.11 Device [Hughski Ltd. ColorHug] on usb-0000:00:14.0-5/input0
Sep 24 13:40:20 desktop pulseaudio[953]: W: [pulseaudio] sink-input.c: Failed to create sink input: sink is suspended.
Sep 24 13:40:20 desktop pulseaudio[953]: W: [pulseaudio] sink-input.c: Failed to create sink input: sink is suspended.
Sep 24 13:40:20 desktop gnome-control-c[13696]: Unable to initialize Clutter: Unable to initialize the Clutter backend: no available drivers found.
Sep 24 13:40:20 desktop gnome-control-c[13696]: Error 71 (Protocol error) dispatching to Wayland display.
Sep 24 13:40:20 desktop gnome-control-c[13686]: Unable to initialize Clutter: Unable to initialize the Clutter backend: no available drivers found.
Sep 24 13:40:20 desktop gnome-control-c[13686]: Error 71 (Protocol error) dispatching to Wayland display.
Sep 24 13:40:24 desktop gnome-software[7308]: running get-updates with refine-flags=require-update-details,require-update-severity with timeout=60 on plugin=systemd-updates took 2ms
Sep 24 13:40:43 desktop dbus-daemon[6900]: Activating via systemd: service name='org.freedesktop.ColorHelper' unit='colord-session.service'
Sep 24 13:40:43 desktop systemd[3601]: Starting Color management helper...
Sep 24 13:40:43 desktop dbus-daemon[6900]: Successfully activated service 'org.freedesktop.ColorHelper'
Sep 24 13:40:43 desktop systemd[3601]: Started Color management helper.
Sep 24 13:40:43 desktop colord[1138]: ignoring error: usb:00:05: Invalid read: retval=0x0a [Invalid value] cmd=0x35 [get-remote-hash] (expected 0x35 [get-remote-hash]) len=64 (expected 22 or 64)
Sep 24 13:40:43 desktop gnome-control-c[13694]: GtkDialog mapped without a transient parent. This is discouraged.
Sep 24 13:40:49 desktop gnome-control-c[13694]: calibration failed with code 1: usb:00:05: Invalid read: retval=0x0a [Invalid value] cmd=0x35 [get-remote-hash] (expected 0x35 [get-remote-hash]) len=64 (expected 22 or 64)
Sep 24 13:40:50 desktop gnome-control-c[13694]: failed to start calibrate: failed to calibrate

rwh@desktop:~$ lsb_release -rd
Description: Ubuntu Artful Aardvark (development branch)
Release: 17.10
rwh@desktop:~$ apt-cache policy gnome-control-center
gnome-control-center:
  Installed: 1:3.26.0-0ubuntu2
  Candidate: 1:3.26.0-0ubuntu2
  Version table:
 *** 1:3.26.0-0ubuntu2 500
        500 http://mirror.internode.on.net/pub/ubuntu/ubuntu artful/main amd64 Packages
        100 /var/lib/dpkg/status

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: gnome-control-center 1:3.26.0-0ubuntu2
ProcVersionSignature: Ubuntu 4.13.0-11.12-generic 4.13.1
Uname: Linux 4.13.0-11-generic x86_64
ApportVersion: 2.20.7-0ubuntu1
Architecture: amd64
CurrentDesktop: GNOME
Date: Sun Sep 24 13:15:14 2017
ExecutablePath: /usr/bin/gnome-control-center
InstallationDate: Installed on 2017-09-23 (1 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Alpha amd64 (20170919)
ProcEnviron:
 LANGUAGE=en_AU:en
 PATH=(custom, user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_AU.UTF-8
 SHELL=/bin/bash
SourcePackage: gnome-control-center
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Robert Hutton (rwh-helms-deep) wrote :
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for your report. I confirm this error.
On second try gnome-control-center crashes.

Changed in gnome-control-center (Ubuntu):
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Carl-Eric Menzel (duesenklipper) wrote :

This happened to me just now on a fresh installation of 20.04. Exactly as reported - first attempt at calibration with a Spyder 3 fails, on the second attempt gnome-control-center crashes hard.

Revision history for this message
Sebastien Bacher (seb128) wrote :

@Carl-Eric, can you trigger it again? Could you add a 'journalctl -b 0' log from a session where you had the issue?

Revision history for this message
wolfgang (wolfgang-ztoeg) wrote :

NOK: 20.04, i1Display3:
gnome-control-c[22782]: calibration failed with code 1: no sensor->get_sample

workaround: using https://displaycal.net/ -> deb from 19.10 (no 20.04 up top now)
selecting the profile ~/.local/share/icc/DELL U2711 #1 2020-06-09 23-26 2.2 F-S XYZLUT+MTX.icc

summary: - Unable to calibrate monitors through Gnome Control Center->Color in
- artful
+ Unable to calibrate monitors through Gnome Control Center->Color
tags: added: focal
removed: artful
summary: Unable to calibrate monitors through Gnome Control Center->Color
+ [calibration failed with code 1: no sensor->get_sample]
tags: added: groovy
tags: removed: groovy
Revision history for this message
sjjh (simon-harhues) wrote (last edit ):

can confirm under Ubuntu 20.04 with Spyder 3 express as well. Hope the attached log messages from 'dmesg' and 'journalctl -b 0' help. Shell output:

$ gnome-control-center

(gnome-control-center:6495): color-cc-panel-WARNING **: 23:54:00.320: calibration failed with code 1: no sensor->get_sample

(gnome-control-center:6495): color-cc-panel-WARNING **: 23:54:11.074: failed to start calibrate: failed to calibrate

(gnome-control-center:6495): libcolord-CRITICAL **: 00:00:02.301: cd_profile_has_access: assertion 'CD_IS_PROFILE (profile)' failed

(gnome-control-center:6495): libcolord-CRITICAL **: 00:00:02.301: cd_profile_get_filename: assertion 'CD_IS_PROFILE (profile)' failed

(gnome-control-center:6495): libcolord-CRITICAL **: 00:00:02.301: cd_profile_get_id: assertion 'CD_IS_PROFILE (profile)' failed

(gnome-control-center:6495): color-cc-panel-WARNING **: 00:00:02.301: (null) is not usable by this user

(gnome-control-center:6495): libcolord-CRITICAL **: 00:00:02.348: cd_profile_has_access: assertion 'CD_IS_PROFILE (profile)' failed

(gnome-control-center:6495): libcolord-CRITICAL **: 00:00:02.348: cd_profile_get_filename: assertion 'CD_IS_PROFILE (profile)' failed

(gnome-control-center:6495): libcolord-CRITICAL **: 00:00:02.348: cd_profile_get_id: assertion 'CD_IS_PROFILE (profile)' failed

(gnome-control-center:6495): color-cc-panel-WARNING **: 00:00:02.348: (null) is not usable by this user

(gnome-control-center:6495): libcolord-CRITICAL **: 00:00:02.961: cd_profile_has_access: assertion 'CD_IS_PROFILE (profile)' failed

(gnome-control-center:6495): libcolord-CRITICAL **: 00:00:02.961: cd_profile_get_filename: assertion 'CD_IS_PROFILE (profile)' failed

(gnome-control-center:6495): libcolord-CRITICAL **: 00:00:02.961: cd_profile_get_id: assertion 'CD_IS_PROFILE (profile)' failed

(gnome-control-center:6495): color-cc-panel-WARNING **: 00:00:02.961: (null) is not usable by this user

(gnome-control-center:6495): color-cc-panel-CRITICAL **: 00:27:07.688: cc_color_calibrate_setup: assertion 'calibrate->device_kind != CD_SENSOR_CAP_UNKNOWN' failed
Speicherzugriffsfehler (Speicherabzug geschrieben)

Revision history for this message
sjjh (simon-harhues) wrote :
tags: added: jammy
tags: added: xorg-session
Revision history for this message
Andreas Perhab (ap-wtioit) wrote :

Getting the same issue with x-rite i1|Display Pro on Ubuntu 22.04 LTS

Revision history for this message
Kevin Keegan (krkeegan) wrote :

Also having the same issue with X-Rite|Colormunki-Display on Ubuntu 22.04.01

Revision history for this message
yvesg (yves-grenier) wrote :

I am also having the same issue with X-Rite Display Lt on Ubuntu 22.04.3

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.