[Pm-utils] pm-utils 1.2.1 and 1.1.2.5 released

Michael Biebl mbiebl at gmail.com
Mon Oct 6 03:22:36 PDT 2008


2008/10/6 Victor Lowther <victor.lowther at gmail.com>:
> On Sun, 2008-10-05 at 23:05 +0200, Michael Biebl wrote:

>
>> * --auto-quirks not working
>
> /me sighs -- I need to have hardware around that actually has the
> aforementioned quirks, or not try to write code and sooth an infant at
> the same time.
>
> diff --git a/pm/sleep.d/00auto-quirk b/pm/sleep.d/00auto-quirk
> index 0f9bcce..839c2c0 100755
> --- a/pm/sleep.d/00auto-quirk
> +++ b/pm/sleep.d/00auto-quirk
> @@ -6,7 +6,7 @@ do_add_quirks()
>  {
>        add_parameters $(lshal | \
>        awk -F '[. ]' \
> -               '/  power_management.quirk.[a-z_]+ = true/ \
> +               '/  power_management.quirk.[0-9a-z_]+ = true/ \
>                        {gsub(/_/, "-", $5); printf("--quirk-%s", $5)}')
>  }
>

We are almost there ;-)
Now the quirks are correctly extracted, but they have to be separated
by spaces, otherwise you get
--quirk-s3-bios--quirk-s3-mode

diff --git a/pm/sleep.d/00auto-quirk b/pm/sleep.d/00auto-quirk
index e45686e..5e26ae6 100755
--- a/pm/sleep.d/00auto-quirk
+++ b/pm/sleep.d/00auto-quirk
@@ -7,7 +7,7 @@ do_add_quirks()
        add_parameters $(lshal | \
        awk -F '[. ]' \
                '/  power_management.quirk.[0-9a-z_]+ = true/ \
-                       {gsub(/_/, "-", $5); printf("--quirk-%s", $5)}')
+                       {gsub(/_/, "-", $5); printf("--quirk-%s ", $5)}')
 }


With this patch, it finally works for me.

Unfortunately I noticed that I just missed the new release :-/

Michael



-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?


More information about the Pm-utils mailing list