Hi,
On Wed, 2013-12-18 at 16:32 +0000, Jörg Hunsche wrote:
> I have an active Ethernet connection and then I connect to a wifi and
> in this state I shut down the system.
>
> When I restart the system the wifi-connection is re-established and
> the Ethernet connection does not get an IP-address. When I disconnect
> the wifi-connection the Ethernet connection gets an IP-address and is
> running. When I again connect the wifi-connection, the wifi-connection
> is set up and the Ethernet connection is still available.
Over reboot, ConnMan remembers only which technologies are
enabled/disabled, not which of the technologies had connected services.
What happens after reboot is that WiFi is detected first, gets
connected, ethernet is discovered next, but does not get connected since
there already is a connection through WiFi. I see the same events
constantly on my machine, WiFi is noticed way faster than ethernet on
reboot.
If you always want to prefer ethernet over WiFi or everything else, you
can set PreferredTechnologies=ethernet in /etc/connman/main.conf.
PreferredTechnologies=ethernet,wifi will prefer WiFi after ethernet, but
before the rest (bluetooth, cellular). Do notice that even though
ethernet is now preferred over any other technology, it does not take
the connection from a WiFi in state online (i.e. connectivity to
external Internet checked) if ethernet ends up only in state ready (IP
address acquired). I'm not sure if this was what you were after, though.
> "The Ethernet devices are always sorted first since they are
> physically built into the system and will be always present. In cases
> they are switched off manually they will not be showing in this
> list. ... For Ethernet the plugging of a cable makes it a favorite."
This text is also correct. The "problem" here is the order of detection,
a WiFi and autoconnect to a known network is known to happen faster than
reporting of an ethernet cable connected. So at the time when the scan
is complete and autoconnect is run, ethernet networks are not yet
detected. They are on the next run, but now WiFi has already been
connected, so no connection happens unless PreferredTechnologies is used
to tweak the ordering.
Cheers,
Patrik
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman