[Pm-utils] pm-functions

Victor Lowther victor.lowther at gmail.com
Wed May 20 18:55:33 PDT 2009


On Sun, 2009-05-10 at 23:56 +0300, Ulf Betlehem wrote:
> 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

Wow, how old is that laptop?  I thought S1 sleep died with APM power
management.

I don't mind adding support for it, but in my experience systems that
support S1 are few and far between -- S3 support is not much harder to
implement, and has better battery life.

> _______________________________________________
> Pm-utils mailing list
> Pm-utils at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/pm-utils
-- 
Victor Lowther
RHCE# 805008539634727
LPIC-2# LPI000140019



More information about the Pm-utils mailing list