2012/2/17 johnm <s...@forceway.com>: > On 02/16/2012 01:16 PM, Richard Hughes wrote: >> On 12 February 2012 22:01, johnm <s...@forceway.com> wrote: >>> shows. It seems upowerd doesn't like this value though. As you can see >>> below, upower -d reports 0%. Any fix for this? >> >> What's upower meant to do if the hardware reports 120%? Clip it to 100%?
this is a known bug in some CPS units. we, in NUT, have a workaround for this, clamping any value higher than 100 %: http://anonscm.debian.org/viewvc/nut/trunk/drivers/cps-hid.c?view=markup see cps_battcharge_fun() function. cheers, Arnaud -- Linux / Unix Expert R&D - Eaton - http://powerquality.eaton.com Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/ Debian Developer - http://www.debian.org Free Software Developer - http://arnaud.quette.free.fr/ _______________________________________________ devkit-devel mailing list devkit-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/devkit-devel