The officially official Devuan Forum!

You are not logged in.

#1 2024-02-18 22:46:25

grunchy
Member
Registered: 2024-01-01
Posts: 15  

disable ModemManager

running daedalus+kde and pstree shows the very first process created by init is ModemManager.
my devuan machine will never need the services of ModemManager and i would like to disable it.

ModemManager is not a 'service' , is not an XDG 'autostart', is not a KDE 'autostart'. it seems to
be baked-in. on my kubuntu box systemd has ModemManager 'masked' so that it never starts.

in devuan how do you stop/disable ModemManager?

Offline

#2 2024-02-19 02:39:56

GlennW
Member
From: Brisbane, Australia
Registered: 2019-07-18
Posts: 644  

Re: disable ModemManager

Hi, on my daedalus Plasma/kde system, I removed the package ModemManager.

I don't know if it's running (how do you test it to find out?), but I did see Plasma-nm (network manager) depends on some other packages with the modemmanager in the name.

ymmv. All the best

Last edited by GlennW (2024-02-19 21:55:36)


pic from 1993, new guitar day.

Offline

#3 2024-02-19 04:47:15

swanson
Member
Registered: 2020-04-22
Posts: 103  

Re: disable ModemManager

Offline

#4 2024-02-20 18:21:24

grunchy
Member
Registered: 2024-01-01
Posts: 15  

Re: disable ModemManager

glenn, yeah i can just purge the package, but was hoping to merely disable it.

there must be something somewhere that instructs init to start this process,
i just cannot find it. i guess purging packages is the usual way in devuan?

swanson, thanks for the clue. sysv-rc-conf is very helpful. the command-line
dump gives a good, condensed view of init-time.

Offline

#5 2024-02-20 18:30:11

aluma
Member
Registered: 2022-10-26
Posts: 646  

Re: disable ModemManager

man service

SERVICE(8)                  System Manager's Manual                 SERVICE(8)

NAME
       service - run a System V init script

SYNOPSIS
       service SCRIPT COMMAND [OPTIONS]

       service --status-all

       service --help | -h | --version

For example

service  network-manager stop

Offline

#6 2024-02-24 20:53:24

grunchy
Member
Registered: 2024-01-01
Posts: 15  

Re: disable ModemManager

so i found something. not perfect, but better than nothing.

it turns out ModemManager is started by (everyone's favorite) dbus.

the directory /usr/share/dbus-1/system-services contains systemd .service files.
at init-time dbus scans this directory and starts all the listed services.

i did not find documentation about the function of this directory, so it does
appear to just be baked-in to debian. this setup must be documented somewhere
but i did not find out where.

to disable ModemManager just rename the appropriate file so that it get ignored.

so, rename /usr/share/dbus-1/system-services/org.freedesktop.ModemManager1.service
to /usr/share/dbus-1/system-services/org.freedesktop.ModemManager1.service.disabled

the only catch is that if dbus/ModemManager every get updated this change probably
gets stomped-on and needs to be redone. but, since an update is very unlikely until
devuan excalibur rolls around, not too bad.

Offline

Board footer