source: gnome/platform/mutter.xml@ e917814

12.0 12.1 gimp3 ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/for-12.3 xry111/llvm18 xry111/spidermonkey128
Last change on this file since e917814 was 14891a90, checked in by Xi Ruoyao <xry111@…>, 14 months ago

treewide: More "User Notes" clean up

Remove links to pages w/o real contents.

  • Property mode set to 100644
File size: 12.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY mutter-download-http "&gnome-download-http;/mutter/&gnome-44;/mutter-&mutter-version;.tar.xz">
8 <!ENTITY mutter-download-ftp "&gnome-download-ftp;/mutter/&gnome-44;/mutter-&mutter-version;.tar.xz">
9 <!ENTITY mutter-md5sum "3bb532d0c15fe21bb7ea7ba7203ddd8e">
10 <!ENTITY mutter-size "150 MB">
11 <!ENTITY mutter-buildsize "75 MB (without tests)">
12 <!ENTITY mutter-time "0.5 SBU (Using parallelism=4)">
13 <!ENTITY mutter-time-systemd "0.5 SBU (Using parallelism=4, add 1.0 SBU for tests)">
14]>
15
16<sect1 id="mutter" xreflabel="Mutter-&mutter-version;">
17 <?dbhtml filename="mutter.html"?>
18
19
20 <title>Mutter-&mutter-version;</title>
21
22 <indexterm zone="mutter">
23 <primary sortas="a-Mutter">Mutter</primary>
24 </indexterm>
25
26 <sect2 role="package">
27 <title>Introduction to Mutter</title>
28
29 <para>
30 <application>Mutter</application> is the window manager for
31 <application>GNOME</application>. It is not invoked directly,
32 but from <application>GNOME Session</application> (on a
33 machine with a hardware accelerated video driver).
34 </para>
35
36 &lfs113_checked;
37
38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
41 <para>
42 Download (HTTP): <ulink url="&mutter-download-http;"/>
43 </para>
44 </listitem>
45 <listitem>
46 <para>
47 Download (FTP): <ulink url="&mutter-download-ftp;"/>
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Download MD5 sum: &mutter-md5sum;
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Download size: &mutter-size;
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Estimated disk space required: &mutter-buildsize;
63 </para>
64 </listitem>
65 <listitem revision='sysv'>
66 <para>
67 Estimated build time: &mutter-time;
68 </para>
69 </listitem>
70 <listitem revision='systemd'>
71 <para>
72 Estimated build time: &mutter-time-systemd;
73 </para>
74 </listitem>
75 </itemizedlist>
76
77 <bridgehead renderas="sect3">Mutter Dependencies</bridgehead>
78
79 <bridgehead renderas="sect4">Required</bridgehead>
80 <para role="required">
81 <xref linkend="gnome-settings-daemon"/>,
82 <xref linkend="graphene"/>,
83 <xref linkend="libxcvt"/>,
84 <xref linkend="libxkbcommon"/>, and
85 <xref linkend="pipewire"/>
86 </para>
87
88 <bridgehead renderas="sect4">Recommended</bridgehead>
89 <para role="recommended">
90 <xref linkend="desktop-file-utils"/>,
91 <xref linkend="gobject-introspection"/>, and
92 <xref linkend="startup-notification"/>
93 </para>
94
95 <bridgehead renderas="sect4">Recommended (Required to
96 build the Wayland compositor)</bridgehead>
97 <para role="recommended">
98 <xref linkend="libinput"/>,
99 <xref linkend="sysprof"/>,
100 <xref linkend="wayland"/>,
101 <xref linkend="wayland-protocols"/>, and
102 <xref linkend="xwayland"/>.
103 </para>
104
105 <bridgehead renderas="sect4"
106 revision="sysv">Recommended (Runtime)</bridgehead>
107 <para role="recommended" revision="sysv">
108 <xref linkend="blocaled" role="runtime"/>
109 </para>
110
111 <bridgehead renderas="sect4">Optional</bridgehead>
112 <para role="optional">
113 <xref linkend="python-dbusmock"/> (required for tests),
114 <xref linkend="xorg-server"/> (for X11 sessions)
115 </para>
116
117 <!-- NOTE: Mutter compiles shipped Cogl and Clutter for it's own
118 internal use. This is because the upstream has decided that Cogl and
119 Clutter should be only used by Mutter in the future, so the development
120 of Cogl and Clutter is now performed in the Mutter repository. The
121 "standalone" Cogl and Clutter are considered obsolete now and we should
122 try to archive them. -->
123
124 </sect2>
125
126 <sect2 role="installation">
127 <title>Installation of Mutter</title>
128
129 <para>
130 Install <application>Mutter</application> by running the following
131 commands:
132 </para>
133
134<screen><userinput>mkdir build &amp;&amp;
135cd build &amp;&amp;
136
137meson setup --prefix=/usr \
138 --buildtype=release \
139 -Dtests=false \
140 -Dprofiler=false \
141 .. &amp;&amp;
142ninja</userinput></screen>
143
144<!--
145 <para>
146 To test the results, issue:
147 <command>dbus-run-session ninja test</command>. The tests
148 require an active X session to run correctly. It is not necessary to
149 run a separate D-bus session if not in a GNOME session, but it
150 provides a clean environment in any case. One test,
151 <filename>native-headless</filename>, is known to fail.
152 </para>
153 -->
154 <!-- there are no added problems in sysv, AFAICT. Running the tests is
155 not easy whatever the init system. But using the instructions below in
156 a gnome session on sysv works (no test failure)...
157 <para revision='sysv'>
158 This package does not come with a test suite that runs properly in the
159 SystemV environment.
160 </para>
161 -->
162
163 <para>
164 The test suite requires an
165 external program called <command>xvfb-run</command>. If you wish to run
166 the tests, you should download and install it before running
167 <command>meson</command>.
168
169 You can obtain it from <ulink
170 url="&sources-anduin-http;/mutter/xvfb-run">xvfb-run</ulink>, and install
171 it with executable permissions in <filename
172 class="directory">/usr/bin</filename>. <command>xvfb-run</command> needs
173 <command>Xvfb</command> at runtime, and <command>Xvfb</command> can be
174 installed from either <xref linkend='xorg-server'/> or <xref
175 linkend='xwayland'/>.
176
177 You should also replace <parameter>-Dtests=false</parameter> in the
178 <command>meson</command> command, with
179 <parameter>-Dtests=true -Dclutter_tests=false</parameter>. The test
180 suite requires the mutter schema to be installed on the system, so it is
181 better to run the tests after installing the package.
182 </para>
183
184 <para>
185 You can also test basic functions of <application>Mutter</application>
186 following <xref linkend='mutter-starting'/>, after installing it.
187 </para>
188
189 <para>
190 Now, as the <systemitem class="username">root</systemitem> user:
191 </para>
192
193<screen role="root"><userinput>ninja install</userinput></screen>
194
195 <para>
196 If you wish to run the tests, remove the reference to
197 <application>Zenity</application> which is not a part of BLFS
198 from one test:
199 </para>
200
201<screen role='test'><userinput>sed 's/zenity --[a-z]*/gtk4-demo/' -i ../src/tests/x11-test.sh</userinput></screen>
202
203 <para>
204 Now run the test suite:
205 </para>
206
207 <!-- Without "HOME=" one test can fail with certain monitor
208 configuration in $HOME/.config/monitors.xml. -->
209<screen role='test'><userinput>HOME= ninja test</userinput></screen>
210
211 <para>
212 The tests require an active X or wayland session.
213 <!-- https://gitlab.gnome.org/GNOME/mutter/-/issues/2848 -->
214 The <filename>test_framebuffer_get_bits</filename> test is known to fail.
215 A lot of tests will fail if the opengl rendering is not done in hardware.
216 Don't make any mouse or keyboard input while the test suite is
217 running or some tests may fail.
218 </para>
219
220 </sect2>
221
222 <sect2 role="commands">
223 <title>Command Explanations</title>
224
225 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
226 href="../../xincludes/meson-buildtype-release.xml"/>
227
228 <para>
229 <parameter>-Dtests=false</parameter>: Prevents building the tests,
230 and removes a hard requirement on <command>xvfb-run</command>.
231 </para>
232
233 <para>
234 <parameter>-Dprofiler=false</parameter>: Allow building this package
235 without <application>Sysprof</application>. Remove this option if
236 you've installed <application>Sysprof</application> and want to
237 analysis the rendering performance of
238 <application>Mutter</application>.
239 </para>
240
241 <para>
242 <option>-Dtests=true -Dclutter-tests=false</option>: Building all the
243 tests but the tests for the shipped <application>Clutter</application>
244 library. The <application>Clutter</application> tests are known to
245 fail with <option>--buildtype=release</option>.
246 </para>
247
248 </sect2>
249
250 <sect2 role="starting" id="mutter-starting">
251 <title>Starting Mutter</title>
252
253 <!-- Mutter as a Wayland compositor works with recent mutter releases.
254 IIRC mutter can also be used as a X window manager: just replace
255 "twm" with "mutter &dash;&dash;x11" in xinitrc. But I've not tested
256 such a configuration recently (I don't build Xorg Server or xinit
257 these days. -->
258
259 <para>
260 <application>Mutter</application> is normally used as a component of
261 <application>gnome-shell</application>, but it can be used as a
262 standalone Wayland compositor too. To run
263 <application>Mutter</application> as a Wayland compositor, in a
264 virtual console, issue:
265 </para>
266
267 <screen role='nodump'><userinput>mutter --wayland -- vte-2.91</userinput></screen>
268
269 <para>
270 Replace <command>vte-2.91</command> with the command line for the
271 first application you want in the Wayland session. Note that once this
272 application exits, the Wayland session will be terminated.
273 </para>
274
275 <para>
276 <application>Mutter</application> can also function as a nested
277 compositor in another Wayland session. In a terminal emulator, issue:
278 </para>
279
280 <screen role='nodump'><userinput>MUTTER_DEBUG_DUMMY_MODE_SPECS=1920x1080 mutter --wayland --nested -- vte-2.91</userinput></screen>
281
282 <para>
283 Replace <replaceable>1920x1080</replaceable> with the size you want
284 for the nested Wayland session.
285 </para>
286 </sect2>
287
288 <sect2 role="content">
289 <title>Contents</title>
290
291 <segmentedlist>
292 <segtitle>Installed Programs</segtitle>
293 <segtitle>Installed Libraries</segtitle>
294 <segtitle>Installed Directories</segtitle>
295
296 <seglistitem>
297 <seg>
298 mutter
299 </seg>
300 <seg>
301 libmutter-12.so and libmutter-test-12.so (optional)
302 </seg>
303 <seg>
304 /usr/{lib,include,libexec/installed-tests,share/{,installed-tests}}/mutter-12
305 </seg>
306 </seglistitem>
307 </segmentedlist>
308
309 <variablelist>
310 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
311 <?dbfo list-presentation="list"?>
312 <?dbhtml list-presentation="table"?>
313
314 <varlistentry id="mutter-prog">
315 <term><command>mutter</command></term>
316 <listitem>
317 <para>
318 is a <application>Clutter</application> based compositing
319 <application>GTK+</application> Window Manager
320 </para>
321 <indexterm zone="mutter mutter-prog">
322 <primary sortas="b-mutter">mutter</primary>
323 </indexterm>
324 </listitem>
325 </varlistentry>
326
327 <varlistentry id="libmutter">
328 <term><filename class="libraryfile">libmutter-12.so</filename></term>
329 <listitem>
330 <para>
331 contains the <application>Mutter</application> API functions
332 </para>
333 <indexterm zone="mutter libmutter">
334 <primary sortas="c-libmutter">libmutter-12.so</primary>
335 </indexterm>
336 </listitem>
337 </varlistentry>
338
339 <varlistentry id="libmutter-test">
340 <term><filename class="libraryfile">libmutter-test-12.so</filename></term>
341 <listitem>
342 <para>
343 contains the <application>Mutter</application> test suite API
344 functions; this library is only installed if the test suite of
345 this package is enabled and it is needed by
346 <application>gnome-shell</application> test suite
347 </para>
348 <indexterm zone="mutter libmutter-test">
349 <primary sortas="c-libmutter-test">libmutter-test-12.so</primary>
350 </indexterm>
351 </listitem>
352 </varlistentry>
353
354 </variablelist>
355
356 </sect2>
357
358</sect1>
Note: See TracBrowser for help on using the repository browser.