Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

106.7. modemmanager-1.24.2

Mobile broadband modem daemon (3G/4G/5G over QMI, MBIM, QRTR and AT), mmcli and libmm-glib

1.24.2-1 · GPL-2.0-or-later AND LGPL-2.1-or-later · 0.9 SBU · 12.9 MiB, 194 files · 41_system, 589 of 1047 · ports/core/network/modemmanager

Homepage: https://modemmanager.org/

Why it is in KDOS. The comment above the 3 ports from ppp to modemmanager in script/phases/41_system/packages.d/network.txt:

Mobile broadband and PPPoE: ModemManager drives the modem, the provider database supplies a carrier's APN, pppd carries PPPoE and serial modems.

ModemManager finds and drives cellular modems: built-in WWAN cards, USB modems, and phones that offer dial-up networking over Bluetooth. networkmanager makes the connection through it, and mmcli shows a modem’s state, unlocks its SIM and reads its messages; see Mobile broadband.

ModemManager is started at boot by /etc/init.d/42_modemmanager.sh, after polkit and before NetworkManager, and never by D-Bus activation; see How polkit and ModemManager are started.

Depends on: meson, pkgconf, glib, python3, gettext, dbus, eudev, libgudev, polkit, libmbim, libqmi, libqrtr-glib, bash-completion, gobject-introspection, glib-introspection.

Required by (4): fwupd, geoclue, modemmanager-qt, networkmanager.

Sources: modemmanager-1.24.2.tar.gz (2.0 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install modemmanager'

build.sh:

meson setup build \
	--prefix=/usr --sysconfdir=/etc --libdir=lib --localstatedir=/var \
	--buildtype=release \
	--auto-features=enabled \
	-Dudev=true \
	-Dudevdir=/lib/udev \
	-Ddbus_policy_dir=/usr/share/dbus-1/system.d \
	-Dsystemdsystemunitdir=no \
	-Dsystemd_suspend_resume=false \
	-Dpowerd_suspend_resume=false \
	-Dsystemd_journal=false \
	-Dpolkit=strict \
	-Dat_command_via_dbus=false \
	-Dbuiltin_plugins=false \
	-Dmbim=true \
	-Dqmi=true \
	-Dqrtr=true \
	-Dintrospection=true \
	-Dvapi=false \
	-Dman=true \
	-Dgtk_doc=false \
	-Dbash_completion=true \
	-Dexamples=false \
	-Dtests=false \
	-Dfuzzer=false
meson compile -C build
DESTDIR=$PKG meson install --no-rebuild -C build

rm "$PKG/usr/share/dbus-1/system-services/org.freedesktop.ModemManager1.service"

Programs: ModemManager, mmcli.

Libraries: libmm-glib.so.

Directories: /usr/include/ModemManager, /usr/include/libmm-glib, /usr/lib/ModemManager, /usr/share/ModemManager, /usr/share/licenses/modemmanager.

The recipe deletes /usr/share/dbus-1/system-services/org.freedesktop.ModemManager1.service, the D-Bus activation file the build installs whatever its options. NetworkManager calls org.freedesktop.ModemManager1 as it starts, and with the file that call would make the system bus start a second ModemManager outside the supervisor; whichever lost the name would exit, and a supervised one that lost would be restarted every five seconds without ever getting it. Without the file the call is refused, and 42_modemmanager.sh waits until ModemManager holds the name before 42_networkmanager.sh runs.