Re: [Sugar-devel] Depend on NetworkManager 0.9.9 for Sugar 0.102

2014-02-17 Thread Daniel Narvaez
On 17 February 2014 17:54, Frederick Grose  wrote:

> I feel naive about the wireless stack and NetworkManager behavior
> (which changed so recently).
>
> For example,
> How does the behavior change with rfkill?
>

This was easy enough to test, the device is still listed with state
unavailable.

How does it change with a removable wireless adapter like a USB or
> PCMCIA device?
>

I don't have hardware to test this at the moment, but I would expect the
device to be listed when the adapter is plugged and disappear when it's
unplugged.

In general, I looked into the GNOME control center code (for the panel you
see when clicking Wi-Fi Settings). The "Wi-Fi" item is added and removed
from the list on the left whenever a device is added or removed on the
NetworkManager API. So I think we are safe going with that logic too.
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Depend on NetworkManager 0.9.9 for Sugar 0.102

2014-02-17 Thread Frederick Grose
On Mon, Feb 17, 2014 at 10:00 AM, Daniel Narvaez  wrote:
> It seems like that should be good enough Frederick?
>
>
> On Monday, 17 February 2014, Gonzalo Odiard  wrote:
>>
>> We can't move to F20 in XOs, then from our point of view,
>> would be good make it compatible with NM 0.9.8
>>
>> To identify version, in my system I can do:
>>
>> from gi.repository import NMClient
>> client = NMClient.Client()
>> client.get_version()
>>
>> '0.9.8.1'
>>
>> Is this good enough?
>>
>> Gonzalo
>>
>>
>> On Mon, Feb 17, 2014 at 11:14 AM, Daniel Narvaez 
>> wrote:
>>>
>>> Here is the patch btw
>>>
>>>
>>> https://github.com/FGrose/sugar/commit/102dd5f2147a4ddb0ce516f2d1c5907defbbba93

I deleted this fork for reconsideration.  The once-proposed patch is now here:
https://github.com/sugarlabs/sugar/commit/102dd5f2147a4ddb0ce516f2d1c5907defbbba93

>>>
>>>
>>> On 17 February 2014 15:13, Daniel Narvaez  wrote:

 Hi,

 Frederick Grose posted a pull request which hides the wireless control
 panel bits if no wireless device is present. To work properly that requires
 NetworkManager 0.9.9 which is in F20.

 I suppose this would mostly affect OLPC. I don't know if there are plans
 to move to F20 with 0.102. I tend to think we should do this only if we are
 not going to cause XO issues.

 An option would be to enable the new "feature" only on recent enough
 NetworkManager but I'm not sure there is a good way to do that.

 Opinions?

 --
 Daniel Narvaez
>>>
>>>
>>>
>>>
>>> --
>>> Daniel Narvaez
>>>
>>> ___
>>> Sugar-devel mailing list
>>> Sugar-devel@lists.sugarlabs.org
>>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>>
>>
>>
>>
>> --
>> Gonzalo Odiard
>>
>> SugarLabs - Learning Software for children
>
>
>
> --
> Daniel Narvaez
>

I feel naive about the wireless stack and NetworkManager behavior
(which changed so recently).

For example,
How does the behavior change with rfkill?
How does it change with a removable wireless adapter like a USB or
PCMCIA device?

I had proposed looking for a cfg80211 holders in
/sys/module/cfg80211/holders/ in an earlier patch,
https://github.com/sugarlabs/sugar/commit/f58fec25809649fa06b1a57f1fa65dd606c676a0

