[julien@kirya.net: Bug#353181: hal: Please add support for hibernate/suspend2 suspend-to-ram]

Nigel Cunningham ncunningham at cyclades.com
Mon Feb 20 16:57:05 PST 2006


Hi.

On Monday 20 February 2006 09:17, Richard Hughes wrote:
> On Mon, 2006-02-20 at 00:06 +0100, Sjoerd Simons wrote:
> > Patch below let's suspend2 suspend to ram. Now i don't know if
> > /etc/hibernate/ram.conf is a default file for the hibernate program or
> > specific to the debian package though ?
> >
> > ----- Forwarded message from Julien Valroff <julien at kirya.net> -----
> >
> > Date: Thu, 16 Feb 2006 19:01:49 +0100
> > From: Julien Valroff <julien at kirya.net>
> > Subject: Bug#353181: hal: Please add support for hibernate/suspend2
> > suspend-to-ram To: Debian Bug Tracking System <submit at bugs.debian.org>
> > Reply-To: julien at kirya.net, 353181 at bugs.debian.org
> > X-Mailer: reportbug 3.18
> >
> > --- hal-system-power-suspend~	2006-02-13 18:25:07.000000000 +0100
> > +++ hal-system-power-suspend	2006-02-13 18:25:50.000000000 +0100
> > @@ -49,6 +49,10 @@
> >  	if [ -x "/usr/bin/powersave" ] ; then
> >  	    $POWERSAVED_SUSPEND2RAM
> >  	    RET=$?
> > +	elif [ -x "/usr/sbin/hibernate" ] ; then
> > +	    # Use hibernate configured for suspend-to-ram
> > +	    /usr/sbin/hibernate -F/etc/hibernate/ram.conf
> > +	    RET=$?
>
> What happens if you omit the ram.conf? Can you just trigger a suspend
> using the default script some other way?

Without -F/path/to/conf-file, it will default 
to /etc/hibernate/hibernate.conf, which is usually (but not necessarily) used 
for starting a suspend to disk cycle. The nicest option might be to make the 
config file to use configurable, if this isn't too much of a pain.

Regards,

Nigel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20060221/ab2a8614/attachment-0001.pgp


More information about the hal mailing list