You are not logged in.

#1 2024-06-05 07:07:31

oeut1341
Member
Registered: 2016-06-09
Posts: 26

Plasma 6 won't shutdown / logout / etc. with Awesome WM

I am using Plasma with Awesome WM instead of KWin using the configuration suggested here. Ever since the update to Plasma 6 I can't shutdown / logout / reboot / etc. from the Plasma interface. (Running shutdown from terminal works of course, but that is suboptimal.)

Looking at journalctl I noticed:

systemd[898]: dbus-:1.2-org.kde.LogoutPrompt@4.service: Main process exited, code=exited, stat>
systemd[898]: dbus-:1.2-org.kde.LogoutPrompt@4.service: Failed with result 'exit-code'.

Then running dbus-monitor and looking at the logs suggests that the shutdown process is trying to talk to KWin (which obviously fails) and then falls back to resetLogout in ksmserver, which cancels the logout process:

method call time=1717569555.850335 sender=:1.116 -> destination=org.kde.ksmserver serial=5 path=/KSMServer; interface=org.kde.KSMServerInterface; member=closeSession
method call time=1717569555.850352 sender=:1.116 -> destination=org.freedesktop.DBus serial=6 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=RemoveMatch
   string "type='signal',sender='org.freedesktop.DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',arg0='org.kde.ksmserver'"
method call time=1717569555.850374 sender=:1.116 -> destination=org.freedesktop.DBus serial=7 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=RemoveMatch
   string "type='signal',sender='org.freedesktop.DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',arg0='org.freedesktop.DBus'"
method return time=1717569555.850389 sender=:1.116 -> destination=:1.115 serial=8 reply_serial=33
method call time=1717569555.850453 sender=:1.115 -> destination=org.freedesktop.DBus serial=34 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=RemoveMatch
   string "type='signal',sender='org.freedesktop.DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',arg0='org.kde.Shutdown'"
method call time=1717569555.850475 sender=:1.115 -> destination=org.freedesktop.DBus serial=35 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=RemoveMatch
   string "type='signal',sender='org.freedesktop.DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',arg0='org.freedesktop.DBus'"
method call time=1717569555.850488 sender=:1.12 -> destination=org.kde.KWin serial=73 path=/Session; interface=org.kde.KWin.Session; member=setState
   uint32 1
error time=1717569555.850523 sender=org.freedesktop.DBus -> destination=:1.12 error_name=org.freedesktop.DBus.Error.ServiceUnknown reply_serial=73
   string "The name is not activatable"
method call time=1717569555.854672 sender=:1.12 -> destination=org.kde.KWin serial=74 path=/Session; interface=org.kde.KWin.Session; member=setState
   uint32 2
error time=1717569555.854700 sender=org.freedesktop.DBus -> destination=:1.12 error_name=org.freedesktop.DBus.Error.ServiceUnknown reply_serial=74
   string "The name is not activatable"
method return time=1717569555.854714 sender=:1.12 -> destination=:1.116 serial=75 reply_serial=5
   boolean true
method call time=1717569555.854793 sender=:1.116 -> destination=org.freedesktop.DBus serial=9 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='signal',sender='org.freedesktop.DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',arg0='org.kde.KWin'"
method call time=1717569555.854845 sender=:1.116 -> destination=org.freedesktop.DBus serial=10 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetNameOwner
   string "org.kde.KWin"
error time=1717569555.854864 sender=org.freedesktop.DBus -> destination=:1.116 error_name=org.freedesktop.DBus.Error.NameHasNoOwner reply_serial=10
   string "The name does not have an owner"
method call time=1717569555.854943 sender=:1.116 -> destination=org.kde.KWin serial=11 path=/Session; interface=org.kde.KWin.Session; member=closeWaylandWindows
error time=1717569555.854956 sender=org.freedesktop.DBus -> destination=:1.116 error_name=org.freedesktop.DBus.Error.ServiceUnknown reply_serial=11
   string "The name is not activatable"
method call time=1717569555.854975 sender=:1.116 -> destination=org.freedesktop.DBus serial=12 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=RemoveMatch
   string "type='signal',sender='org.freedesktop.DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',arg0='org.kde.KWin'"
method call time=1717569555.855028 sender=:1.116 -> destination=org.freedesktop.DBus serial=13 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='signal',sender='org.freedesktop.DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',arg0='org.kde.ksmserver'"
method call time=1717569555.855124 sender=:1.116 -> destination=org.freedesktop.DBus serial=14 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=GetNameOwner
   string "org.kde.ksmserver"
method return time=1717569555.855145 sender=org.freedesktop.DBus -> destination=:1.116 serial=4294967295 reply_serial=14
   string ":1.12"
method call time=1717569555.855331 sender=:1.116 -> destination=org.kde.ksmserver serial=15 path=/KSMServer; interface=org.kde.KSMServerInterface; member=resetLogout

Is this a KDE bug? Or do we have to use KWin in Plasma 6 now?

Related topic on Manjaro forum, same problem but with i3: https://forum.manjaro.org/t/plasma-6-re … /161617/13

Offline

#2 2024-06-05 13:48:17

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,658

Re: Plasma 6 won't shutdown / logout / etc. with Awesome WM

According to this Awesome WM runs on X server but Plasma 6 defaults to Wayland. Perhaps you need to configure your KDE to run on X11.

Offline

#3 2024-06-06 07:05:06

oeut1341
Member
Registered: 2016-06-09
Posts: 26

Re: Plasma 6 won't shutdown / logout / etc. with Awesome WM

Yes, I already have that:

% cat /etc/sddm.conf.d/x11.conf
[General]
DisplayManager=x11

Otherwise WM doesn't even start. In fact that's essentially the only fix I needed to make it run on Plasma 6. The only problem I'm having is this one I described.

Offline

#4 2024-06-06 09:49:04

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,118

Re: Plasma 6 won't shutdown / logout / etc. with Awesome WM

That only configures SDDM, technically there's a distinct "Plasma on X11" session you need to launch. but assuming you're doing that, chances are this is a bug/regression/potentially intentional in KSMServer. Try a KDE bug report.

Offline

#5 2024-06-07 07:12:36

oeut1341
Member
Registered: 2016-06-09
Posts: 26

Re: Plasma 6 won't shutdown / logout / etc. with Awesome WM

Turns out one was already filed here: https://bugs.kde.org/show_bug.cgi?id=487616

(I wonder why Google results are so bad these days.)

Thanks for the help.

Offline

Board footer

Powered by FluxBB