[Pm-utils] pm-functions

Ulf Betlehem ulf.betlehem at gmail.com
Sun May 10 13:56:24 PDT 2009


Hello,

I installed xubuntu-9.04 on my rather old laptop and noticed that pm-suspend
was not working. pm-hibernate was ok. It seems pm-functions only supports
suspend to "mem". Perhaps this should be configurable as in acpi-support
where you can select ACPI_SLEEP_MODE to be either "mem" or "standby"?

Anyway, I made quick fix that works for me:

--- pm-utils-1.2.5/pm/pm-functions.in    2009-03-26 04:14:06.000000000 +0200
+++ pm-utils-1.2.5-flu/pm/pm-functions.in    2009-05-10 23:50:42.000000000
+0300
@@ -257,6 +257,9 @@
     if grep -q mem /sys/power/state; then
         SUSPEND_MODULE="kernel"
         do_suspend() { echo -n "mem" >/sys/power/state; }
+    elif grep -q standby /sys/power/state; then
+        SUSPEND_MODULE="kernel"
+        do_suspend() { echo -n "standby" >/sys/power/state; }
     elif [ -c /dev/pmu ] && pm-pmu --check; then
         SUSPEND_MODULE="kernel"
         do_suspend() { pm-pmu --suspend; }

ulf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/pm-utils/attachments/20090510/d3387880/attachment.htm 


More information about the Pm-utils mailing list