gnome-power-manager shows 2 batteries instead of 1

Bug #146803 reported by Roel Huybrechts
22
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-power
Invalid
Unknown
gnome-power-manager (Ubuntu)
Triaged
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gnome-power-manager

This problem occurs on Gutsy Beta, not on Feisty; on my laptop which is an Acer Aspire 1692 with (1 !) Sanyo ZL01 battery.

Gnome-power-manager shows me two batteries while I only have one in my laptop. The first one is my actual battery and is recognized perfectly -- showing charging, discharging, capacity etc. The second one is shown as 0% loaded all the time and by clicking on it, it says "Status: missing".

/proc/acpi/battery also shows two batteries: BAT1 and BAT2 (On Gutsy that is, I'll add the state of /proc/acpi/battery on Feisty in a comment)

BAT1/info:
present: yes
design capacity: 4400 mAh
last full capacity: 2665 mAh
battery technology: rechargeable
design voltage: 14800 mV
design capacity warning: 300 mAh
design capacity low: 132 mAh
capacity granularity 1: 32 mAh
capacity granularity 2: 32 mAh
model number: ZL01
serial number: 60219
battery type: LION
OEM info: SANYO

BAT2/info:
present: no

Revision history for this message
Roel Huybrechts (rulus) wrote :

On Feisty /proc/acpi/battery shows the same BAT1 and BAT2 with the same info files as on Gutsy, thus this might not be related to the problem.

Revision history for this message
Johannes Langlotz (johannes-langlotz) wrote :

Same problem here with an Acer Travelmate 800 notebook.

Changed in gnome-power:
status: Unknown → New
Revision history for this message
LEVIS Cyril (atlas95) wrote :

Same problem on hardy with my dell xps m1330, I havn't the problem with gutsy.
I see the good battery and the good state, and a second, seem to be generic, with the same status of the good.

Revision history for this message
Michael Doube (michael-doube) wrote :

Same problem with Hardy alpha-2 on Sony Vaio SZ650: one battery installed, 2 displayed with identical % charge info.

Revision history for this message
Matteo Collina (matteo-collina) wrote :

I'm confirming this problem with Hardy alpha-2 on Asus A8JS and on gutsy everything runned fine.
But there is a main difference from the bug reported from gusty. I see only one battery in /proc/acpi/battery.
Is this a different bug?

Revision history for this message
Michael Doube (michael-doube) wrote :

My bug is the same as Matteo's - 2 batteries reported by the applet but only one BAT entry under /proc/acpi/battery. It seems to be quite a dangerous bug because the calculation of remaining time is not correct (too long) so the notebook runs out of charge before Linux has a chance to automatically suspend or shut down. My filesystem was damaged by just such a power failure.

Revision history for this message
Michael Doube (michael-doube) wrote :

When on AC mains and charging, the battery applet shows two batteries, one charging (42%) and one discharging (29%). Info attached.

Revision history for this message
Michael Doube (michael-doube) wrote :
Revision history for this message
Michael Doube (michael-doube) wrote :
Revision history for this message
Michael Doube (michael-doube) wrote :
Revision history for this message
Michael Doube (michael-doube) wrote :

michael@samantha:~/system_info$ cat /proc/acpi/battery/BAT1/info
present: yes
design capacity: 62640 mWh
last full capacity: 62640 mWh
battery technology: non-rechargeable
design voltage: 626 mV
design capacity warning: 0 mWh
design capacity low: 120 mWh
capacity granularity 1: 0 mWh
capacity granularity 2: 10 mWh
model number:
serial number:
battery type: LION
OEM info: Sony Corp.

michael@samantha:~/system_info$ cat /proc/acpi/battery/BAT1/state
present: yes
capacity state: ok
charging state: charging
present rate: 16367 mW
remaining capacity: 27310 mWh
present voltage: 11112 mV

Revision history for this message
Rich (rincebrain) wrote :

This problem occurs for me on Hardy alpha as well.

gnome-power-manager 2.20.1-1ubuntu1

The batteries update at different rates, and I suspect this behavior is why gnome-power-manager fails to warn me or correctly detect that I am nearing critical power levels, and hibernate/suspend (or even pop up a warning dialog) before my laptop loses power.

Changed in gnome-power-manager:
status: New → Confirmed
Revision history for this message
Carlos Perelló Marín (carlos) wrote :

I have the same problem with Hardy, although when I boot with Gutsy's kernel, it works correctly so I guess it's due to a change in the kernel since Gutsy release.

Revision history for this message
Nic (ntetreau) wrote :

Same problem here on Hardy using Sony Vaio sz680. There is only one battery in /proc/acpi/battery but I see two in G-P-M. The charge/discharge state of both seem unrelated.

Revision history for this message
SK (stephantom) wrote :

I can confirm this bug too using Hardy with all updates as of now.
My system information:

$ cat /proc/acpi/battery/BAT1/state /proc/acpi/battery/BAT1/info

present: yes
capacity state: ok
charging state: charged
present rate: 0 mA
remaining capacity: 6600 mAh
present voltage: 14800 mV

cat: : No such file or directory

present: yes
design capacity: 6600 mAh
last full capacity: 6600 mAh
battery technology: rechargeable
design voltage: 14800 mV
design capacity warning: 660 mAh
design capacity low: 198 mAh
capacity granularity 1: 264 mAh
capacity granularity 2: 3780 mAh
model number: Primary
serial number:
battery type: Lion
OEM info: Hewlett-Packard

Revision history for this message
SK (stephantom) wrote :
Revision history for this message
SK (stephantom) wrote :
Revision history for this message
SK (stephantom) wrote :
Changed in gnome-power-manager:
assignee: nobody → desktop-bugs
Revision history for this message
ruiniel (ruiniel) wrote :

Same problem on Toshiba p105-s6024
At least I got sound working after the DSDT saga:)

Changed in gnome-power-manager:
importance: Undecided → Low
status: Confirmed → Triaged
Revision history for this message
Jerone Young (jerone) wrote :

I'm seeing the same thing with my Lenovo Thinkpad T61 on Hardy.

I see the problem now
Battery1 is reading /proc/acpi/battery/BAT0/state

Battery2 is reading /proc/acpi/battery/BAT0/info

But there is ONLY 1 real Battery. It appears somebody just put some dumb code into gnome-power-manager.

Revision history for this message
Nic (ntetreau) wrote :

Fixed after installing the latest libhal-storage in today's updates

Revision history for this message
LordSavage (lordsavage) wrote :

Not fixed here. It shows one batterie but it's the wrong one.

Revision history for this message
slazZ (slazz) wrote :

Confirmed, that it schows the wrong one

Revision history for this message
Andrew Conkling (andrewski) wrote : Re: [Bug 146803] Re: gnome-power-manager shows 2 batteries instead of 1

On Thu, Feb 21, 2008 at 7:25 PM, LordSavage <email address hidden> wrote:

> *** This bug is a duplicate of bug 177570 ***
> https://bugs.launchpad.net/bugs/177570
>
> Not fixed here. It shows one batterie but it's the wrong one.
>

 Please share this on the master bug; someone else just reported the same.

Changed in gnome-power:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.