Summary: | Powerdevil won't launch anymore since 5.20.0 when using musl instead of glibc | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | Bart Ribbers <bribbers> |
Component: | Power management & brightness | Assignee: | Plasma Bugs List <plasma-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bshah, kde, natalie_clarius, nate, plasma-bugs-null, sam, sitter, victorr2007 |
Priority: | NOR | Keywords: | regression |
Version First Reported In: | 5.20.2 | ||
Target Milestone: | 1.0 | ||
Platform: | Other | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=417227 | ||
Latest Commit: | https://invent.kde.org/plasma/powerdevil/-/commit/7860551aeaeed400fb8db9f2535bfa493ce06e53 | Version Fixed In: | 6.4 |
Sentry Crash Report: | |||
Attachments: |
Plasma session log
Attached is the first photo. Attached is a second photo. |
Description
Bart Ribbers
2020-11-07 18:24:39 UTC
> Session bus not found
Seems like a problem.
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. 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.
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 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). 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. Is this still happening in a recent version of Plasma 6? ๐๐งน โ ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME. For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging. Thank you for helping us make KDE software even better for everyone! ๐๐งน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME. Sorry for the late response, yes this is still happening. The only way to get it running is by removing it's capabilities entirely. The same issue used to happen with kwin and I had to remove the capabilities there as well but it seems to have been resolved since because nowadays the packaging doesn't require that anymore. Not sure if the actual problem was resolved or the capabilities just weren't needed any more. Interesting that it's required specifically by Plasma Mobile, because postmarketOS is atm the biggest Plasma Mobile using distro and it's broken there. A possibly relevant merge request was started @ https://invent.kde.org/plasma/powerdevil/-/merge_requests/497 (In reply to Bug Janitor Service from comment #11) > A possibly relevant merge request was started @ > https://invent.kde.org/plasma/powerdevil/-/merge_requests/497 Power management has become completely unavailable. I added to the spec the parameter %caps(cap_wake_alarm=+ep) %{_kde6_libexecdir}/org_kde_powerdevil It had no effect at all. I had to roll back this patch by building the package with the parameter %patch1 -p1 -R Sorry I did not get you, is this with Plasma 6.3.90 ? Can you provide more info on release you are using and distribution? Created attachment 181412 [details] Attached is the first photo. (In reply to Bhushan Shah from comment #13) > Sorry I did not get you, is this with Plasma 6.3.90 ? > > Can you provide more info on release you are using and distribution? Here is my system. Power management is not working. Attached is the first photo. Created attachment 181413 [details]
Attached is a second photo.
Then I open the file /usr/lib/systemd/user/plasma-powerdevil.service in a text editor.
In it, I commented out the line
#AmbientCapabilities=CAP_WAKE_ALARM.
I reboot the system and power management works.
Attached is a second photo.
Can you tell me what version of systemd you have? (In reply to Bhushan Shah from comment #16) > Can you tell me what version of systemd you have? systemd-256.11 Okay, unfortunately due to upstream systemd issue, you need to revert a patch: https://community.kde.org/Distributions/Packaging_Recommendations#Powerdevil_package_configuration Please see this. (In reply to Bhushan Shah from comment #18) > Okay, unfortunately due to upstream systemd issue, you need to revert a > patch: > https://community.kde.org/Distributions/ > Packaging_Recommendations#Powerdevil_package_configuration > > Please see this. Got it. Thank you. |