public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] suspend/resume
@ 2006-06-27  0:44 Grant
  2006-06-27  1:26 ` Richard Fish
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Grant @ 2006-06-27  0:44 UTC (permalink / raw
  To: Gentoo mailing list

Is there a way to shut the power of my laptop down and then power it
back on and have it resume right where it was when it was powered
down?  I think this is called suspend/resume.  I see there is a kernel
called suspend2-sources.  Is there any way to do it with my
hardened-sources kernel?

- Grant
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] suspend/resume
  2006-06-27  0:44 [gentoo-user] suspend/resume Grant
@ 2006-06-27  1:26 ` Richard Fish
  2006-06-27 22:15   ` Grant
  2006-06-27  4:39 ` Shaochun Wang
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 7+ messages in thread
From: Richard Fish @ 2006-06-27  1:26 UTC (permalink / raw
  To: gentoo-user

On 6/26/06, Grant <emailgrant@gmail.com> wrote:
> Is there a way to shut the power of my laptop down and then power it
> back on and have it resume right where it was when it was powered
> down?  I think this is called suspend/resume.  I see there is a kernel
> called suspend2-sources.

This uses suspend2, which is an externally maintained patch to the
kernel [1].  Suspend2 may work better than the in-kernel suspend
implementation for some cases.

I know nothing about the hardened kernel, but you should be able to
enable the 'normal' suspend to disk and suspend to ram options.  Look
under "Power management options..." and turn on "Software Suspend" for
suspend-to-disk support.  You can also add "ACPI...->Sleep States" for
suspend-to-ram.

I highly recommend merging and using hibernate-script.  This is an
advanced script that can handle most suspend/standby tasks.  Just edit
the config file[s] in /etc/hibernate/, and run "hibernate -F
<path_to_config>".

I also recommend getting the ~arch version of hibernate-script, so
that you can start off using the new config file layout.

-Richard

[1] http://www.suspend2.net/
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] suspend/resume
  2006-06-27  0:44 [gentoo-user] suspend/resume Grant
  2006-06-27  1:26 ` Richard Fish
@ 2006-06-27  4:39 ` Shaochun Wang
  2006-06-27  5:53 ` Alexander Skwar
  2006-06-28  0:31 ` Evan Klitzke
  3 siblings, 0 replies; 7+ messages in thread
From: Shaochun Wang @ 2006-06-27  4:39 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 690 bytes --]

On Mon, Jun 26, 2006 at 05:44:09PM -0700, Grant wrote:
> Is there a way to shut the power of my laptop down and then power it
> back on and have it resume right where it was when it was powered
> down?  I think this is called suspend/resume.  I see there is a kernel
> called suspend2-sources.  Is there any way to do it with my
> hardened-sources kernel?
> 
> - Grant
> -- 
> gentoo-user@gentoo.org mailing list

I use suspend2-sources, and it works very well!

-- 
Shaochun Wang <xxxx@ios.ac.cn>

GPG Fingerprint: 70C2 6945 0E46 E08B 419A  007C AC5C F21F 358A 0833
You can get my publickey from the following url:
	http://lcs.ios.ac.cn/~scwang/docs/scwangpublickey.gpg

[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] suspend/resume
  2006-06-27  0:44 [gentoo-user] suspend/resume Grant
  2006-06-27  1:26 ` Richard Fish
  2006-06-27  4:39 ` Shaochun Wang
@ 2006-06-27  5:53 ` Alexander Skwar
  2006-06-28  0:31 ` Evan Klitzke
  3 siblings, 0 replies; 7+ messages in thread
From: Alexander Skwar @ 2006-06-27  5:53 UTC (permalink / raw
  To: gentoo-user

Grant wrote:
> Is there a way to shut the power of my laptop down and then power it
> back on and have it resume right where it was when it was powered
> down?

Sure. Install the hibernate package and configure /etc/acpi/default.sh
properly:

                 case "$action" in
                         power)  #/sbin/init 0
                                 logger "$group, ACPI action $action thru default.sh invoked - calling /usr/sbin/hibernate"
                                 /usr/sbin/hibernate
                                 logger "/usr/sbin/hibernate finished"
                                 ;;

You'll also need to compile the "button" module in the kernel.


>  I think this is called suspend/resume.  I see there is a kernel
> called suspend2-sources.  Is there any way to do it with my
> hardened-sources kernel?

