summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/hal/files/hal-0.5.7.1-rescan-on-resume.patch')
-rw-r--r--sys-apps/hal/files/hal-0.5.7.1-rescan-on-resume.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/sys-apps/hal/files/hal-0.5.7.1-rescan-on-resume.patch b/sys-apps/hal/files/hal-0.5.7.1-rescan-on-resume.patch
new file mode 100644
index 000000000000..e9eeb3142016
--- /dev/null
+++ b/sys-apps/hal/files/hal-0.5.7.1-rescan-on-resume.patch
@@ -0,0 +1,16 @@
+--- tools/hal-system-power-hibernate 2006-04-26 19:25:40.000000000 -0500
++++ tools/hal-system-power-hibernate 2006-04-26 19:34:00.000000000 -0500
+@@ -53,4 +53,13 @@
+ fi
+ fi
+
++# Refresh devices when resuming from a hibernate
++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