public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* wake-on-lan
@ 2006-01-08 17:45 Joseph Dunn
  2006-01-20  8:24 ` wake-on-lan Satoru Takeuchi
  0 siblings, 1 reply; 7+ messages in thread
From: Joseph Dunn @ 2006-01-08 17:45 UTC (permalink / raw)
  To: linux-acpi

I'm trying to get wake-on-lan working for my media box.  However, I'm
running into a problem.  When I halt the machine (shutdown -h) I cannot
wake it.  However, if the machine is unplugged, then plugged back in,
*then* I can wake it.  The lights on the ethernet card will only glow
when the machine is off (i.e. card can wake the machine) when I unplug
the power and plug it back in.  I did find that however software
suspend 2 shuts down the machine does leave it in a wakable state.

So, one option is to hibernate the machine instead of shutting down,
but thats not a great solution.  Also, I have a desktop machine that
has a similar problem.  The wake on alarm in the BIOS cannot wake the
machine if linux performed the last shutdown.  It looks to me like
linux leaves the machine in a deeper sleep state than even plugging it
in for the first time.

I tried to go into the code where the sleep state is hard coded and
mess with it. I edited poweroff.c and changed the two hardcoded lines
referring to S5 to S4.  No affect.  Just to make sure that I was really
calling that code during shutdown I changed it to S0, and the machine
remained on (in S0 state I believe).  By the way, I also tried S3 there
and found that I couldn't wake using the network card in any case.

The machines in question are running Fedora Core 4, but with my own
custom kernels.  The kernels are vanilla for the most part, but are
patched with software suspend and a couple drivers.  I'm sure this is
probably something simple, but it doesnt look like I'm going to trip
over the solution, so does anyone have any suggestions?

-Joe Dunn


^ permalink raw reply	[flat|nested] 7+ messages in thread
* RE: wake-on-lan
@ 2006-01-20  4:55 Brown, Len
  2006-01-20  5:16 ` wake-on-lan Karol Kozimor
  0 siblings, 1 reply; 7+ messages in thread
From: Brown, Len @ 2006-01-20  4:55 UTC (permalink / raw)
  To: Joseph Dunn, linux-acpi

>When I halt the machine (shutdown -h) I cannot
>wake it.  However, if the machine is unplugged, then plugged back in,
>*then* I can wake it. 

WOL can be done a couple of ways.

If it is implemented using ACPI GPE's, then
you need to find a string (unfortunately, they're arbitrary)
in /proc/acpi/wakeup that looks like your device and echo that
string into the file to toggle between enabled and disabled.

Only Power/Sleep/LID buttons are enabled for wakeup by default.

Note that this I/F is temporary -- the ability of
a device to wake the system should really be a property
of that device in the /sys tree.

cheers,
-Len

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-01-20 21:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-08 17:45 wake-on-lan Joseph Dunn
2006-01-20  8:24 ` wake-on-lan Satoru Takeuchi
  -- strict thread matches above, loose matches on Subject: below --
2006-01-20  4:55 wake-on-lan Brown, Len
2006-01-20  5:16 ` wake-on-lan Karol Kozimor
2006-01-20  6:36   ` wake-on-lan Adam Belay
2006-01-20  6:50     ` wake-on-lan Karol Kozimor
2006-01-20 21:56       ` wake-on-lan Adam Belay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox