[ltp] Re: x20 questions

Bret Comstock Waldow linux-thinkpad@linux-thinkpad.org
Wed, 3 Aug 2005 22:57:35 +1200


--nextPart2229575.OJAQnsNXrs
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Sun, 31 Jul 2005 22:58, Rolf Leggewie wrote:
> Charles E. "Rick" Taylor, IV wrote:

> > Me, I'd just use suspend-to-disk (which works under Linux if you use
> > APM) or software suspend (if you use ACPI).
>
> Forgive my ignorance, but how does this work (or better: how do I set it
> up)?  I find the power management functions on Linux to be rather
> intransparent.  An URL or RTFM is fine.

swsusp2 requires you patch the kernel, although that may have been done for=
=20
you in some cases.

I am using swsusp (original) which is in the kernel in recent ones - and it=
=20
appears to work fine so far.

There are two options - turning it on in the first place, and specifying yo=
ur=20
swap partition for it to use.

swsusp2 has LZW compression as an option when it writes to the swap file,=20
swsusp appears not to, so your swap partition must be as large or larger th=
an=20
RAM.

My boot lines:
# For booting GNU/Linux
title  Gentoo 2.6.12-rc3_T42_acpi2
root (hd0,0)
kernel /kernel-2.6.12-rc3_T42_acpi2 root=3D/dev/hda5 acpi_sleep=3Ds3_bios=20
resume=3D/dev/hda6 gentoo=3Dnodevfs video=3Dradeonfb:1024x768-16@60

Note the 'resume=3D/dev/hda6' informing the kernel where to look when reboo=
ting=20
=2D if a signature is there, it will be restored.  You might have more than=
 one=20
swap partition, so must specify where to look.

I used swsusp rather than swsusp2 as I needed a particular kernel version f=
or=20
some new software I'm trying out, and couldn't get swsusp2 to patch it=20
successfully - that might not be a problem for you - in many current distro=
s,=20
it's already patched in.

And that's where you should read or google: "<distro_name> acpi" should fin=
d=20
what you need, and the docs for your distro.

But I don't read many mentions of swsusp as opposed to swsusp2, and wanted =
to=20
point it out - it's already in the kernel if you end up having to roll your=
=20
own.

Cheers,
Bret

--nextPart2229575.OJAQnsNXrs
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQBC8KMk922F8D4woqURAuKyAJ9C/TcXJPuT7dRkxfi2rUwdpRBpVgCeICbR
wmkK8QzFN5msYQBmxtEZdgk=
=WwIX
-----END PGP SIGNATURE-----

--nextPart2229575.OJAQnsNXrs--