bandicoot;402529 Wrote: 
> Hi,
> 
> After reading syburgh's post in this thread I think I have finally
> almost got WOL from a S3 suspend working on my Ubuntu 8.10 machine. The
> missing piece for me was unloading the network adapter driver.
> 
> I have a Realtek 8139 network adapter (driver 8139too) so I edited my
> /etc/pm/config.d/00sleep_module to add:
> 
> SUSPEND_MODULES="mii 8139too"
> RESUME_MODULES="8139too"
> 
> This works! The computer comes out of suspend when I power on the
> squeezebox, but unfortunately at this point the network adapter seems
> to have lost all its configuration. It has no IP address anymore and
> the WOL is no longer set. I need to restart networking to get it
> working again.
> 
> So I think all I need is a script that runs as the computer wakes back
> up that sets WOL back on and puts back my adapter settings from
> /etc/network/interfaces (its just a static IP address).
> 
> I am not sure how to make this file and where it might go, can anyone
> assist?
> 
> Thanks.

You need to add a script to /etc/pm/hooks or /etc/pm/scripts.d that
runs the network init script for your distro when the system resumes
(probably something like "/etc/init.d/networking restart" for
Debian/Ubuntu, though I don't know for sure how they apply network
settings). pm-utils doesn't do this for you automatically because it's
only necessary for some network adapters (e.g. driver dependent).

There are some examples for you to look at in the pm-utils
documentation.


-- 
syburgh
------------------------------------------------------------------------
syburgh's Profile: http://forums.slimdevices.com/member.php?userid=14239
View this thread: http://forums.slimdevices.com/showthread.php?t=52108

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to