Re: re active the network mesh when suspends the system

2010-12-20 Thread Martin Abente
Ok then, i think that patch you sent to the list is basically the same idea, being able to switch it off (in a elegant way). Is there someone I can bug to make sure that the patch you sent gets included? :) On Sat, Dec 18, 2010 at 2:43 AM, Paul Fox p...@laptop.org wrote: martin wrote: On

Re: re active the network mesh when suspends the system

2010-12-20 Thread Paul Fox
martin wrote: Ok then, i think that patch you sent to the list is basically the same idea, being able to switch it off (in a elegant way). Is there someone I can bug to make sure that the patch you sent gets included? :) first someone needs to agree that it might do what i say it does,

Re: re active the network mesh when suspends the system

2010-12-17 Thread Martin Abente
I tried this but did not work either ;/ Apparently the mesh re-activation happens after this script is being run. On Thu, Dec 16, 2010 at 2:39 PM, Paul Fox p...@laptop.org wrote: martin wrote: On Wed, Dec 15, 2010 at 11:52 AM, Esteban Arias ear...@plan.ceibal.edu.uy wrote: I have the

Re: re active the network mesh when suspends the system

2010-12-17 Thread Martin Abente
I have done a few test in 3 different builds, the tests are: A. Killing the mesh with echo 0 /sys/class/net/eth0/lbs_mesh, then suspend and then check if the mesh is re-activated after resume. B. While the mesh is active, add a script in postresume.d with the same line to kill the mesh (granting

Re: re active the network mesh when suspends the system

2010-12-17 Thread Martin Langhoff
On Fri, Dec 17, 2010 at 12:48 PM, Martin Abente martin.abente.lah...@gmail.com wrote: I have done a few test in 3 different builds, the tests are: In your tests, you are testing with powerd configured with config_MESH_DURING_SUSPEND=*yes* ? This setting _is for something else_. It keeps the

Re: re active the network mesh when suspends the system

2010-12-17 Thread Martin Abente
No, i am not, all those builds comes with config_MESH_DURING_SUSPEND=no by default. On Fri, Dec 17, 2010 at 3:02 PM, Martin Langhoff martin.langh...@gmail.comwrote: On Fri, Dec 17, 2010 at 12:48 PM, Martin Abente martin.abente.lah...@gmail.com wrote: I have done a few test in 3 different

Re: re active the network mesh when suspends the system

2010-12-17 Thread Martin Langhoff
On Fri, Dec 17, 2010 at 1:04 PM, Martin Abente martin.abente.lah...@gmail.com wrote: No, i am not, all those builds comes with config_MESH_DURING_SUSPEND=no by default. From what I understood from your earlier emails, you do not want to use mesh, and you do not want to keep the libertas device

Re: re active the network mesh when suspends the system

2010-12-17 Thread Esteban Arias
correct! 2010/12/17 Martin Langhoff martin.langh...@gmail.com On Fri, Dec 17, 2010 at 1:04 PM, Martin Abente martin.abente.lah...@gmail.com wrote: No, i am not, all those builds comes with config_MESH_DURING_SUSPEND=no by default. From what I understood from your earlier emails, you do

Re: re active the network mesh when suspends the system

2010-12-17 Thread Martin Abente
On Fri, Dec 17, 2010 at 3:14 PM, Martin Langhoff martin.langh...@gmail.comwrote: On Fri, Dec 17, 2010 at 1:04 PM, Martin Abente martin.abente.lah...@gmail.com wrote: No, i am not, all those builds comes with config_MESH_DURING_SUSPEND=no by default. From what I understood from your

Re: re active the network mesh when suspends the system

2010-12-17 Thread Martin Langhoff
On Fri, Dec 17, 2010 at 1:36 PM, Martin Langhoff martin.langh...@gmail.com wrote: To be clear, I think this is missing functionality in powerd. Martin - maybe you could add a config_KEEP_MESH_DISABLED option and use it in set_wlan_power() which is used only on XO-1 See

Re: re active the network mesh when suspends the system

2010-12-17 Thread Martin Abente
On Fri, Dec 17, 2010 at 3:36 PM, Martin Langhoff martin.langh...@gmail.comwrote: On Fri, Dec 17, 2010 at 1:22 PM, Martin Abente martin.abente.lah...@gmail.com wrote: From what I understood from your earlier emails, you do not want to use mesh, and you do not want to keep the libertas device

Re: re active the network mesh when suspends the system

2010-12-17 Thread Martin Langhoff
On Fri, Dec 17, 2010 at 1:45 PM, Martin Abente martin.abente.lah...@gmail.com wrote: I still don't understand why you keep mentioning this. I am not using or modifying that ;) Got it confused with Esteban's email then - apologies. ... It seems like it, but there must be a reason why it works

Re: re active the network mesh when suspends the system

2010-12-17 Thread Paul Fox
martin wrote: I have done a few test in 3 different builds, the tests are: A. Killing the mesh with echo 0 /sys/class/net/eth0/lbs_mesh, then suspend and then check if the mesh is re-activated after resume. B. While the mesh is active, add a script in postresume.d with the same line

Re: re active the network mesh when suspends the system

2010-12-17 Thread Martin Langhoff
On Fri, Dec 17, 2010 at 6:15 PM, Martin Abente martin.abente.lah...@gmail.com wrote: I wrote this script that is a little bit better than just waiting N seconds, and it seems to work fine: ... great! But I like Martin's idea better, just not sure how to make it work atm. embed exactly that

Re: re active the network mesh when suspends the system

2010-12-17 Thread Paul Fox
martin wrote: On Fri, Dec 17, 2010 at 6:15 PM, Martin Abente martin.abente.lah...@gmail.com wrote: I wrote this script that is a little bit better than just waiting N seconds, and it seems to work fine: ... great! But I like Martin's idea better, just not sure how to

Re: re active the network mesh when suspends the system

2010-12-16 Thread Martin Langhoff
On Wed, Dec 15, 2010 at 11:52 AM, Esteban Arias ear...@plan.ceibal.edu.uy wrote: I have the mesh inactive (dextrose version xo-1.0) In the file: /etc/rc.local I have: echo 0 /sys/class/net/eth0/lbs_mesh but, when suspends the system, (close and open the laptop xo), reactive the mesh I

Re: re active the network mesh when suspends the system

2010-12-16 Thread Martin Abente
Me and esteban just found out that, if you disable the mesh using *echo 0 /sys/class/net/eth0/lbs_mesh NM crashes.. Martin, do you know any other way to disable it? * On Thu, Dec 16, 2010 at 2:27 PM, Martin Langhoff martin.langh...@gmail.comwrote: On Wed, Dec 15, 2010 at 11:52 AM, Esteban

Re: re active the network mesh when suspends the system

2010-12-16 Thread Martin Langhoff
On Thu, Dec 16, 2010 at 12:31 PM, Martin Abente martin.abente.lah...@gmail.com wrote: Me and esteban just found out that, if you disable the mesh using echo 0 /sys/class/net/eth0/lbs_mesh NM crashes.. Martin, do you know any other way to disable it? None that I know. Just do it earlier --

Re: re active the network mesh when suspends the system

2010-12-16 Thread Gonzalo Odiard
rfkill block wifi ? See http://git.sugarlabs.org/sugar/mainline/blobs/sucrose-0.84/extensions/cpsection/network/model.py Gonzalo On Thu, Dec 16, 2010 at 2:31 PM, Martin Abente martin.abente.lah...@gmail.com wrote: Me and esteban just found out that, if you disable the mesh using *echo 0

Re: re active the network mesh when suspends the system

2010-12-16 Thread Martin Langhoff
On Thu, Dec 16, 2010 at 12:38 PM, Gonzalo Odiard gonz...@laptop.org wrote: rfkill block wifi ? He *wants* the wlan, but to act as an 802.11b/g and not 802.11s. So they switch off the mesh ('s') functionality during boot before NM sees it. Now in suspend/resume, the wlan gets restarted and wham!

Re: re active the network mesh when suspends the system

2010-12-16 Thread Paul Fox
martin wrote: On Wed, Dec 15, 2010 at 11:52 AM, Esteban Arias ear...@plan.ceibal.edu.uy wrote: I have the mesh inactive (dextrose version xo-1.0) In the file: /etc/rc.local I have: echo 0 /sys/class/net/eth0/lbs_mesh but, when suspends the system, (close and open the laptop

Re: re active the network mesh when suspends the system

2010-12-16 Thread Esteban Arias
if I change configuration /etc/powerd/powerd.conf runs ok. config_MESH_DURING_SUSPEND=*yes* Regards 2010/12/16 Paul Fox p...@laptop.org martin wrote: On Wed, Dec 15, 2010 at 11:52 AM, Esteban Arias ear...@plan.ceibal.edu.uy wrote: I have the mesh inactive (dextrose version xo-1.0)

Re: re active the network mesh when suspends the system

2010-12-16 Thread Paul Fox
esteban wrote: if I change configuration /etc/powerd/powerd.conf runs ok. config_MESH_DURING_SUSPEND=*yes* is this on XO-1? if not, then i don't know how that would change anything. if so, then you should know that doing this probably causes the wlan to stay powered (and it wakes almost

Fwd: re active the network mesh when suspends the system

2010-12-15 Thread Esteban Arias
Hi, I have the mesh inactive (dextrose version xo-1.0) * * *In the file: /etc/rc.local I have:* *echo 0 /sys/class/net/eth0/lbs_mesh* but, when suspends the system, (close and open the laptop xo), reactive the mesh any idea? -- Esteban Arias Investigación y Desarrollo - Plan