[argyllcms] Re: Calibration of my colormunki

  • From: Richard Hughes <hughsient@xxxxxxxxx>
  • To: argyllcms@xxxxxxxxxxxxx
  • Date: Wed, 28 Apr 2010 11:40:45 +0100

On 28 April 2010 10:12, Graeme Gill <graeme@xxxxxxxxxxxxx> wrote:
> Richard Hughes wrote:
>>
>> When argyll does a calibration of the sensor for my ColorMunki, where
>> is the calibration stored? On the device itself or somewhere on the
>> system?
>
> It stores it in a file named ".mk_XXXXXX.cal" in the current directory,
> where XXXXXX is the instrument serial numbers.

spotread doesn't seem to store anything in the CWD for me, and looking
at strace it seems to try to store the value in
/usr/bin/.mk_2023111.cal -- which for a user obviously won't work (and
argyll seems to ignore EACCES without a warning). By bodging PATH and
arg[0] to something more reasonable I could probably get the
calibration file to be saved somewhere else, although this is a giant
hack and probably not a good idea.

Richard.

$ spotread
...
gettimeofday({1272450817, 492375}, NULL) = 0
mmap2(NULL, 245760, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xb6d3a000
munmap(0xb6d3a000, 245760)              = 0
time(NULL)                              = 1272450817
open("/usr/bin/.mk_2023111.cal", O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1
EACCES (Permission denied)
write(1, "Calibration complete\n", 21Calibration complete
)  = 21
write(1, "\nPlace instrument on spot to be "..., 42
Place instrument on spot to be measured,
) = 42

Other related posts: