Bug 492395 - Powerdevil failures with upower 1.90.5
Summary: Powerdevil failures with upower 1.90.5
Status: RESOLVED UPSTREAM
Alias: None
Product: Powerdevil
Classification: Plasma
Component: general (show other bugs)
Version: 6.1.4
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-30 07:56 UTC by Yannick
Modified: 2024-09-03 18:57 UTC (History)
4 users (show)

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


Attachments
powerdevil log (3.26 KB, text/plain)
2024-08-30 07:56 UTC, Yannick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yannick 2024-08-30 07:56:03 UTC
Created attachment 173118 [details]
powerdevil log

After installing the latest Arch Linux updates, including upower 1.90.5-1, the Plasma session takes longer than usual to start up, as well as Dolphin and autostart applications in ~/.config/autostart/

Systemd logs indicate that Powerdevil fails to start the first 2 times, then succeeds on the third attempt.
See the logs attached to this bug report.

It doesn't happen on every boot, sometimes Powerdevil starts immediately (several boots in a row). It seems to fail randomly.
Downgrading to upower 1.90.4 seems to solve the problem so I suspect this is the culprit, but since the issue appears randomly I may have just missed it.

STEPS TO REPRODUCE
1. Start the computer then log in a Plasma session.

OBSERVED RESULT
The session takes longer than usual to load up.

EXPECTED RESULT
The session loads up almost instantly.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: Arch Linux / Plasma 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Comment 1 Dinko 2024-08-31 06:12:42 UTC
Same problem on an Asus ROG scar laptop.
Plasma hangs on ksplash for exactly 30 seconds:

This is the journal with upower 1.90.5:
08:54:42  systemd[681]: Starting Powerdevil...
08:56:12  systemd[681]: plasma-powerdevil.service: start operation timed out. Terminating.
08:56:12  systemd[681]: plasma-powerdevil.service: Failed with result 'timeout'.
08:56:12  systemd[681]: Failed to start Powerdevil.
08:56:12  systemd[681]: plasma-powerdevil.service: Scheduled restart job, restart counter is at 1.

And this is with upower downgraded to 1.90.4
08:58:34  systemd[688]: Starting Powerdevil...
08:58:34  org_kde_powerdevil[1038]: Initializing libddcutil.  ddcutil version: 2.1.4, shared library: /usr/lib/libddcutil.so.5.1.2
08:58:34  org_kde_powerdevil[1038]: Options passed from client:
08:58:34  org_kde_powerdevil[1038]: Applying combined options:
08:58:37  org_kde_powerdevil[1038]: Library initialization complete.
08:58:38  systemd[688]: Started Powerdevil.
08:58:38  org_kde_powerdevil[1038]: org.kde.powerdevil: Handle button events action could not check for screen configuration


Operating System: Arch Linux
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.7-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800H with Radeon Graphics
Memory: 60.7 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Comment 2 Dinko 2024-08-31 09:56:29 UTC
Seems to be upstream upower bug https://gitlab.freedesktop.org/upower/upower/-/issues/281

It is fixed in arch upower-1.90.5-2, at least for me.
Comment 3 Jakob Petsovits 2024-09-01 08:21:39 UTC
So this is fixed on Arch, then. Do we still need to look into fixing PowerDevil startup for an unpatched UPower 1.90.5, or can we rely on other distributions to also cherry-pick this patch?
Comment 4 Yannick 2024-09-01 08:26:08 UTC
I confirm this seems fixed on my end, since the upower-1.90.5-2 update on Arch.
Comment 5 Nate Graham 2024-09-03 18:57:41 UTC
I think we can rely on the rolling release distros to be responsive here. Thanks for following up!