Bug 156831

Summary: plasma battery-widget reports two batteries in 2.6.24 when only one exists
Product: [Unmaintained] plasma4 Reporter: Kevin Valko <kvalko>
Component: widget-batteryAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED NOT A BUG    
Severity: normal CC: rdieter
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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)