Re: NetworkManager for Ubuntu Touch

2018-11-23 Thread Florian Leeber via networkmanager-list
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]: 
[1543010283.5003] connectivity: check: send periodic request to
'http://connectivity-check.ubuntu.com/'
Nov 23 22:58:03 ubuntu-phablet NetworkManager[1774]: 
[1543010283.8697] connectivity: check for uri
'http://connectivity-check.ubuntu.com/' with Status header successful.
Nov 23 23:03:03 ubuntu-phablet NetworkManager[1774]: 
[1543010583.4998] connectivity: check: send periodic request to
'http://connectivity-check.ubuntu.com/'
Nov 23 23:03:03 ubuntu-phablet NetworkManager[1774]: 
[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? If I
disable/reenable WiFi the connection check should take place immediately...

BR

___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Unable to add IPv6 address?

2018-11-23 Thread Florian Leeber via networkmanager-list
Oh and here is the tracking issue from us:
https://github.com/ubports/ubuntu-touch/issues/116 - I can see now that
it was at least an issue on 2 devices, with more or less different
kernel versions.

BR

Am 23.11.2018 um 22:44 schrieb Thomas Haller:
> O
>
> please enable level=TRACE logging and show more context. See hints at
> [1] for how to do that.
>
> What is the version of NetworkManager, and which kernel?
>
> https://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/contrib/fedora/rpm/NetworkManager.conf
>
> It's probably not directly related to mobile, but IPv6 in general.
>
>
> best,
> Thomas
>
>
>

___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Unable to add IPv6 address?

2018-11-23 Thread Florian Leeber via networkmanager-list
Hi,

I pasted here a bit more: https://pastebin.com/pkE3Zpbp

The versions are:
- Ubuntu: 16.04
- Kernel Linux ubuntu-phablet 3.4.0-Sultan-CAF
- NM: 1.2.2

BR Florian


Am 23.11.2018 um 22:44 schrieb Thomas Haller:
> On Fri, 2018-11-23 at 22:26 +0100, Florian Leeber via networkmanager-
> list wrote:
>> Hello again,
>>
>> this seems to be phone specific for some reason, but we dont know
>> why.
>> We cannot add IPv6 addies on the mobile:
>>
>> Nov 23 22:23:46 ubuntu-phablet NetworkManager[1774]: 
>> [1543008226.9182] platform-linux: netlink: recvmsg: error message
>> from
>> kernel: Invalid argument (22) for request 1653
>> Nov 23 22:23:46 ubuntu-phablet NetworkManager[1774]: 
>> [1543008226.9188] platform-linux: do-add-ip6-address[21:
>> 2a02:8388:8980:e700:9c4b:f32a:6c81:df77]: failure 22 (Invalid
>> argument)
>>
>> I found only very few informations about this. Any ides?
>>
>>
>> BR
>>
>>
> Hi,
>
> please enable level=TRACE logging and show more context. See hints at
> [1] for how to do that.
>
> What is the version of NetworkManager, and which kernel?
>
> https://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/contrib/fedora/rpm/NetworkManager.conf
>
> It's probably not directly related to mobile, but IPv6 in general.
>
>
> best,
> Thomas
>
>
>

___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Unable to add IPv6 address?

2018-11-23 Thread Thomas Haller via networkmanager-list
On Fri, 2018-11-23 at 22:26 +0100, Florian Leeber via networkmanager-
list wrote:
> Hello again,
> 
> this seems to be phone specific for some reason, but we dont know
> why.
> We cannot add IPv6 addies on the mobile:
> 
> Nov 23 22:23:46 ubuntu-phablet NetworkManager[1774]: 
> [1543008226.9182] platform-linux: netlink: recvmsg: error message
> from
> kernel: Invalid argument (22) for request 1653
> Nov 23 22:23:46 ubuntu-phablet NetworkManager[1774]: 
> [1543008226.9188] platform-linux: do-add-ip6-address[21:
> 2a02:8388:8980:e700:9c4b:f32a:6c81:df77]: failure 22 (Invalid
> argument)
> 
> I found only very few informations about this. Any ides?
> 
> 
> BR
> 
> 
Hi,

please enable level=TRACE logging and show more context. See hints at
[1] for how to do that.

What is the version of NetworkManager, and which kernel?

https://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/contrib/fedora/rpm/NetworkManager.conf

It's probably not directly related to mobile, but IPv6 in general.


best,
Thomas





signature.asc
Description: This is a digitally signed message part
___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Unable to add IPv6 address?

2018-11-23 Thread Florian Leeber via networkmanager-list
Hello again,

this seems to be phone specific for some reason, but we dont know why.
We cannot add IPv6 addies on the mobile:

Nov 23 22:23:46 ubuntu-phablet NetworkManager[1774]: 
[1543008226.9182] platform-linux: netlink: recvmsg: error message from
kernel: Invalid argument (22) for request 1653
Nov 23 22:23:46 ubuntu-phablet NetworkManager[1774]: 
[1543008226.9188] platform-linux: do-add-ip6-address[21:
2a02:8388:8980:e700:9c4b:f32a:6c81:df77]: failure 22 (Invalid argument)

I found only very few informations about this. Any ides?


BR



___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: NetworkManager for Ubuntu Touch

2018-11-23 Thread Florian Leeber via networkmanager-list
Hello Lubomir,

great to get you feedback so quickly! And we are happy that you have
good news for us already in the first mail :)

