SOURCES: hal-suspend2.patch (NEW) - support for new suspend2 sysfs...

freetz freetz at pld-linux.org
Thu Jul 27 21:01:45 CEST 2006


Author: freetz                       Date: Thu Jul 27 19:01:45 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- support for new suspend2 sysfs interface

---- Files affected:
SOURCES:
   hal-suspend2.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/hal-suspend2.patch
diff -u /dev/null SOURCES/hal-suspend2.patch:1.1
--- /dev/null	Thu Jul 27 21:01:45 2006
+++ SOURCES/hal-suspend2.patch	Thu Jul 27 21:01:40 2006
@@ -0,0 +1,12 @@
+diff -aurN hal-0.5.7.1.orig/hald/linux2/osspec.c hal-0.5.7.1/hald/linux2/osspec.c
+--- hal-0.5.7.1.orig/hald/linux2/osspec.c	2006-02-13 17:42:32.000000000 +0100
++++ hal-0.5.7.1/hald/linux2/osspec.c	2006-07-27 20:53:52.859809168 +0200
+@@ -476,6 +476,8 @@
+ 		can_hibernate = TRUE;
+ 	if (access ("/proc/suspend2", F_OK) == 0)
+ 		can_hibernate = TRUE;
++	if (access ("/sys/power/suspend2", F_OK) == 0)
++		can_hibernate = TRUE;
+ out:
+ 	hal_device_property_set_bool (d, "power_management.can_suspend_to_ram", can_suspend);
+ 	hal_device_property_set_bool (d, "power_management.can_suspend_to_disk", can_hibernate);
================================================================


More information about the pld-cvs-commit mailing list