Re: [gentoo-user] Systemd and ModemManager

2014-04-26 Thread gottlieb
On Sat, Apr 26 2014, Canek Peláez Valdés wrote:

> On Sat, Apr 26, 2014 at 10:11 AM,   wrote:
> [ ... ]
>
>> I am hoping someone (guess who :-) ) will chime in
>> with the magic incantation to have the system not try to start
>> modemmanger.
>
> I don't know If you meant me,

I'll never tell :-)

> but I'm going to try to answer anyway ;)

[ customary clear explanation omitted ]]

> I (like Todd) have ModemManager enabled.

That's enough for me.

   systemctl enable ModemManager

allan



Re: [gentoo-user] Systemd and ModemManager

2014-04-26 Thread Canek Peláez Valdés
On Sat, Apr 26, 2014 at 10:11 AM,   wrote:
[ ... ]

> So far I guess I have been following todd (actually I never noticed them
> before posting)
>
> David's method may be better (logs less cluttered) but does run an
> unneeded service.  I am hoping someone (guess who :-) ) will chime in
> with the magic incantation to have the system not try to start
> modemmanger.

I don't know If you meant me, but I'm going to try to answer anyway ;)

The thing is, under the GNOME Grand View of How Things Should Work™,
ModemManagar is never "unneeded", since you don't actually *know* if
and when you'll want to use a "modem" (there are *several* pieces of
hardware that can be considered "modems" nowadays). The idea, as with
everything else, is that if you plug/pair *anything* that could work
as a modem, then it should Just Work™.

As is the normal position with GNOME (if I understand correctly, which
I think I do), they are interested in making the life easier for the
regular case, and since everyone has a (potential) modem in their
pockets right now in the form of a cellphone with bluetooth
connectivity, the regular case is to have the system prepared to work
with them, even if most GNOME users will never use their cellphones as
modems.

If you say "my desktop computer has no bluetooth and I will *never*
use any kind of modem with it", that's perfectly reasonably; but the
GNOME devs will probably say something along the lines of that being a
"particular" case, not the general one (which is technically true,
BTW).

So no, there is no magic incantation to have NetworkManager (is not
the system, is NM) not try to start ModemManager. We could patch the
code for that, and actually before GNOME 3.10 or 3.8, Gentoo did that;
but with every new version of NM is harder and harder, since the GNOME
devs make the (technically correct) assumption that everyone now has a
modem for their computers, and they code under that assumption; so
Gentoo stopped patching NM.

I (like Todd) have ModemManager enabled. From what I can see, it is a
single threaded process that uses basically no memory nor processor
(it's idle until you connect/plug a modem), and that opens no ports to
the outside world, so it doesn't brings any (obvious) security issues

If someone wrote the necessary code to make ModemManager optional to
NM, I think (but I could be wrong) that the Gentoo GNOME devs would
take it; but it will never be accepted upstream. At this point I think
I agree with them.

Sorry if this doesn't help.

Regards.
-- 
Dr. Canek Peláez Valdés
Profesor de Asignatura, Facultad de Ciencias
Universidad Nacional Autónoma de México



Re: [gentoo-user] Systemd and ModemManager

2014-04-26 Thread gottlieb
On Fri, Apr 25 2014, David Abbott wrote:

> On Fri, Apr 25, 2014 at 5:58 PM, Todd Goodman  wrote:
>>
>> * gottl...@nyu.edu  [140425 12:21]:
>>> journalctl -b | grep -i modem yields *many* of these lines
>>>
>>> Apr 25 12:10:18 e6510 dbus-daemon[254]: dbus[254]: [system]
>>> Activation via systemd failed for unit
>>> dbus-org.freedesktop.ModemManager1.service': Unit
>>> dbus-org.freedesktop.ModemManager1.service failed to load: No such
>>> file or directory.
>>> Apr 25 12:10:18 e6510 dbus[254]: [system] Activation via systemd
>>> failed for unit 'dbus-org.freedesktop.ModemManager1.service': Unit
>>> dbus-org.freedesktop.ModemManager1.service failed to load: No such
>>> file or directory.
>>>
>>> I do have a (cable) modem, but presumably that is not visible to the
>>> system since the modem is behind a (linksys) router.
>>>
>>> thanks,
>>> allan
>>
>> FWIW Allan I get those too (without any modem.)
>>
>> I'm just ignoring them.
>>
>> Todd
>>
> I got rid of the spam in the logs by going ahead and enabling modemmanager.

So far I guess I have been following todd (actually I never noticed them
before posting)

David's method may be better (logs less cluttered) but does run an
unneeded service.  I am hoping someone (guess who :-) ) will chime in
with the magic incantation to have the system not try to start
modemmanger.

thank you both.
allan



Re: [gentoo-user] Systemd and ModemManager

