Mailinglist Archive: opensuse-kde (101 mails)

< Previous Next >
Re: [opensuse-kde] Update to kde unstable desktop breaks pm-hibernate
  • From: "Carlos E. R." <robin.listas@xxxxxxxxxxxxxx>
  • Date: Sat, 8 May 2010 14:34:02 +0200 (CEST)
  • Message-id: <alpine.LSU.2.00.1005081426070.26376@xxxxxxxxxxxxxxxx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Content-ID: <alpine.LSU.2.00.1005081433300.26376@xxxxxxxxxxxxxxxx>


El 2010-05-07 a las 15:28 +0200, Dave Plater escribió:

On 05/07/2010 12:22 PM, Carlos E. R. wrote:

pm-hibernate always fails silently (when it fails). You have to look in
/var/log/pm-suspend.log and
/var/log/messages for the cause.

by silently I meant no trace in /var/log/pm-suspend.log (size 0) and
nothing in messages. I have an alias that goes rcsquid
stop;pm-hibernate;rcsquid restart and there was nothing in between the
squid stop and start. It failed really silently.

That's weird...

Anyway, you can put that stop squid in /etc/pm/sleep.d/, so that it runs automatically. For instance, I have a script named 4cosas and another 95cosas; in them I make it log that it is going to hibernate and whatever I need:

#!/bin/bash

. /usr/lib/pm-utils/functions


function Router ()
{
sleep 20
/home/cer/bin/router_askandlogrouterip
}

case "$1" in
hibernate|suspend)
/bin/logger -t pm-utils -p syslog.warn "Hibernating (4)..."
;;
thaw|resume)
/bin/logger -t pm-utils -p syslog.warn "Thawing (4)..."
Router &
;;
*)
;;
esac

exit $?


- -- Saludos
Carlos E.R.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAkvlWkEACgkQtTMYHG2NR9Ve9ACgiAS7BEpOX9abFRgCMaWUBmLi
h1gAnRL7XjK0AKpl4l7YNuv0uHiibBnP
=TV+x
-----END PGP SIGNATURE-----
< Previous Next >
Follow Ups