Peppermint OS Community Forum

Support => Advanced Topics => Topic started by: Slim.Fatz on July 08, 2016, 11:09:40 am

Title: How to prevent ModemManager from starting? (SOLVED)
Post by: Slim.Fatz on July 08, 2016, 11:09:40 am
Hi,

This might not be a very advanced question, but ... On a desktop machine running Peppermint Six (32 bit), how do I go about preventing the modem manager process from being started at every boot?

Thanks in advance,

-- Slim

P.S.

Solved this one myself: I just removed the executable flags from the file

Code: [Select]
/usr/sbin/ModemManager
and now it's neither starting at boot nor getting started by the NetworkManager process after boot.  8)

Regards,

-- Slim
Title: Re: How to prevent ModemManager from starting? (SOLVED)
Post by: PCNetSpec on July 08, 2016, 12:13:59 pm
This will show ypou the status of the ModemManager.service (ie. if it's running or not):
Code: [Select]
sudo systemctl status ModemManager.service
this will stop the ModemManager.service:
Code: [Select]
sudo systemctl stop ModemManager.service
this will disable the ModemManager.service (so it doesn't autostart):
Code: [Select]
sudo systemctl disable ModemManager.service

Note:-
Hitting the "Q" key will quit a "systemctl status" command back to the command prompt



To re-enable:
Code: [Select]
sudo systemctl enable ModemManager.service
then:
Code: [Select]
sudo systemctl start ModemManager.service
then you can check it's status again with:
Code: [Select]
sudo systemctl status ModemManager.service

Note:-
Hitting the "Q" key will quit a "systemctl status" command back to the command prompt
Title: Re: How to prevent ModemManager from starting? (SOLVED)
Post by: Slim.Fatz on July 08, 2016, 12:22:40 pm
Hi PCNetSpec,

Thanks for the tips, mate, but as you were writing them I was posting my solution.  ;D Besides: Peppermint Six does not use systemd so systemctl status does not exist as a command. I know: Six / 7 ... don't worry: I get confused all the time too.  :D

Just stopping ModemManager from being started at boot does not help much since it seems that the NetworkManager process starts it, or checks regularly to see if it is running, and if it isn't running it (NetworkManager) will start it. I do not want to remove the package (ModemManager) because I suspect it will just get pulled in again when a new NetworkManager version appears (and it seems to be fairly regularly updated).

Sorry to have wasted your time.  :-[ I owe you a pint (at least)!  8)

Regards,

-- Slim
Title: Re: How to prevent ModemManager from starting? (SOLVED)
Post by: PCNetSpec on July 08, 2016, 01:31:11 pm
Sorry mate I didn't spot the BRIGHT RED "Peppermint 6" <facepalm egg smiley thing>

Maybe:
Code: [Select]
sudo service ModemManager stop
and
Code: [Select]
sudo service ModemManager status
?