[upower PATCH 1/2] simplify 'on-battery' detection to avoid depending on unreliable battery state

Richard Hughes hughsient at gmail.com
Thu Oct 21 08:30:14 PDT 2010


On 12 October 2010 13:42, Michal Schmidt <mschmidt at redhat.com> wrote:
> A fix could be to remove all the guesswork in step 3. But the heuristics may be
> useful in other cases.

If you're discharging on a UPS, you're also "on-battery" -- no?

Maybe we can just ignore batteries in unknown state in
up_daemon_get_on_battery_local()?

Richard.


More information about the devkit-devel mailing list