On Mon, 21 Jan 2008 20:51:14 -0200 Henrique de Moraes Holschuh <[EMAIL PROTECTED]> wrote:
> On Mon, 21 Jan 2008, Thomas Flaig wrote: > > Am Montag, 21. Januar 2008 15:50 schrieb Ron Johnson: > > > On 01/21/08 03:16, Thomas Flaig wrote: > > > > Am Samstag, 19. Januar 2008 03:30 schrieb Ron Johnson: [snip] > > > > CONFIG_PM_STD_PARTITION="/dev/sdaX" > > Does this also work for a swap *file*? Or do I need a swap partition? > > It can be made to work on files, yes. At least if you use tux-on-ice, which > is moderately more sane than that userspace suspend thing. Not that the > resume from hibernation in Linux is sane on ACPI systems (it is NOT), so I > have to recommend sticking to sleep-to-RAM unless you really need > hibernation. > > And protecting the hibernation data properly is a pain that requires > passphrases, anyway, so that's two reasons to stay away from it. > > > If it works with a swap *file* I would like to see an explanation how to > > do this or a link to a HOWTO. > > Stock userspace suspend might not be able to hibernate to a swap file. But > check http://www.tuxonice.net/, it can do it. I believe stock uswsusp *can* use a swap file. From the HOWTO.gz (I haven't tried this): > 1) Necessary items > > (a) This package > (b) Linux kernel supporting the swsusp userland interface (2.6.17 or above) > (c) Swap partition or a swap file, approximately as big as 1/2 of RAM ... > It also is possible to use a swap file for suspending, but this only works > with > the 2.6.18-mm3 kernel (or later). In such a case the resume partition is the > partition that holds the swap file, and there is an additional configuration > parameter "resume offset" that has to be set, as described below.] ... > The "resume offset" parameter is necessary if a swap file is used for > suspending. In such a case the device identified by the "resume device" > parameter is regarded as the partition that contains the swap file, and > "resume offset" must be equal to the offset from the beginning of this > partition at which the swap file's header is located, in <PAGE_SIZE> units. > The value of this parameter for given swap file can be determined by the > swap-offset program (has to be run as root) included in this package. [For > this feature to work, you will need an -mm kernel, 2.6.18-mm3 or newer.] Celejar -- mailmin.sourceforge.net - remote access via secure (OpenPGP) email ssuds.sourceforge.net - A Simple Sudoku Solver and Generator -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]