[patch] addon-hid-ups.c : battery.present is mandatory for HAL spec

David Zeuthen david at fubar.dk
Sun May 8 21:01:43 PDT 2005


On Sun, 2005-05-08 at 21:53 +0100, Richard Hughes wrote:
> What's the best way to enforce this for UPS's that don't report "I'm
> present?"

They would always report battery.is_present==TRUE I suppose.

> Also, I've noticed that UPS time to empty is measured in seconds on my
> UPS (and thus shows up as hours on GNOME Power Manager" as no conversion
> to minutes is done. 
> Is this my rubbish UPS, or is this a bug in HAL?

If the property battery.remaining_time is available (it's optional) it
always mean number of seconds. I don't believe we set any other
battery.* properties related to this - can you clarify please?

Cheers,
David


_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal



More information about the Hal mailing list