2023-09-28 01:59:50 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2023-10-17 22:30:59 +08:00
|
|
|
<!ENTITY wireplumber-download-http "https://gitlab.freedesktop.org/pipewire/wireplumber/-/archive/&wireplumber-version;/wireplumber-&wireplumber-version;.tar.bz2">
|
2023-09-28 01:59:50 +08:00
|
|
|
<!ENTITY wireplumber-download-ftp " ">
|
2023-12-06 09:45:51 +08:00
|
|
|
<!ENTITY wireplumber-md5sum "1e90be7d302077e3b7e347c9cd889ff0">
|
2023-11-25 04:58:35 +08:00
|
|
|
<!ENTITY wireplumber-size "324 KB">
|
2023-12-06 09:45:51 +08:00
|
|
|
<!ENTITY wireplumber-buildsize "16 MB (add 22 MB for tests)">
|
2023-12-06 10:06:54 +08:00
|
|
|
<!ENTITY wireplumber-time "0.1 SBU (using parallelism=4, with tests)">
|
2023-09-28 01:59:50 +08:00
|
|
|
]>
|
|
|
|
|
|
|
|
<sect1 id="wireplumber" xreflabel="Wireplumber-&wireplumber-version;">
|
|
|
|
<?dbhtml filename="wireplumber.html"?>
|
|
|
|
|
|
|
|
<title>Wireplumber-&wireplumber-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="wireplumber">
|
|
|
|
<primary sortas="a-wireplumber">Wireplumber</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to Wireplumber</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
The <application>Wireplumber</application> package contains a session and
|
|
|
|
policy manager for <application>Pipewire</application>.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
&lfs120_checked;
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&wireplumber-download-http;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&wireplumber-download-ftp;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download MD5 sum: &wireplumber-md5sum;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download size: &wireplumber-size;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated disk space required: &wireplumber-buildsize;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated build time: &wireplumber-time;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Wireplumber Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
|
|
<para role="required">
|
2023-10-01 01:39:21 +08:00
|
|
|
<phrase revision="sysv"><xref linkend="elogind"/>,</phrase>
|
|
|
|
<xref linkend="glib2"/>, <phrase revision="sysv">and</phrase>
|
|
|
|
<xref linkend="pipewire"/><phrase revision="systemd">, and
|
|
|
|
<xref role="runtime" linkend="systemd"/> (runtime, rebuilt with
|
|
|
|
<xref role="nodep" linkend="linux-pam"/>)
|
|
|
|
</phrase>
|
2023-09-28 01:59:50 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Recommended</bridgehead>
|
|
|
|
<para role="recommended">
|
|
|
|
<xref linkend="lua"/>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
|
|
<para role="optional">
|
|
|
|
<xref linkend="doxygen"/>,
|
|
|
|
<xref linkend="gobject-introspection"/>,
|
|
|
|
<xref linkend="lxml"/>,
|
|
|
|
<xref linkend="sphinx"/>,
|
|
|
|
<xref linkend="sphinx_rtd_theme"/>, and
|
|
|
|
<ulink url="https://pypi.org/project/breathe/">Breathe</ulink>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of Wireplumber</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Install <application>Wireplumber</application> by running the following
|
|
|
|
commands:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen><userinput>mkdir build &&
|
|
|
|
cd build &&
|
|
|
|
|
|
|
|
meson setup --prefix=/usr --buildtype=release -Dsystem-lua=true .. &&
|
|
|
|
ninja</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
To test the results, issue: <command>ninja test</command>.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>ninja install</userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="../../xincludes/meson-buildtype-release.xml"/>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<parameter>-Dsystem-lua=true</parameter>: This switch enables using the
|
|
|
|
system version of Lua. Omit this switch if you have not installed Lua,
|
|
|
|
but note that <application>meson</application> will download and install
|
|
|
|
it's own version.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="configuration">
|
|
|
|
<title>Configuring Wireplumber</title>
|
|
|
|
|
|
|
|
<sect3><title>Configuration Information</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
In order for Wireplumber to be used by Pipewire, Wireplumber must be
|
|
|
|
configured to start when a desktop environment is started.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para revision="systemd">
|
|
|
|
To configure Wireplumber to start when a desktop environment is
|
|
|
|
started, run the following commands as the &root; user to enable the
|
|
|
|
systemd user units:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role="root" revision="systemd"><userinput>systemctl enable --global pipewire.socket &&
|
|
|
|
systemctl enable --global wireplumber</userinput></screen>
|
|
|
|
|
|
|
|
<para revision="sysv">
|
|
|
|
First, create a shell script that will start Wireplumber and Pipewire
|
|
|
|
in the correct order as the &root; user:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role="root" revision="sysv"><userinput>cat > /usr/bin/pipewire-launcher.sh << "EOF"
|
|
|
|
<literal>#!/bin/sh
|
|
|
|
# Begin /usr/bin/pipewire-launcher.sh
|
|
|
|
|
|
|
|
# Start Pipewire first.
|
|
|
|
exec /usr/bin/pipewire &
|
|
|
|
|
|
|
|
# Wait for a second for Pipewire to launch.
|
|
|
|
sleep 1
|
|
|
|
|
|
|
|
# Start Wireplumber now that Pipewire has been started.
|
|
|
|
exec /usr/bin/wireplumber &
|
|
|
|
# End /usr/bin/pipewire-launcher.sh</literal>
|
|
|
|
EOF</userinput></screen>
|
|
|
|
|
|
|
|
<para revision="sysv">
|
|
|
|
Next, make this shell script executable as the &root; user:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role="root" revision="sysv"><userinput>chmod +x /usr/bin/pipewire-launcher.sh</userinput></screen>
|
|
|
|
|
|
|
|
<para revision="sysv">
|
|
|
|
Finally, create an XDG Autostart file that will run
|
2023-10-17 22:30:59 +08:00
|
|
|
<command>/usr/bin/pipewire-launcher.sh</command> when a desktop
|
|
|
|
environment is started, as the &root; user:
|
2023-09-28 01:59:50 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role="root" revision="sysv"><userinput>cat > /etc/xdg/autostart/pipewire.desktop << "EOF"
|
|
|
|
<literal>[Desktop Entry]
|
|
|
|
Version=1.0
|
|
|
|
Name=Pipewire
|
|
|
|
Comment=Starts the Pipewire and Wireplumber daemons
|
|
|
|
Exec=/usr/bin/pipewire-launcher.sh
|
|
|
|
Terminal=false
|
|
|
|
Type=Application</literal>
|
|
|
|
EOF</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Now that Wireplumber is configured to start when a desktop environment is
|
|
|
|
started, it is recommended that you log out of your session and log back
|
|
|
|
in again.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
</sect3>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>
|
|
|
|
wireplumber,
|
|
|
|
wpctl, and
|
|
|
|
wpexec
|
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
libwireplumber-0.4.so
|
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
/usr/include/wireplumber-0.4,
|
|
|
|
/usr/lib/wireplumber-0.4, and
|
|
|
|
/usr/share/wireplumber
|
|
|
|
</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="wireplumber-prog">
|
|
|
|
<term><command>wireplumber</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is a session and policy manager for Pipewire
|
|
|
|
</para>
|
|
|
|
<indexterm zone="wireplumber wireplumber-prog">
|
|
|
|
<primary sortas="b-wireplumber">wireplumber</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="wpctl">
|
|
|
|
<term><command>wpctl</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
controls and queries information from Wireplumber
|
|
|
|
</para>
|
|
|
|
<indexterm zone="wireplumber wpctl">
|
|
|
|
<primary sortas="b-wpctl">wpctl</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="wpexec">
|
|
|
|
<term><command>wpexec</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
executes Wireplumber scripts, which are often written in Lua
|
|
|
|
</para>
|
|
|
|
<indexterm zone="wireplumber wpexec">
|
|
|
|
<primary sortas="b-wpexec">wpexec</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libwireplumber">
|
|
|
|
<term><filename class="libraryfile">libwireplumber-0.4.so</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
contains functions that allow other programs to control Wireplumber
|
|
|
|
</para>
|
|
|
|
<indexterm zone="wireplumber libwireplumber">
|
|
|
|
<primary sortas="c-libwireplumber">libwireplumber-0.4.so</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|