[argyllcms] gnome-screensaver destroys lut table from dispwin but not from xcalib.

I have done fighting against  the gnome-screensaver for a long time to
try to prevent it from destroy my lut table. Today I tried to load my
icc profile with xcalib instead of dispwin and everything works as
hoped. In my ubuntu version the gnome-screensaver set the lut to the
state before it was issued so I have to stop and start it. This script
is loaded from the system-preferences-sessions menu. It means it is
loaded at time of startup of  X system.

Does not work:
#!/bin/bash
gnome-screensaver-command --exit
dispwin -I ~/.color/icc/i1.icc
gnome-screensaver

Because after the screensaver is activated I got this:
ltg@buntu:~$ gnome-screensaver-command -a
ltg@buntu:~$ dispwin -V -L
Verify: '/home/ltg/.local/share/color/icc/devices/display/i1.icc' is
NOT loaded (discrepancy 6.7%)


But this work:

#!/bin/bash
gnome-screensaver-command --exit
xcalib ~/.color/icc/i1.icc
gnome-screensaver


ltg@buntu:~$gnome-screensaver-command -a

ltg@buntu:~$ dispwin -V -L

Verify: '/home/ltg/.local/share/color/icc/devices/display/i1.icc' IS
loaded (discrepancy 0.4%)


And it also work if I let xcalib run before dispwin in the same bash script.

I don't know if this is a bug or expected behavior.

Regards
Lars Tore Gustavsen

Other related posts: