Software Suspend

OLD HOMEPAGE...
INFORMATION HERE IS OBSOLETE!

This page only exists for historical reference and nostalgia. The patches on this page are years old and nobody will save you if you have problems with them.

Unless you were looking for a source of out of date information, please visit the new website at http://www.suspend2.net/

Enables the possibilty of suspendig machine. It doesn't need APM. You may suspend your machine by either pressing Sysrq-d. It creates an image which is saved in your active swaps. By next booting kernel detects the saved image and restores memory.

Right now you may boot without resuming and then later resume but cannot use those swap partitions/files which were involved in suspending. Also, there is a risk that buffers on disk won't match with saved ones.

Download a version from list below.
Patch (possibly) proper version of kernel.
# cd /usr/src/linux; zcat ../swsusp-x.y.gz | patch -p1

Or netscape might download the patch unzipped in this case:
# cd /usr/src/linux; patch -p1 < ../swsusp-x.y

For more information take a look at Documentation/swsusp.txt and it is a good idea to look into kernel/swsusp.c.

I have set up a mailing list which doesn't have big volume. Write to swsusp-request@lister.fornax.hu with subscription request to get on the list or you may subscribe on the html page.

I'd like to ask everyone to write to the swsusp-list instead of directly to me because it is more like to get answer. On the other hand I'm sure people out there in the world might know more than me about suspending :) Also here you might check the archive.

For overall description of current patch look here.

WARNING! This version is still against only arch i386. The code is _aimed_ to be arch independent however there must be some arch dependent routines that need to be realized if you'd like that this patch work on other architectures. You may find those functions by grepping on "arch\/i386" in patch file.

Check this project page at SourceForge Logo

Current version(s) can be downloaded at:
Version Kernel version Remark Author
swsusp-v7 linux-2.2.14    
swsusp-v7a linux-2.2.16 against SUSE released kernel
This is against 2.2.16 but actually 2.2.16-SuSE, which is rather similar to a 2.2.17-pre1x.
Kurt Garloff
swsusp-v7b linux-2.2.18-pre9   Andreas Mohr
swsusp-v7c linux-2.2.18 Current usable version - read notes about compilation! Jose' Manuel Pereira
swsusp-v8pre1 linux-2.4.0 NOT TESTED! MIGHT NOT WORK. STILL DOESN'T WORK WHEN COMPILED WITH EGCS (gcc-2.95.3)  
swsusp-v8pre2 linux-2.4.0 Okay, I played around a bit. kernel-2.4.0 no longer can be compiled with the old gcc-2.7.2. Should be compiled with gcc-2.91.66. We should definitely fix resuming.. This version has the diff between v7 and v7b (I've made the mistake not taking the latest version..). Has some APM support but that one should be revised. Read TODOs in the header of kernel/swsusp.c  
swsusp-v8pre3 linux-2.4.3 Ok, finally managed to compile it. And it _works_. Some 'minor' problem it has so it's still a pre. Look for futher info in ChangeLog below.
PLEASE mail me if you work on the patch, I'd like to know. And share your ideas too :))
 
swsusp-v8pre4 linux-2.4.9 Small fixes. Trying to fix the runaway init problem. Seasons
swsusp-v8 linux-2.4.10   Pavel
swsusp-v8 linux-2.5.1   Pavel
Florent Chabaud's page     This page has newer version(s)
Pavel Machek's page (does it exist?)   The patch is maintained by Pavel in the 2.5 source tree
patch for sysvinit sysvinit-2.76 (optional) Probably no longer needed  

or all versions can be revised here.
Also you may want to check out Florent Chabaud's page.

Read useful letters from the swsusp list or mailed to me.

Look up useful but not yet applied patches.

ChangeLog: