SPELL=suspend VERSION=1.0 SOURCE=$SPELL-utils-$VERSION.tar.bz2 SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-utils-$VERSION SOURCE_URL[0]=$SOURCEFORGE_URL/$SPELL/$SOURCE #SOURCE_GPG="gurus.gpg:${SOURCE}.sig" SOURCE_HASH=sha512:481f7ab6e6d43b963cf7abf4d16a9911035dbce13d96e11eeadd50bbd2b9671c597eab0e3060536dcb0d6d848e30ac0e7ff534275fc2d66d2064b75066a4adb8 LICENSE[0]=GPL KEYWORDS="kernels" WEB_SITE=http://$SPELL.sourceforge.net/ ENTERED=20060421 DOCS='LICENSE HOWTO README README.s2ram-whitelist TODO' SHORT='Userspace suspend tool' cat << EOF The goal of the project is to create a tool that can handle the so called "suspend-to-both". Suspend to both means that prior putting the system in STR (suspend to ram) a snapshot of the running system is taken and stored on disk (as suspend to disk); if for any reason (e.g. battery depleted) the state store in the RAM is lost the user can resume from the disk without loosing data. Currenty suspend-to-ram and suspend-to-disk are handled by two different program, s2ram and suspend. s2ram is a small program designed designed to suspend your machine to RAM and bring it back to life. Suspend to RAM can be as simple as doing: # echo mem > /sys/power/state but many systems require additional steps (such as POSTing the video board, saving/restoring card state, asking the BIOS to initialize the video card, etc.) s2ram contains its own database with known machines and required workarounds, so most of the times it will "just work". suspend is the reference implementation of the userspace software suspend (µswsusp); it coordinates the steps necessary to suspend the system (such as freezing the processes, preparing the swap space, etc.) and handles image writing and reading. suspend alreay supports compression and encryption of the image and other features (e.g. a nice progress bar, saving the image on a remote disk, playing tetris while resuming, etc.) can be easily added. Currently requires the 2.6.16 -mm tree (or 2.6.17 when it is out). EOF