glfs/general/sysutils/modemmanager.xml

261 lines
8.0 KiB
XML
Raw Normal View History

2024-01-20 05:35:53 +08:00
<?xml version="1.0" encoding="UTF-8"?>
<!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;
<!ENTITY ModemManager-download-http "https://www.freedesktop.org/software/ModemManager/ModemManager-&ModemManager-version;.tar.xz">
<!ENTITY ModemManager-download-ftp " ">
<!ENTITY ModemManager-md5sum "9f014dfc59f1bd8bc230bb2c2974d104">
<!ENTITY ModemManager-size "2.5 MB">
<!ENTITY ModemManager-buildsize "155 MB (with tests)">
<!ENTITY ModemManager-time "0.7 SBU (Using parallelism=4; with tests)">
]>
<sect1 id="ModemManager" xreflabel="ModemManager-&ModemManager-version;">
<?dbhtml filename="ModemManager.html"?>
<title>ModemManager-&ModemManager-version;</title>
<indexterm zone="ModemManager">
<primary sortas="a-ModemManager">ModemManager</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to ModemManager</title>
<para>
<application>ModemManager</application> provides a unified high level
API for communicating with mobile broadband modems, regardless of the
protocol used to communicate with the actual device.
</para>
&lfs121_checked;
<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Download (HTTP): <ulink url="&ModemManager-download-http;"/>
</para>
</listitem>
<listitem>
<para>
Download (FTP): <ulink url="&ModemManager-download-ftp;"/>
</para>
</listitem>
<listitem>
<para>
Download MD5 sum: &ModemManager-md5sum;
</para>
</listitem>
<listitem>
<para>
Download size: &ModemManager-size;
</para>
</listitem>
<listitem>
<para>
Estimated disk space required: &ModemManager-buildsize;
</para>
</listitem>
<listitem>
<para>
Estimated build time: &ModemManager-time;
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">ModemManager Dependencies</bridgehead>
<bridgehead renderas="sect4">Required</bridgehead>
<para role="required">
<xref linkend="libgudev"/>
</para>
<bridgehead renderas="sect4">Recommended</bridgehead>
<para role="recommended">
<phrase revision="sysv"><xref linkend="elogind"/>,</phrase>
&gobject-introspection;,
<xref linkend="libmbim"/>,
<xref linkend="libqmi"/>,
<xref linkend="polkit"/>, and
<xref linkend="vala"/>
</para>
<bridgehead renderas="sect4">Optional</bridgehead>
<para role="optional">
<xref linkend="gtk-doc"/>
</para>
<para condition="html" role="usernotes">Editor Notes:
<ulink url="&blfs-wiki;/ModemManager"/>
</para>
</sect2>
<sect2 role="installation">
<title>Installation of ModemManager</title>
<para>
Install <application>ModemManager</application> by running the following
commands:
</para>
<screen revision="sysv"><userinput>./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-static \
--disable-maintainer-mode \
--with-systemd-journal=no \
--with-systemd-suspend-resume &amp;&amp;
make</userinput></screen>
<screen revision="systemd"><userinput>./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-static \
--disable-maintainer-mode \
--with-systemd-journal \
--with-systemd-suspend-resume &amp;&amp;
make</userinput></screen>
<para>
To test the results, issue: <command>make check</command>.
</para>
<para>
Now, as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>make install</userinput></screen>
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<para>
<parameter>--with-systemd-suspend-resume</parameter>: This
switch forces <application>ModemManager</application> to use the
<phrase revision="sysv"><application>elogind</application></phrase>
<phrase revision="systemd"><application>systemd</application></phrase>
power management facilities.
</para>
<para>
<phrase revision="systemd"><parameter>--with-systemd-journal</parameter></phrase>
<phrase revision="sysv"><parameter>--with-systemd-journal=no</parameter></phrase>
: This switch forces <application>ModemManager</application>
<phrase revision="sysv">not</phrase> to use the systemd journal for
logging.
</para>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="../../xincludes/static-libraries.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="../../xincludes/gtk-doc-rebuild.xml"/>
</sect2>
<sect2 role="configuration" revision="systemd">
<title>Configuring ModemManager</title>
<sect3 id="ModemManager-init">
<title>Systemd Units</title>
<para>
To start the <command>ModemManager</command> daemon at boot, enable
the previously installed systemd unit by running the following command
as the <systemitem class="username">root</systemitem> user:
</para>
<indexterm zone="ModemManager ModemManager-init">
<primary sortas="f-ModemManager">ModemManager</primary>
</indexterm>
<screen role="root"><userinput>systemctl enable ModemManager</userinput></screen>
</sect3>
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>
mmcli and ModemManager
</seg>
<seg>
libmm-glib.so
</seg>
<seg>
2022-04-30 22:37:21 +08:00
/etc/ModemManager,
/usr/include/libmm-glib,
/usr/include/ModemManager,
/usr/lib/ModemManager,
/usr/share/ModemManager,
2022-04-30 22:37:21 +08:00
/usr/share/gtk-doc/html/libmm-glib (optional), and
/usr/share/gtk-doc/html/ModemManager (optional)
</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="mmcli">
<term><command>mmcli</command></term>
<listitem>
<para>
is an utility used to control and monitor the
<application>ModemManager</application>
</para>
<indexterm zone="ModemManager mmcli">
<primary sortas="b-mmcli">mmcli</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="ModemManager-prog">
<term><command>ModemManager</command></term>
<listitem>
<para>
is a <application>D-Bus</application> service used
to communicate with modems
</para>
<indexterm zone="ModemManager ModemManager-prog">
<primary sortas="b-ModemManager">ModemManager</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="libmm-glib">
<term><filename class="libraryfile">libmm-glib.so</filename></term>
<listitem>
<para>
contains API functions for communicating with mobile broadband
modems, regardless of the protocol used to communicate with
the actual device
</para>
<indexterm zone="ModemManager libmm-glib">
<primary sortas="c-libmm-glib">libmm-glib.so</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>