Re: [gentoo-user] suspend/resume
On 6/26/06, Grant <[EMAIL PROTECTED]> 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 ". 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
Re: [gentoo-user] suspend/resume
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 <[EMAIL PROTECTED]> 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 pgph8A3p4n9Pd.pgp Description: PGP signature
Re: [gentoo-user] suspend/resume
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
Re: [gentoo-user] suspend/resume
> 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 ". 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
Re: [gentoo-user] suspend/resume
On 6/26/06, Grant <[EMAIL PROTECTED]> 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
Re: [gentoo-user] suspend/resume
> 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