[Bug 155239] New: battery applet shows empty bay as 0% battery
Laurens Vanhove
laurens at nature-helps.com
Mon Jan 7 19:23:30 CET 2008
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=155239
Summary: battery applet shows empty bay as 0% battery
Product: plasma
Version: unspecified
Platform: Compiled Sources
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
AssignedTo: panel-devel kde org
ReportedBy: laurens nature-helps com
Version: (using KDE Devel)
Installed from: Compiled sources
Compiler: gcc 4.1.2
OS: Linux
I have a Dell Latitude D820, with two battery bays. Only one battery is present.
Solid detects everything :
laurens latitude ~ $ 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)
udi = '/org/freedesktop/Hal/devices/acpi_BAT1'
product = 'Battery Bay' (string)
Battery.plugged = false (bool)
Battery.type = 'PdaBattery|UpsBattery|PrimaryBattery' (0x3) (enum)
Battery.chargePercent = 0 (0x0) (int)
Battery.rechargeable = false (bool)
Battery.chargeState = 'NoCharge' (0x0) (enum)
But the plasma battery applet shows two batteries, the real one, and a second one that is always 0% (but in fact this is just an empty bay, or an unplugged battery as solid calls it). I believe it would be better to hide empty bays.
I've taken a look at the sources, and it seems that the powermanager datasource can handle unplugged batteries, but that the battery applet isn't using this information.
The patch at http://bugs.kde.org/show_bug.cgi?id=153398 may have something to do with this.
More information about the Panel-devel
mailing list