[Sugar-devel] #2295 UNSP: Sugar 0.88 [Dextrose] not reporting all favourite connections to NetworkManager at startup
Tomeu Vizoso
tomeu at sugarlabs.org
Thu Sep 9 04:26:40 EDT 2010
On Thu, Sep 9, 2010 at 02:33, James Cameron <quozl at laptop.org> wrote:
> On Wed, Sep 08, 2010 at 06:53:24PM +0200, Tomeu Vizoso wrote:
>> You mentioned that NM is only considering one connection, but if you
>> can check that Sugar returns alls of them in ListConnections, why is
>> NM only taking one of them?
>
> I agree. I don't see evidence on Sugar side that only one connection is
> being requested.
>
> On Sugar 0.84 traced NewConnection, ListConnections and GetSettings
> using logging, and the log shows:
If anybody wants to reproduce James' tests, I would recommend
redirecting dbus-monitor to a file and filtering afterwards the
unwanted events.
And you can make diagrams out of it if you want:
http://willthompson.co.uk/bustle/
http://alban.apinc.org/blog/2008/03/08/99-how-to-make-a-diagram-from-dbus-monitor-logs/
Regards,
Tomeu
> 1283991592.492549 ERROR root: NewConnection '/org/freedesktop/NetworkManagerSettings/0'
> 1283991592.499109 ERROR root: NewConnection '/org/freedesktop/NetworkManagerSettings/1'
> 1283991592.569510 ERROR root: ListConnections [<jarabe.model.network.NMSettingsConnection at /org/freedesktop/NetworkManagerSettings/1 at 0x99f352c>, <jarabe.model.network.NMSettingsConnection at /org/freedesktop/NetworkManagerSettings/0 at 0x99f346c>]
> 1283991592.574368 ERROR root: GetSettings '/org/freedesktop/NetworkManagerSettings/0'
> 1283991592.597896 ERROR root: GetSettings '/org/freedesktop/NetworkManagerSettings/1'
> 1283991592.615200 ERROR root: GetSettings '/org/freedesktop/NetworkManagerSettings/1'
> 1283991592.620522 ERROR root: GetSettings '/org/freedesktop/NetworkManagerSettings/0'
>
> The above was on build os852, with only one connections.cfg entry, with
> no mesh or ad-hoc support enabled. There is only one access point
> powered on, and I'm 10km from the next nearest.
>
> I don't understand why there are two NewConnection signals. I think the
> extra NewConnection signal might have to do with the GSM support. If I
> discard network history, so that there is no connection for wireless,
> what the trace shows is:
>
> 1283991817.029766 ERROR root: NewConnection '/org/freedesktop/NetworkManagerSettings/0'
> 1283991817.101088 ERROR root: ListConnections [<jarabe.model.network.NMSettingsConnection at
> /org/freedesktop/NetworkManagerSettings/0 at 0x88743ec>]
> 1283991817.104933 ERROR root: GetSettings '/org/freedesktop/NetworkManagerSettings/0'
> 1283991817.122063 ERROR root: GetSettings '/org/freedesktop/NetworkManagerSettings/0'
>
> Still, it is odd that NetworkManager calls GetSettings method twice, and
> NetworkManager calls ListConnections only once *after* Sugar has
> provided the two NewConnection signals.
>
> --
> James Cameron
> http://quozl.linux.org.au/
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
More information about the Sugar-devel
mailing list