This worked for an XO-1, but some systems may use nl80211 instead or
have drivers in ROM (see
(http://www.haifux.org/lectures/206/wirelessLec.pdf).

It would be good to have some guidance from the community of wireless experts.

  --Fred
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Depend on NetworkManager 0.9.9 for Sugar 0.102

2014-02-17 Thread Daniel Narvaez
It seems like that should be good enough Frederick?

On Monday, 17 February 2014, Gonzalo Odiard  wrote:

> We can't move to F20 in XOs, then from our point of view,
> would be good make it compatible with NM 0.9.8
>
> To identify version, in my system I can do:
>
> from gi.repository import NMClient
> client = NMClient.Client()
> client.get_version()
>
> '0.9.8.1'
>
> Is this good enough?
>
> Gonzalo
>
>
> On Mon, Feb 17, 2014 at 11:14 AM, Daniel Narvaez 
> 
> > wrote:
>
>> Here is the patch btw
>>
>>
>> https://github.com/FGrose/sugar/commit/102dd5f2147a4ddb0ce516f2d1c5907defbbba93
>>
>>
>> On 17 February 2014 15:13, Daniel Narvaez 
>> 
>> > wrote:
>>
>>> Hi,
>>>
>>> Frederick Grose posted a pull request which hides the wireless control
>>> panel bits if no wireless device is present. To work properly that requires
>>> NetworkManager 0.9.9 which is in F20.
>>>
>>> I suppose this would mostly affect OLPC. I don't know if there are plans
>>> to move to F20 with 0.102. I tend to think we should do this only if we are
>>> not going to cause XO issues.
>>>
>>> An option would be to enable the new "feature" only on recent enough
>>> NetworkManager but I'm not sure there is a good way to do that.
>>>
>>> Opinions?
>>>
>>> --
>>> Daniel Narvaez
>>>
>>
>>
>>
>> --
>> Daniel Narvaez
>>
>> ___
>> Sugar-devel mailing list
>> Sugar-devel@lists.sugarlabs.org
>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>
>>
>
>
> --
> Gonzalo Odiard
>
> SugarLabs - Learning Software for children
>


-- 
Daniel Narvaez
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Depend on NetworkManager 0.9.9 for Sugar 0.102

2014-02-17 Thread Gonzalo Odiard
We can't move to F20 in XOs, then from our point of view,
would be good make it compatible with NM 0.9.8

To identify version, in my system I can do:

from gi.repository import NMClient
client = NMClient.Client()
client.get_version()

'0.9.8.1'

Is this good enough?

Gonzalo


On Mon, Feb 17, 2014 at 11:14 AM, Daniel Narvaez wrote:

> Here is the patch btw
>
>
> https://github.com/FGrose/sugar/commit/102dd5f2147a4ddb0ce516f2d1c5907defbbba93
>
>
> On 17 February 2014 15:13, Daniel Narvaez  wrote:
>
>> Hi,
>>
>> Frederick Grose posted a pull request which hides the wireless control
>> panel bits if no wireless device is present. To work properly that requires
>> NetworkManager 0.9.9 which is in F20.
>>
>> I suppose this would mostly affect OLPC. I don't know if there are plans
>> to move to F20 with 0.102. I tend to think we should do this only if we are
>> not going to cause XO issues.
>>
>> An option would be to enable the new "feature" only on recent enough
>> NetworkManager but I'm not sure there is a good way to do that.
>>
>> Opinions?
>>
>> --
>> Daniel Narvaez
>>
>
>
>
> --
> Daniel Narvaez
>
> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
>


-- 
Gonzalo Odiard

SugarLabs - Learning Software for children
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Depend on NetworkManager 0.9.9 for Sugar 0.102

2014-02-17 Thread Daniel Narvaez
Here is the patch btw

https://github.com/FGrose/sugar/commit/102dd5f2147a4ddb0ce516f2d1c5907defbbba93


On 17 February 2014 15:13, Daniel Narvaez  wrote:

> Hi,
>
> Frederick Grose posted a pull request which hides the wireless control
> panel bits if no wireless device is present. To work properly that requires
> NetworkManager 0.9.9 which is in F20.
>
> I suppose this would mostly affect OLPC. I don't know if there are plans
> to move to F20 with 0.102. I tend to think we should do this only if we are
> not going to cause XO issues.
>
> An option would be to enable the new "feature" only on recent enough
> NetworkManager but I'm not sure there is a good way to do that.
>
> Opinions?
>
> --
> Daniel Narvaez
>



-- 
Daniel Narvaez
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] Depend on NetworkManager 0.9.9 for Sugar 0.102

2014-02-17 Thread Daniel Narvaez
Hi,

Frederick Grose posted a pull request which hides the wireless control
panel bits if no wireless device is present. To work properly that requires
NetworkManager 0.9.9 which is in F20.

I suppose this would mostly affect OLPC. I don't know if there are plans to
move to F20 with 0.102. I tend to think we should do this only if we are
not going to cause XO issues.

An option would be to enable the new "feature" only on recent enough
NetworkManager but I'm not sure there is a good way to do that.

Opinions?

-- 
Daniel Narvaez
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel