linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Todd Poynor <tpoynor@mvista.com>
To: ncunningham@linuxmail.org
Cc: Greg KH <greg@kroah.com>,
	mochel@digitalimplant.org,
	linux-hotplug-devel@lists.sourceforge.net,
	linux-kernel@vger.kernel.org
Subject: Re: Hotplug events for system suspend/resume
Date: Wed, 12 May 2004 19:36:24 +0000	[thread overview]
Message-ID: <40A27CB8.1010507@mvista.com> (raw)
In-Reply-To: <200405121359.50899.ncunningham@linuxmail.org>

Nigel Cunningham wrote:

> You're thinking ACPI drivers initiating a suspend? They would do it through 
> acpid, wouldn't they? At least that's the glue I use to get my sleep button 
> to initiate a suspend. I would assume thermal events would/should work the 
> same.

Hi, my main interest is embedded platforms that may or (usually) do not 
implement ACPI.  Therefore, part of what I've been generally driving at 
is that there may be value to adding support for these sorts of 
kernel-to-userspace notifiers in the generic power layer.  As I 
understand it (and I might be behind the times here, please do correct 
me if I'm wrong), acpid reads ACPI-specific power event notifiers, such 
as button pressed, thermal limit exceeded, etc. from the kernel via 
/proc, and acpid executes scripts in /etc/acpi/ to handle the event. 
Some of the embedded developers I deal with have asked for similar 
notifiers in a non-ACPI context.  The system suspend/resume notifiers 
discussed in this thread could be thought of as a general form of "sleep 
button pressed" type event.  (And I now realize it may have been better 
to implement and pitch it as such.)

So, independently of the merits of any particular event notification, it 
may be worth discussing whether there's advantages to using the hotplug 
mechanism for userspace notification and script execution for power 
events, and hooked into the generic power subsystem.  The likely 
alternative is that acpid continues doing things its way and non-ACPI 
systems do something rather different (we already have acpid-like event 
notifiers via sysfs attributes and I'm trying to get rid of them).  Not 
that this ranks among the most pressing of issues facing Linux today, 
but since a generic power subsystem has been created, and since it takes 
some steps toward abstracting away various ACPI specifics, I think 
there's arguably some benefit to taking this particular step as well. 
An acpid-like interface (or even directly adapting acpid) for non-ACPI 
systems is another possibility.

I'd be happy to discuss this further if there's interest.  Thanks -- Todd


-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

  reply	other threads:[~2004-05-12 19:36 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20040511010015.GA21831@dhcp193.mvista.com>
2004-05-11 23:00 ` Hotplug events for system suspend/resume Greg KH
2004-05-12  0:39   ` Todd Poynor
2004-05-12  2:16     ` Nigel Cunningham
2004-05-12  2:44       ` Todd Poynor
2004-05-12  3:59         ` Nigel Cunningham
2004-05-12 19:36           ` Todd Poynor [this message]
2004-05-15  3:03             ` Pavel Machek
2004-05-12 15:08     ` Greg KH
2004-05-13 22:46       ` Tim Bird
2004-05-13 23:28         ` Greg KH
2004-05-15  2:59     ` Pavel Machek
2004-05-12 18:52   ` Grover, Andrew

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=40A27CB8.1010507@mvista.com \
    --to=tpoynor@mvista.com \
    --cc=greg@kroah.com \
    --cc=linux-hotplug-devel@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mochel@digitalimplant.org \
    --cc=ncunningham@linuxmail.org \
    /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;
as well as URLs for NNTP newsgroup(s).