[Sugar-devel] Wanting to know a bit of (NetworkManager) workflow upon resume-from-suspend

Ajay Garg ajay at activitycentral.com
Tue May 1 23:40:05 EDT 2012


Hi all.

I'll ask this straight ::

"""
Is there an already tested-cum-recommended method, that could disable
mesh-network, both during reboots and resume-from-suspend?
"""

Possible options (not tested by me) ::


a)
A driver,  encapsulating the patch at
http://lists.infradead.org/pipermail/libertas-dev/2007-June/000448.html
(as per http://dev.laptop.org/pub/firmware/libertas/RELEASE_NOTES)


Query : How can I ascertain if this patch is present on a particular XO-1?





b)
(For Reboot) ::
Add the bootstrap script 'echo 0 > "/sys/class/net/eth0/lbs_mesh"' in
'/etc/init.d/NetworkMaanager'.

(For Resume-Upon-Suspend) ::
Add the disable_mesh.sh script (at
http://download.sugarlabs.org/dextrose/testing/dx3/rpms/source/dextrose-platform-2-2.fc14.src.rpm)
in "/etc/powerd/postresume.d".


Query : While the (For Reboot) case is guaranteed to work stably every
single time, can the same be said about (For Resume-Upon-Suspend) ?




c) Any other unknown in-the-dark hack.



Regards,
Ajay



On Tue, May 1, 2012 at 9:36 PM, Peter Robinson <pbrobinson at gmail.com> wrote:

> On Tue, May 1, 2012 at 3:55 PM, Ajay Garg <ajay at activitycentral.com>
> wrote:
> > which actually brings me back to my original question ::
> >
> > """
> > Why is it so that putting the 'disable-mesh-script' in the 'start()'
> method
> > of '/etc/init.d/Networkmanager' works (always) for (re)boot; but never
> works
> > for resume-upon-suspend?
> > """
>
> Because on suspend/resume the NetworkManager service isn't
> started/restarted so the script in /etc/init.d isn't run where as on
> reboot it is. There's means though to run specific scripts on
> suspend/resume if that sort of thing is necessary.
>
> Peter
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.laptop.org/pipermail/devel/attachments/20120502/c49daf1e/attachment.html>


More information about the Devel mailing list