[2e704d1b] | 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 |
|
---|
[463b544e] | 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)">
|
---|
[2e704d1b] | 14 | ]>
|
---|
| 15 |
|
---|
[51dfb3e] | 16 | <sect1 id="mutter" xreflabel="Mutter-&mutter-version;">
|
---|
[2e704d1b] | 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 |
|
---|
[83abfed] | 36 | &lfs113_checked;
|
---|
[2e704d1b] | 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>
|
---|
[8b152256] | 65 | <listitem revision='sysv'>
|
---|
[2e704d1b] | 66 | <para>
|
---|
| 67 | Estimated build time: &mutter-time;
|
---|
| 68 | </para>
|
---|
| 69 | </listitem>
|
---|
[8b152256] | 70 | <listitem revision='systemd'>
|
---|
| 71 | <para>
|
---|
| 72 | Estimated build time: &mutter-time-systemd;
|
---|
| 73 | </para>
|
---|
| 74 | </listitem>
|
---|
[2e704d1b] | 75 | </itemizedlist>
|
---|
[e1d37d8] | 76 |
|
---|
[2e704d1b] | 77 | <bridgehead renderas="sect3">Mutter Dependencies</bridgehead>
|
---|
| 78 |
|
---|
| 79 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 80 | <para role="required">
|
---|
[5d1a066] | 81 | <xref linkend="gnome-settings-daemon"/>,
|
---|
[2c80efe] | 82 | <xref linkend="graphene"/>,
|
---|
[88e7954] | 83 | <xref linkend="libxcvt"/>,
|
---|
[e1d37d8] | 84 | <xref linkend="libxkbcommon"/>, and
|
---|
| 85 | <xref linkend="pipewire"/>
|
---|
[2e704d1b] | 86 | </para>
|
---|
| 87 |
|
---|
| 88 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 89 | <para role="recommended">
|
---|
[078db5b6] | 90 | <xref linkend="desktop-file-utils"/>,
|
---|
[d37d7c5] | 91 | <xref linkend="gobject-introspection"/>, and
|
---|
| 92 | <xref linkend="startup-notification"/>
|
---|
[2e704d1b] | 93 | </para>
|
---|
| 94 |
|
---|
| 95 | <bridgehead renderas="sect4">Recommended (Required to
|
---|
| 96 | build the Wayland compositor)</bridgehead>
|
---|
| 97 | <para role="recommended">
|
---|
| 98 | <xref linkend="libinput"/>,
|
---|
[d37d7c5] | 99 | <xref linkend="sysprof"/>,
|
---|
[8558044] | 100 | <xref linkend="wayland"/>,
|
---|
[2e704d1b] | 101 | <xref linkend="wayland-protocols"/>, and
|
---|
[88e7954] | 102 | <xref linkend="xwayland"/>.
|
---|
[2e704d1b] | 103 | </para>
|
---|
| 104 |
|
---|
[2126b9e] | 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 |
|
---|
[88e7954] | 111 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 112 | <para role="optional">
|
---|
[1760143] | 113 | <xref linkend="python-dbusmock"/> (required for tests),
|
---|
[88e7954] | 114 | <xref linkend="xorg-server"/> (for X11 sessions)
|
---|
| 115 | </para>
|
---|
| 116 |
|
---|
[460609c] | 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. -->
|
---|
[0129a2f5] | 123 |
|
---|
[2e704d1b] | 124 | <para condition="html" role="usernotes">User Notes:
|
---|
| 125 | <ulink url="&blfs-wiki;/mutter"/>
|
---|
| 126 | </para>
|
---|
| 127 |
|
---|
| 128 | </sect2>
|
---|
| 129 |
|
---|
| 130 | <sect2 role="installation">
|
---|
| 131 | <title>Installation of Mutter</title>
|
---|
[1a8fb18] | 132 |
|
---|
[2e704d1b] | 133 | <para>
|
---|
| 134 | Install <application>Mutter</application> by running the following
|
---|
| 135 | commands:
|
---|
| 136 | </para>
|
---|
| 137 |
|
---|
[dcea4e3] | 138 | <screen><userinput>mkdir build &&
|
---|
[77fb6ffc] | 139 | cd build &&
|
---|
[dcea4e3] | 140 |
|
---|
[91318eb] | 141 | meson setup --prefix=/usr \
|
---|
[463b544e] | 142 | --buildtype=release \
|
---|
[91318eb] | 143 | -Dtests=false \
|
---|
[d37d7c5] | 144 | -Dprofiler=false \
|
---|
[91318eb] | 145 | .. &&
|
---|
[dcea4e3] | 146 | ninja</userinput></screen>
|
---|
[2e704d1b] | 147 |
|
---|
[477bc4a] | 148 | <!--
|
---|
[2e704d1b] | 149 | <para>
|
---|
[74db4f4] | 150 | To test the results, issue:
|
---|
| 151 | <command>dbus-run-session ninja test</command>. The tests
|
---|
| 152 | require an active X session to run correctly. It is not necessary to
|
---|
| 153 | run a separate D-bus session if not in a GNOME session, but it
|
---|
[1a8fb18] | 154 | provides a clean environment in any case. One test,
|
---|
| 155 | <filename>native-headless</filename>, is known to fail.
|
---|
[2e704d1b] | 156 | </para>
|
---|
[477bc4a] | 157 | -->
|
---|
[ac60f17f] | 158 | <!-- there are no added problems in sysv, AFAICT. Running the tests is
|
---|
| 159 | not easy whatever the init system. But using the instructions below in
|
---|
| 160 | a gnome session on sysv works (no test failure)...
|
---|
[8b152256] | 161 | <para revision='sysv'>
|
---|
[15d6673a] | 162 | This package does not come with a test suite that runs properly in the
|
---|
[8b152256] | 163 | SystemV environment.
|
---|
[477bc4a] | 164 | </para>
|
---|
[ac60f17f] | 165 | -->
|
---|
[afea77c] | 166 |
|
---|
[ac60f17f] | 167 | <para>
|
---|
[460609c] | 168 | The test suite requires an
|
---|
[8b152256] | 169 | external program called <command>xvfb-run</command>. If you wish to run
|
---|
| 170 | the tests, you should download and install it before running
|
---|
| 171 | <command>meson</command>.
|
---|
[1fe05eb] | 172 |
|
---|
[8b152256] | 173 | You can obtain it from <ulink
|
---|
| 174 | url="&sources-anduin-http;/mutter/xvfb-run">xvfb-run</ulink>, and install
|
---|
| 175 | it with executable permissions in <filename
|
---|
| 176 | class="directory">/usr/bin</filename>. <command>xvfb-run</command> needs
|
---|
| 177 | <command>Xvfb</command> at runtime, and <command>Xvfb</command> can be
|
---|
| 178 | installed from either <xref linkend='xorg-server'/> or <xref
|
---|
| 179 | linkend='xwayland'/>.
|
---|
[1fe05eb] | 180 |
|
---|
[3fbdcfc] | 181 | You should also replace <parameter>-Dtests=false</parameter> in the
|
---|
| 182 | <command>meson</command> command, with
|
---|
[460609c] | 183 | <parameter>-Dtests=true -Dclutter_tests=false</parameter>. The test
|
---|
[8b152256] | 184 | suite requires the mutter schema to be installed on the system, so it is
|
---|
[ac60f17f] | 185 | better to run the tests after installing the package.
|
---|
| 186 | </para>
|
---|
[8b152256] | 187 |
|
---|
[afea77c] | 188 | <para>
|
---|
| 189 | You can also test basic functions of <application>Mutter</application>
|
---|
| 190 | following <xref linkend='mutter-starting'/>, after installing it.
|
---|
| 191 | </para>
|
---|
| 192 |
|
---|
[2e704d1b] | 193 | <para>
|
---|
| 194 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 195 | </para>
|
---|
| 196 |
|
---|
[dcea4e3] | 197 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
[2e704d1b] | 198 |
|
---|
[e3c278d] | 199 | <para>
|
---|
| 200 | If you wish to run the tests, remove the reference to
|
---|
| 201 | <application>Zenity</application> which is not a part of BLFS
|
---|
| 202 | from one test:
|
---|
| 203 | </para>
|
---|
| 204 |
|
---|
[460609c] | 205 | <screen role='test'><userinput>sed 's/zenity --[a-z]*/gtk4-demo/' -i ../src/tests/x11-test.sh</userinput></screen>
|
---|
[e3c278d] | 206 |
|
---|
| 207 | <para>
|
---|
| 208 | Now run the test suite:
|
---|
| 209 | </para>
|
---|
| 210 |
|
---|
[1760143] | 211 | <!-- Without "HOME=" one test can fail with certain monitor
|
---|
| 212 | configuration in $HOME/.config/monitors.xml. -->
|
---|
[e3c278d] | 213 | <screen role='test'><userinput>HOME= ninja test</userinput></screen>
|
---|
| 214 |
|
---|
[ac60f17f] | 215 | <para>
|
---|
[e3c278d] | 216 | The tests require an active X or wayland session.
|
---|
[460609c] | 217 | <!-- https://gitlab.gnome.org/GNOME/mutter/-/issues/2848 -->
|
---|
| 218 | The <filename>test_framebuffer_get_bits</filename> test is known to fail.
|
---|
[ac60f17f] | 219 | A lot of tests will fail if the opengl rendering is not done in hardware.
|
---|
[1760143] | 220 | Don't make any mouse or keyboard input while the test suite is
|
---|
| 221 | running or some tests may fail.
|
---|
[34726a0] | 222 | </para>
|
---|
[460609c] | 223 |
|
---|
[2e704d1b] | 224 | </sect2>
|
---|
| 225 |
|
---|
[adf17153] | 226 | <sect2 role="commands">
|
---|
| 227 | <title>Command Explanations</title>
|
---|
| 228 |
|
---|
[69f58f5e] | 229 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 230 | href="../../xincludes/meson-buildtype-release.xml"/>
|
---|
[463b544e] | 231 |
|
---|
[3592a6e] | 232 | <para>
|
---|
| 233 | <parameter>-Dtests=false</parameter>: Prevents building the tests,
|
---|
[185b3090] | 234 | and removes a hard requirement on <command>xvfb-run</command>.
|
---|
[3592a6e] | 235 | </para>
|
---|
| 236 |
|
---|
[1ff2d21] | 237 | <para>
|
---|
[d37d7c5] | 238 | <parameter>-Dprofiler=false</parameter>: Allow building this package
|
---|
| 239 | without <application>Sysprof</application>. Remove this option if
|
---|
| 240 | you've installed <application>Sysprof</application> and want to
|
---|
| 241 | analysis the rendering performance of
|
---|
| 242 | <application>Mutter</application>.
|
---|
[1ff2d21] | 243 | </para>
|
---|
[477bc4a] | 244 |
|
---|
[460609c] | 245 | <para>
|
---|
| 246 | <option>-Dtests=true -Dclutter-tests=false</option>: Building all the
|
---|
| 247 | tests but the tests for the shipped <application>Clutter</application>
|
---|
| 248 | library. The <application>Clutter</application> tests are known to
|
---|
| 249 | fail with <option>--buildtype=release</option>.
|
---|
| 250 | </para>
|
---|
| 251 |
|
---|
[adf17153] | 252 | </sect2>
|
---|
| 253 |
|
---|
[afea77c] | 254 | <sect2 role="starting" id="mutter-starting">
|
---|
| 255 | <title>Starting Mutter</title>
|
---|
| 256 |
|
---|
[460609c] | 257 | <!-- Mutter as a Wayland compositor works with recent mutter releases.
|
---|
[afea77c] | 258 | IIRC mutter can also be used as a X window manager: just replace
|
---|
| 259 | "twm" with "mutter ‐‐x11" in xinitrc. But I've not tested
|
---|
| 260 | such a configuration recently (I don't build Xorg Server or xinit
|
---|
| 261 | these days. -->
|
---|
| 262 |
|
---|
| 263 | <para>
|
---|
| 264 | <application>Mutter</application> is normally used as a component of
|
---|
| 265 | <application>gnome-shell</application>, but it can be used as a
|
---|
| 266 | standalone Wayland compositor too. To run
|
---|
| 267 | <application>Mutter</application> as a Wayland compositor, in a
|
---|
| 268 | virtual console, issue:
|
---|
| 269 | </para>
|
---|
| 270 |
|
---|
| 271 | <screen role='nodump'><userinput>mutter --wayland -- vte-2.91</userinput></screen>
|
---|
| 272 |
|
---|
| 273 | <para>
|
---|
| 274 | Replace <command>vte-2.91</command> with the command line for the
|
---|
| 275 | first application you want in the Wayland session. Note that once this
|
---|
| 276 | application exits, the Wayland session will be terminated.
|
---|
| 277 | </para>
|
---|
| 278 |
|
---|
| 279 | <para>
|
---|
| 280 | <application>Mutter</application> can also function as a nested
|
---|
| 281 | compositor in another Wayland session. In a terminal emulator, issue:
|
---|
| 282 | </para>
|
---|
| 283 |
|
---|
| 284 | <screen role='nodump'><userinput>MUTTER_DEBUG_DUMMY_MODE_SPECS=1920x1080 mutter --wayland --nested -- vte-2.91</userinput></screen>
|
---|
| 285 |
|
---|
| 286 | <para>
|
---|
| 287 | Replace <replaceable>1920x1080</replaceable> with the size you want
|
---|
| 288 | for the nested Wayland session.
|
---|
| 289 | </para>
|
---|
| 290 | </sect2>
|
---|
| 291 |
|
---|
[2e704d1b] | 292 | <sect2 role="content">
|
---|
| 293 | <title>Contents</title>
|
---|
| 294 |
|
---|
| 295 | <segmentedlist>
|
---|
| 296 | <segtitle>Installed Programs</segtitle>
|
---|
| 297 | <segtitle>Installed Libraries</segtitle>
|
---|
| 298 | <segtitle>Installed Directories</segtitle>
|
---|
| 299 |
|
---|
| 300 | <seglistitem>
|
---|
| 301 | <seg>
|
---|
| 302 | mutter
|
---|
| 303 | </seg>
|
---|
| 304 | <seg>
|
---|
[460609c] | 305 | libmutter-12.so and libmutter-test-12.so (optional)
|
---|
[2e704d1b] | 306 | </seg>
|
---|
| 307 | <seg>
|
---|
[463b544e] | 308 | /usr/{lib,include,libexec/installed-tests,share/{,installed-tests}}/mutter-12
|
---|
[2e704d1b] | 309 | </seg>
|
---|
| 310 | </seglistitem>
|
---|
| 311 | </segmentedlist>
|
---|
| 312 |
|
---|
| 313 | <variablelist>
|
---|
| 314 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 315 | <?dbfo list-presentation="list"?>
|
---|
| 316 | <?dbhtml list-presentation="table"?>
|
---|
| 317 |
|
---|
| 318 | <varlistentry id="mutter-prog">
|
---|
| 319 | <term><command>mutter</command></term>
|
---|
| 320 | <listitem>
|
---|
| 321 | <para>
|
---|
| 322 | is a <application>Clutter</application> based compositing
|
---|
[4c24eb0a] | 323 | <application>GTK+</application> Window Manager
|
---|
[2e704d1b] | 324 | </para>
|
---|
| 325 | <indexterm zone="mutter mutter-prog">
|
---|
| 326 | <primary sortas="b-mutter">mutter</primary>
|
---|
| 327 | </indexterm>
|
---|
| 328 | </listitem>
|
---|
| 329 | </varlistentry>
|
---|
| 330 |
|
---|
| 331 | <varlistentry id="libmutter">
|
---|
[463b544e] | 332 | <term><filename class="libraryfile">libmutter-12.so</filename></term>
|
---|
[2e704d1b] | 333 | <listitem>
|
---|
| 334 | <para>
|
---|
[4c24eb0a] | 335 | contains the <application>Mutter</application> API functions
|
---|
[2e704d1b] | 336 | </para>
|
---|
| 337 | <indexterm zone="mutter libmutter">
|
---|
[463b544e] | 338 | <primary sortas="c-libmutter">libmutter-12.so</primary>
|
---|
[2e704d1b] | 339 | </indexterm>
|
---|
| 340 | </listitem>
|
---|
| 341 | </varlistentry>
|
---|
| 342 |
|
---|
[460609c] | 343 | <varlistentry id="libmutter-test">
|
---|
| 344 | <term><filename class="libraryfile">libmutter-test-12.so</filename></term>
|
---|
| 345 | <listitem>
|
---|
| 346 | <para>
|
---|
| 347 | contains the <application>Mutter</application> test suite API
|
---|
| 348 | functions; this library is only installed if the test suite of
|
---|
| 349 | this package is enabled and it is needed by
|
---|
| 350 | <application>gnome-shell</application> test suite
|
---|
| 351 | </para>
|
---|
| 352 | <indexterm zone="mutter libmutter-test">
|
---|
| 353 | <primary sortas="c-libmutter-test">libmutter-test-12.so</primary>
|
---|
| 354 | </indexterm>
|
---|
| 355 | </listitem>
|
---|
| 356 | </varlistentry>
|
---|
| 357 |
|
---|
[2e704d1b] | 358 | </variablelist>
|
---|
| 359 |
|
---|
| 360 | </sect2>
|
---|
| 361 |
|
---|
| 362 | </sect1>
|
---|