Bug 387366 - Energy page: Energy consumption statistics not available
Summary: Energy page: Energy consumption statistics not available
Status: REOPENED
Alias: None
Product: kinfocenter
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Kai Uwe Broulik
URL:
Keywords:
: 400778 427078 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-11-27 17:27 UTC by wincak
Modified: 2023-08-02 00:14 UTC (History)
21 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Charge percentage graph (62.26 KB, image/png)
2018-01-06 11:17 UTC, wincak
Details
Only history values from requested time interval are used to plot the chart. (85.94 KB, image/png)
2020-12-20 14:28 UTC, wincak
Details
energy statistics by application with plasma 5.3 (150.62 KB, image/png)
2020-12-23 12:07 UTC, Philippe ROUBACH
Details
energy statistics by application with plasma 5.3 with a desktop (359.05 KB, image/png)
2020-12-23 12:13 UTC, Philippe ROUBACH
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wincak 2017-11-27 17:27:13 UTC
Energy consumption statistics doesn't show graphs for Charge percentage and Energy consumption, only:
"This type of history is currently not available for this device"

If kinfocenter is run from console, it shows errors:
org.kde.kcoreaddons: Error loading plugin "kcm_energyinfo" "The shared library was not found." 
Plugin search paths are ("/usr/lib/qt/plugins", "/usr/bin") 
The environment variable QT_PLUGIN_PATH might be not correctly set
Trying to use rootObject before initialization is completed, whilst using setInitializationDelayed. Forcing completion
QQmlExpression: Expression file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:460:43 depends on non-NOTIFYable properties:
    Solid::Battery::serial
file:///usr/lib/qt/qml/QtQuick/Controls/ScrollView.qml:227:9: QML Binding: Binding loop detected for property "value"
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:119:9: QML ColumnLayout: Binding loop detected for property "width"
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:119:9: QML ColumnLayout: Binding loop detected for property "width"
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/Graph.qml:64: TypeError: Cannot read property 'x' of undefined

Bug is possibly related to:
https://bugs.kde.org/show_bug.cgi?id=364637

Distribution: Manjaro
KDE Plasma Version 5.11.3
KDE Frameworks 5.40.0
Qt 5.9.2 (built against 5.9.2)
The xcb windowing system
Kernel 4.14.2-1-MANJARO 64-bit
HW Thinkpad x230

Reproducible: always
Comment 1 Nate Graham 2017-11-28 03:34:43 UTC
> org.kde.kcoreaddons: Error loading plugin "kcm_energyinfo" "The shared library was not found." 

Sounds like a packaging problem. The Energy Info KCM should have been installed alongside Kinfocenter. Please report this to the Manjaro bug tracker.
Comment 2 Philip Müller 2017-11-29 00:41:57 UTC
Well, seems the issue is only for plugins installed to kcms folder:

usr/lib/qt/plugins/kcm_about_distro.so
usr/lib/qt/plugins/kcm_devinfo.so
usr/lib/qt/plugins/kcm_info.so
usr/lib/qt/plugins/kcm_memory.so
usr/lib/qt/plugins/kcm_nic.so
usr/lib/qt/plugins/kcm_opengl.so
usr/lib/qt/plugins/kcm_pci.so
usr/lib/qt/plugins/kcm_samba.so
usr/lib/qt/plugins/kcm_usb.so
usr/lib/qt/plugins/kcm_view1394.so
usr/lib/qt/plugins/kcms/
usr/lib/qt/plugins/kcms/kcm_energyinfo.so
usr/lib/qt/plugins/kcms/kcm_fileindexermonitor.so

