On Tue, 13 Dec 2005, Sven Luther wrote:

My impression is that they use the resume= option on the kernel command line,
which is then parsed by initrd-tools or whatever.

I feel the sane thing to do is to support all three possible ways :

 1) have the resume= kernel command line option provided by the user /
 grub/lilo/yaboot/etc override the detected partition. This is always a good
 idea, as we showed with the root= kernel command line option, and will allow
 the user to recover more easily from mistakes and such.

 2) have yaird look at the resume option in /etc/fstab as suggested here. Not
 sure if this is the best thing to do though.

 3) have it specified/specifiable in /etc/yaird.conf.

This is exactly what my patch implements.

The real question being what other tools who do the suspend step usually use
for configuration, the resume step is rather easy once we know that.

There is the 'hibernate' package, but I haven't looked at it. It seems a little heavyweight for my purposes, as I don't need to "load and unload modules, various hacks needed to get some video cards to resume properly under X, restart networking and system services" which it advertises as its purpose. Just writing to /sys/power/state seems sufficient; the other things seem like they are more properly bugs in the kernel which ought to be fixed, not hacked around.

There are also the following packages: toshutils, fnfxd, athcool, etc.

I think the proper place for support is in the acpid package, with possibly a separate machine-specific package to flesh out the support. But it seems that ACPI supports a 'sleep' button, so we should be able to implement basic support without machine-specific stuff.

Notice that one thought i had about swsusp is to have multiple swap
partitions associated with multiple non-overlapping partition sets and be able
to resume in the one or the other, so i believe your idea will kill this kind
of setup.

No, you can always specify a particular resume partition for this case,
either on the kernel command-line, or in etc/fstab.
 --scott

Diplomat bomb Bejing SLINC KUHOOK explosives genetic LCPANGS Sugar Grove overthrow security AVBUSY KUBARK PAPERCLIP hack Nazi Honduras cracking
                         ( http://cscott.net/ )


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to