[Bug 1093543] Re: Battery status behaves erratically

2024-04-01 Thread Test
The same thing on Asus N550JV and Ubuntu 22.04.4 LTS. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1093543 Title: Battery status behaves erratically To manage notifications about this bug go to:

[Bug 1093543] Re: Battery status behaves erratically

2013-03-10 Thread Ron Terwilliger
I'm still having the issue on kernel 3.1.10-9.27, no matter what I attempt or try, ubuntu always thinks the nexus 7 is about dead. I was curious if there was anymore on this as there hasn't been a post in a month and searching for this issue returned nothing other than this site. I'm not sure

[Bug 1093543] Re: Battery status behaves erratically

2013-02-06 Thread Robert Bruce Park
** Changed in: ubuntu-nexus7 Status: New = Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1093543 Title: Battery status behaves erratically To manage notifications about this bug go

[Bug 1093543] Re: Battery status behaves erratically

2013-01-31 Thread bwalex
Martin, for whatever it's worth, the following upower bug I filed might also be related - since an idle nexus 7 has a longer battery life than 20 hours, one would hope. https://bugs.freedesktop.org/show_bug.cgi?id=60110 Cheers, Alex ** Bug watch added: freedesktop.org Bugzilla #60110

[Bug 1093543] Re: Battery status behaves erratically

2013-01-31 Thread Martin Pitt
I committed the patch upstream and wrote a corresponding test case. ** Changed in: upower (Ubuntu) Status: Confirmed = In Progress ** Changed in: upower (Ubuntu) Assignee: (unassigned) = Martin Pitt (pitti) -- You received this bug notification because you are a member of Ubuntu

[Bug 1093543] Re: Battery status behaves erratically

2013-01-31 Thread Martin Pitt
Alex, indeed. I followed up to the upstream bug and will discuss that with Richard once he comes online. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1093543 Title: Battery status behaves

[Bug 1093543] Re: Battery status behaves erratically

2013-01-31 Thread Launchpad Bug Tracker
This bug was fixed in the package upower - 0.9.19-1ubuntu4 --- upower (0.9.19-1ubuntu4) raring; urgency=low * Add battery_mixed_charge_energy_test.patch: Fix batteries which report the current energy (µWh), but only the full charge (µAh). Thanks Alex Hornung for the patch!

[Bug 1093543] Re: Battery status behaves erratically

2013-01-31 Thread Martin Pitt
Reopening kernel task, as two patches haven't been applied yet. ** Changed in: linux-nexus7 (Ubuntu) Status: Fix Released = Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1093543

[Bug 1093543] Re: Battery status behaves erratically

2013-01-31 Thread Oliver Grawert
a test kernel is here http://people.canonical.com/~ogra/tegra/nexus7 /linux-image-3.1.10-9-nexus7_3.1.10-9.24_armhf.deb -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1093543 Title: Battery status

[Bug 1093543] Re: Battery status behaves erratically

2013-01-31 Thread Oliver Grawert
testing with all patches applied this seems to fix it ... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1093543 Title: Battery status behaves erratically To manage notifications about this bug go

[Bug 1093543] Re: Battery status behaves erratically

2013-01-30 Thread Oliver Grawert
there is no change with this patch, turning back to confirmed ** Changed in: linux-nexus7 (Ubuntu) Status: Fix Released = Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1093543

[Bug 1093543] Re: Battery status behaves erratically

2013-01-30 Thread bwalex
While gema's issue (which was dealing with raw sysfs read data) is gone with this patch, I suspect your issue might well be related to upower. Did you try with the second patch as well? The Provide energy measurement ? A quick skim through the relevant upower code would indicate that it does try

[Bug 1093543] Re: Battery status behaves erratically

2013-01-30 Thread Gema Gomez
The patch definitely fixed my issue, you could see the graph before, attach the graph after. The other patch for energy_now measurements is the one shown in https://bugs.launchpad.net/ubuntu-nexus7/+bug/1093543. ** Attachment added: draining_new_kernel.png

[Bug 1093543] Re: Battery status behaves erratically

2013-01-30 Thread Gema Gomez
LP: #1109183, rather ! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1093543 Title: Battery status behaves erratically To manage notifications about this bug go to:

[Bug 1093543] Re: Battery status behaves erratically

2013-01-30 Thread bwalex
Actually I don't think the energy patch will change much. Fact is that, since we don't provide current_now nor power_now, upower will do, /* the hardware reporting failed -- try to calculate this */ if (energy_rate 0.01) energy_rate =

[Bug 1093543] Re: Battery status behaves erratically

2013-01-30 Thread bwalex
Attached is a kernel patch to provide current_now. It may help with the upower issues, as it should result in upower using a different method to calculate the remaining time, etc. Cheers, Alex ** Patch added: 0001-power-bq27541_battery-Provide-current_now.patch

[Bug 1093543] Re: Battery status behaves erratically

2013-01-30 Thread Oliver Grawert
awesome, i will test it during the day ... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1093543 Title: Battery status behaves erratically To manage notifications about this bug go to:

[Bug 1093543] Re: Battery status behaves erratically

2013-01-30 Thread Oliver Grawert
testing a kernel with teh above patch doesnt seem to fix it either ... but i made an intresting observation: right after first boot ogra@nexus7:~$ upower -d |grep energy-full: energy-full: 73.66 Wh the energy-full value actually should be a fixed value coming from the battery

[Bug 1093543] Re: Battery status behaves erratically

2013-01-30 Thread Till Kamppeter
For me the Nexus 7 says that the battery is low with 100%. Also the Pandaboard behaves strangely, sometimes it shows that it has a battery, sometimes that it has no battery but I never get no battery symbol in the indicator area at all (as it should be for a device without battery). -- You

[Bug 1093543] Re: Battery status behaves erratically

2013-01-30 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/raring-proposed/linux-nexus7 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1093543 Title: Battery status behaves erratically To manage notifications about this bug go

[Bug 1093543] Re: Battery status behaves erratically

2013-01-30 Thread Launchpad Bug Tracker
This bug was fixed in the package linux-nexus7 - 3.1.10-9.24 --- linux-nexus7 (3.1.10-9.24) raring; urgency=low [ Alex Hornung ] * SAUCE: power: bq27541_battery - Provide current_now - LP: #1093543 [ Andy Whitcroft ] * [Config] switch from USB_G_SERIAL to

[Bug 1093543] Re: Battery status behaves erratically

2013-01-30 Thread bwalex
Well, here go 3 more patches 1 for upower, 2 for the kernel. The upower one just fixes a logic bug that will allow the design capacity to be read via charge, even though the current energy is read directly as energy. The kernel patches are: 1) Fix a bug in a previous patch - even though the

[Bug 1093543] Re: Battery status behaves erratically

2013-01-30 Thread bwalex
Fixes units of energy_now (10mWh - mWh) ** Patch added: 0001-power-bq27541_battery-fix-units-of-energy_now.patch https://bugs.launchpad.net/ubuntu-nexus7/+bug/1093543/+attachment/3508103/+files/0001-power-bq27541_battery-fix-units-of-energy_now.patch -- You received this bug notification

[Bug 1093543] Re: Battery status behaves erratically

2013-01-30 Thread bwalex
PS: note that the upower patch is against the upstream version, so it may or may not apply cleanly to the version ubuntu has. Nonetheless, it should be straight forward to apply the patch manually - it's just 1 line. -- You received this bug notification because you are a member of Ubuntu Bugs,

[Bug 1093543] Re: Battery status behaves erratically

2013-01-30 Thread bwalex
Adds charge_full and charge_full_design nodes/measurements. ** Patch added: 0001-power-bq27541_driver-Add-charge_full-charge_full_des.patch https://bugs.launchpad.net/ubuntu-nexus7/+bug/1093543/+attachment/3508110/+files/0001-power-bq27541_driver-Add-charge_full-charge_full_des.patch --

[Bug 1093543] Re: Battery status behaves erratically

2013-01-30 Thread bwalex
The patch for charge_full and charge_full_design ** Patch removed: 0001-power-bq27541_driver-Add-charge_full-charge_full_des.patch https://bugs.launchpad.net/ubuntu-nexus7/+bug/1093543/+attachment/3508110/+files/0001-power-bq27541_driver-Add-charge_full-charge_full_des.patch ** Patch added:

[Bug 1093543] Re: Battery status behaves erratically

2013-01-30 Thread bwalex
(NOTE that I updated the patch for charge_full and charge_full_design - yesterday I forgot to commit one last diff before generating the patch). All of these patches have now been sent upstream as well. The android one for energy_now has been updated with all the other extra measurements.

[Bug 1093543] Re: Battery status behaves erratically

2013-01-29 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: upower (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1093543 Title:

[Bug 1093543] Re: Battery status behaves erratically

2013-01-29 Thread Gema Gomez
** Changed in: upower (Ubuntu) Status: Confirmed = New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1093543 Title: Battery status behaves erratically To manage notifications about this bug

[Bug 1093543] Re: Battery status behaves erratically

2013-01-29 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: upower (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1093543 Title:

[Bug 1093543] Re: Battery status behaves erratically

2013-01-29 Thread bwalex
The issue here is a bug in the bq27541 fuel gauge driver. The get_property() function is not thread-safe, but reentry is possible in several different scenarios. The attached patch fixes this issue by protecting get_property() via a mutex. Below is the patch commit message, for clarity: *

[Bug 1093543] Re: Battery status behaves erratically

2013-01-29 Thread Ubuntu Foundations Team Bug Bot
The attachment 0001-power-bq27541-driver-serialize-get_property.patch of this bug report has been identified as being a patch. The ubuntu- reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this

[Bug 1093543] Re: Battery status behaves erratically

2013-01-29 Thread Andy Whitcroft
** Changed in: ubuntu-nexus7 Status: Confirmed = Fix Committed ** Changed in: ubuntu-nexus7 Status: Fix Committed = New ** Also affects: linux-nexus7 (Ubuntu) Importance: Undecided Status: New ** Changed in: linux-nexus7 (Ubuntu) Status: New = Fix Committed **

[Bug 1093543] Re: Battery status behaves erratically

2013-01-29 Thread Launchpad Bug Tracker
This bug was fixed in the package linux-nexus7 - 3.1.10-9.23 --- linux-nexus7 (3.1.10-9.23) raring; urgency=low [ Alex Hornung ] * SAUCE: power: bq27541 driver - serialize get_property - LP: #1093543 * SAUCE: power: bq27541_battery - Provide energy measurement - LP:

[Bug 1093543] Re: Battery status behaves erratically

2013-01-29 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/linux-nexus7 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1093543 Title: Battery status behaves erratically To manage notifications about this bug go to:

[Bug 1093543] Re: Battery status behaves erratically

2013-01-28 Thread Alex Chiang
** Tags added: sensors -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1093543 Title: Battery status behaves erratically To manage notifications about this bug go to:

[Bug 1093543] Re: Battery status behaves erratically

2013-01-28 Thread Colin King
** Also affects: upower (Ubuntu) Importance: Undecided Status: New ** Changed in: ubuntu-nexus7 Assignee: Colin King (colin-king) = (unassigned) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.