rpms/hal/FC-5 hal-0.5.7-lid-open-fix.patch, NONE, 1.1 hal.spec, 1.87, 1.88

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Wed Apr 26 15:24:22 UTC 2006


Author: johnp

Update of /cvs/dist/rpms/hal/FC-5
In directory cvs.devel.redhat.com:/tmp/cvs-serv19843

Modified Files:
	hal.spec 
Added Files:
	hal-0.5.7-lid-open-fix.patch 
Log Message:
- Add fix so gnome-power-manager handles lid opens correctly now


hal-0.5.7-lid-open-fix.patch:
 hal-system-power-hibernate |   10 ++++++++++
 hal-system-power-suspend   |   10 ++++++++++
 2 files changed, 20 insertions(+)

--- NEW FILE hal-0.5.7-lid-open-fix.patch ---
--- hal-0.5.7/tools/hal-system-power-hibernate.lid-open-fix	2006-04-26 11:13:35.000000000 -0400
+++ hal-0.5.7/tools/hal-system-power-hibernate	2006-04-26 11:14:14.000000000 -0400
@@ -52,4 +52,14 @@
 		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
--- hal-0.5.7/tools/hal-system-power-suspend.lid-open-fix	2006-04-26 11:11:43.000000000 -0400
+++ hal-0.5.7/tools/hal-system-power-suspend	2006-04-26 11:13:05.000000000 -0400
@@ -72,4 +72,14 @@
 	    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


Index: hal.spec
===================================================================
RCS file: /cvs/dist/rpms/hal/FC-5/hal.spec,v
retrieving revision 1.87
retrieving revision 1.88
diff -u -r1.87 -r1.88
--- hal.spec	3 Mar 2006 18:48:27 -0000	1.87
+++ hal.spec	26 Apr 2006 15:24:19 -0000	1.88
@@ -19,11 +19,12 @@
 Summary: Hardware Abstraction Layer
 Name: hal
 Version: 0.5.7
-Release: 3 
+Release: 3.fc5.1
 URL: http://www.freedesktop.org/Software/hal
 Source0: %{name}-%{version}.tar.gz
 Source1: 99-redhat-storage-policy-fixed-drives.fdi
 Patch0: hal-0.5.7-fix-fedora-power-save.patch
+Patch1: hal-0.5.7-lid-open-fix.patch
 License: AFL/GPL
 Group: System Environment/Libraries
 BuildRoot: %{_tmppath}/%{name}-root
@@ -85,7 +86,8 @@
 
 %prep
 %setup -q
-%patch -p0 -b .fix-fedora-powersave
+%patch0 -p0 -b .fix-fedora-powersave
+%patch1 -p1 -b .lid-open-fix
 
 %build
 
@@ -191,6 +193,9 @@
 %{_bindir}/hal-device-manager
 
 %changelog
+* Wed Apr 26 2006 John (J5) Palmieri <johnp at redhat.com> - 0.5.7-3.fc5.1
+- Add fix so gnome-power-manager handles lid opens correctly now
+
 * Fri Mar 03 2006 John (J5) Palmieri <johnp at redhat.com> - 0.5.7-3
 - Fix fstab clearing script to not strip whitespace
 




More information about the fedora-cvs-commits mailing list