Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Plasma 6.1.4 shutdown hangs at plasma-fallback-session
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
ese002
Apprentice
Apprentice


Joined: 20 Sep 2006
Posts: 153

PostPosted: Sun Sep 08, 2024 5:20 am    Post subject: Plasma 6.1.4 shutdown hangs at plasma-fallback-session Reply with quote

I have long had my system set to restore a manually saved session at startup.

With the upgrade to Plasma 6.1.4, this doesn't work. Shutdown and logout exit PlasmaShell and then it just hangs. All application windows remain. I have tried closing all the windows but this has no effect. What does work is to kill plasma-fallback-session-save. Shutdown/logout proceeds normally from there, though presumably skipping whatever plasma-fallback-session-save was doing.

I tried switching to "restore apps on last logout". That seemed to work once. But then I switched back to "When session was manually saved". It hung on plasma-fallback-session-save. On the next boot, I tried switching to "restore apps on last logout" and logging out. This time logout and shutdown did nothing. No plasma-fallback-session-save either. Switching again to "When session was manually saved" gave me the usual hung plasma-fallback-session-save.

Throughout all this, "switch user" works fine.

Any idea how to restore logout/shutdown function?
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 9271

PostPosted: Sun Sep 08, 2024 6:13 am    Post subject: Reply with quote

That's with X11 session handling, right? Just to be sure.

There's https://bugs.kde.org/show_bug.cgi?id=487912

Please try with this fix: https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4684
Use this link to get it: https://invent.kde.org/plasma/plasma-workspace/-/commit/5f844a4f26ba95d89b81e333d8a3aafc438679d0.patch
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 9271

PostPosted: Mon Sep 09, 2024 8:38 pm    Post subject: Reply with quote

Please also try with a clean testuser profile. This has helped in the Gentoo bug.
Back to top
View user's profile Send private message
ese002
Apprentice
Apprentice


Joined: 20 Sep 2006
Posts: 153

PostPosted: Tue Sep 10, 2024 2:30 am    Post subject: Reply with quote

asturm wrote:
That's with X11 session handling, right? Just to be sure.

There's https://bugs.kde.org/show_bug.cgi?id=487912

Please try with this fix: https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4684
Use this link to get it: https://invent.kde.org/plasma/plasma-workspace/-/commit/5f844a4f26ba95d89b81e333d8a3aafc438679d0.patch


Yes, it is X11 session handling. How do I apply this patch? I'm not up on portage internals. I created a patch file in the right place but portage complains that my patch is not in the Manifest. I found *that* file but I don't what the line referencing the patch should look like. The manifest lines existing patches have a lot of extra data. I don't know what it is or where it comes from.
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3425
Location: Canada

PostPosted: Tue Sep 10, 2024 4:03 pm    Post subject: Reply with quote

ese002 wrote:
asturm wrote:
That's with X11 session handling, right? Just to be sure.

There's https://bugs.kde.org/show_bug.cgi?id=487912

Please try with this fix: https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4684
Use this link to get it: https://invent.kde.org/plasma/plasma-workspace/-/commit/5f844a4f26ba95d89b81e333d8a3aafc438679d0.patch


Yes, it is X11 session handling. How do I apply this patch? I'm not up on portage internals. I created a patch file in the right place but portage complains that my patch is not in the Manifest. I found *that* file but I don't what the line referencing the patch should look like. The manifest lines existing patches have a lot of extra data. I don't know what it is or where it comes from.



You need to recreate the Manifest

run

ebuild name-of-ebuild.ebuild manifest
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1961

PostPosted: Tue Sep 10, 2024 4:12 pm    Post subject: Reply with quote

You should put the patch in /etc/portage/patches for testing.
Back to top
View user's profile Send private message
ese002
Apprentice
Apprentice


Joined: 20 Sep 2006
Posts: 153

PostPosted: Tue Sep 10, 2024 11:48 pm    Post subject: Reply with quote

