Debian Codegraph @

doc/ucmm.html

raw symbols SCIP
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <title>ucmm conventions and format.</title>
5 <meta http-equiv="content-type"
6 content="text/html; charset=ISO-8859-1">
7 <meta name="author" content="Graeme Gill">
8 </head>
9 <body>
10 <h2>ucmm organization and conventions.<br>
11 </h2>
12 ucmm (Unix micro Color Management Module) is a color management module
13 designed just to handle the necessary configuration needed to track the
14 installation and association of ICC profiles with Unix/Linux X11
15 displays. It could be expanded at some point to also hold the
16 associations for other devices such as scanner and printers.<br>
17 <br>
18 It consists primarily of a small configuration database that associates
19 a display monitor (identified by its EDID or the X11 display name if an
20 EDID is not known) with an ICC Display profile.<br>
21 <br>
22 There are two configuration contexts, <span style="font-weight: bold;">local
23 system</span> and <span style="font-weight: bold;">per user</span>,
24 the latter taking
25 precedence when both are present.<br>
26 <br>
27 ucmm follows the <a
28 href="http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html">XDG
29 Base Directory specifications</a> for the location of the configuration
30 file and display profiles.<br>
31 <br>
32 For the <span style="font-weight: bold;">local system</span> context,
33 the ucmm configuration file is located at:<br>
34 <br>
35 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $XDG_CONFIG_DIRS/color.jcnf<br>
36 or&nbsp;&nbsp; /etc/xdg/color.jcnf<br>
37 <br>
38 and display profiles are stored in<br>
39 <br>
40 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $XDG_DATA_DIRS/color/icc/devices/display/<br>
41 or&nbsp;&nbsp; /usr/local/share/color/icc/devices/display/<br>
42 <br>
43 For <span style="font-weight: bold;">per user</span> contents, the
44 ucmm configuration file is located at:<br>
45 <br>
46 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $XDG_CONFIG_HOME/color.jcnf<br>
47 or&nbsp;&nbsp; $HOME/.config/color.jcnf<br>
48 <br>
49 and display profiles are stored in<br>
50 <br>
51 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $XDG_DATA_HOME/color/icc/devices/display/<br>
52 or&nbsp;&nbsp; $HOME/.local/share/color/icc/devices/display/<br>
53 <br>
54 The configuration format of the <span style="font-weight: bold;">color.jcnf</span>
55 files uses the <a href="http://www.json.org/">JSON JavaScript Object
56 Notation</a>,
57 a lightweight data-interchange format.<br>
58 <br>
59 A hierarchy of members is used to represent a hierarchical key/value
60 pair format.<br>
61 <br>
62 The monitor to ICC profile association is organized as independent
63 records, having the form:<br>
64 <br>
65 &nbsp; <span style="font-weight: bold;">key</span>&nbsp;&nbsp;
66 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
67 <span style="font-weight: bold;">value</span><br>
68 <br>
69 &nbsp; devices/display/<span style="font-weight: bold;">N</span>/EDID&nbsp;&nbsp;
70 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
71 &nbsp;&nbsp;&nbsp;&nbsp; Monitor EDID&nbsp; in upper case Hexadecimal <br>
72 &nbsp; devices/display/<span style="font-weight: bold;">N</span>/ICC_PROFILE&nbsp;&nbsp;
73 &nbsp;&nbsp; Full path to the associated ICC profile<br>
74 <br>
75 or<br>
76 <br>
77 &nbsp; devices/display/<span style="font-weight: bold;">N</span>/NAME
78 &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
79 &nbsp;&nbsp;&nbsp; X11 display name <br>
80 &nbsp; devices/display/<span style="font-weight: bold;">N</span>/ICC_PROFILE&nbsp;&nbsp;
81 &nbsp;&nbsp; Full path to the associated ICC profile<br>
82 <br>
83 where <span style="font-weight: bold;">N</span> is a number starting
84 from 1, that distinguishes each record, but otherwise has no special
85 meaning.<br>
86 <br>
87 The first form is the preferred form, since it associates the profile
88 with the actual display, and therefore it is possible to have the
89 profile track the display, no matter which X11 screen it is plugged
90 into. The second form is a fallback, for situations in which a monitor
91 does not have an EDID, or where the X11 server is configured in a way
92 that does not permit access to the EDID (i.e.., on a second screen when
93 Xinerama is running).<br>
94 <br>
95 The following is an example of a per user color.jcnf:<br>
96 <br>
97 {<br>
98 &nbsp; "devices": {<br>
99 &nbsp;&nbsp;&nbsp; "display": {<br>
100 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "1": {<br>
101 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "EDID":
102 "0x00FFFFFFFFFFFF0034A1731751720000150901010C1F17CDE8A11E9E554A982712474FA4CE0045598180315961590101010101010101000000FE004D6F6E69746F720A2020202020000000FE004D6F6E69746F720A2020202020000000FE004D6F6E69746F720A2020202020000000FE004D6F6E69746F720A2020202020003D",<br>
103 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "ICC_PROFILE":
104 "/home/graeme/.local/share/color/devices/display/mon1.icc"<br>
105 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; },<br>
106 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "2": {<br>
107 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "NAME": ":0.1",<br>
108 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "ICC_PROFILE":
109 "/home/graeme/.local/share/color/devices/display/mon2.icc"<br>
110 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
111 &nbsp;&nbsp;&nbsp; }<br>
112 &nbsp; }<br>
113 }<br>
114 <br>
115 <h3>Implementation</h3>
116 The configuration file format is in the <span
117 style="font-weight: bold;"></span>Argyll
118 source in the jcnf sub directories, and the ucmm functionality in the
119 ucmm sub directories, and is made available under an MIT like free use
120 license.
121 </body>
122 </html>