From: Johannes Berg <johannes@sipsolutions.net>
To: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: linux-kernel <linux-kernel@vger.kernel.org>, Pavel Machek <pavel@ucw.cz>
Subject: hibernate vs. WoL
Date: Fri, 15 May 2009 16:02:40 +0200 [thread overview]
Message-ID: <1242396160.5799.92.camel@johannes.local> (raw)
[-- Attachment #1: Type: text/plain, Size: 1022 bytes --]
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 #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
next reply other threads:[~2009-05-15 14:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-15 14:02 Johannes Berg [this message]
2009-05-15 15:15 ` Rafael J. Wysocki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1242396160.5799.92.camel@johannes.local \
--to=johannes@sipsolutions.net \
--cc=linux-kernel@vger.kernel.org \
--cc=pavel@ucw.cz \
--cc=rjw@sisk.pl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®