rpms/hal/devel hal-0.5.7-lid-open-fix.patch, NONE, 1.1 hal.spec, 1.89, 1.90

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Fri May 5 21:43:40 UTC 2006


Author: johnp

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

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/devel/hal.spec,v
retrieving revision 1.89
retrieving revision 1.90
diff -u -r1.89 -r1.90
--- hal.spec	24 Apr 2006 15:03:08 -0000	1.89
+++ hal.spec	5 May 2006 21:43:38 -0000	1.90
@@ -20,11 +20,12 @@
 Summary: Hardware Abstraction Layer
 Name: hal
 Version: 0.5.7
-Release: 5 
+Release: 6
 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
@@ -90,6 +91,7 @@
 %prep
 %setup -q
 %patch -p0 -b .fix-fedora-powersave
+%patch1 -p1 -b .lid-open-fix
 
 %build
 
@@ -195,6 +197,9 @@
 %{_bindir}/hal-device-manager
 
 %changelog
+* Fri May 05 2006 John (J5) Palmieri <johnp at redhat.com> - 0.5.7-6
+- Add fix so gnome-power-manager handles lid opens correctly now
+
 * Mon Apr 24 2006 John (J5) Palmieri <johnp at redhat.com> - 0.5.7-5
 - ifnarch the pm-utils requires for s390 and s390x
 




More information about the fedora-cvs-commits mailing list