Dunno. But you don't *HAVE* to use suspend2 to do suspend-to-disk. The
plain kernel does this as well.

Alexander Skwar
-- 
  Brannigan: You'll be negotiating with the aliens' mysterious leaders, the
  Brain Balls. They've got a lot of brains, and they've got a lot of chutzpah.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] suspend/resume
  2006-06-27  1:26 ` Richard Fish
@ 2006-06-27 22:15   ` Grant
  0 siblings, 0 replies; 7+ messages in thread
From: Grant @ 2006-06-27 22:15 UTC (permalink / raw
  To: gentoo-user

> > Is there a way to shut the power of my laptop down and then power it
> > back on and have it resume right where it was when it was powered
> > down?  I think this is called suspend/resume.  I see there is a kernel
> > called suspend2-sources.
>
> This uses suspend2, which is an externally maintained patch to the
> kernel [1].  Suspend2 may work better than the in-kernel suspend
> implementation for some cases.
>
> I know nothing about the hardened kernel, but you should be able to
> enable the 'normal' suspend to disk and suspend to ram options.  Look
> under "Power management options..." and turn on "Software Suspend" for
> suspend-to-disk support.  You can also add "ACPI...->Sleep States" for
> suspend-to-ram.
>
> I highly recommend merging and using hibernate-script.  This is an
> advanced script that can handle most suspend/standby tasks.  Just edit
> the config file[s] in /etc/hibernate/, and run "hibernate -F
> <path_to_config>".
>
> I also recommend getting the ~arch version of hibernate-script, so
> that you can start off using the new config file layout.
>
> -Richard
>
> [1] http://www.suspend2.net/

Thanks a lot.  I'm going to check this out.

- Grant
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] suspend/resume
  2006-06-27  0:44 [gentoo-user] suspend/resume Grant
                   ` (2 preceding siblings ...)
  2006-06-27  5:53 ` Alexander Skwar
@ 2006-06-28  0:31 ` Evan Klitzke
  2006-06-28 22:34   ` Grant
  3 siblings, 1 reply; 7+ messages in thread
From: Evan Klitzke @ 2006-06-28  0:31 UTC (permalink / raw
  To: gentoo-user

On 6/26/06, Grant <emailgrant@gmail.com> wrote:
> Is there a way to shut the power of my laptop down and then power it
> back on and have it resume right where it was when it was powered
> down?  I think this is called suspend/resume.  I see there is a kernel
> called suspend2-sources.  Is there any way to do it with my
> hardened-sources kernel?
>
> - Grant

The primary difference between suspend in the vanilla (and hardened)
kernel and suspend in Suspend2 is that Suspend2 is much faster.  I
don't have any hard numbers, but I think the difference is something
like twenty seconds versus a minute to fully suspend on my laptop.
This isn't normally a big deal, and you don't need to migrate from the
hardened kernel.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] suspend/resume
  2006-06-28  0:31 ` Evan Klitzke
@ 2006-06-28 22:34   ` Grant
  0 siblings, 0 replies; 7+ messages in thread
From: Grant @ 2006-06-28 22:34 UTC (permalink / raw
  To: gentoo-user

> > Is there a way to shut the power of my laptop down and then power it
> > back on and have it resume right where it was when it was powered
> > down?  I think this is called suspend/resume.  I see there is a kernel
> > called suspend2-sources.  Is there any way to do it with my
> > hardened-sources kernel?
> >
> > - Grant
>
> The primary difference between suspend in the vanilla (and hardened)
> kernel and suspend in Suspend2 is that Suspend2 is much faster.  I
> don't have any hard numbers, but I think the difference is something
> like twenty seconds versus a minute to fully suspend on my laptop.
> This isn't normally a big deal, and you don't need to migrate from the
> hardened kernel.

Do you think it would suspend Windows XP running in VMware Workstation properly?

- Grant
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-06-28 22:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-27  0:44 [gentoo-user] suspend/resume Grant
2006-06-27  1:26 ` Richard Fish
2006-06-27 22:15   ` Grant
2006-06-27  4:39 ` Shaochun Wang
2006-06-27  5:53 ` Alexander Skwar
2006-06-28  0:31 ` Evan Klitzke
2006-06-28 22:34   ` Grant

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox