[Pm-utils] Pm-utils Digest, Vol 41, Issue 10

gmarzot at marzot.net gmarzot at marzot.net
Tue Mar 30 12:29:50 PDT 2010




-------- Original Message --------


unfortunately this is not working

this is what I have below... I would expect returning one to stop the
suspend/hibernate and a normal shutdown will follow... on wakeup (i am
doing WoL to one of the NICs) it should not think it is waking from a
suspend... but it does and croaks trying to reconstitute the
environment.

restarting tasks ... done.

any ideas why this is not working? thank you, G

-----------------------

#!/bin/bash


case $1 in
    hibernate | suspend)
	shutdown -P -t 15 now &
        return 1
        ;;
    thaw | resume)
     	echo "Waking up from shutdown"
        return 1
        ;;
    *)  echo "ERROR: used incorrectly."
        ;;
esac


------------------------------

Message: 2
Date: Tue, 30 Mar 2010 08:28:29 +0800
From: Ng Oon-Ee <ngoonee at gmail.com>
Subject: Re: [Pm-utils] Substituting "shutdown" for
 sleep/suspend/hibernate
To: gmarzot at marzot.net
Cc: pm-utils at lists.freedesktop.org
Message-ID: <1269908909.12790.0.camel at localhost.localdomain>
Content-Type: text/plain; charset="ISO-8859-9"

Off the top of my head, couldn't you just write a script which calls
'shutdown -h now' on the suspend and hibernate events and put it
in /etc/pm/sleep.d?

On Mon, 2010-03-29 at 17:16 -0700, gmarzot at marzot.net wrote:
> I have a buggy(i think) motherboard (ga-ep45-ud3p) that does not
> appear to support S3(STR) or hibernate... I can get a machine to come
> back from true shutdown (shutdown -P now) so I was wondering how I
> might make the action for sleep or hibernate be a shutdown (powerdown)
> and no complicated resume/thaw... just power back on and boot.
> 
> 
> thank you very any tips, Giovanni
> 
> _______________________________________________
> Pm-utils mailing list
> Pm-utils at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/pm-utils




------------------------------

_______________________________________________
Pm-utils mailing list
Pm-utils at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pm-utils


End of Pm-utils Digest, Vol 41, Issue 10
****************************************



More information about the Pm-utils mailing list