We can also confirm the same issue with the ArchLinux package.
Comment 3 Antonio Rojas 2017-11-29 07:12:20 UTC
The terminal error is a red herring (duplicate of bug 364637) and not related to the missing graphs. If that were the actual issue, the KCM would not load at all.
Comment 4 wincak 2017-12-11 19:46:47 UTC
Any progress on the issue? Or a hint as to where to look for an error if it is not caused by wrong library search path?
I can access some battery history data through UPower D-Bus, so there should be at least something visible.
I tried building kinfocenter from source and debugging, but it's a bit tricky since the program built this way doesn't contain all the components (e.g. QML GUI) and calls system libraries instead of the built ones.
Just a note: it would be nice it there was some building/debugging guide, even if it was short.
Comment 5 wincak 2018-01-06 11:17:21 UTC
Created attachment 109706 [details]
Charge percentage graph
Comment 6 wincak 2018-01-06 11:19:19 UTC
There seems to be some progress in the right direction.
Charge percentage graph is shown (see attachment - is the time axis missing on purpose?), but Energy consumption still shows either "This type of history..." message or sometimes an empty graph rectangle (can't manage to reproduce that right now).

KDE Plasma Version: 5.11.5
KDE Frameworks Version: 5.41.0
Qt Version: 5.10.0
Kernel Version: 4.14.11-3-MANJARO
Comment 7 Patrick Silva 2018-01-20 16:29:53 UTC
info center 5.12 beta is affected on Arch Linux.
No info is available in "energy information".
Comment 8 Orif Khodjaev 2018-02-20 21:45:29 UTC
Reproduced this issue with the same output on MSI GE60-2OE on KDE Neon git stable with latest updates as of now, February 21.
Comment 9 Morgan Cox 2018-02-28 10:26:07 UTC
Same here on KDE Neon - Plasma 5.12.1 - it used to work in the past..
Comment 10 Antonio Rojas 2018-02-28 13:44:47 UTC
This seems to be an issue with upower not returning sufficient data. On my system 

qdbus --system --literal org.freedesktop.UPower /org/freedesktop/UPower/devices/battery_BAT1 org.freedesktop.UPower.Device.GetHistory charge 3600 100

should return the history for the last hour and does not give any result. But

qdbus --system --literal org.freedesktop.UPower /org/freedesktop/UPower/devices/battery_BAT1 org.freedesktop.UPower.Device.GetHistory charge 3600000 100

does return many history points.
Comment 11 Nate Graham 2018-11-07 19:32:38 UTC
*** Bug 400778 has been marked as a duplicate of this bug. ***
Comment 12 Philippe ROUBACH 2020-02-25 12:40:07 UTC
opensuse Argon leap 15.1
kde apps 19.12.2
plasma 5.18.1
kde frameworks 5.67.0
qt 5.14.1

In kinfocenter in "energy information"

For a longtime there is no more statistics, only a blank page.

In the past there were statistics about applications energy consumption.
Comment 13 Philippe ROUBACH 2020-02-26 06:51:08 UTC
I use a desktop then when I say "no statistics" I mean
there is no statistics about applications.

So I wonder if my problem is the same as the one of this bug report.
Comment 14 Dieter Nützel 2020-06-08 03:17:08 UTC
I can second that.

kinfocenter5-5.18.5-1.2.x86_64
-rwxr-xr-x 1 root root 114176 31. Mai 02:53 /usr/lib64/qt5/plugins/kcms/kcm_energyinfo.so

opensuse Tumbleweed
kde apps 20.04.1
plasma 5.18.5
kde frameworks 5.70.0
qt 5.15.0
Comment 15 Dieter Nützel 2020-06-08 03:20:46 UTC
(In reply to Dieter Nützel from comment #14)
> I can second that.
> 
> kinfocenter5-5.18.5-1.2.x86_64
> -rwxr-xr-x 1 root root 114176 31. Mai 02:53
> /usr/lib64/qt5/plugins/kcms/kcm_energyinfo.so
> 
> opensuse Tumbleweed
> kde apps 20.04.1
> plasma 5.18.5
> kde frameworks 5.70.0
> qt 5.15.0

But something in the logs:

/home/dieter> kinfocenter
Couldn't load plugin "kcms/kcm_about_distro" : "Die dynamische Bibliothek konnte nicht gefunden werden."  -- falling back to old-style loading from desktop file
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option allow_draw_out_of_order overridden by environment.
Cyclic dependency detected between "file:///usr/lib64/qt5/qml/org/kde/kirigami.2/styles/org.kde.desktop.plasma/Units.qml" and "file:///usr/lib64/qt5/qml/org/kde/kirigami.2/styles/org.kde.desktop.plasma/Units.qml"
file:///usr/lib64/qt5/qml/org/kde/kirigami.2/FormLayout.qml:250:13: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///usr/lib64/qt5/qml/org/kde/kirigami.2/FormLayout.qml:250:13: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///usr/lib64/qt5/qml/org/kde/kirigami.2/FormLayout.qml:250:13: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///usr/lib64/qt5/qml/org/kde/kirigami.2/FormLayout.qml:250:13: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///usr/lib64/qt5/qml/org/kde/kirigami.2/FormLayout.qml:250:13: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///usr/lib64/qt5/qml/org/kde/kirigami.2/FormLayout.qml:250:13: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///usr/lib64/qt5/qml/org/kde/kirigami.2/FormLayout.qml:250:13: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///usr/lib64/qt5/qml/org/kde/kirigami.2/FormLayout.qml:250:13: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///usr/lib64/qt5/qml/org/kde/kirigami.2/FormLayout.qml:250:13: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///usr/lib64/qt5/qml/org/kde/kirigami.2/FormLayout.qml:250:13: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///usr/lib64/qt5/qml/org/kde/kirigami.2/FormLayout.qml:250:13: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///usr/lib64/qt5/qml/org/kde/kirigami.2/FormLayout.qml:250:13: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///usr/lib64/qt5/qml/org/kde/kirigami.2/FormLayout.qml:250:13: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///usr/lib64/qt5/qml/org/kde/kirigami.2/FormLayout.qml:250:13: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///usr/lib64/qt5/qml/org/kde/kirigami.2/FormLayout.qml:250:13: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///usr/lib64/qt5/qml/org/kde/kirigami.2/FormLayout.qml:250:13: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///usr/lib64/qt5/qml/org/kde/kirigami.2/FormLayout.qml:250:13: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///usr/lib64/qt5/qml/QtQuick/Controls.2/org.kde.desktop/Menu.qml:50:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///usr/lib64/qt5/qml/QtQuick/Controls.2/org.kde.desktop/ComboBox.qml:96:9: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:44: Error: Cannot assign [undefined] to QObject*
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:483: TypeError: Cannot read property 'temperature' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:483: TypeError: Cannot read property 'energyFullDesign' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:483: TypeError: Cannot read property 'energyFull' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:483: TypeError: Cannot read property 'energy' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:483: TypeError: Cannot read property 'voltage' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:483: TypeError: Cannot read property 'energyRate' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:483: TypeError: Cannot read property 'technology' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:483: TypeError: Cannot read property 'serial' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:483: TypeError: Cannot read property 'capacity' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:483: TypeError: Cannot read property 'chargePercent' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:483: TypeError: Cannot read property 'chargeState' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:483: TypeError: Cannot read property 'rechargeable' of null
file:///usr/lib64/qt5/qml/QtQuick/Controls.2/org.kde.desktop/Menu.qml:50:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///usr/lib64/qt5/qml/org/kde/kirigami.2/templates/AbstractApplicationHeader.qml:151:9: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///usr/lib64/qt5/qml/org/kde/kirigami.2/templates/AbstractApplicationHeader.qml:78:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///usr/lib64/qt5/qml/org/kde/kirigami.2/templates/AbstractApplicationHeader.qml:106:9: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///usr/lib64/qt5/qml/org/kde/kirigami.2/private/globaltoolbar/BreadcrumbControl.qml:24:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///usr/lib64/qt5/qml/org/kde/kirigami.2/AbstractApplicationItem.qml:319:9: QML Binding: Not restoring previous value because restoreMode has not been set.
This behavior is deprecated.
You have to import QtQml 2.15 after any QtQuick imports and set
the restoreMode of the binding to fix this warning.
In Qt < 6.0 the default is Binding.RestoreBinding.
In Qt >= 6.0 the default is Binding.RestoreBindingOrValue.

file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:483: TypeError: Cannot read property 'temperature' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:483: TypeError: Cannot read property 'energyFullDesign' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:483: TypeError: Cannot read property 'energyFull' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:483: TypeError: Cannot read property 'energy' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:483: TypeError: Cannot read property 'voltage' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:483: TypeError: Cannot read property 'energyRate' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:483: TypeError: Cannot read property 'technology' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:483: TypeError: Cannot read property 'serial' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:483: TypeError: Cannot read property 'capacity' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:483: TypeError: Cannot read property 'chargePercent' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:483: TypeError: Cannot read property 'chargeState' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:483: TypeError: Cannot read property 'rechargeable' of null
file:///usr/lib64/qt5/qml/org/kde/kirigami.2/AbstractApplicationItem.qml:319:9: QML Binding: Not restoring previous value because restoreMode has not been set.
This behavior is deprecated.
You have to import QtQml 2.15 after any QtQuick imports and set
the restoreMode of the binding to fix this warning.
In Qt < 6.0 the default is Binding.RestoreBinding.
In Qt >= 6.0 the default is Binding.RestoreBindingOrValue.

file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:483: TypeError: Cannot read property 'temperature' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:483: TypeError: Cannot read property 'energyFullDesign' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:483: TypeError: Cannot read property 'energyFull' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:483: TypeError: Cannot read property 'energy' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:483: TypeError: Cannot read property 'voltage' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:483: TypeError: Cannot read property 'energyRate' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:483: TypeError: Cannot read property 'technology' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:483: TypeError: Cannot read property 'serial' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:483: TypeError: Cannot read property 'capacity' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:483: TypeError: Cannot read property 'chargePercent' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:483: TypeError: Cannot read property 'chargeState' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:483: TypeError: Cannot read property 'rechargeable' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/Graph.qml:68: TypeError: Cannot read property 'x' of undefined
Comment 16 Dieter Nützel 2020-06-08 03:31:39 UTC
(In reply to Dieter Nützel from comment #15)
> (In reply to Dieter Nützel from comment #14)
> > I can second that.
> > 
> > kinfocenter5-5.18.5-1.2.x86_64
> > -rwxr-xr-x 1 root root 114176 31. Mai 02:53
> > /usr/lib64/qt5/plugins/kcms/kcm_energyinfo.so
> > 
> > opensuse Tumbleweed
> > kde apps 20.04.1
> > plasma 5.18.5
> > kde frameworks 5.70.0
> > qt 5.15.0
> 
> But something in the logs:
> 
> /home/dieter> kinfocenter
> Couldn't load plugin "kcms/kcm_about_distro" : "Die dynamische Bibliothek
> konnte nicht gefunden werden."  -- falling back to old-style loading from
> desktop file

rwxr-xr-x 1 root root 64848 31. Mai 02:53 /usr/lib64/qt5/plugins/kcm_about_distro.so

Is in the 'wrong' place.
If I link it over to

/usr/lib64/qt5/plugins/kcms

lrwxrwxrwx  1 root root     22  8. Jun 05:24 kcm_about_distro.so -> ../kcm_about_distro.so

I get this:

Error creating object from plugin "/usr/lib64/qt5/plugins/kcm_about_distro.so"
Comment 17 Philippe ROUBACH 2020-12-20 13:48:18 UTC
3 years and problem still there.

I don't understand because the upower project is alive. 
Devs work about issues.
See https://gitlab.freedesktop.org/upower/upower/activity

Where is the problem ? Is it a kde problem ?
Comment 18 wincak 2020-12-20 14:28:19 UTC
Created attachment 134229 [details]
Only history values from requested time interval are used to plot the chart.
Comment 19 wincak 2020-12-20 14:29:47 UTC
Original reporter here.
Please try changing the data range to the longest "Last 7 days" and refresh. Also try unplugging the power supply and wait for some time. The refresh again. In my case the graphs always appear.

I believe the problem is that the system (upower?) only logs battery charge level changes. Then when you ask the system for data for a certain time interval, it only gives you data if there was any change in that interval. For example if you have laptop charger plugged in permanently and then try to view history for the last hour, there is no change, thus no reported data and the
"This type of history is currently not available for this device"
message is displayed.

As for charge percentage, judging by the current behaviour, only data points returned by the system for the displayed time interval are used to plot the chart (see attached pic). This is not a correct behaviour. At all times the current charge should be included as well and used at least with the latest stored data point in history to plot a line. The last recorded data point should be looked up even if it's outside of the currently displayed time interval.

This logic might be applied even to energy consumption chart.
Comment 20 Philippe ROUBACH 2020-12-21 10:32:08 UTC
(In reply to wincak from comment #19)
> Original reporter here.
> Please try changing the data range to the longest "Last 7 days" and refresh.


how ?
Comment 21 Philippe ROUBACH 2020-12-21 10:35:38 UTC
The problem is not only about battery of laptop but also about desktop. in the past for my desktop i  got consumption for different apps as with android with my smartphone.
Comment 22 wincak 2020-12-21 10:53:37 UTC
(In reply to Philippe ROUBACH from comment #20)
> how ?
There is a combobox for selecting the time interval, it's visible in both attached screenshots and remains functional even when the "This type of history..." warning is shown.

(In reply to Philippe ROUBACH from comment #21)
> The problem is not only about battery of laptop but also about desktop. in
> the past for my desktop i  got consumption for different apps as with
> android with my smartphone.
That is very cool. Where was this shown? This type of info would be really interesting especially now when KDE is spreading to smartphones.
Comment 23 Philippe ROUBACH 2020-12-21 11:38:39 UTC
(In reply to wincak from comment #22)
> (In reply to Philippe ROUBACH from comment #20)
> > how ?
> There is a combobox for selecting the time interval, it's visible in both
> attached screenshots and remains functional even when the "This type of
> history..." warning is shown.

i get an empty window when selecting "energy information" in  kinfocenter.


> 
> (In reply to Philippe ROUBACH from comment #21)
> > The problem is not only about battery of laptop but also about desktop. in
> > the past for my desktop i  got consumption for different apps as with
> > android with my smartphone.
> That is very cool. Where was this shown?

in "energy information" in kinfocenter with openSuse 42.3
Comment 24 Philippe ROUBACH 2020-12-23 12:07:05 UTC
Created attachment 134279 [details]
energy statistics by application with plasma 5.3

Here is what i got in the past with my desktop about energy statistics by application with plasma 5.3
Comment 25 Philippe ROUBACH 2020-12-23 12:13:35 UTC
Created attachment 134280 [details]
energy statistics by application with plasma 5.3 with a desktop

this exactly what i got in the past with my desktop about statistics per application
Comment 26 Philippe ROUBACH 2020-12-29 13:45:09 UTC
For the problem of "no more usage statistics per application"

it is because that is currently broken in upower as the used kernel interface got removed:
https://gitlab.freedesktop.org/upower/upower/-/issues/69

thanks to  Fabian Vogt of openSuse team 

see http://bugzilla.opensuse.org/show_bug.cgi?id=1180257
Comment 27 Mathieu Jobin 2021-01-10 11:19:24 UTC
it works well for me.

maybe your hardware is simply not supported by your underlying libraries?
Comment 28 Patrick Silva 2021-06-06 11:41:22 UTC
*** Bug 427078 has been marked as a duplicate of this bug. ***
Comment 29 Ilpo Kantonen 2023-08-02 00:14:24 UTC
I updated just Plasma to version 5.27.7 in Kubuntu 23.04. And I looked kinfocenter power consumption data. The kinfocenter displayed text that in this system it's possible to show poer consumption. Then I searches with Google and found this bug report.

Mainboard: MSI Z490 A Pro
Processor: i5-10400F

Kubuntu 23.04
Plasma: 5.27.7

Kinfocenter and power started in console:

$ kinfocenter
KTranscript: Loaded property map: /usr/share/locale/fi/LC_SCRIPTS/ki18n5/general.pmapc
KTranscript: Loaded module: /usr/share/locale/fi/LC_SCRIPTS/ki18n5/ki18n5.js
kf.i18n: Interpolation "$[gen %1]" in "$[gen %1] &asetukset..." failed: "Non-string return value: undefined"
kf.i18n: Interpolation "$[gen %1]" in "$[gen %1] käyttö&ohj..." failed: "Non-string return value: undefined"
kf.i18n: Interpolation "$[elat %1]" in "&Tietoa $[yleisnimi_..." failed: "Non-string return value: undefined"
kf.i18n: Interpolation "$[elat %1]" in "&Tietoa $[yleisnimi_..." failed: "Non-string return value: undefined"
kf.i18n: Interpolation "$[gen %1]" in "$[gen %1] käyttö&ohj..." failed: "Non-string return value: undefined"
kf.i18n: Interpolation "$[elat %1]" in "&Tietoa $[yleisnimi_..." failed: "Non-string return value: undefined"
kf.xmlgui: cannot find .rc file "kinfocenterui.rc" for component "kinfocenter"
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/ScrollablePage.qml:200:9: QML MouseArea: Binding loop detected for property "width"
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/ScrollablePage.qml:200:9: QML MouseArea: Binding loop detected for property "width"
QQmlEngine::setContextForObject(): Object already has a QQmlContext
Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes.
kf.sonnet.clients.hspell: HSpellDict::HSpellDict: Init failed
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/ScrollablePage.qml:200:9: QML MouseArea: Binding loop detected for property "implicitHeight"
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/ScrollablePage.qml:200:9: QML MouseArea: Binding loop detected for property "implicitHeight"
kf.i18n: Interpolation "$[elat %1]" in "Tietoa $[yleisnimi_p..." failed: "Non-string return value: undefined"
QQmlEngine::setContextForObject(): Object already has a QQmlContext
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/templates/InlineMessage.qml:265:13: QML SelectableLabel: Binding loop detected for property "implicitWidth"
Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:31: Error: Cannot assign [undefined] to QObject*
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:384: TypeError: Cannot read property 'temperature' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:384: TypeError: Cannot read property 'energyFullDesign' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:384: TypeError: Cannot read property 'energyFull' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:384: TypeError: Cannot read property 'energy' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:384: TypeError: Cannot read property 'voltage' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:384: TypeError: Cannot read property 'energyRate' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:384: TypeError: Cannot read property 'technology' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:384: TypeError: Cannot read property 'serial' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:384: TypeError: Cannot read property 'capacity' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:384: TypeError: Cannot read property 'chargePercent' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:384: TypeError: Cannot read property 'chargeState' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/main.qml:384: TypeError: Cannot read property 'rechargeable' of null
file:///usr/share/kpackage/kcms/kcm_energyinfo/contents/ui/Graph.qml:56: TypeError: Cannot read property 'x' of undefined