Let me summarize this quickly here, and I will come back and be more
specific when I have more infos on your questions:

- We are still using unity8 as shell, and there is indicator-network
basically displaying that status of WiFi and radio network and allowing
to operate the network connections, enable flight mode etc. Its a new
development made specifically for unity8 if I remember right. And it
should be able to talk to D-Bus. Debian wants to use them in the
so-called Ayatana indicators package, too.

- Regarding builds: The real issue is the rather tight coupling between
the Ubuntu root fs and the Android container which is started at boot
time. So far we are not able to just start Ubuntu Touch without it. A
lot of scripts and magic wait for the successful bringup of the
container. Moreover, some things just dont build correctly for amd64,
but do for armhf. We are working form time to time to get it more
sanitized, for example you could install unity8 shell with the
indicators probably also on a normal PC already. Maybe thats enough?

- The captive portal detection I tried to configure manually for my
device, but since nothing is listening to that event, I cannot tell if
it works properly or not. I might be able to hook up tcpdump or so on
the device to see if he is querying on change of network. So if thats
already in for ages, I hope we can use it right away ;)

- What we currently see sometimes is a long switchover time between
radio and WiFi. Is it NM trying to hold on for the WiFi connection for a
longer time? What also can happen is that the DNS servers dont get
updated, and when you come from WiFi you have a reall long interval
without having DNS lookups.

FYI here is our packaging for NM:
https://github.com/ubports/network-manager-packaging/

I will talk with my guys how we can make a bit more Q with you guys,
have a ncie weekend until then!

BR Florian


Am 21.11.2018 um 19:18 schrieb Lubomir Rintel:
> Hello Florian,
>
> thanks for your message.
>
> We're dealing with exact same challenges on machines larger than phones
> too.
>
> For quite some time I think the Canonical folks have done a good job at
> upstreaming their changes. E.g. ofono support got in, which I figure
> was one of the larger patches.
>
> Perhaps there wouldn't be too much stuff left if NM gets rebased to
> something more recent (more on that below).
> There's basically four regular contributors to NetworkManager at the
> moment, all of us happy to improve its usefulness on phones, provided
> we understand what the deficiencies are.
>
> A device could help, but I think even more useful would be an x86
> compose of your distribution that could be run in a VM. Do you have
> such builds? I suppose that would help us understand what are the
> specifics of the phone setup (I guess you run a different desktop
> shell, have Android kernel beneath, ofono instead of ModemManager,
> etc.).
>
> We don't break things, including API/ABI and do regularly test our
> builds on Ubuntu 16.04. The version number in itself doesn't carry much
> meaning -- an update to 1.14.x at this point should be staightforward
> and safe.
>
> NetworkManager is doing captive portal detection for ages, though it
> recently got somewhat better. The notification should be done in the
> desktop shell.
>
> For the reference -- GNOME Shell deals with it and should provide a
> good example. I guess KDE does too. nm-applet does not.
>
> Don't hesitate to ask more, especially when we do something that
> doesn't make sense on a phone or miss something that would be useful.
> The more technical context you provide the better.
>
> I'm quite certain it's not only me who appreciates that you decided to
> keep the upstream project in the loop.
>
> Take care,
> Lubo
>
___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list