GNOME Bugzilla – Bug 338634
system batteries are listed in the reverse order
Last modified: 2006-04-15 22:35:51 UTC
I have 2 batteries in my laptop, the usual one, and one extra battery that fits in the DVD bay. The acpi and HAL correctly place the batteries in the normal order (first the regular/system battery in /proc/acpi/battery/BAT0, then the extra battery in /proc/acpi/battery/BAT1 ). The gpm displays the battery info in the reverse order, first the extra battery, then the regualar one. It should be the other way around.
Created attachment 63599 [details] here is a screenshot that shows the described behaviour
Hmm. We get the order from the capability request, so I'm lost why HAL would re-arrange the order. Can you attach a lshal please. Thanks.
Created attachment 63607 [details] lshal output with the extra battery removed
2006-04-15 Richard Hughes <richard@hughsie.com> * src/gpm-power.c (battery_kind_cache_add_device): Make sure we add the new device to the *end*, not the *start* of the device list. Should fix #338634, where the batteries are listed in the reverse order to what ACPI and HAL reports. Please can you confirm that this does indeed fix the problem. Thanks Paul, Richard.
Hi Richard, I confirm that it fix the problem. Thx, Paul