Calibration Profile Lost after Standby (Linux Mint)

Home Forums Help and Support Calibration Profile Lost after Standby (Linux Mint)

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #5325

    DispCalUser
    Participant
    • Offline

    Hi,

    I recently profiled my external display (using Spyder 5 Pro) connected to a laptop, running Linux Mint 17.3 with DisplayCAL/Argyll-CMS. The creation of the profile worked without any problems and after the process was finished I installed the profile over the corresponding menu point (profile as system standard option). The profile was correctly applied and if I boot up the system it is loaded automatically. The problem occurs if the system resumes after standby, then the calibration profile is not loaded (even though it was before standby) and I have to perform it by myself using DisplayCal. Any help would be appreciated!

    #5333

    Florian Höch
    Administrator
    • Offline

    Hi,

    if the system itself does not provide a default means to preserve calibration, you can run displaycal-apply-profiles manually from a terminal, or possibly add a script to /etc/pm/sleep.d that runs it for you when you resume from suspend:

    #!/bin/sh
    
    case "$1" in
        resume|thaw)
            displaycal-apply-profiles
    esac
    #5339

    DispCalUser
    Participant
    • Offline

    Hi,

    thank you very much for your quick answer. Unfortunately this solutions isn’t working for me since as far as I understood everything correctly the scripts in sleep.d are executed before the xserver resumes. Therefore I found in pm-suspend.log the following error:

    Running hook /etc/pm/sleep.d/11_load_dispprofile resume suspend:
    Unable to access the X Display, is $DISPLAY set properly?
    /etc/pm/sleep.d/11_load_dispprofile resume suspend: Returned exit code 1.

    So I guess I need to find a way to execute the command after the xserver resume but found up to now no solution that worked for me…

    #5344

    Florian Höch
    Administrator
    • Offline

    Running hook /etc/pm/sleep.d/11_load_dispprofile resume suspend:
    Unable to access the X Display, is $DISPLAY set properly?
    /etc/pm/sleep.d/11_load_dispprofile resume suspend: Returned exit code 1.

    Does this work?

    #!/bin/sh
    
    case "$1" in
        resume|thaw)
            DISPLAY=:0.0 ; export DISPLAY
            displaycal-apply-profiles
    esac
    • This reply was modified 7 years, 2 months ago by Florian Höch.
    #5363

    DispCalUser
    Participant
    • Offline

    Hi,

    unfortunately not, pm-suspend.log:

    Running hook /etc/pm/sleep.d/99_load_disp_profile resume suspend:
    No protocol specified
    Unable to access the X Display, is $DISPLAY set properly?
    /etc/pm/sleep.d/99_load_disp_profile resume suspend: Returned exit code 1.

    #5365

    Florian Höch
    Administrator
    • Offline

    I’ve one more variation that may or may not work:

    #!/bin/sh
    
    case "$1" in
        resume|thaw)
            DISPLAY=:0 displaycal-apply-profiles
    esac
    #5378

    DispCalUser
    Participant
    • Offline

    Hi,

    also no success, same error, strange. Seems to be more a Linux than DisplayCal specific problem I guess. Currently I’m a little busy so I will try to find a solution when I have a little more time. For now seems like I have to live with the manual load from console without automation. Anyway thank you for trying to help 🙂

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

Log in or Register

Display Calibration and Characterization powered by ArgyllCMS