On Jan 27, 2008 8:13 PM, Michael Biebl <[EMAIL PROTECTED]> wrote:
> 2008/1/27, Victor Lowther <[EMAIL PROTECTED]>:
> > on_ac_power never returns 255, so simplify our test functions.
>
> The original on_ac_power binary does (and we use this binary in
> Debian), so I'd rather not remove this check for 255.
> One downside of the pm-utils on_ac_power is, that it relies on hal.
> So, maybe it would be a good idea to return 255, in case
> hal-find-by-capability is not installed?

Fair enough -- the question then turns into what do we want to do on a
255 return code?

On second thought, mainline never actually uses get_power_status
anywhere, so we could just remove it.  Anyone remember what it was
originally used for?

> Cheers,
> Michael
>
>
> [1] http://linux-command.5w.cz/manual/on_ac_power
> --
> Why is it that all of the instruments seeking intelligent life in the
> universe are pointed away from Earth?
>
_______________________________________________
Pm-utils mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/pm-utils

Reply via email to