Bug 156831 - plasma battery-widget reports two batteries in 2.6.24 when only one exists
Summary: plasma battery-widget reports two batteries in 2.6.24 when only one exists
Status: RESOLVED NOT A BUG
Alias: None
Product: plasma4
Classification: Plasma
Component: widget-battery (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-28 03:42 UTC by Kevin Valko
Modified: 2008-01-28 18:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Valko 2008-01-28 03:42:24 UTC
Version:            (using KDE 4.0.0)
Installed from:    SuSE RPMs
OS:                Linux

Running openSUSE 10.3 (2.6.22 default), I recently compiled vanilla 2.6.24 and the battery widget in plasma now displays two batteries.  Standard openSUSE does not display this.

I did see previous similar bugs about this, but my laptop (Dell Vostro 1700) doesn't have dual battery bays, and the second battery icon is displaying an indentical charge to the first, so I'm not sure that this is a duplicate.

From solid:

kvalko@elsewhere:~/kernel/linux-2.6.24/sound/pci/hda> solidshell hardware list details | grep -i bat
udi = '/org/freedesktop/Hal/devices/acpi_BAT0'
  product = 'Battery Bay'  (string)
  Battery.plugged = true  (bool)
  Battery.type = 'PdaBattery|UpsBattery|PrimaryBattery'  (0x3)  (enum)
  Battery.chargePercent = 100  (0x64)  (int)
  Battery.rechargeable = true  (bool)
  Battery.chargeState = 'NoCharge'  (0x0)  (enum)
  Battery.plugged = true  (bool)
  Battery.type = 'PdaBattery|UpsBattery|PrimaryBattery'  (0x3)  (enum)
  Battery.chargePercent = 100  (0x64)  (int)
  Battery.rechargeable = false  (bool)
  Battery.chargeState = 'NoCharge'  (0x0)  (enum)

As pointed, if I revert to 2.6.22.x for booting, the battery-widget reports (accurately) a single battery.

Not sure why this is happening, I'm not sure where this mystery battery is being detected, so let me know if there's somewhere I can poke at in my system to discover where the plasma engine is peeking.
Comment 1 Christopher Blauvelt 2008-01-28 04:29:07 UTC
Can you give us the same print-out under 2.6.22?  It appears that HAL is reporting information twice which is causing the problem.
Comment 2 Luka Renko 2008-01-28 18:34:28 UTC
This is a known bug in HAL with new kernel interfacaces introduced in 2.6.24 kernel (batteries are now reported twice: in /proc and in /sysfs).

See https://bugs.freedesktop.org/show_bug.cgi?id=13669

Closing this as INVALID (not KDE issue)