BACK
Doc
Notes
OldPatches
Options
Software suspend under Linux

Old software suspend patches

These patches can be applied against official linux kernel source tree. You may try them if you have problem with last ones but be aware that they should be more buggy and can lead to pretty bad data corruption more probably than the more recent ones.
Since 25th May 2002 files are also uploaded to project page at SourceForge Logo so that this archive is no more maintained.
Version File Date and size Change Log
v7c-2.2.19 .GZ 17/08/2012 12:41
28863 octets
Adapted from v7c-2.2.18 official patch.
Overriding standby apm function instead of suspend apm function.
Fixing deprecated apm_bios_info.version
Fixing a bad ended #ifdef CONFIG_HWSTATE_RESTORE
Fixing deprecated do_try_to_free_pages
Added an extra version -swsusp-v7c in main Makefile.
v8-2.4.13 .GZ 17/08/2012 12:41
23168 octets
Adapted from official v8-2.4.10 package.
Recover documentation from v8pre4-2.4.9 package.
Re-insert a check for resume signature in swapfile.c from v8pre4-2.4.9 package.
Re-insert an override of APM standby call.
Avoid kapm-idled from being stopped by setting PF_IOTHREAD flag, since it prevents suspension.
Change compilation flag settings for swsusp to disable optimization option O2.
Added an extra version -swsusp-v8 in main Makefile.
v8-2.4.14 .GZ 17/08/2012 12:41
23174 octets
Adapted from v8-2.4.13 patch.
v9alpha-2.5.1 .GZ 17/08/2012 12:41
20913 octets
This is original patch by Pavel Machek against 2.5.1 kernel, sent to swsusp mailing list on 20th Dec. 2001.
v9alpha-2.4.16 .GZ 17/08/2012 12:41
24620 octets
Adapted from Pavel's patch against 2.5.1 kernel.
Deal with ext3 kjournald kernel thread.
Re-insert an override of APM standby call.
Change compilation flag settings for swsusp to disable optimization option O2.
Recover documentation from v8pre4-2.4.9 package.
Added an extra version -swsusp-v9 in main Makefile.
v9alpha-2.4.17 .GZ 17/08/2012 12:41
24582 octets
Adapted from patch against 2.4.16 kernel.
Main adaptation was to change PF_FREEZE, PF_IOTHREAD and PF_FROZEN constants in sched.h due to new conflicts with kernel values.
v9alpha-2.5.2-pre7 .GZ 17/08/2012 12:41
22169 octets
I have patched one line in that patch because it can cause severe damage on filesystems. That's line 1210 of kernel/suspend.c which I uncommented.

The original patch by Pavel Machek against 2.5.2-pre7 kernel, was sent to swsusp mailing list on 9th Jan. 2002. The line 1210 in suspend.c was:

