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

Sjoerd Simons sjoerd at luon.net
Sun Feb 19 15:06:07 PST 2006


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=$?
 	elif [ -x "/usr/sbin/pmi" ] ; then
 	    /usr/sbin/pmi action suspend force
 	    RET=$?


----- End forwarded message -----

-- 
Free yourself from negative influence. Negative thoughts are the old
habits that gnaw at the roots of the soul.
Moses Shongo, (Seneca)


More information about the hal mailing list