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:
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?attredirect s=0&d=1
Checksums: 9f48b331876de98 1b upower_ 0.9.5-4eyre1_ i386.deb 7ce5499a5dd58d1 d6 upower_ 0.9.5-4eyre1- source. tgz
bb27c7d58a4f6e6
3ade6e99b525f03