You are not logged in.
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
$ 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
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
This has solved my problem, thanks @PMR021
tl;dr for Google visitors:
Either switch to Wayland or do
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
This was also happening to me under wayland and disabling then re-enabling session saving seems to have worked.
Offline
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