[gpm] gpm and suspend2
- From: davidstew ihug com au
- To: gnome-power-manager-list gnome org
- Subject: [gpm] gpm and suspend2
- Date: Mon, 23 Jan 2006 04:03:08 GMT
I tried synning dbus-monitor --system and got the following:
glaptop ~ # dbus-monitor --system
signal sender=org.freedesktop.DBus -> dest=:1.9 interface=org.freedesktop.DBus;
member=NameAcquired
string ":1.9"
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=DeviceStrengthChanged
(dbus-monitor too dumb to decipher arg type 'o')
int32 56
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=DeviceStrengthChanged
(dbus-monitor too dumb to decipher arg type 'o')
int32 0
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=DeviceStrengthChanged
(dbus-monitor too dumb to decipher arg type 'o')
int32 57
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=StateChange
uint32 1
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=DeviceNoLongerActive
(dbus-monitor too dumb to decipher arg type 'o')
signal sender=:1.5 -> dest=(null destination) interface=org.gentoo.dhcp.state;
member=eth0
byte 14
signal sender=org.freedesktop.DBus -> dest=(null destination)
interface=org.freedesktop.DBus; member=NameOwnerChanged
string ":1.10"
string ""
string ":1.10"
signal sender=:1.5 -> dest=(null destination) interface=org.gentoo.dhcp.state;
member=eth0
byte 11
signal sender=org.freedesktop.DBus -> dest=(null destination)
interface=org.freedesktop.DBus; member=NameOwnerChanged
string ":1.10"
string ":1.10"
string ""
signal sender=:1.5 -> dest=(null destination) interface=org.gentoo.dhcp.state;
member=eth0
byte 14
signal sender=:1.0 -> dest=(null destination)
interface=org.freedesktop.Hal.Device; member=PropertyModified
int32 2
[ (dbus-monitor too dumb to decipher arg type 'r')
(dbus-monitor too dumb to decipher arg type 'r')
]signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=StateChange
uint32 4
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=StateChange
uint32 4
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=StateChange
uint32 4
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=StateChange
uint32 4
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=StateChange
uint32 4
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=DeviceRemoved
(dbus-monitor too dumb to decipher arg type 'o')
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=DeviceRemoved
(dbus-monitor too dumb to decipher arg type 'o')
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=DeviceAdded
(dbus-monitor too dumb to decipher arg type 'o')
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=DeviceAdded
(dbus-monitor too dumb to decipher arg type 'o')
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=WirelessNetworkAppeared
(dbus-monitor too dumb to decipher arg type 'o')
(dbus-monitor too dumb to decipher arg type 'o')
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=WirelessNetworkAppeared
(dbus-monitor too dumb to decipher arg type 'o')
(dbus-monitor too dumb to decipher arg type 'o')
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=WirelessNetworkStrengthChanged
(dbus-monitor too dumb to decipher arg type 'o')
(dbus-monitor too dumb to decipher arg type 'o')
int32 58
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=WirelessNetworkStrengthChanged
(dbus-monitor too dumb to decipher arg type 'o')
(dbus-monitor too dumb to decipher arg type 'o')
int32 43
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=WirelessNetworkStrengthChanged
(dbus-monitor too dumb to decipher arg type 'o')
(dbus-monitor too dumb to decipher arg type 'o')
int32 57
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=WirelessNetworkStrengthChanged
(dbus-monitor too dumb to decipher arg type 'o')
(dbus-monitor too dumb to decipher arg type 'o')
int32 40
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=WirelessNetworkStrengthChanged
(dbus-monitor too dumb to decipher arg type 'o')
(dbus-monitor too dumb to decipher arg type 'o')
int32 59
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=WirelessNetworkStrengthChanged
(dbus-monitor too dumb to decipher arg type 'o')
(dbus-monitor too dumb to decipher arg type 'o')
int32 41
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=WirelessNetworkStrengthChanged
(dbus-monitor too dumb to decipher arg type 'o')
(dbus-monitor too dumb to decipher arg type 'o')
int32 42
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=WirelessNetworkStrengthChanged
(dbus-monitor too dumb to decipher arg type 'o')
(dbus-monitor too dumb to decipher arg type 'o')
int32 58
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=DeviceActivationStage
(dbus-monitor too dumb to decipher arg type 'o')
uint32 1
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=DeviceActivationStage
(dbus-monitor too dumb to decipher arg type 'o')
uint32 1
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=DeviceActivationStage
(dbus-monitor too dumb to decipher arg type 'o')
uint32 2
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=StateChange
uint32 2
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=DeviceActivating
(dbus-monitor too dumb to decipher arg type 'o')
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=DeviceActivationStage
(dbus-monitor too dumb to decipher arg type 'o')
uint32 3
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=DeviceActivationStage
(dbus-monitor too dumb to decipher arg type 'o')
uint32 1
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=DeviceActivationStage
(dbus-monitor too dumb to decipher arg type 'o')
uint32 2
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=DeviceActivationStage
(dbus-monitor too dumb to decipher arg type 'o')
uint32 4
signal sender=:1.5 -> dest=(null destination) interface=org.gentoo.dhcp.state;
member=eth0
byte 12
signal sender=org.freedesktop.DBus -> dest=(null destination)
interface=org.freedesktop.DBus; member=NameOwnerChanged
string ":1.11"
string ""
string ":1.11"
signal sender=:1.5 -> dest=(null destination) interface=org.gentoo.dhcp.state;
member=eth0
byte 1
signal sender=org.freedesktop.DBus -> dest=(null destination)
interface=org.freedesktop.DBus; member=NameOwnerChanged
string ":1.11"
string ":1.11"
string ""
signal sender=org.freedesktop.DBus -> dest=(null destination)
interface=org.freedesktop.DBus; member=NameOwnerChanged
string ":1.12"
string ""
string ":1.12"
signal sender=:1.5 -> dest=(null destination) interface=org.gentoo.dhcp.state;
member=eth0
byte 2
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=DeviceActivationStage
(dbus-monitor too dumb to decipher arg type 'o')
uint32 5
signal sender=org.freedesktop.DBus -> dest=(null destination)
interface=org.freedesktop.DBus; member=NameOwnerChanged
string ":1.12"
string ":1.12"
string ""
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=DeviceActivationStage
(dbus-monitor too dumb to decipher arg type 'o')
uint32 6
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=DeviceStrengthChanged
(dbus-monitor too dumb to decipher arg type 'o')
int32 56
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=DeviceActivationStage
(dbus-monitor too dumb to decipher arg type 'o')
uint32 7
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=DeviceCarrierOn
(dbus-monitor too dumb to decipher arg type 'o')
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=StateChange
uint32 3
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=DeviceNowActive
(dbus-monitor too dumb to decipher arg type 'o')
signal sender=:1.8 -> dest=(null destination)
interface=org.freedesktop.NetworkManagerInfo; member=WirelessNetworkUpdate
string "ISHTAR_ADELAIDE"
signal sender=:1.8 -> dest=(null destination)
interface=org.freedesktop.NetworkManagerInfo; member=WirelessNetworkUpdate
string "ISHTAR_ADELAIDE"
signal sender=:1.8 -> dest=(null destination)
interface=org.freedesktop.NetworkManagerInfo; member=WirelessNetworkUpdate
string "ISHTAR_ADELAIDE"
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=DeviceStrengthChanged
(dbus-monitor too dumb to decipher arg type 'o')
int32 0
signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=DeviceStrengthChanged
(dbus-monitor too dumb to decipher arg type 'o')
int32 57
signal sender=:1.0 -> dest=(null destination)
interface=org.freedesktop.Hal.Device; member=PropertyModified
int32 2
[ (dbus-monitor too dumb to decipher arg type 'r')
(dbus-monitor too dumb to decipher arg type 'r')
]signal sender=:1.1 -> dest=(null destination)
interface=org.freedesktop.NetworkManager; member=DeviceStrengthChanged
(dbus-monitor too dumb to decipher arg type 'o')
int32 58
------
Notice the line with "dbus-monitor too dumb to decipher arg type "??
I should also mention that I am using NetworkManager-0.5.2. From what I can tell
it trys to disable the wireless pcmcia card but then re-initialises it.
Also I have changed /usr/share/hal/scripts/hal-system-power-hibernate from
POWERSAVED_SUSPEND2DISK="dbus-send --system --dest=com.novell.powersave \
--print-reply /com/novell/powersave \
com.novell.powersave.action.SuspendToDisk"
to
POWERSAVED_SUSPEND2DISK="dbus-send --system --dest=com.gentoo.powersave \
--print-reply /com/gentoo/powersave \
com.gentoo.powersave.action.SuspendToDisk"
As another GPM user mentioned that this was a Gentoo bug. But it still doesn't work.
Here is my complete /usr/share/hal/scripts/hal-system-power-hibernate
#!/bin/sh
POWERSAVED_SUSPEND2DISK="dbus-send --system --dest=com.gentoo.powersave \
--print-reply /com/gentoo/powersave \
com.gentoo.powersave.action.SuspendToDisk"
unsupported() {
echo org.freedesktop.Hal.Device.SystemPowerManagement.NotSupported >&2
echo No hibernate script found >&2
exit 1
}
#SuSE and ALTLinux only support powersave
if [ -f /etc/altlinux-release ] || [ -f "/etc/SuSE-release" ] ; then
if [ -x /usr/bin/powersave ] ; then
$POWERSAVED_SUSPEND2DISK
RET=$?
else
unsupported
fi
#RedHat/Fedora only support pm-utils
elif [ -f /etc/redhat-release ] || [ -f /etc/fedora-release ] ; then
if [ -x /usr/sbin/pm-hibernate ] ; then
/usr/sbin/pm-hibernate
RET=$?
else
unsupported
fi
#Other distros just need to have *any* tools installed
else
if [ -x "/usr/bin/powersave" ] ; then
$POWERSAVED_SUSPEND2DISK
RET=$?
elif [ -x "/usr/sbin/pmi" ] ; then
/usr/sbin/pmi action hibernate force
RET=$?
elif [ -x "/usr/sbin/pm-hibernate" ] ; then
/usr/sbin/pm-hibernate
RET=$?
elif [ -x "/usr/sbin/hibernate" ] ; then
# Suspend2 tools installed
/usr/sbin/hibernate --force
RET=$?
elif [ -w "/sys/power/state" ] ; then
# Use the raw kernel sysfs interface
echo "disk" > /sys/power/state
RET=$?
else
unsupported
fi
fi
exit $RET
I have the /usr/sbin/hibernate script and it has permissions of -rwxr-xr-x
Any more ideas?
Thanks.
David
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]