Hey Guys

I don't know whether gpm continually showing "estimating" when upower is
giving it null information is a *bug* or not, but the fundamental
problem is a bug in upower, not a bug in gpm.

upower-0.9.5 incorrectly gives null battery runtime information when it
can't get a electrical current reading from the hardware. There is code
in upower-0.9.5 to guess the battery runtime information in the absence
of a current reading, but that code is broken. Hence gpm is continually
reporting "estimating", waiting for a upower runtime estimate that it
will never receive.

I've patched the upower code, albeit in a fairly ugly way. I don't have
time to neaten this up - somebody can fix it upstream if they choose, or
perhaps neaten it up for an ubuntu-specific patch.

The patched upower code enables upower to estimate the battery runtime,
in the absence of a current reading. It takes a few minutes for the
battery charge state to move enough that an estimate can take place. On
my HP Mini 210 netbook, with this version of upower, gpm now estimates
the battery runtime and battery charge time, to within ballpark-correct
periods.

Anyway, a .deb of the hacked upower can be found at:

https://sites.google.com/site/andyeyre/files/upower_0.9.5-4eyre1_i386.deb?attredirects=0&d=1

Tarball of source and diffs:

https://sites.google.com/site/andyeyre/files/upower_0.9.5-4eyre1-source.tgz?attredirects=0&d=1

Checksums:
bb27c7d58a4f6e69f48b331876de981b  upower_0.9.5-4eyre1_i386.deb
3ade6e99b525f037ce5499a5dd58d1d6  upower_0.9.5-4eyre1-source.tgz


** Package changed: gnome-power-manager (Ubuntu) => upower (Ubuntu)

-- 
Battery life estimation never comes around
https://bugs.launchpad.net/bugs/629258
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to