[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#375217: ITP: muswsusp -- tools to use userspace software suspend provided by the linux kernel



Tim Dijkstra (tdykstra) wrote:
> Package: wnpp
> Severity: wishlist
> Owner: "Tim Dijkstra (tdykstra)" <tim@famdijkstra.org>
> 
> 
> * Package name    : muswsusp
>   Version         : 0.2
>   Upstream Author : Rafael J. Wysocki <rjw@sisk.pl>, Pavel Machek
>   <pavel@suse.cz>
> * URL             : http://suspend.sf.net
> * License         : GPL
>   Programming Lang: C
>   Description     : tools to use userspace software suspend provided by the linux kernel
> 
>  µswsusp contains the programs to use the userspace software suspend
>  facility available in linux kernel 2.6.17-rc1 and higher. It enables
>  you to save the state of the whole system to disk and power off your system.
>  After restarting your system it will be put back in the exact system state
>  you left it (this is sometimes called hibernation).
>  .
>  It also includes an option to suspend-to-ram after the state is saved to disk.
>  In the suspend-to-ram state the system still uses power, but is faster in
>  resuming. In case the battery depletes the state is still on disk and
>  resume from disk can continue without data loss.
>  .
>  To use this package you need a linux kernel version 2.6.17-rc1 or newer
>  configured to use an mkinitramfs.
> 
> 

Hi Tim,

I already experimented with uswsusp and did some integration into the
initramfs-tools architecture.
If you install the attached file hooks.resume to
/usr/share/initramfs-tools/hooks/resume and
scripts.local-top.resum to
/usr/share/initramfs-tools/scripts/local-top/resume,
the resume binary is automatically integrated into the initrd upon
installation of a Debian kernel. If you have already installed a kernel,
run update-initramfs -u. You should consider to add this to the postinst
script of your package (See the udev package how to do this).
An last but not least, please call the package uswsusp and *not* muswsusp.
Hint: Google for uswsusp and for muswsusp. You will then know why
uswsusp is better.

Cheers,
Michael


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
#! /bin/sh

PREREQ="udev_helper"

prereqs()
{
        echo "$PREREQ"
}

case $1 in
prereqs)
        prereqs
        exit 0
        ;;
esac

/sbin/resume

#!/bin/sh

PREREQ=""

prereqs()
{
        echo "$PREREQ"
}

case $1 in
prereqs)
        prereqs
        exit 0
        ;;
esac

[ -x /sbin/resume ] || exit 0

. /usr/share/initramfs-tools/hook-functions

copy_exec /sbin/resume /sbin
cp /etc/suspend.conf ${DESTDIR}/etc

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: