You are not logged in.
Pages: 1
Hello !
I am using Arch with KDE and Xorg - I have an nvidia gpu and amd cpu.
2 out of 5 times when I reboot, I get stuck on the black screen saying :
A stopjob is running (45sec/1min 30sec)After some web searching I found out that is is a problem with the kwin_x11 failing to properly shutdown, as mentioned in this reddit post.
According the op I need to make a script that runs on every shutdown which kills the kwin process before it hangs, hence letting the system shutdown normally.
My question is that is this workaround a viable solution AND will this cause ANY problems in my system ??
Here is the summary:
we need a script that kills the kwin process at /usr/lib/systemd/system-shutdown.
cd /usr/lib/systemd/system-shutdown > sudo touch kill_kwin.shutdown
Put these lines in the script.
#!/bin/sh
# Kill KWin immediately to prevent stalled shutdowns/reboots
pkill -KILL kwin_x11
Make the script executable.
chmod +x kill_kwin.shutdown
Create a systemd service at /etc/systemd/system
/etc/systemd/system > sudo touch kill_kwin.service
Put these lines in the file.
[Unit]
Description=Kill KWin at shutdown/reboot
[Service]
Type=oneshot
ExecStart=/bin/true
ExecStop=/bin/sh /usr/lib/systemd/system-shutdown/kill_kwin.shutdown
RemainAfterExit=true
[Install]
WantedBy=multi-user.target
Then enable the service.
sudo systemctl enable kill_kwin.serviceLast edited by Jokarch9374 (2022-03-19 07:54:44)
Offline
"/etc/systemd/system.conf has a line
#DefaultTimeoutStopSec=90swhich can be uncommented and changed."
Offline
I just read the comments below in the given reddit post, probably these steps are good to apply but i don't think your issue related with it, because even I don't have a KDE, I was getting this alert message on my shutdown screen. It's just disappeared after a while.
Offline
It shouldn't inherently be necessary and it would be better to find the actual cause but there's nothing that would be able to get damaged by this, kwin_x11 as a process is fairly self contained and this won't hurt anything else.
FWIW as a another test, assuming you are using SDDM to launch your session, without this script and during a "hang" does it help and shutdown immediately if you press Ctrl+Alt+F1 ?
Last edited by V1del (2022-03-19 10:13:22)
Offline
Offline
Pages: 1