Bug 428795 - Powerdevil won't launch anymore since 5.20.0 when using musl instead of glibc
Summary: Powerdevil won't launch anymore since 5.20.0 when using musl instead of glibc
Status: CONFIRMED
Alias: None
Product: Powerdevil
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2020-11-07 18:24 UTC by Bart Ribbers
Modified: 2023-09-25 00:01 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Plasma session log (39.75 KB, text/plain)
2020-12-15 17:09 UTC, Bart Ribbers
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bart Ribbers 2020-11-07 18:24:39 UTC
SUMMARY
Since Plasma 5.20.0, powerdevil won't start anymore and thus doesn't try to keep my space awake or reports about the battery level of my laptop. Trying to launch it manually (which previously worked fine in case of it crashing, which it would like to do sometimes) gives me "Session bus not found\nTo circumvent this problem try the following command (with Linux and bash)\nexport $(dbus-launch)"


STEPS TO REPRODUCE
1. Get an Alpine Linux system
2. Start a Plasma session
3. Check if powerdevil is running

OBSERVED RESULT
Powerdevil isn't running and won't be launched manually.

EXPECTED RESULT
Powerdevil to launch normally.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Alpine Linux edge
(available in About System)
KDE Plasma Version: 5.20.2
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.1

ADDITIONAL INFORMATION
This is an Alpine Linux system and thus based on Musl rather than glibc.
Comment 1 Nate Graham 2020-11-09 18:21:25 UTC
> Session bus not found
Seems like a problem.
Comment 2 Bart Ribbers 2020-11-09 21:56:36 UTC
Yes it definitely is a problem ;) D-Bus itself is however running fine, and besides Powerdevil I don't notice anything else broken that might be related to the system session bus not being present.
Comment 3 Bart Ribbers 2020-12-15 17:09:50 UTC
Created attachment 134099 [details]
Plasma session log

So the same packages are used to run Plasma Mobile on postmarketOS as well and I noticed Powerdevil is running fine there. The main difference I could see is that the mobile session is launched with "dbus-run-session" where the desktop session isn't, but changing that didn't make Powerdevil launch.

I've checked the SDDM log but didn't see much useful besides the session bus not being found message. Maybe the log is useful for others however.
Comment 4 Bart Ribbers 2021-02-01 18:42:11 UTC
Ok this is probably not a Powerdevil issue but something else, and Powerdevil not launching is a sympton of it. I just noticed the Night Color KCM fails to connect to the window manager, which I assume has the same cause. And here I was wondering why my screen didn't look any different in the evening as on bright day...

I don't know what component this bug applies too then
Comment 5 Bart Ribbers 2021-11-11 07:09:50 UTC
Powerdevil has the same problem as kwin does for me in https://bugs.kde.org/show_bug.cgi?id=417227, and the workaround from there worked here too. Meaning I have had a working Powerdevil for quite a while again, but by removing Powerdevil's capabilities (most notably CAP_WAKE_ALARM).
Comment 6 Harald Sitter 2022-09-20 11:09:29 UTC
I feel like this needs taking up with musl and/or dbus upstream. The way I understand it we have this capability specifically for plasma mobile, so we can't just get rid of it.