Manjaro KDE shutdown slow

kde

#1

Hello all, when I reboot manjaro KDE, it will stop in shutdown step for almost 1mins30s, I don’t know how to fix this error, And I will put my log here:

May 20 23:53:35 lovian.msi sddm[713]: Adding cookie to "/var/run/sddm/{70582074-4177-435a-829f-9145b86c0030}"
May 20 23:53:35 lovian.msi sddm[713]: Socket server stopping...
May 20 23:53:35 lovian.msi sddm[713]: Socket server stopped.
May 20 23:53:35 lovian.msi sddm[713]: Display server stopping...
May 20 23:53:35 lovian.msi sddm-helper[1987]: [PAM] Starting...
May 20 23:53:35 lovian.msi sddm-helper[1987]: [PAM] Authenticating...
May 20 23:53:35 lovian.msi sddm-helper[1987]: [PAM] returning.
May 20 23:53:36 lovian.msi drkonqi[1990]: QXcbConnection: Could not connect to display :0
May 20 23:53:36 lovian.msi kdeinit5[1992]: QXcbConnection: Could not connect to display :0
May 20 23:53:36 lovian.msi systemd[1]: Requested transaction contradicts existing jobs: Transaction is destructive.
May 20 23:53:36 lovian.msi systemd[1]: systemd-coredump.socket: Failed to queue service startup job (Maybe the service file is missing or not a non-template unit?): Transaction is destructive.
May 20 23:53:36 lovian.msi systemd[1]: systemd-coredump.socket: Unit entered failed state.
May 20 23:53:36 lovian.msi sddm[713]: Display server stopped.
May 20 23:53:36 lovian.msi sddm[713]: Running display stop script  "/usr/share/sddm/scripts/Xstop"
May 20 23:53:36 lovian.msi sddm[713]: QProcess: Destroyed while process ("/usr/lib/sddm/sddm-helper") is still running.
May 20 23:53:36 lovian.msi systemd[1]: Stopped Simple Desktop Display Manager.
May 20 23:53:37 lovian.msi systemd[1]: Stopped Thermal Daemon Service.
May 20 23:55:04 lovian.msi systemd[1]: session-c2.scope: Stopping timed out. Killing.
May 20 23:55:04 lovian.msi systemd[1]: Stopped Session c2 of user zhengshuai.
May 20 23:55:04 lovian.msi systemd[1]: session-c2.scope: Unit entered failed state.
May 20 23:55:04 lovian.msi systemd[1]: Removed slice User Slice of zhengshuai.
May 20 23:55:04 lovian.msi systemd[1]: Stopping Permit User Sessions...
May 20 23:55:04 lovian.msi systemd[1]: Stopping Login Service...
May 20 23:55:04 lovian.msi systemd[1]: Stopped Permit User Sessions.
May 20 23:55:04 lovian.msi systemd[1]: Stopped target Remote File Systems.
May 20 23:55:05 lovian.msi systemd[1]: Stopped Login Service.
May 20 23:55:05 lovian.msi systemd[1]: Stopped target Basic System.
May 20 23:55:05 lovian.msi systemd[1]: Stopped target Sockets.
May 20 23:55:05 lovian.msi systemd[1]: Closed Avahi mDNS/DNS-SD Stack Activation Socket.
May 20 23:55:05 lovian.msi systemd[1]: Closed CUPS Scheduler.
May 20 23:55:05 lovian.msi systemd[1]: Closed D-Bus System Message Bus Socket.
May 20 23:55:05 lovian.msi systemd[1]: Stopped target Paths.
May 20 23:55:05 lovian.msi systemd[1]: Stopped Dispatch Password Requests to Console Directory Watch.
May 20 23:55:05 lovian.msi systemd[1]: Stopped CUPS Scheduler.
May 20 23:55:05 lovian.msi systemd[1]: Stopped target System Initialization.
May 20 23:55:05 lovian.msi systemd[1]: Stopping Load/Save Screen Backlight Brightness of backlight:intel_backlight...
May 20 23:55:05 lovian.msi systemd[1]: Stopped target Encrypted Volumes.
May 20 23:55:05 lovian.msi systemd[1]: Stopped target Swap.
May 20 23:55:05 lovian.msi systemd[1]: Deactivating swap /dev/dm-1...
May 20 23:55:05 lovian.msi systemd[1]: Stopped Setup Virtual Console.
May 20 23:55:05 lovian.msi systemd[1]: Stopping Update UTMP about System Boot/Shutdown...
May 20 23:55:05 lovian.msi systemd[1]: Stopped Apply Kernel Variables.
May 20 23:55:05 lovian.msi systemd[1]: Stopped Load Kernel Modules.
May 20 23:55:05 lovian.msi systemd[1]: Stopping Load/Save Random Seed...
May 20 23:55:05 lovian.msi systemd[1]: Stopped Set Up Additional Binary Formats.
May 20 23:55:05 lovian.msi systemd[1]: Stopped Forward Password Requests to Wall Directory Watch.
May 20 23:55:05 lovian.msi systemd[1]: Stopped Forward Password Requests to Plymouth Directory Watch.
May 20 23:55:05 lovian.msi systemd[1]: Stopped target Slices.
May 20 23:55:05 lovian.msi systemd[1]: Removed slice User and Session Slice.
May 20 23:55:05 lovian.msi systemd[1]: Stopped Load/Save Screen Backlight Brightness of backlight:intel_backlight.
May 20 23:55:05 lovian.msi systemd[1]: Stopped Load/Save Random Seed.
May 20 23:55:05 lovian.msi systemd[1]: Deactivated swap /dev/mapper/ManjaroVG-ManjaroSwap.
May 20 23:55:05 lovian.msi systemd[1]: Deactivated swap /dev/disk/by-label/ManjaroSwap.
May 20 23:55:05 lovian.msi systemd[1]: Deactivated swap /dev/disk/by-id/dm-uuid-LVM-VSbtlCBu7Q7FsKzi0ZvQ6KeFoQYMRgqOaWBthpVytb7xT1JSYylLmYAbCcFLD3uE.
May 20 23:55:05 lovian.msi systemd[1]: Deactivated swap /dev/disk/by-id/dm-name-ManjaroVG-ManjaroSwap.
May 20 23:55:05 lovian.msi systemd[1]: Deactivated swap /dev/ManjaroVG/ManjaroSwap.
May 20 23:55:05 lovian.msi systemd[1]: Deactivated swap /dev/dm-1.
May 20 23:55:05 lovian.msi systemd[1]: Deactivated swap /dev/disk/by-uuid/5e3e8d60-a614-4cbc-8dc3-5b2342468510.
May 20 23:55:05 lovian.msi systemd[1]: Stopped Update UTMP about System Boot/Shutdown.
May 20 23:55:05 lovian.msi systemd[1]: Stopped Create Volatile Files and Directories.
May 20 23:55:05 lovian.msi systemd[1]: Stopped target Local File Systems.
May 20 23:55:05 lovian.msi systemd[1]: Unmounting /home...
May 20 23:55:05 lovian.msi systemd[1]: Unmounting /boot/efi...
May 20 23:55:05 lovian.msi systemd[1]: Unmounting /run/user/1000...
May 20 23:55:05 lovian.msi systemd[1]: Unmounting Temporary Directory...
May 20 23:55:05 lovian.msi systemd[1]: Removed slice system-systemd\x2dbacklight.slice.
May 20 23:55:05 lovian.msi systemd[1]: Unmounted /run/user/1000.
May 20 23:55:05 lovian.msi systemd[1]: Unmounted /boot/efi.
May 20 23:55:05 lovian.msi systemd[1]: Unmounted Temporary Directory.
May 20 23:55:05 lovian.msi systemd[1]: Stopped File System Check on /dev/disk/by-uuid/6710-02B6.
May 20 23:55:05 lovian.msi systemd[1]: Unmounting /boot...
May 20 23:55:05 lovian.msi systemd[1]: Unmounted /home.
May 20 23:55:05 lovian.msi systemd[1]: Stopped File System Check on /dev/disk/by-uuid/ebc7083c-52eb-4ccf-86f1-95fcb700f118.
May 20 23:55:05 lovian.msi systemd[1]: Unmounted /boot.
May 20 23:55:05 lovian.msi systemd[1]: Reached target Unmount All Filesystems.
May 20 23:55:05 lovian.msi systemd[1]: Stopped File System Check on /dev/disk/by-uuid/c254907d-91bd-4209-8946-fb3be797d8d0.
May 20 23:55:05 lovian.msi systemd[1]: Removed slice system-systemd\x2dfsck.slice.
May 20 23:55:05 lovian.msi systemd[1]: Stopped target Local File Systems (Pre).
May 20 23:55:05 lovian.msi systemd[1]: Stopped Create Static Device Nodes in /dev.
May 20 23:55:05 lovian.msi systemd[1]: Stopped Remount Root and Kernel File Systems.
May 20 23:55:05 lovian.msi systemd[1]: Reached target Shutdown.
May 20 23:55:05 lovian.msi systemd[1]: Reached target Final Step.
May 20 23:55:05 lovian.msi systemd[1]: Starting Reboot...
May 20 23:55:05 lovian.msi systemd[1]: Shutting down.
May 20 23:55:05 lovian.msi systemd[1]: Hardware watchdog 'iTCO_wdt', version 0
May 20 23:55:05 lovian.msi systemd[1]: Set hardware watchdog to 10min.
May 20 23:55:05 lovian.msi kernel: watchdog watchdog0: watchdog did not stop!
May 20 23:55:05 lovian.msi systemd-shutdown[1]: Sending SIGTERM to remaining processes...
May 20 23:55:05 lovian.msi systemd-journald[241]: Journal stopped
-- Reboot --
May 20 23:55:14 lovian.msi systemd-journald[246]: Runtime journal (/run/log/journal/) is 8.0M, max 798.6M, 790.6M free.
May 20 23:55:14 lovian.msi systemd-journald[246]: System journal (/var/log/journal/) is 64.0M, max 2.8G, 2.8G free.
May 20 23:55:14 lovian.msi systemd-journald[246]: Time spent on flushing to /var is 26.516ms for 2 entries.
May 20 23:55:14 lovian.msi kernel: microcode: CPU0 microcode updated early to revision 0x1e, date = 2015-08-13
May 20 23:55:14 lovian.msi kernel: Initializing cgroup subsys cpuset
May 20 23:55:14 lovian.msi kernel: Initializing cgroup subsys cpu
May 20 23:55:14 lovian.msi kernel: Initializing cgroup subsys cpuacct
May 20 23:55:14 lovian.msi kernel: Linux version 4.4.10-1-MANJARO (builduser@manjaro) (gcc version 6.1.1 20160501 (GCC) ) #1 SMP PREEMPT Wed May 11 22:01:52 UTC 2016

