Hi, this patch makes it possible to use a different hibernate mode, valid modes are according to Documentation/power/interface.txt platform shutdown reboot testproc test
Red Hat Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=375701 Regards, Till
This patch makes it possible to use a different hibernate mode, valid modes are according to Documentation/power/interface.txt platform shutdown reboot testproc test Author: Till Maas <opensource till name> License: same as pm-utils Red Hat Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=375701 diff -up pm-utils-0.99.4/pm/functions.hibernate_mode pm-utils-0.99.4/pm/functions --- pm-utils-0.99.4/pm/functions.hibernate_mode 2008-01-08 19:07:17.000000000 +0100 +++ pm-utils-0.99.4/pm/functions 2008-01-08 19:11:33.000000000 +0100 @@ -10,6 +10,7 @@ export PATH=/sbin:/usr/sbin:/bin:/usr/bi # RESUME_MODULES # set -a +HIBERNATE_MODE="platform" HIBERNATE_RESUME_POST_VIDEO=no INHIBIT=/var/run/pm-utils.inhibit PM_LOGFILE=${PM_LOGFILE:=/var/log/pm-suspend.log} @@ -132,7 +133,7 @@ do_suspend() do_hibernate() { [ ${DISABLE_HIBERNATE} == "yes" ] && return 0 - echo -n "platform" > /sys/power/disk + echo -n "${HIBERNATE_MODE}" > /sys/power/disk echo -n "disk" > /sys/power/state }
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Pm-utils mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/pm-utils
