Bug 466191 - A few minutes after the computer is active in a KDE 5.27 session with Linux Kernel 6.2 on Manjaro, the power management settings stop working
Summary: A few minutes after the computer is active in a KDE 5.27 session with Linux K...
Status: RESOLVED DUPLICATE of bug 466181
Alias: None
Product: Powerdevil
Classification: Plasma
Component: general (show other bugs)
Version: 5.27.0
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-21 12:53 UTC by Chema
Modified: 2023-02-23 23:20 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot of Power Management configuration error (136.79 KB, image/jpeg)
2023-02-21 12:53 UTC, Chema
Details
Powerdevil crash log in KSystemLog (151.25 KB, text/plain)
2023-02-23 00:14 UTC, Chema
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chema 2023-02-21 12:53:51 UTC
Created attachment 156566 [details]
Screenshot of Power Management configuration error

SUMMARY

A few minutes after the computer is active in a KDE 5.27 session with Linux Kernel 6.2 on Manjaro, the power management settings stop working.

STEPS TO REPRODUCE
1- Get into KDE 5.27 with Linux Kernel 6.2 in Manjaro.
2- Go to System Settings --> Power Management, it show all options correctly.
3- Now wait a few minutes with the computer on (5 or 10 minutes).
4- Go to System Settings --> Power Management, it shows the following error attached in the screenshot:

"Power Management configuration module could not be loaded.
The Power Management Service appears not to be running."

OBSERVED RESULT

As I just indicated above, it shows an error message indicating that the Power Management Service is not running, and indeed the computer's automatic sleep mode no longer works.

And now if I run the following line in a Konsole:

ps -e | grep upower

I get the following result:

550? 00:00:00 upowerd

Which I don't know if it actually indicates if the daemon is running or not.

If I then log out of the KDE session and log back in, the power management settings work again until, after a few minutes, they stop working again.

EXPECTED RESULT

Of course, the power management settings should work fine, just like they do with Linux Kernel 6.1.12, and not stop working after a few minutes after the computer is turned on.

I want to point out that it doesn't seem like just a KDE problem, since KDE 5.27 with Linux Kernel 6.1.12 works perfectly, but it seems like a conjunction of KDE with the new Linux Kernel 6.2.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Manjaro KDE with Linux Kernel 6.2
KDE Plasma Version: 5.27.0
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Comment 1 Chema 2023-02-21 13:32:04 UTC
I add a little more information.

When the power management settings stopped working in KDE, I tried running the following lines from a Konsole, in case the upowerd daemon stopped or terminated unexpectedly:

systemctl enable --now upower.service
and
systemctl start upower

But neither has worked, the only way to get the power management settings working again is by logging out of KDE and logging back into a new session, until after a few minutes it stops working again.

I also want to point out that, although the power management settings in KDE stop working, and therefore the scheduler sleep mode does not work, putting the computer to sleep by pressing the "Sleep" option in KDE does work perfectly, as well as then wake up the computer.

My computer has 32 GB of RAM and an AMD Ryzen 5 3550H chip, it is a mini PC, a Minisforum DeskMini UM350 that is usually sold with Manjaro Linux installed.

As I said before, with Linux Kernel 6.1.12 it works perfectly, it looks like a conjunction of KDE + the new Linux Kernel 6.2.
Comment 2 Nate Graham 2023-02-21 22:52:24 UTC
Can you get a backtrace of the crash? https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports. The coredumpctl CLI program or the "Crashed processes Viewer" app might help.

I'm wondering if it's Bug 466181, but without a backtrace, there's no way to be sure.
Comment 3 Chema 2023-02-23 00:14:19 UTC
Created attachment 156626 [details]
Powerdevil crash log in KSystemLog

I have been with the computer on for a while until I have seen that the problem has occurred, I am attaching here the log that the KSystemLog application shows, in it you can see some problems with Powerdevil, especially a crash that begins at line 651 and that it is repeated later, it seems that because it cannot restart this service correctly.

I want to point out that logging starts at 00:28, which is when KDE logs in, and Powerdevil crashes at 00:40 for no apparent reason, that is, 12 minutes after KDE login.

Also comment that a couple of hours ago I downloaded Powerdevil 2.57.1-2 in Manjaro, but the error keeps happening with this version.

And also comment, although it will be seen in the logs, that I am using Wayland (I forgot to comment it before).
Comment 4 Chema 2023-02-23 18:51:15 UTC
I've been doing some tests this afternoon and I can confirm that it doesn't happen with X11, that is, in KDE 5.27.1 + Linux Kernel 6.2 + X11, Powerdevil works fine.

Therefore, the problem is in the conjunction KDE 5.27.1 + Linux Kernel 6.2 + Wayland.
Comment 5 Nate Graham 2023-02-23 23:20:47 UTC
Aha, the backtrace in there tells me that the crash is the same as the one in Bug 466181, which is already fixed for Plasma 5.27.2.

*** This bug has been marked as a duplicate of bug 466181 ***