Bug#678588: plasma-dataengines-workspace: Plasma engine powermanagement fails to convert upower output to internal data source
Package: plasma-dataengines-workspace
Version: 4:4.8.4-2
Severity: normal
Dear Maintainers,
plasma engine powermanagement fails to convert upower output regarding
battery (dis)charging time estimation to internal data source. This
issue has been discussed upstream (see
https://bugs.kde.org/show_bug.cgi?id=290578 ) and is marked as done as
for KDE SC 4.8.0. It is still present in Debian's KDE SC 4.8.4,
therefore it is possible regression.
As upstream bug says, I have checked basic things:
1. if upower correctly reports battery state and (dis)charging
estimation:
#v+
$ upower --dump
Device: /org/freedesktop/UPower/devices/line_power_ADP0
native-path: /sys/devices/LNXSYSTM:00/device:00/ACPI0003:00/power_supply/ADP0
power supply: no
updated: Sat Jun 23 00:08:45 2012 (709 seconds ago)
has history: no
has statistics: no
line-power
online: no
Device: /org/freedesktop/UPower/devices/battery_BAT0
native-path: /sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0
model: PA3817U-1BRS
serial: 08E8
power supply: no
updated: Sat Jun 23 00:20:20 2012 (14 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: discharging
energy: 24.475 Wh
energy-empty: 0 Wh
energy-full: 27.195 Wh
energy-full-design: 48.6 Wh
energy-rate: 13.489 W
voltage: 10.8 V
time to empty: 1.8 hours
percentage: 89.9982%
capacity: 55.9547%
technology: lithium-ion
History (charge):
1340403590 89.998 discharging
1340403530 90.998 discharging
History (rate):
1340403620 13.489 discharging
1340403590 13.219 discharging
1340403560 13.446 discharging
1340403530 13.435 discharging
Daemon:
daemon-version: 0.9.16
can-suspend: yes
can-hibernate yes
on-battery: yes
on-low-battery: no
lid-is-closed: no
lid-is-present: yes
is-docked: no
#v-
The answer is: yes.
2. If KDE is able to convert this value and provide it in data engine:
#v+
$ qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement org.kde.Solid.PowerManagement.batteryRemainingTime
0
#v-
The answer is: no.
3. In plasmaengineexplorer I have checked that source "Remaining msec"
is qulonglong. As comment #32 in upstream BTS says, the bug is caused by
type mismatch in
plasma/generic/dataengines/powermanagement/powermanagementengine.cpp .
Due to my lack of C++ skills, I can't tell if this is case here.
4. In kdebugdialog I have made sure that everything regarding Solid is
checked. Yet:
#v+
$ grep -i battery ~/.xsession-errors*
/home/minio/.xsession-errors:Object::disconnect: (sender name: 'Battery')
/home/minio/.xsession-errors:Object::disconnect: (sender name: 'Battery0')
#v-
Due to this bug, battery Plasmoid is unable to *read* how much time will
battery live before it runs out of power (it is unable to show it anyway
without manual editing of config files, but this is upstream design
decision; inability to convert is clearly a bug).
Best regards
Mirosław Zalewski
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to pl_PL.UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages plasma-dataengines-workspace depends on:
ii kdepim-runtime 4:4.4.11.1-4
ii libakonadi-kde4 4:4.8.4-1
ii libakonadi-kmime4 4:4.8.4-1
ii libc6 2.13-33
ii libdbusmenu-qt2 0.9.0-1
ii libgcc1 1:4.7.0-8
ii libgps20 3.6-3
ii libkabc4 4:4.8.4-1
ii libkcalcore4 4:4.8.4-1
ii libkcalutils4 4:4.8.4-1
ii libkdecore5 4:4.8.3-2
ii libkdeui5 4:4.8.3-2
ii libkfile4 4:4.8.3-2
ii libkholidays4 4:4.8.4-1
ii libkio5 4:4.8.3-2
ii libkmime4 4:4.8.4-1
ii libksgrd4 4:4.8.4-2
ii libkworkspace4abi1 4:4.8.4-2
ii libmicroblog4 4:4.8.4-1
ii libnepomuk4 4:4.8.3-2
ii libplasma-geolocation-interface4 4:4.8.4-2
ii libplasma3 4:4.8.3-2
ii libqt4-dbus 4:4.8.2-1
ii libqt4-network 4:4.8.2-1
ii libqtcore4 4:4.8.2-1
ii libqtgui4 4:4.8.2-1
ii libsolid4 4:4.8.3-2
ii libsolidcontrol4abi2 4:4.8.4-2
ii libstdc++6 4.7.0-8
ii libsyndication4 4:4.8.4-1
ii libtaskmanager4abi3 4:4.8.4-2
ii libweather-ion6 4:4.8.4-2
ii libx11-6 2:1.4.99.901-2
ii libxfixes3 1:5.0-4
Versions of packages plasma-dataengines-workspace recommends:
ii ksysguardd 4:4.8.4-2
plasma-dataengines-workspace suggests no packages.
-- no debconf information
Reply to: