Peppermint OS

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

Title: How to prevent ModemManager from starting? (SOLVED)
Post by: Slim.Fatz on July 08, 2016, 08: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/ModemManagerand 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, 09:13:59 am
This will show ypou the status of the ModemManager.service (ie. if it's running or not):
Code: [Select]
sudo systemctl status ModemManager.servicethis will stop the ModemManager.service:
Code: [Select]
sudo systemctl stop ModemManager.servicethis 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.servicethen:
Code: [Select]
sudo systemctl start ModemManager.servicethen 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, 09:22:40 am
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, 10:31:11 am
Sorry mate I didn't spot the BRIGHT RED "Peppermint 6" <facepalm egg smiley thing>

Maybe:
Code: [Select]
sudo service ModemManager stopand
Code: [Select]
sudo service ModemManager status?