* hibernate
@ 2002-11-04 13:37 Andrea Mennucc
2002-11-04 14:02 ` hibernate Robert Woerle
0 siblings, 1 reply; 12+ messages in thread
From: Andrea Mennucc @ 2002-11-04 13:37 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
hi
I would like to hibernate my Asus notebook
I use Debian 3.0
I have compiled kernel-image 2.4.19 with acpi patches
acpi-20020821-2.4.19.diff.gz
I have tried
$ echo S3 > /proc/acpi/sleep
or
$ echo 3 > /proc/acpi/sleep
(which I have seen in a e-mail somewhere) but to no effect
what else should I do? can someone point me to relevant information?
ps: have seen today that there are more recent patches; I will compile
them and try them
thanks
a.
--
Andrea Mennucc
"E' un mondo difficile. Che vita intensa!" (Tonino Carotone)
-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: hibernate
2002-11-04 13:37 hibernate Andrea Mennucc
@ 2002-11-04 14:02 ` Robert Woerle
[not found] ` <3DC67E0F.5010408-y2s3ugBAdl9BDgjK7y7TUQ@public.gmane.org>
0 siblings, 1 reply; 12+ messages in thread
From: Robert Woerle @ 2002-11-04 14:02 UTC (permalink / raw)
To: mennucc1-8fiUuRrzOP0dnm+yROfE0A
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
In the 2.4.X tree there will be no S3 nor S4 functionlity ... only the
2.5.x are about to have that working...
but what you can do is apply the swsusp patch then you get a hibernate
at S4
btw hibernate is S4 ! S3 is the standby ( suspend to ram )
Andrea Mennucc schrieb:
>hi
>
>I would like to hibernate my Asus notebook
>
>I use Debian 3.0
>
>I have compiled kernel-image 2.4.19 with acpi patches
>acpi-20020821-2.4.19.diff.gz
>
>I have tried
>$ echo S3 > /proc/acpi/sleep
>or
>$ echo 3 > /proc/acpi/sleep
>(which I have seen in a e-mail somewhere) but to no effect
>
>
>what else should I do? can someone point me to relevant information?
>
>ps: have seen today that there are more recent patches; I will compile
> them and try them
>
>
>thanks
>
>a.
>
>
>
>
--
_____________________________________
*Robert Wörle
Linux | Embedded Device*
*
Symplon AG*
*...touch the internet*
phone: +49 89 552 999 35
fax: +49 89 552 999 10
email: robert.woerle-y2s3ugBAdl9BDgjK7y7TUQ@public.gmane.org <mailto:robert.woerle@symplon.com>
web: www.symplon.com <http://www.symplon.com/>
_____________________________________
-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: hibernate
[not found] ` <3DC67E0F.5010408-y2s3ugBAdl9BDgjK7y7TUQ@public.gmane.org>
@ 2002-11-05 1:23 ` Chris Howells
0 siblings, 0 replies; 12+ messages in thread
From: Chris Howells @ 2002-11-05 1:23 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
On Monday 04 November 2002 2:02 pm, Robert Woerle wrote:
> btw hibernate is S4 ! S3 is the standby ( suspend to ram )
Could somebody please explain what S1 and S2 are as well?
Thanks
- --
Cheers, Chris Howells -- chris-NvB7AskkBIqIudiWw5vspbVCufUGDwFn@public.gmane.org, howells@kde.org
Web: http://chrishowells.co.uk, PGP key: http://chrishowells.co.uk/pgp.txt
KDE: http://www.koffice.org, http://edu.kde.org, http://usability.kde.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)
iD8DBQE9xx2jF8Iu1zN5WiwRAkoVAJ4rg5pc+M6B1xpYBL+e+1xJcJsIRwCgjvKb
IT+TQ/O8whR4zELwgwEz86w=
=+hGN
-----END PGP SIGNATURE-----
-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: hibernate
@ 2002-11-05 22:36 Grover, Andrew
0 siblings, 0 replies; 12+ messages in thread
From: Grover, Andrew @ 2002-11-05 22:36 UTC (permalink / raw)
To: 'Chris Howells'; +Cc: acpi-devel-pyega4qmqnRoyOMFzWx49A
> From: Chris Howells [mailto:chris-NvB7AskkBIqIudiWw5vspbVCufUGDwFn@public.gmane.org]
> On Monday 04 November 2002 2:02 pm, Robert Woerle wrote:
> > btw hibernate is S4 ! S3 is the standby ( suspend to ram )
> Could somebody please explain what S1 and S2 are as well?
>From ACPI 2.0a spec section 2.4:
S1 Sleeping State
The S1 sleeping state is a low wake latency sleeping state. In this state,
no system context is lost (CPU or chip set) and hardware maintains all
system context.
S2 Sleeping State
The S2 sleeping state is a low wake latency sleeping state. This state is
similar to the S1 sleeping state except that the CPU and system cache
context is lost (the OS is responsible for maintaining the caches and CPU
context). Control starts from the processor's reset vector after the wake
event.
(no one uses S2, since it is so similar to S3)
Regards -- Andy
-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
^ permalink raw reply [flat|nested] 12+ messages in thread
* Hibernate
@ 2006-04-12 12:50 Cleaveland, AJ Allan @ IS
2006-04-13 1:30 ` Hibernate Shaohua Li
2006-04-13 11:26 ` Hibernate Nigel Cunningham
0 siblings, 2 replies; 12+ messages in thread
From: Cleaveland, AJ Allan @ IS @ 2006-04-12 12:50 UTC (permalink / raw)
To: linux-acpi
I'm trying to get hibernate to work on CentOS 4. What I really want to do
is use hibernate to start-up the machine every time. To do this I would
create an "image" to come out of hibernate with and set the machine to
always think it's coming out of hibernate, no matter how it was actually
shut down. It would always use my "image", even if it was placed in
hibernate when it shut down. Without rewriting other people's code does
anyone know of a way to do this?
Thank you,
Allan
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Hibernate
2006-04-12 12:50 Hibernate Cleaveland, AJ Allan @ IS
@ 2006-04-13 1:30 ` Shaohua Li
2006-04-13 11:26 ` Hibernate Nigel Cunningham
1 sibling, 0 replies; 12+ messages in thread
From: Shaohua Li @ 2006-04-13 1:30 UTC (permalink / raw)
To: Cleaveland, AJ Allan @ IS; +Cc: linux-acpi
On Wed, 2006-04-12 at 20:50 +0800, Cleaveland, AJ Allan @ IS wrote:
> I'm trying to get hibernate to work on CentOS 4. What I really want
> to do
> is use hibernate to start-up the machine every time. To do this I
> would
> create an "image" to come out of hibernate with and set the machine
> to
> always think it's coming out of hibernate, no matter how it was
> actually
> shut down. It would always use my "image", even if it was placed in
> hibernate when it shut down. Without rewriting other people's code
> does
> anyone know of a way to do this?
The resume from initrd might be good for you.
Thanks,
Shaohua
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Hibernate
2006-04-12 12:50 Hibernate Cleaveland, AJ Allan @ IS
2006-04-13 1:30 ` Hibernate Shaohua Li
@ 2006-04-13 11:26 ` Nigel Cunningham
2006-04-14 2:56 ` Hibernate Shaohua Li
1 sibling, 1 reply; 12+ messages in thread
From: Nigel Cunningham @ 2006-04-13 11:26 UTC (permalink / raw)
To: Cleaveland, AJ Allan @ IS; +Cc: linux-acpi
[-- Attachment #1: Type: text/plain, Size: 1365 bytes --]
Hi Allan.
On Wednesday 12 April 2006 22:50, Cleaveland, AJ Allan @ IS wrote:
> I'm trying to get hibernate to work on CentOS 4. What I really want to do
> is use hibernate to start-up the machine every time. To do this I would
> create an "image" to come out of hibernate with and set the machine to
> always think it's coming out of hibernate, no matter how it was actually
> shut down. It would always use my "image", even if it was placed in
> hibernate when it shut down. Without rewriting other people's code does
> anyone know of a way to do this?
>
> Thank you,
> Allan
I'm not sure I understand what you're saying correctly, but it sounds to me
like you want something like the KeepImage feature in Suspend2. This feature
lets you suspend once, and subsequently simply powerdown rather than
rewriting the image. To use this mode reliably, any filesystems mounted when
the image is created have to be immutable. This is because the image will
include information about the filesystems such as superblocks, inodes,
dentries and so on, and these data structures must match the data on disk.
On resume, you can mount other filesystems (and unmount them prior to powering
down again), so it is possible to save state.
Is that the sort of thing you're after? If not, could you give further
details?
Regards,
Nigel
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: Hibernate
@ 2006-04-13 13:19 Cleaveland, AJ Allan @ IS
2006-04-13 21:15 ` Hibernate Nigel Cunningham
0 siblings, 1 reply; 12+ messages in thread
From: Cleaveland, AJ Allan @ IS @ 2006-04-13 13:19 UTC (permalink / raw)
To: 'Nigel Cunningham'; +Cc: linux-acpi
Nigel,
Thank you for the suggestion. I will look into it. It sounds like it
might work, though since this is likely to be used by us in a variety of
settings, it may also be too restrictive for some of our uses.
Allan
-----Original Message-----
From: Nigel Cunningham [mailto:ncunningham@cyclades.com]
Sent: Thursday, April 13, 2006 6:27 AM
To: Allan.J.Cleaveland@L-3Com.com
Cc: linux-acpi@vger.kernel.org
Subject: Re: Hibernate
Hi Allan.
On Wednesday 12 April 2006 22:50, Cleaveland, AJ Allan @ IS wrote:
> I'm trying to get hibernate to work on CentOS 4. What I really want
> to do is use hibernate to start-up the machine every time. To do this
> I would create an "image" to come out of hibernate with and set the
> machine to always think it's coming out of hibernate, no matter how it
> was actually shut down. It would always use my "image", even if it
> was placed in hibernate when it shut down. Without rewriting other
> people's code does anyone know of a way to do this?
>
> Thank you,
> Allan
I'm not sure I understand what you're saying correctly, but it sounds to me
like you want something like the KeepImage feature in Suspend2. This feature
lets you suspend once, and subsequently simply powerdown rather than
rewriting the image. To use this mode reliably, any filesystems mounted when
the image is created have to be immutable. This is because the image will
include information about the filesystems such as superblocks, inodes,
dentries and so on, and these data structures must match the data on disk.
On resume, you can mount other filesystems (and unmount them prior to
powering
down again), so it is possible to save state.
Is that the sort of thing you're after? If not, could you give further
details?
Regards,
Nigel
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: Hibernate
@ 2006-04-13 13:19 Cleaveland, AJ Allan @ IS
0 siblings, 0 replies; 12+ messages in thread
From: Cleaveland, AJ Allan @ IS @ 2006-04-13 13:19 UTC (permalink / raw)
To: 'Shaohua Li'; +Cc: linux-acpi
Shaohua,
I will look into that. Thank you.
Sincerely,
Allan
-----Original Message-----
From: Shaohua Li [mailto:shaohua.li@intel.com]
Sent: Wednesday, April 12, 2006 8:30 PM
To: Cleaveland, AJ Allan @ IS
Cc: linux-acpi@vger.kernel.org
Subject: Re: Hibernate
On Wed, 2006-04-12 at 20:50 +0800, Cleaveland, AJ Allan @ IS wrote:
> I'm trying to get hibernate to work on CentOS 4. What I really want
> to do is use hibernate to start-up the machine every time. To do this
> I would
> create an "image" to come out of hibernate with and set the machine
> to
> always think it's coming out of hibernate, no matter how it was
> actually
> shut down. It would always use my "image", even if it was placed in
> hibernate when it shut down. Without rewriting other people's code
> does
> anyone know of a way to do this?
The resume from initrd might be good for you.
Thanks,
Shaohua
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Hibernate
2006-04-13 13:19 Hibernate Cleaveland, AJ Allan @ IS
@ 2006-04-13 21:15 ` Nigel Cunningham
0 siblings, 0 replies; 12+ messages in thread
From: Nigel Cunningham @ 2006-04-13 21:15 UTC (permalink / raw)
To: Cleaveland, AJ Allan @ IS; +Cc: linux-acpi
[-- Attachment #1: Type: text/plain, Size: 688 bytes --]
Hi.
On Thursday 13 April 2006 23:19, Cleaveland, AJ Allan @ IS wrote:
> Nigel,
>
> Thank you for the suggestion. I will look into it. It sounds like it
> might work, though since this is likely to be used by us in a variety of
> settings, it may also be too restrictive for some of our uses.
Yes, the 'normal' thing is just to write the image everytime you suspend. For
Suspend2, this usually takes 20s absolute tops (depends on the amount of
memory in use, cpu and disk speeds). The in-kernel swsusp is a lot slower. I
haven't had the chance to test Rafael's userspace swsusp yet, but Pavel is
claiming it's a lot closer to Suspend2 speed.
Regards,
Nigel
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Hibernate
2006-04-13 11:26 ` Hibernate Nigel Cunningham
@ 2006-04-14 2:56 ` Shaohua Li
2006-04-14 4:31 ` Hibernate Nigel Cunningham
0 siblings, 1 reply; 12+ messages in thread
From: Shaohua Li @ 2006-04-14 2:56 UTC (permalink / raw)
To: Nigel Cunningham; +Cc: Cleaveland, AJ Allan @ IS, linux-acpi
On Thu, 2006-04-13 at 19:26 +0800, Nigel Cunningham wrote:
> Hi Allan.
>
> On Wednesday 12 April 2006 22:50, Cleaveland, AJ Allan @ IS wrote:
> > I'm trying to get hibernate to work on CentOS 4. What I really want to do
> > is use hibernate to start-up the machine every time. To do this I would
> > create an "image" to come out of hibernate with and set the machine to
> > always think it's coming out of hibernate, no matter how it was actually
> > shut down. It would always use my "image", even if it was placed in
> > hibernate when it shut down. Without rewriting other people's code does
> > anyone know of a way to do this?
> >
> > Thank you,
> > Allan
>
> I'm not sure I understand what you're saying correctly, but it sounds to me
> like you want something like the KeepImage feature in Suspend2. This feature
> lets you suspend once, and subsequently simply powerdown rather than
> rewriting the image. To use this mode reliably, any filesystems mounted when
> the image is created have to be immutable. This is because the image will
> include information about the filesystems such as superblocks, inodes,
> dentries and so on, and these data structures must match the data on disk.
We could have file in memory for the snapshot kernel before we mount any
hardisk filesystem, and then create a new initrd including the snapshot
image after boot. Later we always use the new initrd. This way even the
hardisk is touched, the kernel can still resume.
Thanks,
Shaohua
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Hibernate
2006-04-14 2:56 ` Hibernate Shaohua Li
@ 2006-04-14 4:31 ` Nigel Cunningham
0 siblings, 0 replies; 12+ messages in thread
From: Nigel Cunningham @ 2006-04-14 4:31 UTC (permalink / raw)
To: Shaohua Li; +Cc: Cleaveland, AJ Allan @ IS, linux-acpi
[-- Attachment #1: Type: text/plain, Size: 1891 bytes --]
Hi.
On Friday 14 April 2006 12:56, Shaohua Li wrote:
> On Thu, 2006-04-13 at 19:26 +0800, Nigel Cunningham wrote:
> > Hi Allan.
> >
> > On Wednesday 12 April 2006 22:50, Cleaveland, AJ Allan @ IS wrote:
> > > I'm trying to get hibernate to work on CentOS 4. What I really want to
> > > do is use hibernate to start-up the machine every time. To do this I
> > > would create an "image" to come out of hibernate with and set the
> > > machine to always think it's coming out of hibernate, no matter how it
> > > was actually shut down. It would always use my "image", even if it was
> > > placed in hibernate when it shut down. Without rewriting other
> > > people's code does anyone know of a way to do this?
> > >
> > > Thank you,
> > > Allan
> >
> > I'm not sure I understand what you're saying correctly, but it sounds to
> > me like you want something like the KeepImage feature in Suspend2. This
> > feature lets you suspend once, and subsequently simply powerdown rather
> > than rewriting the image. To use this mode reliably, any filesystems
> > mounted when the image is created have to be immutable. This is because
> > the image will include information about the filesystems such as
> > superblocks, inodes, dentries and so on, and these data structures must
> > match the data on disk.
>
> We could have file in memory for the snapshot kernel before we mount any
> hardisk filesystem, and then create a new initrd including the snapshot
> image after boot. Later we always use the new initrd. This way even the
> hardisk is touched, the kernel can still resume.
Yes. I've been thinking about this for a while, and planned to work on it to
reduce the boot time of some of our Cyclades products. In fact, I was
thinking about making the initrd be the image (using code I already have in
the filewriter to do this).
Regards,
Nigel
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2006-04-14 4:33 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-12 12:50 Hibernate Cleaveland, AJ Allan @ IS
2006-04-13 1:30 ` Hibernate Shaohua Li
2006-04-13 11:26 ` Hibernate Nigel Cunningham
2006-04-14 2:56 ` Hibernate Shaohua Li
2006-04-14 4:31 ` Hibernate Nigel Cunningham
-- strict thread matches above, loose matches on Subject: below --
2006-04-13 13:19 Hibernate Cleaveland, AJ Allan @ IS
2006-04-13 13:19 Hibernate Cleaveland, AJ Allan @ IS
2006-04-13 21:15 ` Hibernate Nigel Cunningham
2002-11-05 22:36 hibernate Grover, Andrew
2002-11-04 13:37 hibernate Andrea Mennucc
2002-11-04 14:02 ` hibernate Robert Woerle
[not found] ` <3DC67E0F.5010408-y2s3ugBAdl9BDgjK7y7TUQ@public.gmane.org>
2002-11-05 1:23 ` hibernate Chris Howells
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox