diff -u hal-0.5.7/debian/changelog hal-0.5.7/debian/changelog --- hal-0.5.7/debian/changelog +++ hal-0.5.7/debian/changelog @@ -1,3 +1,11 @@ +hal (0.5.7-1ubuntu12) dapper; urgency=low + + * debian/patches/12_refresh_acpi_states.patch: + backport from CVS, refresh ACPI events after suspend/hibernate. + Half of the fix for [Malone: #33072] + + -- Paul Sladen Mon, 01 May 2006 16:00:05 +0100 + hal (0.5.7-1ubuntu11) dapper; urgency=low * debian/patches/is_mounted_read_only_property.patch: only in patch2: unchanged: --- hal-0.5.7.orig/debian/patches/12_refresh_acpi_states.patch +++ hal-0.5.7/debian/patches/12_refresh_acpi_states.patch @@ -0,0 +1,38 @@ +diff -Nru hal-0.5.7.old/tools/hal-system-power-hibernate hal-0.5.7/tools/hal-system-power-hibernate +--- hal-0.5.7.old/tools/hal-system-power-hibernate 2006-05-01 15:46:34.000000000 +0100 ++++ hal-0.5.7/tools/hal-system-power-hibernate 2006-05-01 15:53:45.000000000 +0100 +@@ -52,4 +52,15 @@ + fi + 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 +diff -Nru hal-0.5.7.old/tools/hal-system-power-suspend hal-0.5.7/tools/hal-system-power-suspend +--- hal-0.5.7.old/tools/hal-system-power-suspend 2006-05-01 15:46:34.000000000 +0100 ++++ hal-0.5.7/tools/hal-system-power-suspend 2006-05-01 15:53:11.000000000 +0100 +@@ -72,4 +72,15 @@ + fi + 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