You are not logged in.

#26 2024-08-01 20:24:17

seth
Member
Registered: 2012-09-03
Posts: 60,000

Re: KDE Hangs on Shutdown, Restart and Logout. Black screen [SOLVED]

loginctl list-sessions

How would I go about investigating this?

Probably the last systemd v255 would make the extra session (and hopefully the problem) go away.

Offline

#27 2024-08-01 20:27:09

mane.andrea
Member
Registered: 2021-04-29
Posts: 19

Re: KDE Hangs on Shutdown, Restart and Logout. Black screen [SOLVED]

$ loginctl list-sessions

SESSION  UID USER   SEAT  LEADER CLASS   TTY  IDLE SINCE
      2 1000 andrea seat0 936    user    tty1 no   -    
      3 1000 andrea -     942    manager -    no   -    

but also

$ pacman -Qi systemd
Name            : systemd
Version         : 256.4-1
Description     : system and service manager
...

Offline

#28 2024-08-02 05:48:37

PMR021
Member
Registered: 2018-07-16
Posts: 5

Re: KDE Hangs on Shutdown, Restart and Logout. Black screen [SOLVED]

I have had the same problem for weeks, namely: using the plasma 'Restart' or 'Shut down' buttons causes the screen to go black, but with mouse cursor showing and mouse active. I could switch to another TTY, login in and do systemctl reboot or systemctl poweroff, those work as normal. So it seems to be a plasma issue. I'm at plasma 6.1.3-1 and have an nVidia RTX4070, but I don't think it's an nVidia issue. I suspect it's connected with session saving.

Here's the interesting thing I found yesterday. In System settings > Session > Desktop Session, if I selected 'Start with an empty session' and rebooted, the original problem disappeared: plasma 'Restart' and 'Shut down' worked as expected. And if I then switched back to session restore 'On last logout' and rebooted, the original problem did not reappear.

Session info is saved in the plain-text file ~/.config/ksmserverrc, which also refers to specific program information in the various files in ~/.config/session/

Offline

#29 2024-08-03 06:24:26

mane.andrea
Member
Registered: 2021-04-29
Posts: 19

Re: KDE Hangs on Shutdown, Restart and Logout. Black screen [SOLVED]

This has solved my problem, thanks @PMR021

tl;dr for Google visitors:

Either switch to Wayland or do

PMR021 wrote:

System settings > Session > Desktop Session, [select] 'Start with an empty session' and reboot

Last edited by mane.andrea (2024-08-03 06:24:46)

Offline

#30 2024-08-21 12:16:24

bullsbarry
Member
Registered: 2023-11-22
Posts: 3

Re: KDE Hangs on Shutdown, Restart and Logout. Black screen [SOLVED]

This was also happening to me under wayland and disabling then re-enabling session saving seems to have worked.

Offline

#31 2024-11-07 04:04:21

Joseelmax
Member
Registered: 2024-11-07
Posts: 1

Re: KDE Hangs on Shutdown, Restart and Logout. Black screen [SOLVED]

mane.andrea wrote:

This has solved my problem, thanks @PMR021

tl;dr for Google visitors:

Either switch to Wayland or do

PMR021 wrote:

System settings > Session > Desktop Session, [select] 'Start with an empty session' and reboot


I can confirm this is the issue for me, 'Start with an empty session' reboots fine but if I change to the default option the pc stays on with black screen, no taskbar, cursor active and all windows working. Occasionally I would click Power off or Restart and a terminal stayed open from previous use so I could systemctl poweroff to turn it off.

How does it say? I got 99 problems with my arch install but that hang on poweroff ain't one (anymore, I hope...)

Offline

Board footer

Powered by FluxBB