34

I would like to remove modem-manager service from my boot, how can I do it ?

Postadelmaga
  • 5,759

5 Answers5

35
systemctl disable ModemManager.service
systemctl stop ModemManager.service

This worked to disable UML-295 modem from being managed by ModemManger which in turn enabled web-control via http://mbb.vzw.com on CentOS 7.

Check after disabling via:

systemctl list-dependencies multi-user.target | grep Modem
seg-11
  • 351
10

The simplest way is to:

sudo apt-get purge modemmanager

Works fine in 12.04 LTS. Nothing in my system had dependencies on modemmanager.

Or you could search for "modemmanager" in the Ubuntu Software Center and remove it from there (the title is "D-Bus service for managing modems").

mivk
  • 5,811
6

This it looks to work fine:

sudo mv /usr/share/dbus-1/system-services/org.freedesktop.ModemManager.service /usr/share/dbus-1/system-services/org.freedesktop.ModemManager.service.disabled

Instead this doesn't work ( don't know y ):

"echo manual | sudo tee -a /etc/init/modemmanager.override"
Postadelmaga
  • 5,759
0

I found this had only a deleterious function when I tried the experimental version in Debian Sid and it failed to find my modem at all. That nearly doubled my speed and drops and failures became rare. I will probably remove it but for the time I want it to suspend function.

In /etc/init.d I stored this file:

#!/bin/sh
# NOMODEMMANAGER.sh DHM, Feb'19
# The ModemManager appears to slow down and interfere with the internet on my Dell laptop.
ModemManager --no-auto-scan
Kevin Bowen
  • 20,055
  • 57
  • 82
  • 84
0
  1. If it is SysV init style symbolic links

    update-rc.d [-n] [-f] base_name remove
    
  2. If it is per user (X11 session), check the following folders and remote corresponding files:

    ~/.config/autostart    
    /etc/xdg/autostart
    
muru
  • 207,228
Terry Wang
  • 10,185