According to the package's debian/changelog:
powermanagement-interface (0.3.16) gutsy; urgency=low
* pmi.acpi: Disable suspend and hibernate if /host is mounted via fuse; disable hibernate if a swap file is active.
-- Colin Watson <email address hidden> Wed, 29 Aug 2007 18:40:49 +0100
A diff shows:
diff -ru powermanagement-interface-0.3.15/debian/changelog powermanagement-interface-0.3.16/debian/changelog --- powermanagement-interface-0.3.15/debian/changelog 2007-04-10 23:09:35.000000000 +0100 +++ powermanagement-interface-0.3.16/debian/changelog 2007-08-29 18:40:52.000000000 +0100 @@ -1,3 +1,17 @@ +powermanagement-interface (0.3.16) gutsy; urgency=low + + * pmi.acpi: Disable suspend and hibernate if /host is mounted via fuse; + disable hibernate if a swap file is active. + + -- Colin Watson <email address hidden> Wed, 29 Aug 2007 18:40:49 +0100 + +powermanagement-interface (0.3.15ubuntu1) gutsy; urgency=low + + * Build for lpia. + * Set Ubuntu maintainer address. + + -- Matthias Klose <email address hidden> Fri, 24 Aug 2007 01:39:22 +0000 + powermanagement-interface (0.3.15) feisty; urgency=low
* gdm-signal/gdm-logout-action.c: diff -ru powermanagement-interface-0.3.15/debian/control powermanagement-interface-0.3.16/debian/control --- powermanagement-interface-0.3.15/debian/control 2005-03-22 22:45:54.000000000 +0000 +++ powermanagement-interface-0.3.16/debian/control 2007-08-24 02:39:22.000000000 +0100 @@ -1,7 +1,8 @@ Source: powermanagement-interface Section: admin Priority: optional -Maintainer: Thom May <email address hidden> +Maintainer: Ubuntu Core developers <email address hidden> +XSBC-Original-Maintainer: Thom May <email address hidden> Build-Depends: debhelper (>=4.1.16), libglib2.0-dev, libgtk2.0-dev, libxau-dev Standards-Version: 3.6.1.0
diff -ru powermanagement-interface-0.3.15/debian/rules powermanagement-interface-0.3.16/debian/rules --- powermanagement-interface-0.3.15/debian/rules 2006-03-20 06:34:39.000000000 +0000 +++ powermanagement-interface-0.3.16/debian/rules 2007-08-24 02:38:30.000000000 +0100 @@ -3,7 +3,7 @@ DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
# good known arches go up here -ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), "i386 amd64 ia64")) +ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), "i386 amd64 ia64 lpia")) TYPE := acpi pmtool-depends := -V'pmtool:Depends=acpi-support (>= 0.17)' endif diff -ru powermanagement-interface-0.3.15/pmi.acpi powermanagement-interface-0.3.16/pmi.acpi --- powermanagement-interface-0.3.15/pmi.acpi 2007-03-06 15:23:19.000000000 +0000 +++ powermanagement-interface-0.3.16/pmi.acpi 2007-08-29 18:40:44.000000000 +0100 @@ -22,14 +22,19 @@ [ ! -z "$1" ] && event="$1" case "$event" in suspend|sleep) - if [ "$ACPI_SLEEP" = true ]; then + if grep -q ' /host fuse' /proc/mounts; then + result=1 + elif [ "$ACPI_SLEEP" = true ]; then result=0 else result=1 fi ;; hibernate) - if [ "$ACPI_HIBERNATE" != true -o -f /var/run/do-not-hibernate ]; then + if grep -q ' /host fuse' /proc/mounts || \ + swapon -s | tail -n +2 | awk '$2 == "file" { exit 1 }'; then + result=1 + elif [ "$ACPI_HIBERNATE" != true -o -f /var/run/do-not-hibernate ]; then result=1 else result=0
According to the package's debian/changelog:
powermanagement -interface (0.3.16) gutsy; urgency=low
* pmi.acpi: Disable suspend and hibernate if /host is mounted via fuse;
disable hibernate if a swap file is active.
-- Colin Watson <email address hidden> Wed, 29 Aug 2007 18:40:49 +0100
A diff shows:
diff -ru powermanagement -interface- 0.3.15/ debian/ changelog powermanagement -interface- 0.3.16/ debian/ changelog -interface- 0.3.15/ debian/ changelog 2007-04-10 23:09:35.000000000 +0100 -interface- 0.3.16/ debian/ changelog 2007-08-29 18:40:52.000000000 +0100 t-interface (0.3.16) gutsy; urgency=low t-interface (0.3.15ubuntu1) gutsy; urgency=low t-interface (0.3.15) feisty; urgency=low
--- powermanagement
+++ powermanagement
@@ -1,3 +1,17 @@
+powermanagemen
+
+ * pmi.acpi: Disable suspend and hibernate if /host is mounted via fuse;
+ disable hibernate if a swap file is active.
+
+ -- Colin Watson <email address hidden> Wed, 29 Aug 2007 18:40:49 +0100
+
+powermanagemen
+
+ * Build for lpia.
+ * Set Ubuntu maintainer address.
+
+ -- Matthias Klose <email address hidden> Fri, 24 Aug 2007 01:39:22 +0000
+
powermanagemen
* gdm-signal/ gdm-logout- action. c: -interface- 0.3.15/ debian/ control powermanagement -interface- 0.3.16/ debian/ control -interface- 0.3.15/ debian/ control 2005-03-22 22:45:54.000000000 +0000 -interface- 0.3.16/ debian/ control 2007-08-24 02:39:22.000000000 +0100 -interface Maintainer: Thom May <email address hidden>
diff -ru powermanagement
--- powermanagement
+++ powermanagement
@@ -1,7 +1,8 @@
Source: powermanagement
Section: admin
Priority: optional
-Maintainer: Thom May <email address hidden>
+Maintainer: Ubuntu Core developers <email address hidden>
+XSBC-Original-
Build-Depends: debhelper (>=4.1.16), libglib2.0-dev, libgtk2.0-dev, libxau-dev
Standards-Version: 3.6.1.0
diff -ru powermanagement -interface- 0.3.15/ debian/ rules powermanagement -interface- 0.3.16/ debian/ rules -interface- 0.3.15/ debian/ rules 2006-03-20 06:34:39.000000000 +0000 -interface- 0.3.16/ debian/ rules 2007-08-24 02:38:30.000000000 +0100
--- powermanagement
+++ powermanagement
@@ -3,7 +3,7 @@
DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
# good known arches go up here HOST_ARCH) ,$(findstring $(DEB_HOST_ARCH), "i386 amd64 ia64")) HOST_ARCH) ,$(findstring $(DEB_HOST_ARCH), "i386 amd64 ia64 lpia")) Depends= acpi-support (>= 0.17)' -interface- 0.3.15/ pmi.acpi powermanagement -interface- 0.3.16/ pmi.acpi -interface- 0.3.15/ pmi.acpi 2007-03-06 15:23:19.000000000 +0000 -interface- 0.3.16/ pmi.acpi 2007-08-29 18:40:44.000000000 +0100
suspend| sleep)
result= 0
else
result= 1
fi
hibernate) do-not- hibernate ]; then do-not- hibernate ]; then
result= 1
else
result= 0
-ifeq ($(DEB_
+ifeq ($(DEB_
TYPE := acpi
pmtool-depends := -V'pmtool:
endif
diff -ru powermanagement
--- powermanagement
+++ powermanagement
@@ -22,14 +22,19 @@
[ ! -z "$1" ] && event="$1"
case "$event" in
- if [ "$ACPI_SLEEP" = true ]; then
+ if grep -q ' /host fuse' /proc/mounts; then
+ result=1
+ elif [ "$ACPI_SLEEP" = true ]; then
;;
- if [ "$ACPI_HIBERNATE" != true -o -f /var/run/
+ if grep -q ' /host fuse' /proc/mounts || \
+ swapon -s | tail -n +2 | awk '$2 == "file" { exit 1 }'; then
+ result=1
+ elif [ "$ACPI_HIBERNATE" != true -o -f /var/run/