View previous topic :: View next topic |
Author |
Message |
lars_the_bear Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 05 Jun 2024 Posts: 364
|
Posted: Tue Jul 09, 2024 7:11 am Post subject: [solved] How to get rid of ModemManager? |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
rab0171610 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 24 Dec 2022 Posts: 402
|
Posted: Tue Jul 09, 2024 7:33 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Goverp Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/152613747847c6fd276c31a.jpg)
Joined: 07 Mar 2007 Posts: 2107
|
Posted: Tue Jul 09, 2024 8:02 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
lars_the_bear Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 05 Jun 2024 Posts: 364
|
Posted: Tue Jul 09, 2024 9:21 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
lars_the_bear Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 05 Jun 2024 Posts: 364
|
Posted: Tue Jul 09, 2024 9:23 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
toralf Developer
![Developer Developer](/images/ranks/rank-dev.gif)
![](images/avatars/10034462014367c4dfe33c1.gif)
Joined: 01 Feb 2004 Posts: 3933 Location: Hamburg
|
Posted: Tue Jul 09, 2024 11:41 am Post subject: |
|
|
[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 |
|
![](templates/gentoo/images/spacer.gif) |
lars_the_bear Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 05 Jun 2024 Posts: 364
|
Posted: Tue Jul 09, 2024 12:53 pm Post subject: |
|
|
[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 |
|
![](templates/gentoo/images/spacer.gif) |
Goverp Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/152613747847c6fd276c31a.jpg)
Joined: 07 Mar 2007 Posts: 2107
|
Posted: Wed Jul 10, 2024 8:03 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|