Power and Battery widget fails to "see" power-profiles-daemon as running

As per title, after I boot and login, the Power and Battery widget shows this:

But checking the systemd user-unit status reveals the powerdevil service is running fine. The System Settings KCM for Power Management also confirms this, because it shows the various configs for On AC Power/On Battery/On Low Battery (this stuff wouldn’t be visible otherwise)

I can workaround this by either restarting powerdevil or plasma-plasmashell:

systemctl --user restart plasma-plasmashell.service

systemctl --user restart plasma-powerdevil.service

System info:

Operating System: openSUSE Tumbleweed 20241028
KDE Plasma Version: 6.2.2
KDE Frameworks Version: 6.7.0
Qt Version: 6.8.0
Kernel Version: 6.11.5-1-default (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7840U w/ Radeon 780M Graphics
Memory: 30.7 GiB of RAM
Graphics Processor: AMD Radeon 780M
Manufacturer: Framework
Product Name: Laptop 13 (AMD Ryzen 7040Series)
System Version: A7

My login manager is lightDM, if that matters (doubt it, since I could also reproduce with sddm).

Logs:

journalctl -b | grep powerdevil                   
Hint: You are currently not seeing messages from other users and the system.
      Users in the 'systemd-journal' group can see all messages. Pass -q to
      turn off this notice.
Oct 31 00:11:02 andromeda org_kde_powerdevil[2221]: Initializing libddcutil.  ddcutil version: 2.1.4, shared library: /usr/lib64/libddcutil.so.5.1.2
Oct 31 00:11:02 andromeda org_kde_powerdevil[2221]: Options passed from client:
Oct 31 00:11:02 andromeda org_kde_powerdevil[2221]: Applying combined options:
Oct 31 00:11:03 andromeda org_kde_powerdevil[2221]: Library initialization complete.
Oct 31 00:11:03 andromeda org_kde_powerdevil[2221]: org.kde.powerdevil: [DDCutilDetector]: Failed to initialize callback
Oct 31 00:11:03 andromeda org_kde_powerdevil[2221]: org.kde.powerdevil: org.kde.powerdevil.chargethresholdhelper.getthreshold failed "Charge thresholds are not supported by the kernel for this hardware"
Oct 31 00:11:03 andromeda org_kde_powerdevil[2221]: org.kde.powerdevil: Handle button events action could not check for screen configuration
Oct 31 00:11:03 andromeda org_kde_powerdevil[2221]: org.kde.powerdevil: org.kde.powerdevil.chargethresholdhelper.getthreshold failed "Charge thresholds are not supported by the kernel for this hardware"
Oct 31 00:12:02 andromeda drkonqi-coredump-processor[2217]: "/usr/libexec/org_kde_powerdevil" 8785 "/var/lib/systemd/coredump/core.org_kde_powerde.1000.8cf9ab7b2a0a46b19ab566dd9da634f9.8785.1729444205000000.zst"
Oct 31 00:12:02 andromeda drkonqi-coredump-processor[2217]: "/usr/libexec/org_kde_powerdevil" 8994 "/var/lib/systemd/coredump/core.org_kde_powerde.1000.8cf9ab7b2a0a46b19ab566dd9da634f9.8994.1729444206000000.zst"
Oct 31 00:12:02 andromeda drkonqi-coredump-processor[2217]: "/usr/libexec/org_kde_powerdevil" 9165 "/var/lib/systemd/coredump/core.org_kde_powerde.1000.8cf9ab7b2a0a46b19ab566dd9da634f9.9165.1729444206000000.zst"
Oct 31 00:12:02 andromeda drkonqi-coredump-processor[2217]: "/usr/libexec/org_kde_powerdevil" 9341 "/var/lib/systemd/coredump/core.org_kde_powerde.1000.8cf9ab7b2a0a46b19ab566dd9da634f9.9341.1729444207000000.zst"
Oct 31 00:12:02 andromeda drkonqi-coredump-processor[2217]: "/usr/libexec/org_kde_powerdevil" 9466 "/var/lib/systemd/coredump/core.org_kde_powerde.1000.8cf9ab7b2a0a46b19ab566dd9da634f9.9466.1729444207000000.zst"
Oct 31 00:13:38 andromeda org_kde_powerdevil[4629]: Initializing libddcutil.  ddcutil version: 2.1.4, shared library: /usr/lib64/libddcutil.so.5.1.2
Oct 31 00:13:38 andromeda org_kde_powerdevil[4629]: Options passed from client:
Oct 31 00:13:38 andromeda org_kde_powerdevil[4629]: Applying combined options:
Oct 31 00:13:39 andromeda org_kde_powerdevil[4629]: Library initialization complete.
Oct 31 00:13:39 andromeda org_kde_powerdevil[4629]: org.kde.powerdevil: [DDCutilDetector]: Failed to initialize callback
Oct 31 00:13:39 andromeda org_kde_powerdevil[4629]: org.kde.powerdevil: org.kde.powerdevil.chargethresholdhelper.getthreshold failed "Charge thresholds are not supported by the kernel for this hardware"
Oct 31 00:13:39 andromeda org_kde_powerdevil[4629]: org.kde.powerdevil: Handle button events action could not check for screen configuration
Oct 31 00:13:39 andromeda org_kde_powerdevil[4629]: org.kde.powerdevil: org.kde.powerdevil.chargethresholdhelper.getthreshold failed "Charge thresholds are not supported by the kernel for this hardware"

Thanks

Nevermind, I think I found the relevant bug: 492859 – As of power-profiles-daemon-0.22, Power and Battery Applet doesn't detect power profiles until powerdevil is restarted

Yes, I’m having the same problem.

Yup, it’s that bug.

1 Like

There is a another power-related bug: It may be related, but I assume that this ist on the GUI/QT Level: the config setting for power profiles crashes

thommie@odysseus4:~> kcmshell6 kcm_powerdevilprofilesconfig 
qt.qml.list.incompatible: Cannot append QQuickRepeater(0x55a442e1aa60) to a QML list of QQuickAbstractButton*
qt.qml.list.incompatible: Cannot append QQuickRepeater(0x55a442e1aa60) to a QML list of QQuickAbstractButton*
qt.qml.list.incompatible: Cannot append QQuickRepeater(0x55a442e1aa60) to a QML list of QQuickAbstractButton*
qt.qml.list.incompatible: Cannot append QQuickRepeater(0x55a442e1aa60) to a QML list of QQuickAbstractButton*

(KDE bug ID is 494390, but unfortunately I can not add the direct link here …)

This seems unrelated, and I cannot reproduce it myself.