After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 570133 - Doesn't work correctly with two batteries
Doesn't work correctly with two batteries
Status: RESOLVED OBSOLETE
Product: gnome-power-manager
Classification: Deprecated
Component: general
2.25.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME Power Manager Maintainer(s)
GNOME Power Manager Maintainer(s)
: 583362 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-02-01 19:41 UTC by Kjartan Maraas
Modified: 2016-07-15 11:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
log file (114.85 KB, application/octet-stream)
2009-02-05 01:07 UTC, Kjartan Maraas
Details

Description Kjartan Maraas 2009-02-01 19:41:47 UTC
gnome-power-manager doesn't handle laptops with more than one battery very well. It just shows warnings and information as if the currently discharging one is the only one installed. Thus when the first battery runs out it shows warnings about power being critically low, and then goes on to say that the battery is fully charged when it starts using the other one and so on.
Comment 1 Richard Hughes 2009-02-02 12:42:38 UTC
(In reply to comment #0)
> ...and then goes on to say that the battery is fully charged when it starts
> using the other one and so on.

This is a kernel bug : http://www.spinics.net/lists/linux-acpi/msg19946.html

I'm just waiting for the patch to be committed. 

Comment 2 Richard Hughes 2009-02-02 12:45:00 UTC
(In reply to comment #0)
> Thus when the first battery runs out it shows warnings about power being critically low

Does your battery discharge one at a time or both at the same time? Could you please get the output from:

devkit-power --monitor-detail

when you've gone from both fully charged to both depleted. I want to make sure I get this right for g-p-m this time, the old engine had so many bodge-factors it was impossible to maintain.

Thanks dude.

Richard.
Comment 3 Kjartan Maraas 2009-02-05 01:07:47 UTC
Created attachment 127982 [details]
log file

Here's a log file covering discharging from both batteries full to the last one almost empty.
Comment 4 Richard Hughes 2009-02-05 12:14:48 UTC
Right, thanks for that -- that's all the data I need. We really need my kernel patch to be applied to prevent the crazy fully-charged reading when the embedded controller is unknown. I'll link this bug to the kernel bug.

I'll work on patches this afternoon.
Comment 5 Richard Hughes 2009-02-05 12:26:13 UTC
Kernel bug here: http://bugzilla.kernel.org/show_bug.cgi?id=12632
Comment 6 Jason Clinton 2009-04-13 04:47:46 UTC
It appears this patch is in 2.6.29 release (merged in RC5) and on Fedora 11 (Rawhide) this still doesn't work right. Downstream bug here: https://bugzilla.redhat.com/show_bug.cgi?id=220962

On a Lenovo T400., when reaching critical on Battery 1, g-p-m executes the indicated critical state. Battery 2 is 100% full.
Comment 7 Richard Hughes 2009-05-12 10:26:04 UTC
I've just purchased an IBM Thinkpad Ultrabay Slim Battery so I can debug this
locally here. Sorry for the delay.
Comment 8 Loïc Minier 2009-05-25 11:54:33 UTC
*** Bug 583362 has been marked as a duplicate of this bug. ***
Comment 9 Andreas Proschofsky 2009-06-06 08:33:49 UTC
Same problem here with a Thinpad X301, computer hibernates after the bay battery is empty (unless I turn this off). Also the remaining run time is solely taking the first battery in account.
Comment 10 Kjartan Maraas 2009-09-29 09:26:51 UTC
I just experienced a new case of the machine suspending when the first battery was empty today. This is with the packages from fedora rawhide.
Comment 11 Richard Hughes 2009-09-29 10:05:49 UTC
(In reply to comment #10)
> I just experienced a new case of the machine suspending when the first battery
> was empty today. This is with the packages from fedora rawhide.

That totally shouldn't have happened. Could you get the --verbose log from gnome-power-manager when this happens please?
Comment 12 Kjartan Maraas 2011-01-19 22:35:24 UTC
I have no way of testing this any more. Maybe we should close the report?
Comment 13 Andreas Proschofsky 2011-01-20 09:56:49 UTC
The problem is still valid here with gpm 2.91.5
Comment 14 Laura Dietz 2012-11-09 21:49:18 UTC
The problem is still present in Ubuntu/quantal.

Experienced on Dell Latitude E6430 with second battery in DVD slot.
I turned off actions for "when battery is critically low" in the power settings.


The first time is drawed from both batteries, the second time it emptied one, shut down, the other battery is fully charged.


How can I produce the output from the gnome-power-manager ?

Here some output from upower


[aristoteles ~] $ upower --monitor-detail
Monitoring activity from the power daemon. Press Ctrl+C to cancel.
[16:48:20.130]	device changed:     /org/freedesktop/UPower/devices/battery_BAT0
  native-path:          /sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0
  vendor:               Sanyo
  model:                DELL NH6K925
  serial:               630
  power supply:         yes
  updated:              Fri Nov  9 16:48:20 2012 (0 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    energy:              9.0354 Wh
    energy-empty:        0 Wh
    energy-full:         60.1953 Wh
    energy-full-design:  62.16 Wh
    energy-rate:         8.5248 W
    voltage:             10.384 V
    time to empty:       1.1 hours
    percentage:          15.0101%
    capacity:            96.8393%
    technology:          lithium-ion
  History (charge):
    1352497695	15.010	discharging
    1352497665	14.604	charging
    1352497635	14.199	charging
    1352497605	13.793	charging
  History (rate):
    1352497699	8.525	discharging
    1352497697	9.812	discharging
    1352497695	29.781	discharging
    1352497695	29.304	discharging

[16:48:20.134]	device changed:     /org/freedesktop/UPower/devices/battery_BAT2
  native-path:          /sys/devices/LNXSYSTM:00/device:00/PNP0C0A:02/power_supply/BAT2
  vendor:               Samsung SDI
  model:                DELL W1GGM25
  serial:               36939
  power supply:         yes
  updated:              Fri Nov  9 16:48:20 2012 (0 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    energy:              28.6602 Wh
    energy-empty:        0 Wh
    energy-full:         31.08 Wh
    energy-full-design:  31.08 Wh
    energy-rate:         0.0111 W
    voltage:             12.426 V
    percentage:          92.2143%
    capacity:            96.5357%
    technology:          lithium-ion
  History (charge):
    1352497695	92.214	fully-charged

[16:48:21.140]	device changed:     /org/freedesktop/UPower/devices/battery_BAT0
  native-path:          /sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0
  vendor:               Sanyo
  model:                DELL NH6K925
  serial:               630
  power supply:         yes
  updated:              Fri Nov  9 16:48:21 2012 (0 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    energy:              9.0243 Wh
    energy-empty:        0 Wh
    energy-full:         60.1953 Wh
    energy-full-design:  62.16 Wh
    energy-rate:         8.9244 W
    voltage:             10.368 V
    time to empty:       1.0 hours
    percentage:          14.9917%
    capacity:            96.8393%
    technology:          lithium-ion
  History (charge):
    1352497701	14.992	discharging
    1352497695	15.010	discharging
    1352497665	14.604	charging
    1352497635	14.199	charging
    1352497605	13.793	charging
  History (rate):
    1352497701	8.924	discharging
    1352497699	8.525	discharging
    1352497697	9.812	discharging
    1352497695	29.781	discharging
    1352497695	29.304	discharging

[16:48:21.143]	device changed:     /org/freedesktop/UPower/devices/battery_BAT2
  native-path:          /sys/devices/LNXSYSTM:00/device:00/PNP0C0A:02/power_supply/BAT2
  vendor:               Samsung SDI
  model:                DELL W1GGM25
  serial:               36939
  power supply:         yes
  updated:              Fri Nov  9 16:48:21 2012 (0 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    energy:              28.6602 Wh
    energy-empty:        0 Wh
    energy-full:         31.08 Wh
    energy-full-design:  31.08 Wh
    energy-rate:         0.0111 W
    voltage:             12.426 V
    percentage:          92.2143%
    capacity:            96.5357%
    technology:          lithium-ion
  History (charge):
    1352497695	92.214	fully-charged

[16:48:22.131]	device changed:     /org/freedesktop/UPower/devices/battery_BAT0
  native-path:          /sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0
  vendor:               Sanyo
  model:                DELL NH6K925
  serial:               630
  power supply:         yes
  updated:              Fri Nov  9 16:48:22 2012 (0 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    energy:              9.0243 Wh
    energy-empty:        0 Wh
    energy-full:         60.1953 Wh
    energy-full-design:  62.16 Wh
    energy-rate:         8.9244 W
    voltage:             10.368 V
    time to empty:       1.0 hours
    percentage:          14.9917%
    capacity:            96.8393%
    technology:          lithium-ion
  History (charge):
    1352497701	14.992	discharging
    1352497695	15.010	discharging
    1352497665	14.604	charging
    1352497635	14.199	charging
    1352497605	13.793	charging
  History (rate):
    1352497701	8.924	discharging
    1352497699	8.525	discharging
    1352497697	9.812	discharging
    1352497695	29.781	discharging
    1352497695	29.304	discharging

[16:48:22.134]	device changed:     /org/freedesktop/UPower/devices/battery_BAT2
  native-path:          /sys/devices/LNXSYSTM:00/device:00/PNP0C0A:02/power_supply/BAT2
  vendor:               Samsung SDI
  model:                DELL W1GGM25
  serial:               36939
  power supply:         yes
  updated:              Fri Nov  9 16:48:22 2012 (0 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    energy:              28.6602 Wh
    energy-empty:        0 Wh
    energy-full:         31.08 Wh
    energy-full-design:  31.08 Wh
    energy-rate:         0.0111 W
    voltage:             12.426 V
    percentage:          92.2143%
    capacity:            96.5357%
    technology:          lithium-ion
  History (charge):
    1352497695	92.214	fully-charged
Comment 15 Ben Gamari 2013-01-30 01:15:46 UTC
ping.
Comment 16 Kjartan Maraas 2016-07-15 11:19:05 UTC
Closing this as obsolete.