[review] enable and use +CGEV indications

2018-10-30 Thread Aleksander Morgado
Hey all,

See this MR, that allows us to enable and parse +CGEV indications to
e.g. report context disconnections via URCs.

https://gitlab.freedesktop.org/mobile-broadband/ModemManager/merge_requests/49

My target is to try to disable the periodic connection checks
(AT+CGACT?) for all modems that support these indications, but first
I'd like to integrate this and see how it behaves.

Comments? Suggestions?

-- 
Aleksander
https://aleksander.es
___
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel


Re: System Daemon or DBus activated service?

2018-10-30 Thread Dan Williams
On Tue, 2018-10-30 at 12:42 +0100, Aleksander Morgado wrote:
> Hey!
> 
> > According to this[1], it says
> > > ModemManager is a system daemon
> > 
> > and
> > > ModemManager is a DBus system bus activated service (meaning it's
> > > started automatically when a request arrives).
> > 
> > A system daemon means that MM is running all the time. Doesn't that
> > conflict with DBus activated service? Besides, can ModemManager
> > quit when let's say, it's not needed, just like what PackageKit
> > does. Is it possible?
> > 
> > *[1] https://www.freedesktop.org/software/ModemManager/api/latest/r
> > ef-overview-introduction.html
> > 
> 
> This depends on how the system works. In the pre-systemd setups MM
> was
> DBus-activated by NetworkManager on boot, but in all new setups using
> systemd the ModemManager process is managed via a systemd service so
> the lifecycle of the process is that of a system daemon. It would
> probably be wise to stop talking about DBus activation for MM I
> assume, we should update the docs.

Yeah.  Also in the pre-systemd world, NM needed to start MM very early
to detect modems anyway.  So it was effectively a system daemon, just
that it wasn't started by a SYSV initscript or upstart job or whatever.
 

The ideal system would be that MM would be started whenever certain
hardware was inserted (or cold-detected), eg whenever any device driven
by cdc-acm, qmi_wwan, cdc-mbim, cdc-wdm, sierra, qcserial, etc was
found by the kernel.  MM would run and if it found a modem would keep
running, otherwise it would quit.  But reality is that this is too
complicated to get reliably correct, and clients (NetworkManager,
mmcli, etc) can't distinguish between "MM couldn't find any modems and
quit" and "MM wasn't started at all due to misconfiguration".

Dan
___
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel


Re: System Daemon or DBus activated service?

2018-10-30 Thread Aleksander Morgado
Hey!

> According to this[1], it says
> > ModemManager is a system daemon
> and
> > ModemManager is a DBus system bus activated service (meaning it's started 
> > automatically when a request arrives).
>
> A system daemon means that MM is running all the time. Doesn't that conflict 
> with DBus activated service? Besides, can ModemManager quit when let's say, 
> it's not needed, just like what PackageKit does. Is it possible?
>
> *[1] 
> https://www.freedesktop.org/software/ModemManager/api/latest/ref-overview-introduction.html
>

This depends on how the system works. In the pre-systemd setups MM was
DBus-activated by NetworkManager on boot, but in all new setups using
systemd the ModemManager process is managed via a systemd service so
the lifecycle of the process is that of a system daemon. It would
probably be wise to stop talking about DBus activation for MM I
assume, we should update the docs.

-- 
Aleksander
https://aleksander.es
___
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel


System Daemon or DBus activated service?

2018-10-30 Thread Jonathan Kang
Hi list

According to this[1], it says
> ModemManager is a system daemon
and
> ModemManager is a DBus system bus activated service (meaning it's started
automatically when a request arrives).

A system daemon means that MM is running all the time. Doesn't that
conflict with DBus activated service? Besides, can ModemManager quit when
let's say, it's not needed, just like what PackageKit does. Is it possible?

*[1]
https://www.freedesktop.org/software/ModemManager/api/latest/ref-overview-introduction.html

Thanks
Jonathan
___
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel