hibernate vs. WoL



Hi,

According to pm.h one should enable wakup events in the suspend() and
poweroff() callbacks.

However, poweroff is not called for the 'shutdown' or 'restart'
hibernate methods. This seems problematic, since then with proper
drivers platforms that have no 'platform' suspend method then cannot WoL
or anything like that (well, for 'restart' that isn't very relevant).

The only way to hack around that seems to be to implement the
dev->driver->shutdown method, but I don't think that is intended? On the
other hand calling both ->shutdown and ->poweroff seems problematic.

Right now what I'm trying to do is preserve a wireless connection across
hibernate. This is possible by telling the AP that we're asleep, in
which case it will buffer frames for us (it may eventually kick us off
anyway, but that's ok, without telling it we're asleep I don't even
survive a 'reboot' method cycle).

Also, shouldn't it be possible to WoL while your machine is shut down?
How do you program that?

johannes

Attachment: signature.asc
Description: This is a digitally signed message part



Relevant Pages

  • Re: Thread ending
    ... Can you tell us therefore what is the reason for you to restart it. ... So I don't want to start another thread that computes the new primes while ... parameters but everywhere I read says that abort is not the way to go yet ... But the suspend() is depreciated in 2.0;/ Seems the only thing I'm ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Restarting a CWinThread when it is running halfway.
    ... the triggers comes from an interrupt. ... to suspend immediately. ... restart, so it's a little hard to suggest a very specific approach. ... I have a trigger event via interrupt. ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Remove turn off computer from logonscreen?
    ... In the welcome screen, in the left hand bottom corner, click on "turn off ... computer" and you will get the options to turn off, suspend or restart your ... > can anyone help?...thanks rick ...
    (microsoft.public.windowsxp.customize)
  • Re: bluettoth HCI error - PXA255 PB4.2 and MS BTStack
    ... Try to force the stack to go down at power off and inform it to come up at ... power on because serial interface does not support PnP. ... instance for suspend resume). ... poweroff and poweron the module on the fly. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: [Bugme-new] [Bug 11717] New: Pressing suspend button suspends, but does not wakes up
    ... I just discovered that the "suspend button" is overloaded: ... suspend to RAM. ... I just reinstalled Windows Vista and it suspends and ... poweroff button, but this behaviour of powering off the machine manifests ...
    (Linux-Kernel)