in the time 23:53:37 and 23:55:04, it will stuck 1min 30s.
How to fix it?

Regards


#2

Web search quickly points to: https://github.com/systemd/systemd/issues/2691

Fix tabled for systemd 230. Cause is apparently a crash or hanging user application during shutdown.


#3

Thanks for reply, I read the related posts in github, it seems that I just wait for fix from upstream?


#4

In the meantime, you could do as I did, and reduce the default timeout value to a more sensible figure…

From the menu, navigate to System Settings > System Administration > Systemd > Conf
and the change the following items from the 90 to 10

DefaultTimeoutStartSec(s)
DefaultTimeoutStopSec(s)


#5

Check last post. (For posteority)

[–]glavinstone For those who are still looking for a solution, the command is simple:
sudo ln -s /dev/null /etc/sysctl.d/50-coredump.conf

for more info: https://bbs.archlinux.org/viewtopic.php?pid=1618677#p1618677

Worked for me. No stupid wait time.


#6

Works for me too, thanks :slight_smile: (kde)


#7

In my XFCE, this problem still remains after I did
sudo ln -s /dev/null /etc/sysctl.d/50-coredump.conf
but not always.


#8

In XFCE, where could I found this setting


#9

@ Vamposine
For an alternative to systemd-kcm, you can install systemd-ui for a gtk3, vala based GUI.
There is also systemd-manager based on gtk3 in the AUR.


#10

Is there any timeline for this fix being merged?

Confirmed that the issue persists in 16.06.1 as of 13/06/16 with a fresh install.


#11

Hy, works for me in my Manjaro 16.06 KDE Plasma 5.6.4 …


sudo ln -s /dev/null /etc/sysctl.d/50-coredump.conf

System Settings > System Administration > Systemd > Conf
and the change the following items from the 90 to 10

DefaultTimeoutStartSec(s)
DefaultTimeoutStopSec(s)


#12

I used the 2nd choice without any issue, nice work!


#13

You mean into systemd? It’s already in 230 (and was at the end of April) as indicated by the GitHub issue.

If you want systemd 230 it’s in unstable.