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

Richard Hughes hughsient at gmail.com
Mon Feb 27 04:13:50 PST 2006


On Mon, 2006-02-27 at 11:39 +0100, Sjoerd Simons wrote:
> On Sun, Feb 26, 2006 at 04:20:39PM -0500, David Zeuthen 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 ?
> > 
> > What was the conclusion here? Should we commit this patch?
> 
> Afaik it's not yet sure if all distributions have /etc/hibernate/ram.conf. Imho
> this patch should be committed with the addition that it tests for the
> existence of /etc/hibernate/ram.conf

Yes, agreed. Something like this would be ideal I think:

+ elif [ -x "/usr/sbin/hibernate" ] && [ -r
"/etc/hibernate/ram.conf" ] ; then
+           # Use hibernate configured for suspend-to-ram
+           /usr/sbin/hibernate -F/etc/hibernate/ram.conf
+           RET=$?

Want me to write up a patch?

Richard.



More information about the hal mailing list