//	set_blocksize(dev, blksize);
Pavel sent a first version of his patch on 4th Jan. 2002 and fixed another bug afterwards.
v19alpha-2.4.17 .GZ 17/08/2012 12:41
23400 octets
This patch is an original one by Pavel Machek against 2.4.17 kernel. It was sent to swsusp mailing list on 24th Jan. 2002.
v19alpha-2.4.17 .GZ 17/08/2012 12:41
23400 octets
This patch is an original one by Pavel Machek against 2.4.17 kernel. It was sent to swsusp mailing list on 24th Jan. 2002.
v20alpha-2.4.17 .GZ 17/08/2012 12:41
23263 octets
This patch is an original one by Pavel Machek against 2.4.17 kernel. It was sent to swsusp mailing list on 28th Jan. 2002.
v21alpha-2.4.17 .GZ 17/08/2012 12:41
27319 octets
Adapted from Pavel's patch v20alpha-2.4.17.
Deals with journalized filesystems kjournald and (possibly ?) kreiserfsd threads.
Re-inserts an override for apm standby call.
Adds an extra version -swsusp in main Makefile.
Includes a trial to fix kswapd 100% CPU bug.
Recovers obsolete (however useful) documentation stuff.
v22alpha-2.4.17 .GZ 17/08/2012 12:41
22979 octets
This patch is an original one by Pavel Machek against 2.4.17 kernel. It was sent to swsusp mailing list on 19th Feb. 2002
Should deal with ext3 filesystems.
v23alpha-2.4.17 .GZ 17/08/2012 12:41
27346 octets
Modified version (dated 23 Feb. 2002) changes the way we deal with kjournald and kreiserfsd.
First version of this patch (dated 20 Feb. 2002) was a merge of v22alpha-2.4.17 and v21alpha-2.4.17
Re-inserts an override for apm standby call.
Adds an extra version -swsusp in main Makefile.
Includes a trial to fix kswapd 100% CPU bug.
Recovers obsolete (however useful) documentation stuff.
v24alpha-2.4.18 .GZ 17/08/2012 12:41
30573 octets
BUGGY one, do not use
Adaptation of v23alpha-2.4.17 to 2.4.18 kernel
Real and correct fix for kernel threads 100% CPU bug.
Enable more agressive page freeing to allow smaller swap partitions.
Modify agpgart driver to correctly resume X session with i815/i810 chipset.
Notification of suspend/resume events to PM aware drivers.
Amelioration of ext3 support to suspend kjournald only when journal is in safe condition, in case resuming is not performed.
v25alpha-2.4.18 .GZ 17/08/2012 12:41
30725 octets
BUGGY one, do not use
Modification of v24alpha-2.4.18
Improvement of ext3 support to be even safer than before.
Possibly fix bdflush oops bug.
v26alpha-2.4.18 .GZ 17/08/2012 12:41
30126 octets
Modification of v25alpha-2.4.18 patch.
Correction of ext3 freezing to support multiple ext3 partitions.
Separating kernel threads freezing from task freezing using a new PF_KERNTHREAD flag. Tasks are frozen first, then kernel threads (kjournald, kswapd, updated, etc.)
Use -ko instead of -kk CVS option to generate the patch. This should fix the reject problem due to keyword substitution.
v27alpha-2.4.18 .GZ 17/08/2012 12:41
30126 octets
Modification of v26alpha-2.4.18 patch.
Fix compilation bug in agpgart_be.c
Disable DEBUG_DEFAULT
v29alpha-2.4.18 .GZ 17/08/2012 12:41
33842 octets
Merge of v27alpha-2.4.18 and v28alpha-2.4.17
Fix multiple swap devices problem: only one single device can be used for suspension (by the resume= option) but several swap files or partitions can be present. Formerly this wasn't possible.
Includes agpgart resuming stuff patch.
Re-inserts an override for apm standby call.
Adds an extra version -swsusp in main Makefile.
Recovers obsolete (however useful) documentation stuff.
v30alpha-2.4.18 .GZ 17/08/2012 12:41
28691 octets
This patch is an original one against 2.4.18 original kernel source tree. It was sent to linux-kernel mailing list on 19 Mar. 2002
This patch integrates multiple swapfiles patch.
v0beta-2.4.18 .GZ 17/08/2012 12:41
28600 octets
This patch against 2.4.18 original kernel source tree was sent to linux-kernel mailing list on 19 Mar. 2002
It was formerly named v30alpha-2.4.18.

v3beta-2.4.18 .GZ 17/08/2012 12:41
31577 octets
This patch is against 2.4.18 vanilla kernel. The changes are detailed through the incremental patches below.
v3beta-2.4.19-pre7-ac3 .GZ 17/08/2012 12:41
3044 octets
This patch can be applied against Alan Cox's kernel.
v3beta-acpi20020503 .GZ 17/08/2012 12:41
31440 octets
This patch can be applied against the acpi modified kernel.
v4beta-2.4.18 .GZ 17/08/2012 12:41
32003 octets
This patch is against 2.4.18 vanilla kernel. The changes are detailed through the incremental patches below.
v5beta-2.4.19-pre8-ac4 .GZ 17/08/2012 12:41
12147 octets
This patch can be applied against Alan Cox's kernel.
v5beta-acpi20020503 .GZ 17/08/2012 12:41
32479 octets
This patch can be applied against the acpi modified kernel.
v5beta-2.4.18 .GZ 17/08/2012 12:41
32675 octets
This patch is against vanilla kernel. The changes are detailed through the incremental patches below.
v0alpha-2.4.19 .GZ 17/08/2012 12:41
32216 octets
This patch is against vanilla kernel. The changes are detailed through the incremental patches below.
Caution: this patch will *not* work. It's an alpha one obtained from v12beta-2.4.18.
BACK
Doc
Notes
OldPatches
Options

Florent Chabaud
E-mail: florent.chabaud@m4x.org
GPG key: KEY