re active the network mesh when suspends the system

Paul Fox pgf at laptop.org
Thu Dec 16 14:05:03 EST 2010


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 1W!) when the lid is
closed or you've used the power button to put the laptop to sleep.  a
resume script would be a better solution, if it works.

paul

 > 
 > Regards
 > 
 > 
 > 2010/12/16 Paul Fox <pgf at laptop.org>
 > 
 > > martin wrote:
 > >  > On Wed, Dec 15, 2010 at 11:52 AM, Esteban Arias
 > >  > <earias at 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 think recent versions of powerd can run scripts on resume --
 > >  >
 > >
 > > actually post-resume scripts have been available for some time.
 > > it was pre-suspend scripts that were added recently.
 > >
 > > look for "Post-resume scripts" in /usr/sbin/powerd for documentation.
 > >
 > > Note:  these scripts run when there's a high likelihood that
 > > the system will, or did, suspend.  but the suspend may not actually
 > > have happened.  in the case being discussed ("echo 0 > lbs_mesh"), it
 > > sounds like that's probably okay, but you wouldn't want to use these
 > > script hooks to implement a suspend counter, or something that breaks
 > > the system if the suspend didn't actually take place.
 > >
 > > paul
 > > =---------------------
 > >  paul fox, pgf at laptop.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

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



More information about the Devel mailing list