From: Stephen L Johnson <sjohnson-WpdXj7kV/NVg9hUCZPvPmw@public.gmane.org>
To: Patrick Mochel <mochel-3NddpPZAyC0@public.gmane.org>
Cc: Pavel Machek <pavel-AlSwsSmVLrQ@public.gmane.org>,
"Grover,
Andrew" <andrew.grover-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
"'P. Christeas'" <p_christ-U04EIuiosng@public.gmane.org>,
acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: Runlevel for Sleep?
Date: 07 Sep 2002 00:02:13 -0500 [thread overview]
Message-ID: <1031374944.1530.44.camel@rodan.monsters.org> (raw)
In-Reply-To: <Pine.LNX.4.44.0209061411390.1021-100000-yZQdDDOm3n9ZQn2sFP3R7eTW4wlIGRCZ@public.gmane.org>
On Fri, 2002-09-06 at 16:40, Patrick Mochel wrote:
>
> On Fri, 6 Sep 2002, Pavel Machek wrote:
>
> > Hi!
> >
> > > Right now I am leaning towards no. We don't have a runlevel for APM's
> > > suspend, why would we for ACPI sleep?
> >
> > I believe we should have it for APM, too.
> >
> > umounting nfs seems like good idea, and no ammount of drivers will fix that.
> >
> > > I think we'll know better once we have working device power management if a
> > > new runlevel is needed or not.
> >
> > I believe 3 of them are needed - S1, S3 and S4.
>
> I agree that we need to do some amount of user-level work before we go to
> sleep, but I'm not sure that a runlevel is the proper way to implement it.
>
> Unless you implemented a new runlevel for every possible sleep state for
> every possible platform suspend mechanism, how would pass what suspend
> state you wanted to enter?
>
> You don't really want to have a different one for S1, S3, and S4 because
> they are ACPI specific, both in terms of their names and what they mean.
> I don't think you could create a clean, sensible solution like that, that
> worked for all platforms...
>
> You could have one runlevel, and pass the state we're entering somehow.
> But, we would need to get that from init(8) to reboot(2) [1]. That way we
> could use standard rc scripts for doing all the dirty little things we
> need to before we sleep.
>
Hi all. I'm new to the list.
I've been involved with the Linux on PDAs/handheld computers over at
http://www.handhelds.org/. They have to deal with the exact same issues
suspend/resumes issues with drivers and user-space issues. Although they
major concern is just with suspending in memory.
Over the past several versions of Familiar (a linux distrubution for
handhelds) a method for dealing with user space suspend and resume
issues have been developer. It is working quite well.
The kernel calls a user space program called pmhelper with a "suspend"
or "resume" parameter. On a suspend, pmhelper is called before the
kernel suspends the drivers. And on a resume it's called after the
kernel resumes the drivers.
The pmhelper program on familiar calls a series of scripts in
/etc/suspend-scripts/ or /etc/resume-scripts/ (depending on the pending
state). The scripts are run in a SysV boot-script way. The scripts are
named nnScriptName where nn are numbers.
I'm sure that this pmhelper/scripts method could easily be adapted for
ACPI/APM usage. Just my .02 cent.
--
Stephe L Johnson <sjohnson-WpdXj7kV/NVg9hUCZPvPmw@public.gmane.org>
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
next prev parent reply other threads:[~2002-09-07 5:02 UTC|newest]
Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <andrew.grover@intel.com>
[not found] ` <andrew.grover-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
[not found] ` <EDC461A30AC4D511ADE10002A5072CAD0236DE0D-OU+JdkIUtvd9zuciVAfUoVDQ4js95KgL@public.gmane.org>
2002-09-04 0:57 ` Runlevel for Sleep? Lyle Seaman
2002-09-04 10:50 ` P. Christeas
[not found] ` <200209041055.g84AsFW05361-a1J+ToZc0kR3t0M9ZKkFCQ@public.gmane.org>
2002-09-04 14:14 ` Charl P. Botha
2002-09-04 14:35 ` Robert Wo"rle
2002-09-06 12:21 ` Pavel Machek
[not found] ` <20020906122153.F39-muQmgwBScQHrBKCeMvbIDA@public.gmane.org>
2002-09-06 21:40 ` Patrick Mochel
[not found] ` <Pine.LNX.4.44.0209061411390.1021-100000-yZQdDDOm3n9ZQn2sFP3R7eTW4wlIGRCZ@public.gmane.org>
2002-09-06 22:29 ` Pavel Machek
[not found] ` <20020906222930.GE8827-jyMamyUUXNJG4ohzP4jBZS1Fcj925eT/@public.gmane.org>
2002-09-06 23:18 ` P. Christeas
2002-09-07 5:02 ` Stephen L Johnson [this message]
[not found] ` <1031374944.1530.44.camel-EWEM0Crkbjs/2vX+WiJxEB2eb7JE58TQ@public.gmane.org>
2002-09-07 19:51 ` Patrick Mochel
[not found] ` <Pine.LNX.4.44.0209071232170.1021-100000-yZQdDDOm3n9ZQn2sFP3R7eTW4wlIGRCZ@public.gmane.org>
2002-09-08 11:23 ` P. Christeas
2002-09-09 8:46 ` Diego Zuccato
[not found] ` <3D7C5FDF.4FB4E759-gmoNqwowlqBr8A+qpt3pXFzrSV/HdtiB@public.gmane.org>
2002-09-09 8:50 ` P. Christeas
2002-09-09 23:52 ` Diego Zuccato
2002-09-13 17:13 ` Pavel Machek
2002-09-14 7:56 ` Andreas Lohrum
[not found] ` <20020913171338.GC7096-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2002-09-14 10:23 ` P. Christeas
[not found] ` <200209141237.g8ECb2d03519-a1J+ToZc0kR3t0M9ZKkFCQ@public.gmane.org>
2002-09-14 15:09 ` Pavel Machek
[not found] ` <200209081126.g88BQjn05186-a1J+ToZc0kR3t0M9ZKkFCQ@public.gmane.org>
2002-09-13 17:08 ` Pavel Machek
2002-09-07 17:32 ` Lyle Seaman
[not found] <pavel@suse.cz>
[not found] ` <20020917155146.F39-muQmgwBScQHrBKCeMvbIDA@public.gmane.org>
2002-09-18 12:24 ` 2.5.34? Brad Parker
[not found] ` <200209181224.g8ICONr31147-paYRYfI9b/YMuHHiPFXXZ1fOaUvyCJUZ@public.gmane.org>
2002-09-18 12:53 ` 2.5.34? Pavel Machek
[not found] ` <20040624195304.GE698-u08AdweFZfgxtPtxi4kahqVXKuFTiq87@public.gmane.org>
2004-06-29 11:50 ` swsusp and ac status Daniele Boffi
[not found] ` <200406291150.i5TBopX9001428-xzhXYMPkGmXoPXhRcRtihA@public.gmane.org>
2004-06-29 11:54 ` Pavel Machek
2004-06-23 6:26 Daniele Boffi
[not found] ` <20040623082653.A26014-xzhXYMPkGmXoPXhRcRtihA@public.gmane.org>
2004-06-23 13:34 ` Stefan Seyfried
2004-06-24 19:53 ` Pavel Machek
[not found] <willy@debian.org>
[not found] ` <20020916163335.J10583-+pPCBgu9SkPzIGdyhVEDUDl5KyyQGfY2kSSpQ9I8OhVaa/9Udqfwiw@public.gmane.org>
2002-09-16 16:12 ` 2.5.34? Brad Parker
[not found] ` <200209161612.g8GGCtv24883-paYRYfI9b/YMuHHiPFXXZ1fOaUvyCJUZ@public.gmane.org>
2002-09-17 15:51 ` 2.5.34? Pavel Machek
[not found] ` <20030726052012.GO1485-+pPCBgu9SkPzIGdyhVEDUDl5KyyQGfY2kSSpQ9I8OhVaa/9Udqfwiw@public.gmane.org>
2003-07-26 13:24 ` [PATCH] Toshiba ACPI Extras 0.16 Lyle Seaman
[not found] ` <20030726132501.C766314829-RAHWjsxJnJUdnm+yROfE0A@public.gmane.org>
2003-07-26 17:18 ` M. Warner Losh
[not found] ` <20030726.111800.13461649.imp-uzTCJ5RojNnQT0dZR+AlfA@public.gmane.org>
2003-07-26 22:09 ` John Belmonte
2003-07-26 21:32 ` John Belmonte
2003-07-26 21:25 ` John Belmonte
[not found] ` <3F22F1B0.9080607-ZFKsivP1bGvOQU1ULcgDhA@public.gmane.org>
2003-07-27 19:14 ` Matthew Wilcox
-- strict thread matches above, loose matches on Subject: below --
2003-07-25 23:28 John Belmonte
[not found] ` <3F21BD11.8060405-ZFKsivP1bGvOQU1ULcgDhA@public.gmane.org>
2003-07-26 5:20 ` Matthew Wilcox
2002-09-16 0:14 2.5.34? Gustavo Sverzut Barbieri
[not found] ` <20020916001425.82756.qmail-jIUPyM9ARX+A/QwVtaZbd3CJp6faPEW9@public.gmane.org>
2002-09-16 0:25 ` 2.5.34? Matthew Wilcox
[not found] ` <20020916012506.G10583-+pPCBgu9SkPzIGdyhVEDUDl5KyyQGfY2kSSpQ9I8OhVaa/9Udqfwiw@public.gmane.org>
2002-09-16 6:19 ` 2.5.34? Toon van der Pas
[not found] ` <20020916081909.A25876-FeupCOz82S5hxPbjSeLqYA@public.gmane.org>
2002-09-17 15:46 ` 2.5.34? Pavel Machek
[not found] ` <20020917154653.C39-muQmgwBScQHrBKCeMvbIDA@public.gmane.org>
2002-09-18 16:38 ` 2.5.34? Toon van der Pas
[not found] ` <20020918183819.A10275-FeupCOz82S5hxPbjSeLqYA@public.gmane.org>
2002-09-17 23:36 ` 2.5.34? Pavel Machek
2002-09-16 11:30 ` 2.5.34? Brad Parker
[not found] ` <200209161130.g8GBUo024143-paYRYfI9b/YMuHHiPFXXZ1fOaUvyCJUZ@public.gmane.org>
2002-09-16 15:33 ` 2.5.34? Matthew Wilcox
2002-09-17 15:49 ` 2.5.34? Pavel Machek
2002-09-09 15:58 Runlevel for Sleep? Grover, Andrew
[not found] ` <EDC461A30AC4D511ADE10002A5072CAD0236DE25-OU+JdkIUtvd9zuciVAfUoVDQ4js95KgL@public.gmane.org>
2002-09-09 16:36 ` Patrick Mochel
2002-09-07 6:20 Grover, Andrew
[not found] ` <EDC461A30AC4D511ADE10002A5072CAD0236DE22-OU+JdkIUtvd9zuciVAfUoVDQ4js95KgL@public.gmane.org>
2002-09-07 19:56 ` Patrick Mochel
2002-09-08 20:42 ` Pavel Machek
2002-09-03 23:47 Grover, Andrew
2002-09-03 23:13 P. Christeas
[not found] ` <200209032316.g83NGXl07988-a1J+ToZc0kR3t0M9ZKkFCQ@public.gmane.org>
2002-09-03 23:38 ` Sourav K Mandal
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=1031374944.1530.44.camel@rodan.monsters.org \
--to=sjohnson-wpdxj7kv/nvg9huczpvpmw@public.gmane.org \
--cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=andrew.grover-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
--cc=mochel-3NddpPZAyC0@public.gmane.org \
--cc=p_christ-U04EIuiosng@public.gmane.org \
--cc=pavel-AlSwsSmVLrQ@public.gmane.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