Paolo1
November 12, 2022, 5:39pm
1
Hi, I’m running KDE Plasma on Tumbleweed.
It’s been few days since I can’t shoutdown my system: if I click on the proper button, after some time I get only a black screen with the mouse pointer. I tried to manually close all the running apps before doing so, but it didn’t help.
The only way to turn off my computer seems to enter:
sudo poweroff
in konsole.
I know the solution could be in the system logs, but where should I go and what I have to look for?
Thanks in advance!
hcvv
November 12, 2022, 7:35pm
2
Sorry, but “clicking a button” probably means you try to shutdown from a Desktop Environment. But you failed to explain which one. Ans when you are going to explain the basics of your environment, please add also a more precise description on what you do (e.g. where is that button exactly).
Paolo1
November 12, 2022, 9:23pm
3
I’m sorry, I’m running KDE Plasma. I simply hit the “Shut Down” button which is in the “Application menu” on the desktop.
mrmazda
November 13, 2022, 4:04am
4
If when you reach the black screen, and do Ctrl-Alt-F3, is there a responsive shell login prompt on the screen. If yes, is there a screen full of messages if you next Alt-F10 or Alt-F1?
Paolo1
November 13, 2022, 9:18am
5
Yes, when I do Ctrl-Alt-F3 I get a responsive shell login prompt on the screen, but next Alt-F10 or Alt-F1 do nothing.
Paolo1
November 13, 2022, 9:32am
6
I suspect there could be something wrong in some permission: after an update “sudo” didn’t work anymore. Now it seems to work but after that issue I have this one.
hcvv
November 13, 2022, 11:50am
7
Why not Ctrl-Alt-F1 to go to the console and see what happened?
Paolo1
November 13, 2022, 12:14pm
8
Because I don’t know what I would do, except for sudo poweroff.
Can you login? If yes, output of
ps -efww
systemctl list-jobs
loginctl
would be interesting.
but next Alt-F10
Kernel allocates tty on the first use, and tty10 is not normally used for anything so you cannot switch to it.
or Alt-F1 do nothing.
It is quite possible that your graphical session runs on tty1 so you are back to it waiting for something.
mrmazda
November 13, 2022, 3:36pm
10
I once thought possibly it was just me who lost the messages there. openSUSE used to have messages there always by default, but I suppose that’s something else systemd couldn’t leave as it was. Now all my journald.conf files contain ForwardToConsole=yes and TTYPath=/dev/tty10.
Paolo1
November 13, 2022, 5:03pm
11
Ok, thanks. So:
-I executed the normal shutdown process for KDE Plasma by clicking the “Shut down” button in the Application menu;
-I get black screen with the mouse pointer;
-I get login;
-I executed those three command with “> namefile” to save the output in three different files;
-These are the result:
ps -efww
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 16:48 ? 00:00:00 /usr/lib/systemd/systemd --switched-root --system --deserialize 31
root 2 0 0 16:48 ? 00:00:00 [kthreadd]
root 3 2 0 16:48 ? 00:00:00 [rcu_gp]
root 4 2 0 16:48 ? 00:00:00 [rcu_par_gp]
root 5 2 0 16:48 ? 00:00:00 [slub_flushwq]
root 6 2 0 16:48 ? 00:00:00 [netns]
root 7 2 0 16:48 ? 00:00:00 [kworker/0:0-rcu_gp]
root 8 2 0 16:48 ? 00:00:00 [kworker/0:0H-kblockd]
root 9 2 0 16:48 ? 00:00:00 [kworker/u8:0-flush-8:0]
root 10 2 0 16:48 ? 00:00:00 [mm_percpu_wq]
root 11 2 0 16:48 ? 00:00:00 [rcu_tasks_kthread]
root 12 2 0 16:48 ? 00:00:00 [rcu_tasks_rude_kthread]
root 13 2 0 16:48 ? 00:00:00 [rcu_tasks_trace_kthread]
root 14 2 0 16:48 ? 00:00:00 [ksoftirqd/0]
root 15 2 0 16:48 ? 00:00:00 [rcu_preempt]
root 16 2 0 16:48 ? 00:00:00 [migration/0]
root 17 2 0 16:48 ? 00:00:00 [idle_inject/0]
root 18 2 0 16:48 ? 00:00:00 [kworker/0:1-events]
root 19 2 0 16:48 ? 00:00:00 [cpuhp/0]
root 20 2 0 16:48 ? 00:00:00 [cpuhp/1]
root 21 2 0 16:48 ? 00:00:00 [idle_inject/1]
root 22 2 0 16:48 ? 00:00:00 [migration/1]
root 23 2 0 16:48 ? 00:00:00 [ksoftirqd/1]
root 24 2 0 16:48 ? 00:00:00 [kworker/1:0-cgroup_destroy]
root 25 2 0 16:48 ? 00:00:00 [kworker/1:0H-events_highpri]
root 26 2 0 16:48 ? 00:00:00 [cpuhp/2]
root 27 2 0 16:48 ? 00:00:00 [idle_inject/2]
root 28 2 0 16:48 ? 00:00:00 [migration/2]
root 29 2 0 16:48 ? 00:00:00 [ksoftirqd/2]
root 30 2 0 16:48 ? 00:00:00 [kworker/2:0-rcu_gp]
root 31 2 0 16:48 ? 00:00:00 [kworker/2:0H-events_highpri]
root 32 2 0 16:48 ? 00:00:00 [cpuhp/3]
root 33 2 0 16:48 ? 00:00:00 [idle_inject/3]
root 34 2 0 16:48 ? 00:00:00 [migration/3]
root 35 2 0 16:48 ? 00:00:00 [ksoftirqd/3]
root 36 2 0 16:48 ? 00:00:00 [kworker/3:0-events]
root 37 2 0 16:48 ? 00:00:00 [kworker/3:0H-events_highpri]
root 39 2 0 16:48 ? 00:00:00 [kworker/u8:1-flush-8:0]
root 40 2 0 16:48 ? 00:00:00 [kworker/u8:2-events_unbound]
root 41 2 0 16:48 ? 00:00:00 [kworker/u8:3-flush-8:0]
root 42 2 0 16:48 ? 00:00:00 [kdevtmpfs]
root 43 2 0 16:48 ? 00:00:00 [inet_frag_wq]
root 44 2 0 16:48 ? 00:00:00 [kauditd]
root 45 2 0 16:48 ? 00:00:00 [khungtaskd]
root 46 2 0 16:48 ? 00:00:00 [oom_reaper]
root 47 2 0 16:48 ? 00:00:00 [writeback]
root 48 2 0 16:48 ? 00:00:00 [kcompactd0]
root 49 2 0 16:48 ? 00:00:00 [ksmd]
root 50 2 0 16:48 ? 00:00:00 [khugepaged]
root 51 2 0 16:48 ? 00:00:00 [kintegrityd]
root 52 2 0 16:48 ? 00:00:00 [kblockd]
root 53 2 0 16:48 ? 00:00:00 [blkcg_punt_bio]
root 54 2 0 16:48 ? 00:00:00 [tpm_dev_wq]
root 55 2 0 16:48 ? 00:00:00 [ata_sff]
root 56 2 0 16:48 ? 00:00:00 [edac-poller]
root 57 2 0 16:48 ? 00:00:00 [devfreq_wq]
root 58 2 0 16:48 ? 00:00:00 [watchdogd]
root 59 2 0 16:48 ? 00:00:00 [kworker/1:1-inet_frag_wq]
root 60 2 0 16:48 ? 00:00:00 [kworker/1:1H-kblockd]
root 61 2 0 16:48 ? 00:00:00 [kworker/2:1-cgroup_destroy]
root 62 2 1 16:48 ? 00:00:02 [kswapd0]
root 64 2 0 16:48 ? 00:00:00 [kworker/3:1-events]
root 69 2 0 16:48 ? 00:00:00 [kthrotld]
root 72 2 0 16:48 ? 00:00:00 [kworker/2:2-events]
root 74 2 0 16:48 ? 00:00:00 [xenbus_probe]
root 75 2 0 16:48 ? 00:00:00 [scsi_eh_0]
root 76 2 0 16:48 ? 00:00:00 [scsi_tmf_0]
root 77 2 0 16:48 ? 00:00:00 [scsi_eh_1]
root 78 2 0 16:48 ? 00:00:00 [scsi_tmf_1]
root 79 2 0 16:48 ? 00:00:00 [scsi_eh_2]
root 80 2 0 16:48 ? 00:00:00 [scsi_tmf_2]
root 81 2 0 16:48 ? 00:00:00 [scsi_eh_3]
root 82 2 0 16:48 ? 00:00:00 [scsi_tmf_3]
root 83 2 0 16:48 ? 00:00:00 [scsi_eh_4]
root 84 2 0 16:48 ? 00:00:00 [scsi_tmf_4]
root 85 2 0 16:48 ? 00:00:00 [scsi_eh_5]
root 86 2 0 16:48 ? 00:00:00 [scsi_tmf_5]
root 87 2 0 16:48 ? 00:00:00 [kworker/u8:4-flush-8:0]
root 88 2 0 16:48 ? 00:00:00 [kworker/u8:5-flush-8:0]
root 89 2 0 16:48 ? 00:00:00 [kworker/u8:6-events_unbound]
root 90 2 0 16:48 ? 00:00:00 [kworker/1:2-events]
root 91 2 0 16:48 ? 00:00:00 [kworker/1:3]
root 92 2 0 16:48 ? 00:00:00 [mld]
root 93 2 0 16:48 ? 00:00:00 [ipv6_addrconf]
root 94 2 0 16:48 ? 00:00:00 [kworker/u8:7-ext4-rsv-conversion]
root 97 2 0 16:48 ? 00:00:00 [kworker/3:1H-kblockd]
root 100 2 0 16:48 ? 00:00:00 [kstrp]
root 102 2 0 16:48 ? 00:00:00 [zswap-shrink]
root 103 2 0 16:48 ? 00:00:00 [kworker/u9:0-i915_flip]
root 159 2 0 16:48 ? 00:00:00 [charger_manager]
root 160 2 0 16:48 ? 00:00:00 [kworker/0:1H-kblockd]
root 206 2 0 16:48 ? 00:00:00 [kworker/2:1H-kblockd]
root 209 2 0 16:48 ? 00:00:00 [kaluad]
root 211 2 0 16:48 ? 00:00:00 [kmpath_rdacd]
root 212 2 0 16:48 ? 00:00:00 [kmpathd]
root 213 2 0 16:48 ? 00:00:00 [kmpath_handlerd]
root 216 2 0 16:48 ? 00:00:00 [kworker/2:3-events]
root 297 2 0 16:48 ? 00:00:00 [kworker/3:2-cgroup_destroy]
root 351 2 0 16:48 ? 00:00:00 [kworker/3:3-events]
root 353 2 0 16:48 ? 00:00:00 [cryptd]
root 422 2 0 16:48 ? 00:00:00 [kworker/0:2-events]
root 433 2 0 16:48 ? 00:00:00 [kworker/0:3-events]
root 436 2 0 16:48 ? 00:00:00 [card1-crtc0]
root 437 2 0 16:48 ? 00:00:00 [card1-crtc1]
root 438 2 0 16:48 ? 00:00:00 [card1-crtc2]
root 439 2 0 16:48 ? 00:00:00 [kworker/0:4-events]
root 440 2 0 16:48 ? 00:00:00 [kworker/0:5-events]
root 452 2 0 16:48 ? 00:00:00 [jbd2/sda1-8]
root 453 2 0 16:48 ? 00:00:00 [ext4-rsv-conver]
root 524 1 0 16:48 ? 00:00:00 /usr/lib/systemd/systemd-journald
root 588 1 0 16:49 ? 00:00:00 /usr/lib/systemd/systemd-udevd
root 632 2 0 16:49 ? 00:00:00 [acpi_thermal_pm]
root 647 2 0 16:49 ? 00:00:00 [irq/27-mei_me]
root 779 2 0 16:49 ? 00:00:00 [jbd2/sda4-8]
root 780 2 0 16:49 ? 00:00:00 [ext4-rsv-conver]
root 802 2 0 16:49 ? 00:00:00 [kworker/3:4-events]
root 821 2 0 16:49 ? 00:00:00 [jbd2/sdb1-8]
root 822 2 0 16:49 ? 00:00:00 [ext4-rsv-conver]
root 843 2 0 16:49 ? 00:00:00 [jbd2/sdb3-8]
root 844 2 0 16:49 ? 00:00:00 [ext4-rsv-conver]
root 848 1 0 16:49 ? 00:00:00 /sbin/auditd
avahi 854 1 0 16:49 ? 00:00:00 avahi-daemon: running [sala-i5.local]
message+ 855 1 0 16:49 ? 00:00:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
root 857 1 0 16:49 ? 00:00:00 /usr/sbin/irqbalance --foreground
polkitd 862 1 0 16:49 ? 00:00:00 /usr/libexec/polkit-1/polkitd --no-debug
rpc 865 1 0 16:49 ? 00:00:00 /usr/sbin/rpcbind -w -f
root 874 1 0 16:49 ? 00:00:00 /usr/sbin/smartd -n
nscd 876 1 0 16:49 ? 00:00:00 /usr/sbin/nscd
root 884 1 0 16:49 ? 00:00:00 /usr/sbin/mcelog --ignorenodev --daemon --foreground
root 897 1 0 16:49 ? 00:00:00 /usr/lib/systemd/systemd-logind
root 931 1 0 16:49 ? 00:00:00 /usr/sbin/ModemManager
root 932 1 0 16:49 ? 00:00:00 /usr/bin/python3 /usr/sbin/firewalld --nofork --nopid
root 976 1 0 16:49 ? 00:00:00 /usr/sbin/NetworkManager --no-daemon
root 978 2 0 16:49 ? 00:00:00 bpfilter_umh
root 994 1 0 16:49 ? 00:00:00 /usr/sbin/cupsd -l
chrony 1013 1 0 16:49 ? 00:00:00 /usr/sbin/chronyd
root 1046 1 0 16:49 ? 00:00:00 login -- danpao
root 1047 1 0 16:49 ? 00:00:00 /usr/bin/sddm
root 1063 1047 4 16:49 tty7 00:00:06 /usr/bin/Xorg.bin -nolisten tcp -auth /run/sddm/{923d6c8a-5611-4533-bf99-b6a688aa9245} -background none -noreset -displayfd 17 -seat seat0 vt7
root 1170 1 0 16:49 ? 00:00:00 /usr/lib/postfix/bin//master -w
postfix 1171 1170 0 16:49 ? 00:00:00 pickup -l -t fifo -u
postfix 1172 1170 0 16:49 ? 00:00:00 qmgr -l -t fifo -u
root 1191 1 0 16:49 ? 00:00:00 /usr/sbin/cron -n
root 1208 1047 0 16:49 ? 00:00:00 /usr/libexec/sddm/sddm-helper --socket /tmp/sddm-authc3b99e21-de8d-4155-9996-c62be4562ca1 --id 1 --start /usr/bin/startplasma-x11 --user danpao --autologin
danpao 1210 1 0 16:49 ? 00:00:00 /usr/lib/systemd/systemd --user
danpao 1211 1210 0 16:49 ? 00:00:00 (sd-pam)
danpao 1219 1208 0 16:49 ? 00:00:00 /usr/bin/startplasma-x11
danpao 1231 1210 0 16:49 ? 00:00:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
danpao 1285 1219 0 16:49 ? 00:00:00 /usr/bin/ssh-agent /usr/bin/gpg-agent --sh --daemon --keep-display /usr/libexec/xinit/xinitrc
danpao 1286 1219 0 16:49 ? 00:00:00 /usr/bin/gpg-agent --sh --daemon --keep-display /usr/libexec/xinit/xinitrc
danpao 1310 1210 0 16:49 ? 00:00:00 /usr/bin/pipewire
danpao 1311 1210 0 16:49 ? 00:00:00 /usr/bin/wireplumber
danpao 1312 1210 0 16:49 ? 00:00:00 /usr/bin/pipewire-pulse
rtkit 1320 1 0 16:49 ? 00:00:00 /usr/libexec/rtkit/rtkit-daemon
danpao 1321 1210 0 16:49 ? 00:00:00 /usr/libexec/xdg-permission-store
root 1323 1 0 16:49 ? 00:00:00 /usr/libexec/udisks2/udisksd
danpao 1334 1210 0 16:49 ? 00:00:00 /usr/libexec/xdg-desktop-portal-gtk
root 1443 1 0 16:49 ? 00:00:00 /usr/libexec/upower/upowerd
danpao 1450 1210 0 16:49 ? 00:00:00 /usr/libexec/dconf-service
root 1508 2 0 16:49 ? 00:00:00 [kworker/u9:1]
root 1539 1 0 16:49 ? 00:00:00 /usr/libexec/power-profiles-daemon
danpao 2125 1210 0 16:49 ? 00:00:00 /usr/libexec/goa-daemon
danpao 2132 1210 0 16:49 ? 00:00:00 /usr/libexec/goa-identity-service
root 2790 2 0 16:49 ? 00:00:00 [kworker/u8:8-flush-8:16]
root 2791 2 0 16:49 ? 00:00:00 [kworker/u8:9-ext4-rsv-conversion]
root 2792 2 0 16:49 ? 00:00:00 [kworker/u8:10-ext4-rsv-conversion]
danpao 2864 1210 0 16:50 ? 00:00:00 /usr/bin/plasma-shutdown
root 2917 1 0 16:50 tty2 00:00:00 /sbin/agetty -o -p -- \u --noclear tty2 linux
root 2918 1 0 16:50 tty3 00:00:00 /sbin/agetty -o -p -- \u --noclear tty3 linux
root 2919 1 0 16:50 tty4 00:00:00 /sbin/agetty -o -p -- \u --noclear tty4 linux
root 2920 1 0 16:50 tty5 00:00:00 /sbin/agetty -o -p -- \u --noclear tty5 linux
root 2921 1 0 16:50 tty6 00:00:00 /sbin/agetty -o -p -- \u --noclear tty6 linux
danpao 2925 1046 0 16:51 tty1 00:00:00 -bash
danpao 2962 2925 0 16:51 tty1 00:00:00 ps -efww
systemctl list-jobs
No jobs running
.
loginctl
SESSION UID USER SEAT TTY
1 1000 danpao seat0
3 1000 danpao seat0 tty1
2 sessions listed.
Is this right?
Thanks
Tuner
November 15, 2022, 2:15pm
12
Paoli, I feel much less qualified to assist than the other participants in this thread, but I’ll still dare to ask:
Have you tried the magic SysRq keys?
It’s been awhile, but past Tumbleweed snapshots occasionally have introduced temporary shutdown issues. I’ve always been able to reboot with Alt+SysRq, followed by r e i s u b.
(https://www.howtogeek.com/119127/use-the-magic-sysrq-key-on-linux-to-fix-frozen-x-servers-cleanly-reboot-and-run-other-low-level-commands/ )
If not enabled, you can adjust settings in YAST → Security and Users → Security Center → Use magic SysRq keys
conram
November 15, 2022, 3:36pm
13
Seems you are using auto login. Can you switch to not auto login in yast2.
See if there is a difference. Also are you using an nvidia graphics card?
Paolo1
November 15, 2022, 3:57pm
14
Thank you Tuner and conram, but yesterday I was trying to solve my problem by myself and I made a complete disaster. I had to reinstall my system but of course I had no loss of data, and now everything works as expected.
Anyway I’m not using an nvidia graphics card (it’s an old integrated Intel), but I’ll investigate on those hints!