Blob Blame Raw
diff -urNp Argyll_V1.0.4.old/libusb/55-Argyll.rules Argyll_V1.0.4/libusb/55-Argyll.rules
--- Argyll_V1.0.4.old/libusb/55-Argyll.rules	2010-02-01 08:54:08.000000000 +0000
+++ Argyll_V1.0.4/libusb/55-Argyll.rules	2010-02-01 08:56:09.000000000 +0000
@@ -1,38 +1,48 @@
 # udev rule to recognize instruments and make them accessible to user applications.
-# Copy to /etc/udev/rules.d/55-Argyll.rules
 
-# Enable serial port connected instruments connected on first two ports.
-KERNEL=="ttyS[01]", MODE="666"
+# Skip all this to speed things up if it'a not a usb add.
+ACTION!="add", GOTO="argyll_rules_end"
+SUBSYSTEM!="usb", GOTO="argyll_rules_end"
 
-# Enable serial port connected instruments on USB serial converteds connected on first two ports.
-KERNEL=="ttyUSB[01]", MODE="666"
+# Recognize the color measurement devices
 
 # DTP20
-SYSFS{idVendor}=="0765", SYSFS{idProduct}=="d020", MODE="666"
+ATTRS{idVendor}=="0765", ATTRS{idProduct}=="d020", ENV{COLOR_MEASUREMENT_DEVICE}="1"
 
 # DTP92Q (not testedt)
-SYSFS{idVendor}=="0765", SYSFS{idProduct}=="d092", MODE="666"
+ATTRS{idVendor}=="0765", ATTRS{idProduct}=="d092", ENV{COLOR_MEASUREMENT_DEVICE}="1"
 
 # DTP94
-SYSFS{idVendor}=="0765", SYSFS{idProduct}=="d094", MODE="666"
+ATTRS{idVendor}=="0765", ATTRS{idProduct}=="d094", ENV{COLOR_MEASUREMENT_DEVICE}="1"
 
 # MonacoOPTIX (Same as i1 Display 1)
-SYSFS{idVendor}=="0670", SYSFS{idProduct}=="0001", MODE="666"
+ATTRS{idVendor}=="0670", ATTRS{idProduct}=="0001", ENV{COLOR_MEASUREMENT_DEVICE}="1"
 
 # i1Display
-SYSFS{idVendor}=="0971", SYSFS{idProduct}=="2003", MODE="666"
+ATTRS{idVendor}=="0971", ATTRS{idProduct}=="2003", ENV{COLOR_MEASUREMENT_DEVICE}="1"
 
 # i1Monitor
-SYSFS{idVendor}=="0971", SYSFS{idProduct}=="2001", MODE="666"
+ATTRS{idVendor}=="0971", ATTRS{idProduct}=="2001", ENV{COLOR_MEASUREMENT_DEVICE}="1"
 
 # i1Pro
-SYSFS{idVendor}=="0971", SYSFS{idProduct}=="2000", MODE="666"
+ATTRS{idVendor}=="0971", ATTRS{idProduct}=="2000", ENV{COLOR_MEASUREMENT_DEVICE}="1"
+
+# ColorMunki
+ATTRS{idVendor}=="0971", ATTRS{idProduct}=="2007", ENV{COLOR_MEASUREMENT_DEVICE}="1"
 
 # Colorimtre HCFR
-SYSFS{idVendor}=="04db", SYSFS{idProduct}=="005b", MODE="666"
+ATTRS{idVendor}=="04db", ATTRS{idProduct}=="005b", ENV{COLOR_MEASUREMENT_DEVICE}="1"
 
 # Spyder 2
-SYSFS{idVendor}=="085c", SYSFS{idProduct}=="0200", MODE="666"
+ATTRS{idVendor}=="085c", ATTRS{idProduct}=="0200", ENV{COLOR_MEASUREMENT_DEVICE}="1"
+
+# Spyder 3
+ATTRS{idVendor}=="085c", ATTRS{idProduct}=="0300", ENV{COLOR_MEASUREMENT_DEVICE}="1"
 
 # Huey
-SYSFS{idVendor}=="0971", SYSFS{idProduct}=="2005", MODE="666"
+ATTRS{idVendor}=="0971", ATTRS{idProduct}=="2005", ENV{COLOR_MEASUREMENT_DEVICE}="1"
+
+# color calibration device
+ENV{COLOR_MEASUREMENT_DEVICE}=="*?", ENV{ACL_MANAGE}="1", IMPORT{program}="usb-db %p"
+
+LABEL="argyll_rules_end"