Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=c7bfd14ddfbeb6a5a3257053da655fc614fb3e3e
commit c7bfd14ddfbeb6a5a3257053da655fc614fb3e3e Author: Priyank <[EMAIL PROTECTED]> Date: Sat Mar 1 12:14:36 2008 +0530 hal-0.5.10-4-i686 * Added suspend_hibernate.patch so that hal can make use of the raw kernel interface for suspend and hibernation required for Gnome/Xfce to work. * ok with crazy ;D diff --git a/source/apps/hal/FrugalBuild b/source/apps/hal/FrugalBuild index 0a39d1d..8d4650b 100644 --- a/source/apps/hal/FrugalBuild +++ b/source/apps/hal/FrugalBuild @@ -4,7 +4,7 @@ pkgname=hal pkgver=0.5.10 -pkgrel=3 +pkgrel=4 pkgdesc="Hardware Abstraction Layer" url="http://www.freedesktop.org/wiki/Software/hal" depends=('dbus-glib>=0.74' 'udev>=100' 'glib2' 'libcap' 'dbus>=1.1.2' \ @@ -23,6 +23,7 @@ source=(http://hal.freedesktop.org/releases/$pkgname-$pkgver.tar.gz \ hal.conf.in.patch \ hal-device-manager.desktop \ ntfs-3g.patch \ + suspend_hibernate.patch \ hal-performance_pci.ids_v5.diff) sha1sums=('8d67499df61590c11fd3203004d69e8a45abb8fa' \ 'ab629a3ea7df51df48abad30731590b8e86e908f' \ @@ -30,6 +31,7 @@ sha1sums=('8d67499df61590c11fd3203004d69e8a45abb8fa' \ 'be12d1327ca93e1830c5784f395e904b107f1947' \ '0c4968cbb842bdae350901728d81eed9895445fa' \ '2273e77c0c3c52aca31294b2b1a829937d0a3c18' \ + '2fab4fd75f1359b0838748dfae4d749eb26b64b9' \ '654235977c83f76433f9737f37b8a18f04136b35') diff --git a/source/apps/hal/suspend_hibernate.patch b/source/apps/hal/suspend_hibernate.patch new file mode 100644 index 0000000..272f93e --- /dev/null +++ b/source/apps/hal/suspend_hibernate.patch @@ -0,0 +1,28 @@ +diff -Naur hal-0.5.10/tools/linux/hal-system-power-hibernate-linux hal-0.5.10.new/tools/linux/hal-system-power-hibernate-linux +--- hal-0.5.10/tools/linux/hal-system-power-hibernate-linux 2007-07-26 23:30:28.000000000 +0530 ++++ hal-0.5.10.new/tools/linux/hal-system-power-hibernate-linux 2008-03-01 11:56:55.000000000 +0530 +@@ -26,6 +26,10 @@ + if [ -x /usr/sbin/pm-hibernate ] ; then + /usr/sbin/pm-hibernate $QUIRKS + RET=$? ++elif [ -w "/sys/power/state" ] ; then ++ # use the raw kernel interface ++ echo "disk" > /sys/power/state ++ RET=$? + else + unsupported + fi +diff -Naur hal-0.5.10/tools/linux/hal-system-power-suspend-linux hal-0.5.10.new/tools/linux/hal-system-power-suspend-linux +--- hal-0.5.10/tools/linux/hal-system-power-suspend-linux 2007-07-26 23:30:28.000000000 +0530 ++++ hal-0.5.10.new/tools/linux/hal-system-power-suspend-linux 2008-03-01 11:57:03.000000000 +0530 +@@ -39,6 +39,10 @@ + if [ -x "/usr/sbin/pm-suspend" ] ; then + /usr/sbin/pm-suspend $QUIRKS + RET=$? ++elif [ -w "/sys/power/state" ] ; then ++ # use the raw kernel interface ++ echo "mem" > /sys/power/state ++ RET=$? + else + # TODO: add support + unsupported _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
