Created attachment 175482 [details] power applet showing no profiles if tuned-ppd is installed SUMMARY Hi, I recently built plasma from git master, just on a whim and for experiencing if rebuilding packages weekly is worth it maintenance-wise :) The power management via power-profiles-daemon just works but using tuned-ppd appears to be not supported. In paper, tuned-ppd was supposed to be API compatible with power-profiles-daemon, or rather it acts like a middle man between a ppd client and tuned. It was working with no effort involved on plasma 6.1. However, as of Plasma 6.2, tuned-ppd appears to be undetected anymore. Also in theory, that translation may break if power-profile-daemon's API changes (which is unlikely, unless they made some huge changes in some short time span after Plasma 6.2 is released.). Or, perhaps, power-profiles-daemon's DBUS namespace has finally changed (IIRC, it uses "net.hadess" which is very weird considering that it is already being helmed under UPower, which uses like "org.freedesktop.UPower", for quite sometime now) I am not really sure where to post this issue, in tuned or here in KDE, nor I am a developer to know anything about this. So, if this should be a tuned bug, then let's close this instead. STEPS TO REPRODUCE 1. Test that power-profile-daemon works. 2. Replace power-profiles-daemon with tuned-ppd 3. Log out then log in again 4. Test the power profiles, if it is still there. OBSERVED RESULT No Power Profiles in the power applet. EXPECTED RESULT Power Profiles can be selected in the power applet. SOFTWARE/OS VERSIONS Linux/KDE Plasma: 6.12.0-rc5-2-cachyos-rc (64-bit) KDE Plasma Version: 6.2.80 KDE Frameworks Version: 6.8.0 Qt Version: 6.8.0 ADDITIONAL INFORMATION Graphics Platform: Wayland Processors: 12 × 11th Gen Intel® Core™ i5-11400H @ 2.70GHz Memory: 15.4 GiB of RAM Graphics Processor: Mesa Intel® UHD Graphics
Hi, thanks for the report. On Plasma master (i.e. 6.3 development version), we are now looking for the current D-Bus name under "org.freedesktop.UPower" rather than the old "net.hadess", which p-p-d still keeps around for compatibility purposes (for the time being). The change was made in this merge request: https://invent.kde.org/plasma/powerdevil/-/merge_requests/424 You might find this tuned(-ppd) issue insightful that I filed two months ago: https://github.com/redhat-performance/tuned/issues/683 tuned-ppd only used to expose the functionality under "net.hadess" and a change was made in response to this issue, to support the newer D-Bus name under "org.freedesktop.UPower": https://github.com/redhat-performance/tuned/pull/684 However, this has not yet been merged upstream, and even if it had been, the last tuned release at the time of writing was v2.24.0 from August 2024. I don't know what, if anything, Fedora ended up doing to get its release out with this change as a supposed blocker. Either way, as an Arch user, you wouldn't yet have it. So, sorry for the trouble, but also the responsibility now lies with tuned-ppd to get the change merged and become compatible with more recent versions of p-p-d. If you're building from source, you can work around this locally by reverting my PowerDevil patch linked at the top of this comment. Or perhaps you can help the tuned people to get their patch finally merged :)
Hello, thanks for the clearing and confirming the exact point of the issue. I guess this is just a waiting game for tuned-ppd to release a new version with that namespace change. In the interim, I could just build tuned-ppd from source with the namespace change applied. I'd rather not revert your Powerdevil patch since powerdevil is **actively** developed (i.e., more commits are being pushed) and may cause unnecessary build problems when some commit comes over based on your patch Thanks again.