[BUG?]Power-profiles-daemon 0.23 seems starts too late for powerdevil

Hi!
I upgraded my power-profiles-daemon to 0.23 recently. Then PowerDevil warned “power-profiles-daemon not found”.
But after checking systemd journal, ppd does start.
Autologin is on.So I logout to sddm and relogin, the powerdevil works again.
I think maybe ppd start too late for powedevil.

I think https://gitlab.freedesktop.org/upower/power-profiles-daemon/-/commit/8277adb7cd89293fd4d32407eee1596ffbf6acce casues this bug.
Reverting that commit fixes for me :smirk:
But I do think the commit message Mario Limonciello wrote is right, maybe need a better solution? :face_with_monocle:

Also I usually use TLP for my laptop, the ppd is not enough for me. That tip that warns users ppd not installed is a little annoying when I use tlp.
An approach to dismiss power management section is helpful when using other powersaving app. :face_holding_back_tears: :heart: :smiley:

2 Likes

Hi, and thanks for your message! I just recently submitted a patch for PowerDevil to cope with some D-Bus services starting later: applets/batterymonitor: React to D-Bus service (un)register events (!425) · Merge requests · Plasma / PowerDevil · GitLab

With a little luck, this could still make it into the upcoming 6.2.0 release, and should hopefully resolve your issue.

For TLP, starting with Plasma 6.2 the applet will detect whether it’s installed and simply mentions that instead of the warning (assuming p-p-d is not running anyway). Implemented by this commit: applets/batterymonitor: add support for tlp utility (5224fbd9) · Commits · Plasma / PowerDevil · GitLab

2 Likes

Awesome! Really appreciated! :+1: :+1: :+1: :heartbeat:

Thanks @wlmqljj, faced exactly the same issue

For anybody looking for a solution, running alt+f2 → /usr/lib/org_kde_powerdevil --replace fixes the issue without restartin the session.

My current powerdevil version is 6.1.5, so I hope to have it fixed soon