Re: NetworkManager for Ubuntu Touch



On Fri, 2018-11-23 at 23:28 +0100, Florian Leeber wrote:
Am 21.11.2018 um 19:18 schrieb Lubomir Rintel:
NetworkManager is doing captive portal detection for ages, though it
recently got somewhat better. The notification should be done in the
desktop shell.

Hey cool, I just configured it:

root@ubuntu-phablet:~# tail /var/log/syslog  -f | grep connectivity
Nov 23 22:58:03 ubuntu-phablet NetworkManager[1774]: <debug>
[1543010283.5003] connectivity: check: send periodic request to
'http://connectivity-check.ubuntu.com/'
Nov 23 22:58:03 ubuntu-phablet NetworkManager[1774]: <debug>
[1543010283.8697] connectivity: check for uri
'http://connectivity-check.ubuntu.com/' with Status header successful.
Nov 23 23:03:03 ubuntu-phablet NetworkManager[1774]: <debug>
[1543010583.4998] connectivity: check: send periodic request to
'http://connectivity-check.ubuntu.com/'
Nov 23 23:03:03 ubuntu-phablet NetworkManager[1774]: <debug>
[1543010583.8536] connectivity: check for uri
'http://connectivity-check.ubuntu.com/' with Status header successful.

So we could work with this version already. But a question, can it also
be triggered on any connection going down / being changed?

It is supposed to.

 If I disable/reenable WiFi the connection check should take place immediately...

It is supposed to.

There were significant improvements to the connectivity checking
lately. The connectivity checks were previously rather rudimentary,
providing a simple connected/disconnected status, completely oblivious
to the device that's actually used for the check.

With an up-to-date NetworkManager we try to make the connectivity check
use a particular device that has came up and then adjust the route
metric accordingly. We also expose the result on the D-Bus. For this to
work robustly you need to have systemd-resolved available (not
necessarily default), otherwise we're not able to resolve names via a
particular interface.

I'm really really really not going to help you solve eventual problems
on a rather old version when we have a new one that is a drop-in
replacement. On the other hand I'm happy to help if something doesn't
work with an up-to-date version.

BR

Lubo



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]