[Dextrose] re active the network mesh when suspends the system

Paul Fox pgf at laptop.org
Fri Dec 17 15:38:39 EST 2010


bernie wrote:
 > On Thu, 2010-12-16 at 10:57 -0200, Esteban Arias wrote:
 > > If I execute "pm-suspend" the system runs the script correctly, but
 > > If I close and open the laptop xo, the system don't suspends or at
 > > least not run the scripts /etc/pm/sleep.d/
 > 
 > Ah, that's interesting.
 > 
 > Perhaps powerd does not rely on the pm-* scripts? Added Paul Fox on cc,
 > he would know.

no, powerd does not use the pm-* scripts.

the card is being powered down on suspend, and hence rediscovered on
resume.  the mesh will need to be disabled again on every resume.  but
since the discovery takes some time, it needs to happen after powerd's
resume scripts have already run.

paul

 > > 
 > > 2010/12/15 Bernie Innocenti <bernie at codewiz.org>
 > >         On Mon, 2010-12-06 at 14:12 -0200, Esteban Arias wrote:
 > >         > Hi,
 > >         >
 > >         > I have the mesh inactive.
 > >         >
 > >         > 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?
 > >         
 > >         
 > >         Nope, but we may fix it by dropping a script
 > >         in /etc/pm/sleep.d/.
 > >         See /usr/lib64/pm-utils/sleep.d/ for some examples.
 > >         
 > >         If you end up solving this problem, could you please post the
 > >         script for
 > >         inclusion in upstream Dextrose? Thanks!
 > >         
 > >         --
 > >           // Bernie Innocenti - http://codewiz.org/
 > >          \X/  Sugar Labs       - http://sugarlabs.org/
 > >         
 > > 
 > > 
 > > 
 > > -- 
 > >     Esteban Arias
 > >     Investigación y Desarrollo - Plan Ceibal
 > >     Avda. Italia 6201 - Edificio Los Ceibos
 > >     Montevideo - Uruguay.
 > >     Tel.: 2601.57.73 Interno 2228
 > >     E-mail : earias at plan.ceibal.edu.uy
 > > 
 > > _______________________________________________
 > > Dextrose mailing list
 > > Dextrose at lists.sugarlabs.org
 > > http://lists.sugarlabs.org/listinfo/dextrose
 > 
 > -- 
 >    // Bernie Innocenti - http://codewiz.org/
 >  \X/  Sugar Labs       - http://sugarlabs.org/

=---------------------
 paul fox, pgf at laptop.org


More information about the Dextrose mailing list