[Bug 629258] Re: Battery life estimation never comes around

2011-06-26 Thread Andy Eyre
Hi Mohegan.

I too saw the double reporting of battery status, when I first installed
11.04. However, I saw it *before* I'd installed the patched upower, so I
don't think it's related to that (unless you tell me that you only had
one line *until* you installed the patch).

The thing is, the patch affects upower and the data that it reports --
but the icon belongs to gnome-power-manager, which reads the upower data
and draws the graphs and things -- and is nothing to do with upower per
se. Unless you can definitely identify the behaviour as coming from the
patched upower, I'd be tempted to file a new bug under gnome-power-
manager.

If it's any help, the double reporting seemed to go away for me as soon
as I installed all the latest package updates, though as I said, that
was before I'd installed the upower patch.

andy

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to a duplicate bug report (38795).
https://bugs.launchpad.net/bugs/629258

Title:
  Battery life estimation never comes around

To manage notifications about this bug go to:
https://bugs.launchpad.net/devicekit-power/+bug/629258/+subscriptions

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


[Bug 629258] Re: Battery life estimation never comes around

2011-06-25 Thread Andy Eyre
** Branch linked: lp:ubuntu/natty/upower

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to a duplicate bug report (38795).
https://bugs.launchpad.net/bugs/629258

Title:
  Battery life estimation never comes around

To manage notifications about this bug go to:
https://bugs.launchpad.net/devicekit-power/+bug/629258/+subscriptions

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


[Bug 629258] Re: Battery life estimation never comes around

2011-06-25 Thread Andy Eyre
This bug is still present in Natty. Sorry, I can't get LauchPad to add
natty/upower as a new target for this bug - maybe somebody more au fait
with launchpad can do that.

I have, however, examined  tested my earlier patch (for upower on
10.10) against upower-0.9.9 that ships with Natty, and it checks out and
works fine.

Hence, I attach a .deb with the i386 binary of my patched upower, plus
the source.

If somebody wants to also compile for amd64 architecture and add to
their PPA (like they did with the earlier patch) to aid distribution,
then I'd be thankful - I don't have time for this.

I also see a lot of comments about upstream patches and the need to re-
enable the disabled code - this patch does exactly that - fixes the
broken estimation code and re-enables it. I don't have time to do it
myself, but if somebody wants to commit my patch back up to the ubuntu
upower project, then this bug would be fixed for everybody.


** Attachment added: dsc debian source file + auxillaries, original source not 
included
   
https://bugs.launchpad.net/ubuntu/+source/upower/+bug/629258/+attachment/2181519/+files/upower_0.9.9-4eyre1.tar.gz

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to a duplicate bug report (38795).
https://bugs.launchpad.net/bugs/629258

Title:
  Battery life estimation never comes around

To manage notifications about this bug go to:
https://bugs.launchpad.net/devicekit-power/+bug/629258/+subscriptions

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


[Bug 629258] Re: Battery life estimation never comes around

2011-06-25 Thread Andy Eyre
** Attachment added: upower_0.9.9-4eyre1_i386.deb
   
https://bugs.launchpad.net/ubuntu/+source/upower/+bug/629258/+attachment/2181525/+files/upower_0.9.9-4eyre1_i386.deb

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to a duplicate bug report (38795).
https://bugs.launchpad.net/bugs/629258

Title:
  Battery life estimation never comes around

To manage notifications about this bug go to:
https://bugs.launchpad.net/devicekit-power/+bug/629258/+subscriptions

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


[Bug 629258] Re: Battery life estimation never comes around

2011-06-25 Thread Andy Eyre
Yes. Attached.

** Patch added: upower_0.9.9-4eyre1.debdiff
   
https://bugs.launchpad.net/ubuntu/+source/upower/+bug/629258/+attachment/2181528/+files/upower_0.9.9-4eyre1.debdiff

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to a duplicate bug report (38795).
https://bugs.launchpad.net/bugs/629258

Title:
  Battery life estimation never comes around

To manage notifications about this bug go to:
https://bugs.launchpad.net/devicekit-power/+bug/629258/+subscriptions

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


[Bug 629258] Re: Battery life estimation never comes around

2010-10-31 Thread Andy Eyre
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=0d=1

Tarball of source and diffs:

https://sites.google.com/site/andyeyre/files/upower_0.9.5-4eyre1-source.tgz?attredirects=0d=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