There has been some noise recently on Planet Gnome about ColorVision Spyder2 support in Linux ArgyllCMS. Ross Burton reported success in profiling his display with this screen calibration device.
So I had to try for myself
Stefan Dohla provided an easy way to compile ArgyllCMS under Ubuntu Gutsy:
1. add yourself to the src group
# sudo vim /etc/group
change the line src:x:40: to src:x:40:yourusername
2. install the jam build tool – use FTJam
# sudo apt-get install ftjam
3. install the X11 XVidMode development package
# sudo apt-get install libxxf86vm-dev
4. create a directory for Argyll in /usr/src , e.g.
# mkdir argyllcms
and enter it
# cd argyllcms
5. download latest Argyll version (use a beta version if available)
# wget http://www.argyllcms.com/argyllV0.70Beta7_src.zip
6. unzip the downloaded file – watch out: there’s no folder created and the content is extracted into your current directory!
# unzip argyllV0.70Beta7_src.zip
7. Run the build script
# sh makeall.ksh
If all compilation goes well, go into the spectro directory. You should find there a spyd2en utility that takes a file from the Spyder driver to use it in Linux (yes, that injects proprietary code in ArgyllCMS). The file is CVSpyder.dll, which you can also pass as a argument to spyd2en, in case.
Afterwards, you can just plug your Spyder and use dispcal to start your monitor calibration. Now the main task is to figure out the command line options available and what they do
As a first test, I simply put:
sudo ./dispcal -v -y l ./test
I had to run dispcal as root otherwise it wouldn’t allow me to access the usb colorimeter – I guess changing the permissions of /dev/bus/usb/… would have been a more elegant solution…
-v is for verbose
-y l tells dispcal to calibrate an LCD monitor (-y c for CRT)
./test.cal is the output profile.
I was then asked what I wanted to do:
1) Black Level (CRT: Brightness)
2) White point (Color temperature, R,G,B, Gain)
3) White level (CRT: Contrast, LCD: Brightness)
4) Black Point (R,G,B, Offset
5) Check All
6) Continue on to calibration
7) Exit
Since this was just a test run (and this was not my photo monitor anyway), I hit 6.
The calibration took forever and a day to complete (measuring a gazillion of patches, averaging plenty of deltaE, checking candelas/m2 and iterating again and again – well 64 patches time 3 iterations). Much longer than in Windows.
This process spit out a test.cal file which was loaded via:
./dispwin ./test.cal
As far as I can see (this was just a quick first test run) the result is as good as can be – I tried loading a profile made under Windows and the Linux one; my display was very similar. OK this is not a scientific test (!!) but it tells me nothing is way off.
By the way, my colorimeter is a (primitive) Spyder 1, so both the Spyder 1 and 2 are supported.
That is for the good – Graeme Gill, you utterly rock!!
The ugly is that ColorVision is just releasing a Spyder 3 to the market and has been quite aggressively dismissing any idea of support towards OSS – as you can read in this long thread on the OpenICC mailing list. Which made Hal V. Engel say with wisdom:
The correct response to ColorVision not wanting anything to do with open source is to return the favor and have nothing to do with them.
So if you have a Spyder 1 or 2, support for Linux is (almost) here. If you are shopping for a (relatively cheap) colorimeter, check Huey
And with that, the last photography thing that I needed to do under MS-Windows is gone…

