FYI: Pmud bug

Stefan Bruda yellowdog-general@lists.terrasoftsolutions.com
Thu Aug 28 17:18:00 2003


Hi.

This seems to be a long-standing bug but it went unpatched in the YDL
pmud package.  The problem is that PMUD calls pwrctl lid-open with the
extra argument "ac" no matter what is the power state.  To fix,
replace line 513 in pmud.c, namely

						ac ? "ac" : "battery"

to

						powerlevel ? "ac" : "battery"

and recompile.

Just thought somebody would be interested.

Cheers,
Stefan

-- 
If it was so, it might be; and if it were so, it would be; but as
it isn't, it ain't. That's logic.
    --Lewis Carroll, Through the Looking-Glass