[linux-l] Kernel 2.6.5 und swsusp

Axel Weiss aweiss at informatik.hu-berlin.de
So Apr 25 18:48:55 CEST 2004


On Sunday 25 April 2004 18:08, Malte Frerichs wrote:
> Hallo,
> kann mir mal jemand erklären, wie man dan Softwaresuspendmode im kernel
> richtig zum laufen bekommt?
>
> Im 2.4er Kernel hab ich den patch von swsusp.sf.net genommen die Sourcen
> gepatched und dann das suspend.sh-Script installiert.
> abschließend noch der Eintrag in der lilo.conf und alles ging
> problemlos.
>
> Da im 2.6.5er-Kernel der swsup-Kram schon drin ist hab ich den Teil mit
> dem Patchen übersprungen und nur noch das aktuelle suspend.sh
> installiert. Laut Howto auf swsusp.sf.net musste man den Eintrag in der
> lilo.conf von resume=/dev/hd? auf resume2=/dev/hda? ändern. In der
> Kernelhilfe steht allerdings wieder das man nur resume= nutzen muss.
> Egal welcher Eintrag in der lilo.conf steht es passiert beim ausführen
> von /usr/local/sbin/hibernate nichts. Selbst im verbose-Mode kommt
> nichts. Es dauert lediglich einige Sekunden bis der Prompt wieder
> erscheint.

Was sagt denn dmesg?

> Ferner ist in der Hilfe, wenn ich das richtig verstanden habe, die Rede
> von einem Programm namens swsusp. Wo kommt das her? Ist das nur ein
> andere Name für das hibernate-Script oder sind das gar wieder 2
> unterschiedliche Suspend-geschichten?
>
> Was muss man tun um den Softwaresuspend zu nutzen?

(aus linux-2.6.6-rc1/Documentation/power/swsusp.txt):
From kernel/suspend.c:

 * BIG FAT WARNING *********************************************************
 *
 * If you have unsupported (*) devices using DMA...
 *				...say goodbye to your data.
 *
 * If you touch anything on disk between suspend and resume...
 *				...kiss your data goodbye.
 *
 * If your disk driver does not support suspend... (IDE does)
 *				...you'd better find out how to get along
 *				   without your data.
 *
 * (*) pm interface support is needed to make it safe.

You need to append resume=/dev/your_swap_partition to kernel command
line. Then you suspend by echo 4 > /proc/acpi/sleep.

Pavel's unreliable guide to swsusp mess
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

There are currently two versions of swap suspend in the kernel, the old
"Pavel's" version in kernel/power/swsusp.c and the new "Patrick's"
version in kernel/power/pmdisk.c. They provide the same functionality;
the old version looks ugly but was tested, while the new version looks
nicer but did not receive so much testing. echo 4 > /proc/acpi/sleep
calls the old version, echo disk > /sys/power/state calls the new one.

Hast Du Deine Backups gemacht?
was ist mit echo 4 > /proc/acpi/sleep oder echo disk > /sys/power/state? Und wieder: dmesg?

Gruß,
Axel




Mehr Informationen über die Mailingliste linux-l