2014-04-25 Thread David Abbott
On Fri, Apr 25, 2014 at 5:58 PM, Todd Goodman  wrote:
> * gottl...@nyu.edu  [140425 12:21]:
>> journalctl -b | grep -i modem yields *many* of these lines
>>
>> Apr 25 12:10:18 e6510 dbus-daemon[254]: dbus[254]: [system] Activation via 
>> systemd failed for unit 'dbus-org.freedesktop.ModemManager1.service': Unit 
>> dbus-org.freedesktop.ModemManager1.service failed to load: No such file or 
>> directory.
>> Apr 25 12:10:18 e6510 dbus[254]: [system] Activation via systemd failed for 
>> unit 'dbus-org.freedesktop.ModemManager1.service': Unit 
>> dbus-org.freedesktop.ModemManager1.service failed to load: No such file or 
>> directory.
>>
>> I do have a (cable) modem, but presumably that is not visible to the
>> system since the modem is behind a (linksys) router.
>>
>> I can't simply --depclean modemmanager since gnome-control-center-3.10.3
>> requires it and the ebuild contains
>>
>> # FIXME: modemmanager is not optional
>>
>> thanks,
>> allan
>>
>
> FWIW Allan I get those too (without any modem.)
>
> I'm just ignoring them.
>
> Todd
>

I got rid of the spam in the logs by going ahead and enabling modemmanager.

heater ~ # systemctl status ModemManager
ModemManager.service - Modem Manager
   Loaded: loaded (/usr/lib64/systemd/system/ModemManager.service; enabled)
   Active: active (running) since Thu 2014-04-24 13:36:47 EDT; 1 day 5h ago
 Main PID: 215 (ModemManager)
   CGroup: /system.slice/ModemManager.service
   └─215 /usr/sbin/ModemManager

Apr 24 13:36:46 localhost systemd[1]: Starting Modem Manager...
Apr 24 13:36:46 localhost ModemManager[215]:   ModemManager
(version 1.0.0-r2) starting...
Apr 24 13:36:47 heater systemd[1]: Started Modem Manager.
Apr 24 13:36:49 heater ModemManager[215]:   Couldn't find
support for device at
'/sys/devices/pci:00/:00:1c.0/:0e:00.0': not supported by
any plugin
Apr 24 13:36:49 heater ModemManager[215]:   Couldn't find
support for device at
'/sys/devices/pci:00/:00:1c.1/:0f:00.0': not supported by
any plugin
heater ~ # journalctl -b | grep -i modem
Apr 24 13:36:46 localhost systemd[1]: Starting Modem Manager...
Apr 24 13:36:46 localhost ModemManager[215]:   ModemManager
(version 1.0.0-r2) starting...
Apr 24 13:36:47 heater systemd[1]: Started Modem Manager.
Apr 24 13:36:47 heater NetworkManager[214]:  ModemManager
available in the bus


-- 
David Abbott



Re: [gentoo-user] Systemd and ModemManager

2014-04-25 Thread Todd Goodman
* gottl...@nyu.edu  [140425 12:21]:
> journalctl -b | grep -i modem yields *many* of these lines
> 
> Apr 25 12:10:18 e6510 dbus-daemon[254]: dbus[254]: [system] Activation via 
> systemd failed for unit 'dbus-org.freedesktop.ModemManager1.service': Unit 
> dbus-org.freedesktop.ModemManager1.service failed to load: No such file or 
> directory.
> Apr 25 12:10:18 e6510 dbus[254]: [system] Activation via systemd failed for 
> unit 'dbus-org.freedesktop.ModemManager1.service': Unit 
> dbus-org.freedesktop.ModemManager1.service failed to load: No such file or 
> directory.
> 
> I do have a (cable) modem, but presumably that is not visible to the
> system since the modem is behind a (linksys) router.
> 
> I can't simply --depclean modemmanager since gnome-control-center-3.10.3
> requires it and the ebuild contains
> 
> # FIXME: modemmanager is not optional
> 
> thanks,
> allan
> 

FWIW Allan I get those too (without any modem.)

I'm just ignoring them.

Todd



[gentoo-user] Systemd and ModemManager

2014-04-25 Thread gottlieb
journalctl -b | grep -i modem yields *many* of these lines

Apr 25 12:10:18 e6510 dbus-daemon[254]: dbus[254]: [system] Activation via 
systemd failed for unit 'dbus-org.freedesktop.ModemManager1.service': Unit 
dbus-org.freedesktop.ModemManager1.service failed to load: No such file or 
directory.
Apr 25 12:10:18 e6510 dbus[254]: [system] Activation via systemd failed for 
unit 'dbus-org.freedesktop.ModemManager1.service': Unit 
dbus-org.freedesktop.ModemManager1.service failed to load: No such file or 
directory.

I do have a (cable) modem, but presumably that is not visible to the
system since the modem is behind a (linksys) router.

I can't simply --depclean modemmanager since gnome-control-center-3.10.3
requires it and the ebuild contains

# FIXME: modemmanager is not optional

thanks,
allan