You are not logged in.

#1 2007-01-31 19:38:00

vitalstatistix
Member
Registered: 2007-01-31
Posts: 28

hal gnome-power-manager hibernate scripts

Hi All,

I'm having issues hibernating to disk using gnome-power-manager. My user is in the "power" group and I can suspend from a terminal using "sudo hibernate". However, when I attempt to hibernate with gnome-power-manager, i recive an error "Hal failed to hibernate - please see FAQ". When I run g-p-m with no-daemon, it gives an "unspecified error: failed to hibernate". I have the necessary hibernate scripts in /usr/share/hal/scripts (is this the default dir?) and the hal-system-power-hibernate looks as follows:

#!/bin/bash

POWERSAVED_SUSPEND2DISK="dbus-send --system --dest=com.novell.powersave \
                         --print-reply /com/novell/powersave \
                         com.novell.powersave.action.SuspendToDisk"

unsupported() {
        echo org.freedesktop.Hal.Device.SystemPowerManagement.NotSupported >&2
        echo No hibernate script found >&2
        exit 1
}

if [ -x "/usr/sbin/hibernate" ] ; then
                echo "wtf"
                hibernate
                RET=$?
else
                unsupported
fi

#Refresh devices as a resume can do funny things
for type in button battery ac_adapter
do
        devices=`hal-find-by-capability --capability $type`
        for device in $devices
        do
                dbus-send --system --print-reply --dest=org.freedesktop.Hal \
                          $device org.freedesktop.Hal.Device.Rescan
        done
done

exit $RET

Please let me know what I'm missing or what necessary config files need to be tweaked.

Offline

#2 2007-01-31 21:17:37

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: hal gnome-power-manager hibernate scripts

Does suspend to RAM work with gnome-power-manager? On my system I installed powersave from unstable, which is the daemon used by SuSE to do suspend to RAM and suspend to disk.

Offline

#3 2007-02-01 03:05:52

vitalstatistix
Member
Registered: 2007-01-31
Posts: 28

Re: hal gnome-power-manager hibernate scripts

Ill try powersaved and revert. Thanks for the suggestion

Offline

#4 2007-02-03 00:42:24

vitalstatistix
Member
Registered: 2007-01-31
Posts: 28

Re: hal gnome-power-manager hibernate scripts

Powersave works great. Thanks for the recommendation. However, it sucks that I cannot suspend to RAM. Sony vaios suck man

d

Offline

Board footer

Powered by FluxBB