| Summary: | Power profiles stopped working with tuned | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | Iyán M. V. <me> |
| Component: | Power and Battery widget | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED UPSTREAM | ||
| Severity: | normal | CC: | kde, natalie_clarius, nate |
| Priority: | NOR | ||
| Version First Reported In: | 6.2.90 | ||
| Target Milestone: | 1.0 | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Iyán M. V.
2025-01-13 08:39:19 UTC
Fedora 42 ships tuned-ppd instead of the original, and it's working as expected for me. The detection is based on whether the original PPD DBus methods are implemented and detected, so is it possible that Arch's packaging of it doesn't implement them the same way? Arch Linux started to offer tuned-ppd as well since October last year. It is supposed to be a simple replacement for power-profiles-daemon, and it was working like in Fedora (I also have a server running F40) for me before I updated to Plasma 6.3 Beta + Frameworks 6.10.0 + Qt 6.9 Beta 1 using the [kde-unstable] repo. I'm almost sure this is not a packaging issue. I can try to do a git bisect if you think that would be useful. If you can bisect the KDE code, that would be very useful, yeah! tuned-ppd does not understand the new upower dbus namespaces which are used in 6.3 https://invent.kde.org/plasma/powerdevil/-/commit/223b927a8351f35d7c2c2a70ea6d78568051ba3c 223b927a8351f35d7c2c2a70ea6d78568051ba3c is the first bad commit commit 223b927a8351f35d7c2c2a70ea6d78568051ba3c (HEAD) Author: Jakob Petsovits <jpetso@petsovits.com> Date: Mon Sep 2 17:28:02 2024 +0200 daemon/actions/powerprofile: Use the new D-Bus names for p-p-d power-profiles-daemon was moved into the UPower namespace, where it changed its bus, path & interface names from the original net.hadess.PowerProfiles to org.freedesktop.UPower.PowerProfiles. These new names are advertised starting with v0.20 released in February 2024. The old names are still supported at least in the current v0.21, but we don't know for how long (or on all distros, given that OpenSuse already tried to remove it early on). A February 2024 release seems long enough ago that we shouldn't require support for the old interface anymore. Rather than adding a second interface and introducing complexity, let's just make a clean switch to the new name while both are supported. BUG: 484868 applets/batterymonitor/plugin/powerprofilescontrol.cpp | 2 +- autotests/applets/NetHadessPowerProfiles.py | 10 +++++----- daemon/actions/bundled/CMakeLists.txt | 2 +- daemon/actions/bundled/{net.hadess.PowerProfiles.xml => org.freedesktop.UPower.PowerProfiles.xml} | 15 +++++++++++---- daemon/actions/bundled/powerprofile.cpp | 8 ++++---- daemon/actions/bundled/powerprofile.h | 4 ++-- 6 files changed, 24 insertions(+), 17 deletions(-) rename daemon/actions/bundled/{net.hadess.PowerProfiles.xml => org.freedesktop.UPower.PowerProfiles.xml} (93%) Antonio is faster as usual :) Alright, so not really a bug, but it will affect users unless tuned makes a new release with this (https://github.com/redhat-performance/tuned/pull/684) before Plasma 6.3 Final. Cool, I'll ping folks upstream to see what can be done there. Apparently what could be done was to merge it immediately, since that's now been done! Hopefully they make a new release soon. If not, https://github.com/redhat-performance/tuned/commit/84a58f2d4e66ab82ae92fc251ba090da9cc920f2can be backported at least. |