December 18, 2007 at 6:48 pm |
Hey there, I love that this blog is still going strong!
I had some bad luck recently, I bought a new lens, 50mm f/1.8 and took just a few shots with it, and last Saturday the camera strap slipped loose and my Canon 400D + lens fell on the tiles from roughly 1.4 meters. Thank the Canon engineering gods for my camera surviving that without a scratch, but the lens was shattered…
Oh well, I am looking for a color management solutions, but I have a dilemma. Right now I have a Iiyama HM204DT Vision Master Pro 514 (which is a super 22″ flatscreen CRT monitor, 2048×1536 resolution) . I am thinking however of just buying a macbook and dualboot leopard with ubuntu. To use this monitor as external monitor is more than the macbook can handle, and I don’t want to buy a macbook pro. Also for aesthetic purposes, I will probably buy an LCD monitor. But then I don’t want the 6 bits per channel crap TN panels, but a real color LCD monitor… expensivo…
Now my dilemma: should I buy a Spyder / Huey for this CRT monitor and then use it to calibrate with the eventual macbook’s own lcd panel, and later the LCD monitor? Or do I need a special colorimeter for LCD and one for CRT? They are so damn expensive for something you use perhaps once a year. (Besides, I never print myself, I have my shots printed by a studio)
Nice to read your blog again! Keep it up.
Fan from the first hour
December 19, 2007 at 9:12 am |
Hi Yves,
Always a pleasure to read from you… except in that particular case. I have seen the pic on flickr and it’s not pretty
Still by seeing the lens, you wouldn’t expect the camera to have survived.
When it comes to monitor calibration, the Spyder works both on a LCD or CRT (although the patches being sent are not the same ones). In ArgyllCMS, you have an option to get a CRT or LCD profile (in dispcal the -y switch) so you should be fine. Apparently the Pantone Huey does LCD and CRT but I don’t know how well it is supported under Linux.
Thanks for your support !!
Joel
January 7, 2008 at 4:16 pm |
I followed your instructions on my Ubuntu system, but got the following error message “/usr/bin/ld: cannot find -lXss” which was solved by installing the missing screensaver libraries: “sudo apt-get install libxss-dev”.
Thanks for the nice howto!
January 8, 2008 at 12:23 pm |
Hi Boran,
Thanks for your comment. I tend to have so much “dev” stuff on my Ubuntu that I don’t know which ones are used to build which packages…
Take care,
Joel
January 21, 2008 at 9:08 pm |
I followed the instructions and have some hints for newbies like me.
Make sure all the .ksh and .bat files in the argyllcms directory are executable.
Make sure you have one of the required compilers, GNU c++ works fine:
sudo apt-get install g++
If you are using a Huey or Huey Pro (I have the latter), make sure there is no light shining on the display because the Huey is just a colorimeter under argyllcms and doesn’t appear to be correcting for ambient lighting.
Be conservative on the time out of your screen saver when calibrating
Thanks for the great article.
Regards,
John
January 22, 2008 at 9:46 am |
Hi John,
Good to know the Huey Pro (at least) works also on Linux. Good times for Linux photography. Thanks for your contribution.
Take care,
Joel
January 30, 2008 at 9:15 pm |
Hi,
i’m trying to follow your tutorial, but i don’t find the commands like dispcal, they don’t work. The only thing i can find is dispcal.c in the spectro dir. I tried to install g++ but i get an error…
January 30, 2008 at 10:43 pm |
Ok, i downloaded the wrong version
January 31, 2008 at 9:47 am |
Hi Lysbertus,
Some nice macros on your blog. Congrats!
Take care,
Joel
January 31, 2008 at 5:31 pm |
Thanks a lot! jcornuz! Feel free to comment on my blog
Great tutorial by the way, i’m borrowing a friends spyder this weekend so i’ll be using your tips for making a icc profile under Ubuntu.
cheers,
PJ
February 27, 2008 at 9:17 am |
I Have access to a Spyder2 Pro and wondered if anyone has experience in getting it to work with Ubuntu 7.10
February 27, 2008 at 10:39 am |
Hi Ron,
I had a Spyder1 running on Gutsy (7.10). Spyder2 should work the same way.
Take care,
Joel
February 28, 2008 at 2:24 am |
I was wondering if anybody ha experience with Spyder2Pro specifically. I only
need monitor calibration
February 28, 2008 at 9:07 am |
Hi Ron,
As far as I know, the Spyder2Pro comes with the Spyder2 colorimeter – the “Pro” bit is about the software package that goes with it, and that is Windows and OS X only. So you should have no problem using it for monitor calibration under Linux (not sure about projector, though). Hope this helps.
Take care,
Joel
February 29, 2008 at 6:58 am |
Thank you for the help
March 4, 2008 at 1:19 am |
What command could I issue before my friend comes around to my house, to test if I have installed Argyll correctly ?
March 4, 2008 at 9:19 am |
Hi Ron,
Good one… I guess until you actually have the hardware in hands, there is no way to know for sure. Check if you got any build error and if dispcal exists.
You may want to try loading a profile via dispwin; if you download xcalib, it comes with a blueish.icc which makes your monitor all blue – that is a good testbed.
Take care,
Joël
August 22, 2008 at 1:27 pm |
First, thanks for producing these excellent articles. I finally feel I understand colour management – a subject I first encountered with MacOS 9, where it confused me utterly.
I wondered – has anybody tried running a calibration tool under WiNE? If it worked it would seem to be one way to do things like this without needing driver support. The thing that occurs to me is that you might end up with calibration that only works when WiNE apps are running.
September 29, 2008 at 8:13 am |
If i still feel that there was no need to read this article, you would have to concede that i truly know what all needs to known about LCD, but if the answer is no, i must be glad of reading this article.
October 23, 2008 at 11:46 pm |
Hi Joel,
I was wondering, would it be possible to run the Spyder2 software in Windows to get the calibration file and then just have Linux load that profile? In theory (and I admit, I’m new to Linux, so I could easily be wrong here), you’re using the same monitor, with the same settings, on the same computer…with the same file. The only difference being the OS that starts it up. I found a couple of ICC profile managers/loaders in my repository, so that’s why I was asking…seems like it would be a heck of a lot easier to me, unless you don’t have a dual-boot…but even then, you could still probably do it through VMWare or Win4Lin on the XP VM, then copy the file over to the Linux side.
October 24, 2008 at 2:56 am |
Hi Justin,
As far as I remember, using a Windows made profile under Linux is OK – see http://jcornuz.wordpress.com/2007/11/08/using-windows-made-monitor-profiles-in-linux/
Still, Spyder2 can create profiles for you in Linux via ArgyllCMS – see http://jcornuz.wordpress.com/2007/11/18/use-colorvision-spyder-to-produce-an-icc-monitor-profile-under-argyllcms-linux/
Take care,
Joel
May 28, 2009 at 7:23 am |
Why compile? You can download the executables and this seems to work?http://www.argyllcms.com/Argyll_V1.0.3_linux_x86_bin.tgz