dmpogo wrote:
ese002 wrote:
asturm wrote:
That's with X11 session handling, right? Just to be sure.

There's https://bugs.kde.org/show_bug.cgi?id=487912

Please try with this fix: https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4684
Use this link to get it: https://invent.kde.org/plasma/plasma-workspace/-/commit/5f844a4f26ba95d89b81e333d8a3aafc438679d0.patch


Yes, it is X11 session handling. How do I apply this patch? I'm not up on portage internals. I created a patch file in the right place but portage complains that my patch is not in the Manifest. I found *that* file but I don't what the line referencing the patch should look like. The manifest lines existing patches have a lot of extra data. I don't know what it is or where it comes from.



You need to recreate the Manifest

run

ebuild name-of-ebuild.ebuild manifest


I did that and re-emerged plasma-workspace. No change in behavior, even after a reboot. A clean test user does work properly, even running the same apps as the failing user.
Back to top
View user's profile Send private message
ese002
Apprentice
Apprentice


Joined: 20 Sep 2006
Posts: 153

PostPosted: Wed Sep 11, 2024 1:05 am    Post subject: Reply with quote

I have further found that if I switch first to "empty session" with a logout in between, I can switch from "last saved" to a working "on last logout". Switching from "last saved" to "last logout" causes the usual hang and the resulting "last logout" session also hangs at logout.
Back to top
View user's profile Send private message
ese002
Apprentice
Apprentice


Joined: 20 Sep 2006
Posts: 153

PostPosted: Wed Sep 11, 2024 4:56 am    Post subject: Reply with quote

Correction. A clean test user does not work. It only works for "last logout" and "empty session". "last saved" still hangs.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 9271

PostPosted: Wed Sep 11, 2024 10:24 am    Post subject: Reply with quote

Thanks. It would be best to convey these findings to upstream, it really does not make sense for me to relay all user reports.

The next best thing would be to do as https://bugs.gentoo.org/938925#c1 which is not a fix, but a workaround (and yet another confirmation this was a problematic fix).
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 9271

PostPosted: Fri Sep 20, 2024 5:14 pm    Post subject: Reply with quote

Please test with kde-plasma/plasma-workspace-6.1.5-r2. It contains the fix for upstream bug https://bugs.kde.org/show_bug.cgi?id=488853
Back to top
View user's profile Send private message
hedmo
Veteran
Veteran


Joined: 29 Aug 2009
Posts: 1331
Location: sweden

PostPosted: Mon Sep 23, 2024 6:15 pm    Post subject: Reply with quote

i have some sort the same issue . i have 6 boxes and all runs under wayland but two of have this odd issue . but for me reboot and shutdown throws me to login shell. .


regards hedmo
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 9271

PostPosted: Wed Sep 25, 2024 9:42 pm    Post subject: Reply with quote

No, that's a different issue and a separate thread would be much better for you to possibly get some help (for any chance to get started though you'd have to provide much more information).
Back to top
View user's profile Send private message
ese002
Apprentice
Apprentice


Joined: 20 Sep 2006
Posts: 153

PostPosted: Wed Sep 25, 2024 10:32 pm    Post subject: Reply with quote

With 6.1.5-r2 this specific problem seems to be solved. However, it exposes another problem. After I save a session, the logout and power off buttons no longer do anything. Switching to "clean session", a workaround for an earlier version of this sort of problem, doesn't help. If I force a shutdown with "systemctl poweroff", the system seems to behave properly on the next boot. I haven't done enough testing yet to be sure that the save actually worked or if I am getting an old session.
Back to top
View user's profile Send private message
ese002
Apprentice
Apprentice


Joined: 20 Sep 2006
Posts: 153

PostPosted: Sat Sep 28, 2024 4:15 am    Post subject: Reply with quote

Ok. Confirmed. Saving the current session does work. Actually logging out or shutdown after doing that requires killing start-plasma but the new saved session will be used at next login and logout and shutdown will work from that session.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum