Bug 471425 - KDE Power Management System init failed with powerdevil 5.27.6
Summary: KDE Power Management System init failed with powerdevil 5.27.6
Status: RESOLVED DOWNSTREAM
Alias: None
Product: Powerdevil
Classification: Plasma
Component: general (show other bugs)
Version: 5.27.6
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-25 08:04 UTC by qtm4ig
Modified: 2023-07-11 19:47 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description qtm4ig 2023-06-25 08:04:55 UTC
SUMMARY
After upgrade powerdevil from 5.27.5 to 5.27.6 version on my laptop MSI Modern 15 B12M after system boot I have get errors in journald for plasma-powerdevil.service user service
...
Jun 25 10:11:57 sinx systemd[1016]: Starting Powerdevil...
Jun 25 10:11:57 sinx org_kde_powerdevil[2778]: org.kde.powerdevil: KDE Power Management System init failed!
Jun 25 10:11:57 sinx org_kde_powerdevil[2778]: org.kde.powerdevil: org.kde.powerdevil.chargethresholdhelper.getthreshold failed "Charge thresholds are not supported by the kernel for this >
Jun 25 10:12:02 sinx systemd[1016]: plasma-powerdevil.service: start operation timed out. Terminating.
Jun 25 10:12:02 sinx systemd[1016]: plasma-powerdevil.service: Failed with result 'timeout'.
Jun 25 10:12:02 sinx systemd[1016]: Failed to start Powerdevil.
Jun 25 10:12:03 sinx systemd[1016]: plasma-powerdevil.service: Scheduled restart job, restart counter is at 43.
Jun 25 10:12:03 sinx systemd[1016]: Stopped Powerdevil.
...
Powerdevil functions (for example battery charge information) do not work.

STEPS TO REPRODUCE
1. upgrade powerdevil package from 5.27.5 to 5.27.6 2.
2. reboot

OBSERVED RESULT
Powerdevil functions do not work. org.kde.powerdevil: KDE Power Management System init failed message in journal

EXPECTED RESULT
Powerdevil functions must work without any system errors

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10
Kernel Version: 6.3.9-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × 12th Gen Intel® Core™ i7-1255U
Memory: 15.3 ГиБ of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: Micro-Star International Co., Ltd.
Product Name: Modern 15 B12M
System Version: REV:1.0
Comment 1 qtm4ig 2023-06-25 09:57:49 UTC
This was archlinux package bug
Comment 2 Dominik K. 2023-07-11 16:03:06 UTC
I dont't think it is an archlinux package bug, because it also effects powerdevil 5.27.6-1 and 5.27.6-3 on the Steam Deck.

Here is my terminal output:
org.kde.powerdevil: KDE Power Management System init failed!
org.kde.powerdevil: org.kde.powerdevil.chargethresholdhelper.getthreshold failed "Charge thresholds are not supported by the kernel for this hardware"

With version 5.27.5-3 everything works fine. However there was the hint "Charge thresholds are not supported by the kernel for this hardware" too. But powerdevil starts and I am able to see the battery and brightness widget an set the standby timings in the KDE settings, which is not possible with powerdevil 5.27.6-1, 5.27.6-2 or 5.27.6-3.
Comment 3 Dominik K. 2023-07-11 16:05:30 UTC
Maybe it only effects just specific types of hardware like MSI Modern 15 B12M and the Valve's Steam Deck?
Comment 4 Antonio Rojas 2023-07-11 16:41:25 UTC
Please file a new report. This was caused by a missing dependency downstream.
Comment 5 Dominik K. 2023-07-11 19:47:39 UTC
(In reply to Antonio Rojas from comment #4)
> Please file a new report. This was caused by a missing dependency downstream.

Thanks, I just did: https://bugs.kde.org/show_bug.cgi?id=472165