| 1 |
# Version=3.1.0 |
| 2 |
# udev rule to recognize instruments and make them accessible to user applications. |
| 3 |
# Copy this to /etc/udev/rules.d/55-Argyll.rules |
| 4 |
# or /usr/lib/udev/rules.d/55-Argyll.rules |
| 5 |
# and remove /usr/lib/udev/rules.d/69-cd-sensors.rules |
| 6 |
# as appropriate for your system |
| 7 |
# NOTE that hex values must be lower case! |
| 8 |
|
| 9 |
#-------------------------------------------------------------------------- |
| 10 |
# Copyright 2000 - 2023 Graeme W. Gill. |
| 11 |
# |
| 12 |
# Permission is hereby granted, free of charge, to any person obtaining a copy |
| 13 |
# of this file, to deal in this file without restriction, including without |
| 14 |
# limitation the rights to use, copy, modify, merge, publish, distribute, |
| 15 |
# sublicense, and/or sell copies of this file, and to permit persons to whom |
| 16 |
# this file is furnished to do so, subject to the following conditions: |
| 17 |
# |
| 18 |
# The above copyright notice and this permission notice shall be included in |
| 19 |
# all copies or substantial portions of this file. |
| 20 |
# |
| 21 |
# THIS FILE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 22 |
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 23 |
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 24 |
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 25 |
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 26 |
# OUT OF OR IN CONNECTION WITH THIS FILE OR THE USE OR OTHER DEALINGS IN |
| 27 |
# THIS FILE. |
| 28 |
#-------------------------------------------------------------------------- |
| 29 |
|
| 30 |
# Skip all this to speed things up if it'a not a usb add. |
| 31 |
ACTION!="add", GOTO="argyll_rules_end" |
| 32 |
SUBSYSTEM!="usb", GOTO="argyll_rules_end" |
| 33 |
|
| 34 |
# Recognize the color measurement devices |
| 35 |
# COLORD_SENSOR_KIND, COLORD_SENSOR_CAPS, COLORD_SENSOR_EMBEDDED, COLORD_IGNORE |
| 36 |
# are for the benefit of Gnome Color Manager - ArgyllCMS doesn't use them. |
| 37 |
|
| 38 |
# Colorimtre HCFR |
| 39 |
ATTRS{idVendor}=="04db", ATTRS{idProduct}=="005b", ENV{COLORD_SENSOR_KIND}="colorimtre-hcfr", ENV{COLORD_SENSOR_CAPS}="projector" |
| 40 |
|
| 41 |
|
| 42 |
# MonacoOPTIX (Same as i1 Display 1) |
| 43 |
ATTRS{idVendor}=="0670", ATTRS{idProduct}=="0001", ENV{COLORD_SENSOR_KIND}="i1-display1", ENV{COLORD_SENSOR_CAPS}="lcd crt" |
| 44 |
|
| 45 |
|
| 46 |
# HueyL (not tested) |
| 47 |
ATTRS{idVendor}=="0765", ATTRS{idProduct}=="5001", ENV{COLORD_SENSOR_KIND}="huey", ENV{COLORD_SENSOR_CAPS}="lcd crt" ENV{COLORD_SENSOR_EMBEDDED}="1" |
| 48 |
|
| 49 |
# HueyL (not tested) |
| 50 |
ATTRS{idVendor}=="0765", ATTRS{idProduct}=="5010", ENV{COLORD_SENSOR_KIND}="huey", ENV{COLORD_SENSOR_CAPS}="lcd crt" ENV{COLORD_SENSOR_EMBEDDED}="1" |
| 51 |
|
| 52 |
# i1Display 3 |
| 53 |
ATTRS{idVendor}=="0765", ATTRS{idProduct}=="5020", ENV{COLORD_SENSOR_KIND}="i1-display3", ENV{COLORD_SENSOR_CAPS}="lcd crt projector ambient" |
| 54 |
|
| 55 |
# ColorMunki Smile |
| 56 |
ATTRS{idVendor}=="0765", ATTRS{idProduct}=="6003", ENV{COLORD_SENSOR_KIND}="color-munki-smile", ENV{COLORD_SENSOR_CAPS}="lcd-ccfl lcd-white-led" |
| 57 |
|
| 58 |
# ColorMunki i1 Studio |
| 59 |
ATTRS{idVendor}=="0765", ATTRS{idProduct}=="6008", ENV{COLORD_SENSOR_KIND}="color-munki-photo" ENV{COLORD_SENSOR_CAPS}="lcd crt projector printer spot ambient" |
| 60 |
|
| 61 |
# i1Pro3 |
| 62 |
ATTRS{idVendor}=="0765", ATTRS{idProduct}=="6009", ENV{COLORD_SENSOR_KIND}="i1-pro" ENV{COLORD_SENSOR_CAPS}="lcd crt projector printer" |
| 63 |
|
| 64 |
# i1Display 3L |
| 65 |
ATTRS{idVendor}=="0765", ATTRS{idProduct}=="600a", ENV{COLORD_SENSOR_KIND}="d123", ENV{COLORD_SENSOR_CAPS}="lcd crt projector" |
| 66 |
|
| 67 |
# DTP20 |
| 68 |
ATTRS{idVendor}=="0765", ATTRS{idProduct}=="d020", ENV{COLORD_SENSOR_KIND}="dtp20" ENV{COLORD_SENSOR_CAPS}="printer spot" |
| 69 |
|
| 70 |
# DTP92Q (not tested) |
| 71 |
ATTRS{idVendor}=="0765", ATTRS{idProduct}=="d092", ENV{COLORD_SENSOR_KIND}="dtp92" ENV{COLORD_SENSOR_CAPS}="crt" |
| 72 |
|
| 73 |
# DTP94 |
| 74 |
ATTRS{idVendor}=="0765", ATTRS{idProduct}=="d094", ENV{COLORD_SENSOR_KIND}="dtp94" ENV{COLORD_SENSOR_CAPS}="lcd crt" |
| 75 |
|
| 76 |
|
| 77 |
# i1Pro |
| 78 |
ATTRS{idVendor}=="0971", ATTRS{idProduct}=="2000", ENV{COLORD_SENSOR_KIND}="i1-pro" ENV{COLORD_SENSOR_CAPS}="lcd crt projector printer ambient" |
| 79 |
|
| 80 |
# i1Monitor |
| 81 |
ATTRS{idVendor}=="0971", ATTRS{idProduct}=="2001", ENV{COLORD_SENSOR_KIND}="i1-pro" ENV{COLORD_SENSOR_CAPS}="lcd crt" |
| 82 |
|
| 83 |
# i1Display |
| 84 |
ATTRS{idVendor}=="0971", ATTRS{idProduct}=="2003", ENV{COLORD_SENSOR_KIND}="i1-display1" ENV{COLORD_SENSOR_CAPS}="lcd crt" |
| 85 |
|
| 86 |
# i1 io table (not tested) |
| 87 |
ATTRS{idVendor}=="0971", ATTRS{idProduct}=="2004", ENV{COLORD_SENSOR_KIND}="i1-pro" ENV{COLORD_SENSOR_CAPS}="printer" |
| 88 |
|
| 89 |
# Huey |
| 90 |
ATTRS{idVendor}=="0971", ATTRS{idProduct}=="2005", ENV{COLORD_SENSOR_KIND}="huey" ENV{COLORD_SENSOR_CAPS}="lcd crt ambient" |
| 91 |
|
| 92 |
# i1 iSis (not tested) |
| 93 |
ATTRS{idVendor}=="0971", ATTRS{idProduct}=="2006", ENV{COLORD_SENSOR_KIND}="iSis" ENV{COLORD_SENSOR_CAPS}="printer" |
| 94 |
|
| 95 |
# ColorMunki |
| 96 |
ATTRS{idVendor}=="0971", ATTRS{idProduct}=="2007", ENV{COLORD_SENSOR_KIND}="color-munki-photo" ENV{COLORD_SENSOR_CAPS}="lcd crt projector printer spot ambient" |
| 97 |
|
| 98 |
|
| 99 |
# Spyder 1 |
| 100 |
ATTRS{idVendor}=="085c", ATTRS{idProduct}=="0100", ENV{COLORD_SENSOR_KIND}="spyder1" ENV{COLORD_SENSOR_CAPS}="lcd crt" |
| 101 |
|
| 102 |
# Spyder 2 |
| 103 |
ATTRS{idVendor}=="085c", ATTRS{idProduct}=="0200", ENV{COLORD_SENSOR_KIND}="spyder2" ENV{COLORD_SENSOR_CAPS}="lcd crt" |
| 104 |
|
| 105 |
# Spyder 3 |
| 106 |
ATTRS{idVendor}=="085c", ATTRS{idProduct}=="0300", ENV{COLORD_SENSOR_KIND}="spyder3" ENV{COLORD_SENSOR_CAPS}="lcd crt ambient" |
| 107 |
|
| 108 |
# Spyder 4 |
| 109 |
ATTRS{idVendor}=="085c", ATTRS{idProduct}=="0400", ENV{COLORD_SENSOR_KIND}="spyder4" ENV{COLORD_SENSOR_CAPS}="lcd crt ambient" |
| 110 |
|
| 111 |
# Spyder 5 |
| 112 |
ATTRS{idVendor}=="085c", ATTRS{idProduct}=="0500", ENV{COLORD_SENSOR_KIND}="spyder5" ENV{COLORD_SENSOR_CAPS}="lcd crt ambient" |
| 113 |
|
| 114 |
# Spyder X |
| 115 |
ATTRS{idVendor}=="085c", ATTRS{idProduct}=="0a00", ENV{COLORD_SENSOR_KIND}="spyderX" ENV{COLORD_SENSOR_CAPS}="lcd crt ambient" |
| 116 |
|
| 117 |
# Spyder X2 |
| 118 |
ATTRS{idVendor}=="085c", ATTRS{idProduct}=="0a0a", ENV{COLORD_SENSOR_KIND}="spyderX2" ENV{COLORD_SENSOR_CAPS}="lcd crt ambient" |
| 119 |
|
| 120 |
# Spyder 2024 |
| 121 |
ATTRS{idVendor}=="085c", ATTRS{idProduct}=="0a0b", ENV{COLORD_SENSOR_KIND}="spyder2024" ENV{COLORD_SENSOR_CAPS}="lcd crt ambient" |
| 122 |
|
| 123 |
# JETI & KLEIN serial port (not used) |
| 124 |
#KERNEL=="ttyUSB[0-9]*", TAG+="udev-acl", TAG+="uaccess" |
| 125 |
|
| 126 |
# ArgyllCMS USB serial chip driver for JETI & KLEIN (not used) |
| 127 |
#ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ENV{COLORD_SENSOR_KIND}="FT232R" |
| 128 |
#ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6015", ENV{COLORD_SENSOR_KIND}="FT231XS" |
| 129 |
|
| 130 |
|
| 131 |
# ColorHug, old and new USB ID's, ColorHug 2 |
| 132 |
ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="f8da", ENV{COLORD_SENSOR_KIND}="colorhug" ENV{COLORD_SENSOR_CAPS}="lcd" ENV{COLORD_IGNORE}="1" |
| 133 |
|
| 134 |
ATTRS{idVendor}=="273f", ATTRS{idProduct}=="1001", ENV{COLORD_SENSOR_KIND}="colorhug" ENV{COLORD_SENSOR_CAPS}="lcd" |
| 135 |
|
| 136 |
ATTRS{idVendor}=="273f", ATTRS{idProduct}=="1004", ENV{COLORD_SENSOR_KIND}="colorhug" ENV{COLORD_SENSOR_CAPS}="lcd" |
| 137 |
|
| 138 |
# ColorHug Spectro |
| 139 |
ATTRS{idVendor}=="273f", ATTRS{idProduct}=="1002", ENV{COLORD_SENSOR_KIND}="colorhug-spectro", ENV{COLORD_SENSOR_CAPS}="lcd" |
| 140 |
|
| 141 |
# Image Engineering EX1 |
| 142 |
ATTRS{idVendor}=="2457", ATTRS{idProduct}=="4000", ENV{COLORD_SENSOR_KIND}="ex1", ENV{COLORD_SENSOR_CAPS}="lcd crt ambient" |
| 143 |
|
| 144 |
######################################################### |
| 145 |
|
| 146 |
# Is a color calibration device. 70-uaccess.rules may use this to set TAG+="uaccess", |
| 147 |
# but there is no way to know if this is the case from here. |
| 148 |
# May also be used by other rules to avoid claiming this device. |
| 149 |
ENV{COLORD_SENSOR_KIND}=="*?", ENV{COLOR_MEASUREMENT_DEVICE}="1" |
| 150 |
|
| 151 |
# Set ID_VENDOR and ID_MODEL acording to VID and PID |
| 152 |
# usb_id and/or usb-db might be needed on older systems |
| 153 |
#ENV{COLORD_SENSOR_KIND}=="*?", ENV{ID_MODEL}=="", IMPORT{program}="usb_id --export %p" |
| 154 |
#ENV{COLORD_SENSOR_KIND}=="*?", TEST=="/lib/udev/usb-db", ENV{ID_MODEL_FROM_DATABASE}=="", IMPORT{program}="usb-db %p" |
| 155 |
ENV{COLORD_SENSOR_KIND}=="*?", ENV{ID_MODEL}=="", IMPORT{builtin}="usb_id" |
| 156 |
ENV{COLORD_SENSOR_KIND}=="*?", ENV{ID_MODEL_FROM_DATABASE}=="", IMPORT{builtin}="hwdb --subsystem=usb" |
| 157 |
|
| 158 |
# Let ConsoleKit udev-acl manage these devices, if it's available. |
| 159 |
# (Except that this stuffs up on Slackware 14.1 because |
| 160 |
# ConsoleKit/database is present even when ACL is not enabled). |
| 161 |
# Some recent systems no longer use ConsoleKit or ACL_MANAGE - acl is done by systemd ? |
| 162 |
# TEST=="/var/run/ConsoleKit/database", ENV{COLOR_MEASUREMENT_DEVICE}=="*?", ENV{ACL_MANAGE}="1" |
| 163 |
ENV{COLOR_MEASUREMENT_DEVICE}=="*?", ENV{ACL_MANAGE}="1" |
| 164 |
|
| 165 |
# In any case, make color instruments accessible to members of the colord group, |
| 166 |
# which the user may have to add to the system and add themselves to if ACL isn't present. |
| 167 |
ENV{COLOR_MEASUREMENT_DEVICE}=="*?", MODE="660", GROUP="colord" |
| 168 |
|
| 169 |
LABEL="argyll_rules_end" |