Bug 502981 - kde plasma-powerdevil not starting anymore after update to fedora 42 (kde plasma edition)
Summary: kde plasma-powerdevil not starting anymore after update to fedora 42 (kde pla...
Status: RESOLVED UPSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: Power management & brightness (other bugs)
Version First Reported In: 6.3.4
Platform: Fedora RPMs Linux
: NOR major
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 502979 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-04-18 19:29 UTC by Liz Lee
Modified: 2025-05-26 19:09 UTC (History)
4 users (show)

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


Attachments
relevant logfiles (7.95 KB, text/plain)
2025-04-18 19:29 UTC, Liz Lee
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Liz Lee 2025-04-18 19:29:26 UTC
Created attachment 180391 [details]
relevant logfiles

after the upgrade to fedora 42 (kde plasma edition) the kde plasma-powerdevil won't start anymore.

Reproducible: Always

Steps to Reproduce:
boot system OR try to restart plasma-powerdevil.service manually (via "systemctl --user restart plasma-powerdevil.service")

Actual Results:
Job for plasma-powerdevil.service failed because a timeout was exceeded.

Expected Results:
plasma-powerdevil should start.

Additional Information:
Operating System: Fedora Linux 42
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.2
Kernel Version: 6.14.2-300.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 2700X Eight-Core Processor
Memory: 31,3 GiB of RAM
Graphics Processor: AMD Radeon R9 380 Series
Comment 1 John Kizer 2025-04-21 18:33:59 UTC
*** Bug 502979 has been marked as a duplicate of this bug. ***
Comment 2 Nate Graham 2025-04-23 08:05:14 UTC
What does `journalctl --user-unit --reverse plasma-powerdevil.service` say?
Comment 3 Liz Lee 2025-04-24 09:38:35 UTC
(In reply to Nate Graham from comment #2)
> What does `journalctl --user-unit --reverse plasma-powerdevil.service` say?

Failed to add match 'plasma-powerdevil.service': Invalid argument
Comment 4 Liz Lee 2025-04-24 09:47:05 UTC
maybe instead of ´´´journalctl --user-unit --reverse plasma-powerdevil.service´´´
´´´journalctl --no-hostname -b 0 --reverse | grep 'plasma-powerdevil.service´´´
does also help:

$ journalctl --no-hostname -b 0 --reverse | grep 'plasma-powerdevil.service
Apr 24 11:44:56 systemd[1648]: Starting plasma-powerdevil.service - Powerdevil...
Apr 24 11:44:56 systemd[1648]: plasma-powerdevil.service: Scheduled restart job, restart counter is at 3.
Apr 24 11:44:56 systemd[1648]: plasma-powerdevil.service: Consumed 43.270s CPU time, 11.3G memory peak.
Apr 24 11:44:56 systemd[1648]: Failed to start plasma-powerdevil.service - Powerdevil.
Apr 24 11:44:56 systemd[1648]: plasma-powerdevil.service: Failed with result 'timeout'.
Apr 24 11:44:54 systemd[1648]: plasma-powerdevil.service: start operation timed out. Terminating.
Apr 24 11:44:32 kernel: cgroup: fork rejected by pids controller in /user.slice/user-1000.slice/user@1000.service/background.slice/plasma-powerdevil.service
Apr 24 11:44:09 systemd[1648]: Starting plasma-powerdevil.service - Powerdevil...
Apr 24 11:44:09 systemd[1648]: plasma-powerdevil.service: Scheduled restart job, restart counter is at 2.
Apr 24 11:44:07 systemd[1648]: plasma-powerdevil.service: Consumed 43.319s CPU time, 11.3G memory peak.
Apr 24 11:44:07 systemd[1648]: Failed to start plasma-powerdevil.service - Powerdevil.
Apr 24 11:44:07 systemd[1648]: plasma-powerdevil.service: Failed with result 'timeout'.
Apr 24 11:44:06 systemd[1648]: plasma-powerdevil.service: start operation timed out. Terminating.
Apr 24 11:43:45 kernel: cgroup: fork rejected by pids controller in /user.slice/user-1000.slice/user@1000.service/background.slice/plasma-powerdevil.service
Apr 24 11:43:21 systemd[1648]: Starting plasma-powerdevil.service - Powerdevil...
Apr 24 11:43:21 systemd[1648]: plasma-powerdevil.service: Scheduled restart job, restart counter is at 1.
Apr 24 11:43:20 systemd[1648]: plasma-powerdevil.service: Consumed 43.125s CPU time, 11.3G memory peak.
Apr 24 11:43:20 systemd[1648]: Failed to start plasma-powerdevil.service - Powerdevil.
Apr 24 11:43:20 systemd[1648]: plasma-powerdevil.service: Failed with result 'timeout'.
Apr 24 11:43:19 systemd[1648]: plasma-powerdevil.service: start operation timed out. Terminating.
Apr 24 11:42:58 kernel: cgroup: fork rejected by pids controller in /user.slice/user-1000.slice/user@1000.service/background.slice/plasma-powerdevil.service
Apr 24 11:42:34 systemd[1648]: Starting plasma-powerdevil.service - Powerdevil...
Comment 5 Nate Graham 2025-04-25 13:45:45 UTC
> Apr 24 11:44:32 kernel: cgroup: fork rejected by pids controller in /user.slice/user-1000.slice/user@1000.service/background.slice/plasma-powerdevil.service

Well this looks relevant.
Comment 6 Jakob Petsovits 2025-04-25 14:32:33 UTC
PowerDevil to the best of my knowledge does not generally spawn other processes for its basic function. Two ideas:

* Perhaps libddcutil uses a subprocess to query monitors through the I2C bus. Try disabling powerdevil's use of libddcutil via `POWERDEVIL_NO_DDCUTIL=1` environment variable to verify whether this is the case, more detail in the PowerDevil README: https://invent.kde.org/plasma/powerdevil/-/blob/master/README.md#troubleshooting--reporting-bugs
* Perhaps your PowerDevil configuration sets a custom script command (for the current power state profile) which tries indefinitely to spawn a subprocess, fails and tries again indefinitely. Look in your ~/.config/powerdevilrc file for any "[RunScript]" sections; if any exist, comment them out for the time being to verify if this is the culprit.

If neither of these provide any good information, please increase output verbosity as also noted in the PowerDevil README. Thanks!
Comment 7 John Kizer 2025-04-26 04:38:47 UTC
Updating the status here, pending some more info based on Jakob's ideas - thanks!
Comment 8 Liz Lee 2025-04-27 14:04:08 UTC
ok, i did the following:

$ systemctl --user edit plasma-powerdevil.service

then i added the following entry at the right place in the file:

[Service]
Environment="POWERDEVIL_NO_DDCUTIL=1"

$ systemctl --user daemon-reload

$ systemctl --user start plasma-powerdevil.service

=> it works.

i am not THAT suprised that it is related to my monitor (philips 325E). it makes always problems, especially when connected via display port. it has totally messed up EDID entries, that make my gpus turn up clock speeds at idle and it takes ages to get recognized when booting...
Comment 9 David Edmundson 2025-05-26 12:59:34 UTC
There's not much else we can do on our side other than to report it to ddcutil
Comment 10 John Kizer 2025-05-26 19:09:10 UTC
This change in Plasma should make it a lot easier to work around these issues in the future, at least! https://invent.kde.org/plasma/kscreen/-/merge_requests/360

And the ddcutil issue tracker is located at https://github.com/rockowitz/ddcutil/issues - I didn't see an existing issue for that specific monitor, so for the reporter, it might be helpful to provide what you know about its EDID "uniqueness" :-)