Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] How to get rid of ModemManager?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
lars_the_bear
Apprentice
Apprentice


Joined: 05 Jun 2024
Posts: 180

PostPosted: Tue Jul 09, 2024 7:11 am    Post subject: [solved] How to get rid of ModemManager? Reply with quote

Hi folks

I don't want to run ModemManager, not now, or ever. But it's running. There's a 'modemmanager' service which `rc-server` reports as 'stopped'. `rc-update` does not show the service as enabled. I tried `emerge --depclean modemmanager` but it said that nothing was scheduled for removal. If I kill the process, `init` restarts it. Aargh!

When I rename `/usr/bin/ModemManager`, then the system log shows that ModemManager is 'requested by NetworkManager'. I don't know why unless, perhaps, it's needed by WAN hardware.

In any event, I don't need ModemManager, and it intereferes with things I do need. Is there a more elegant way of stopping it running than moving the binary (which fills the system log with error message) ?

BR, Lars.


Last edited by lars_the_bear on Tue Jul 09, 2024 9:33 am; edited 1 time in total
Back to top
View user's profile Send private message
rab0171610
Guru
Guru


Joined: 24 Dec 2022
Posts: 370

PostPosted: Tue Jul 09, 2024 7:33 am    Post subject: Reply with quote

Try verbose:
Code:
emerge -av --depclean modemmanager

This will tell you what packages are pulling it in.
See the list of reverse dependencies:
https://packages.gentoo.org/packages/net-misc/modemmanager/reverse-dependencies
Some can be built without net-misc/modemmanager as it is a use flag, such is the case with net-misc/networkmanager:
Code:
modemmanager? (
      net-misc/mobile-broadband-provider-info
      >=net-misc/modemmanager-0.7.991:0=
   )

Unless you also want Bluetooth support:
Code:
bluetooth? ( modemmanager )
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2053

PostPosted: Tue Jul 09, 2024 8:02 am    Post subject: Reply with quote

FWIW I use pure wpa_supplicant, specifically without either NetworkManager or modemmanager. wpa_gui isn't as pretty as NetworkManager, and probably doesn't do as much, but it's fine for simply managing WiFi connections.
_________________
Greybeard
Back to top
View user's profile Send private message
lars_the_bear
Apprentice
Apprentice


Joined: 05 Jun 2024
Posts: 180

PostPosted: Tue Jul 09, 2024 9:21 am    Post subject: Reply with quote

rab0171610 wrote:

Some can be built without net-misc/modemmanager as it is a use flag, such is the case with net-misc/networkmanager:...


Thanks. I rebuilt it with `-modemmanager -bluetooth` and it's fine now.

And, in fact, these flags are documented in the Gentoo documentation for NetworkManager. I just didn't read it :) To be fair to myself, though, the hard part was figuring out that it was NetworkManager that was causing the problem in the first place.

BR, Lars.
Back to top
View user's profile Send private message
lars_the_bear
Apprentice
Apprentice


Joined: 05 Jun 2024
Posts: 180

PostPosted: Tue Jul 09, 2024 9:23 am    Post subject: Reply with quote

Goverp wrote:
FWIW I use pure wpa_supplicant, specifically without either NetworkManager or modemmanager. wpa_gui isn't as pretty as NetworkManager, and probably doesn't do as much, but it's fine for simply managing WiFi connections.


It's prettier than `nmtui`, at least ;)

I have no fondness for NetworkManager, and I'd be happy to get rid of it. But it does at least integrate wired and wireless configuration into one place. I'm not sure how else I'd do that, other than at the command line.

BR, Lars.
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3932
Location: Hamburg

PostPosted: Tue Jul 09, 2024 11:41 am    Post subject: Reply with quote

[quote="lars_the_bear"]
rab0171610 wrote:
Thanks. I rebuilt it with `-modemmanager -bluetooth` and it's fine now.
For a server you really do not need bluetooth, but for laptop it might have a benefit.
Back to top
View user's profile Send private message
lars_the_bear
Apprentice
Apprentice


Joined: 05 Jun 2024
Posts: 180

PostPosted: Tue Jul 09, 2024 12:53 pm    Post subject: Reply with quote

[quote="toralf"]
lars_the_bear wrote:
rab0171610 wrote:
Thanks. I rebuilt it with `-modemmanager -bluetooth` and it's fine now.
For a server you really do not need bluetooth, but for laptop it might have a benefit.


I've only disabled Bluetooth for NetworkManager. I hope that won't affect the use of Bluetooth elsewhere.

BR, Lars.
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2053

PostPosted: Wed Jul 10, 2024 8:03 am    Post subject: Reply with quote

lars_the_bear wrote:
...
I have no fondness for NetworkManager, and I'd be happy to get rid of it. But it does at least integrate wired and wireless configuration into one place. I'm not sure how else I'd do that, other than at the command line[

You might like to look at net-misc/dhcpcd-ui. It's written by Roy Marples, who wrote OpenRc. I tried it once; it looked OK and light-weight, but my use case didn't need it, so I took it out again.
_________________
Greybeard
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum