Per the title, I have recently installed F39 on my desktop - dual booting with Win11 for now until I figure out a few things.
I have noticed a hard to trace issue when shutting down or restarting my machine. It will initiate the shutdown, go to the black screen with the little Fedora logo at the bottom and then hang there forever. I have to hard reset the computer or manually power it off.
It only happens if I have had the system booted and up for a long(ish) period. For example, if I reboot, log in, wait a few mins and then restart or shutdown it works perfectly. I cannot tell exactly how long before the issue creeps in.
I do know:
It doesn’t happen with Windows (arrrg!)
It did happen on this same system with the Ubuntu 23.10 (which I had loaded prior to hopping over to Fedora)
I am fairly confident fiddling, but no expert so I have NO idea where to even start looking and what to look for to diagnose shutdown errors.
If someone can help point me in the right direction, I’d be very appreciative.
Hello @swaziboy ,
If you can, try to let it work through the shutdown. Also, while shutting down and it appears to be hanging, try <CTRL><ALT><F2> to get a terminal output as the shutdown is happening. After startup from a failed shutdown, you can try to look at the journal log entries to see if anything times out, journalctl -b -1 -r will give the last boot in reverse order.
thanks so much for the reply and the pointers. I have indeed tried getting a terminal output as shutdown occurs but have no luck opening one. I will endeavour to open one before initiating a shutdown to see if I can capture it. That or shutdown from said terminal.
I have also left the shutdown to run for some 6 hours and it never completes, so don’t think it’s slow, it definitely seems to have hung.
Thanks for the journalctl pointer - will look at that the next time this happens and report back.
Following up on the items above - I have captured the journalctl log from the last reboot where this happened. It’s almost like the system completes all required shutdown tasks but never powers off. In this case it was a restart not a shutdown.
I managed to CTRL-ALT-F2 during the shutdown, but it simply led to a black screen.
An extract from the logs below, in reverse order:
Feb 12 13:30:52 machinename systemd-journald[53529]: Journal stopped
Feb 12 13:30:52 machinename systemd-journald[53529]: Received SIGTERM from PID 1 (systemd-shutdow).
Feb 12 13:30:52 machinename systemd-shutdown[1]: Sending SIGTERM to remaining processes...
Feb 12 13:30:52 machinename systemd-shutdown[1]: Syncing filesystems and block devices.
Feb 12 13:30:52 machinename audit: BPF prog-id=133 op=UNLOAD
Feb 12 13:30:52 machinename audit: BPF prog-id=230 op=UNLOAD
Feb 12 13:30:52 machinename audit: BPF prog-id=231 op=UNLOAD
Feb 12 13:30:52 machinename audit: BPF prog-id=227 op=UNLOAD
Feb 12 13:30:52 machinename audit: BPF prog-id=228 op=UNLOAD
Feb 12 13:30:52 machinename audit: BPF prog-id=229 op=UNLOAD
Feb 12 13:30:52 machinename audit: BPF prog-id=224 op=UNLOAD
Feb 12 13:30:52 machinename audit: BPF prog-id=225 op=UNLOAD
Feb 12 13:30:52 machinename audit: BPF prog-id=221 op=UNLOAD
Feb 12 13:30:52 machinename audit: BPF prog-id=222 op=UNLOAD
Feb 12 13:30:52 machinename audit: BPF prog-id=212 op=UNLOAD
Feb 12 13:30:52 machinename audit: BPF prog-id=213 op=UNLOAD
Feb 12 13:30:52 machinename audit: BPF prog-id=214 op=UNLOAD
Feb 12 13:30:52 machinename audit: BPF prog-id=217 op=UNLOAD
Feb 12 13:30:52 machinename audit: BPF prog-id=218 op=UNLOAD
Feb 12 13:30:52 machinename audit: BPF prog-id=210 op=UNLOAD
Feb 12 13:30:52 machinename audit: BPF prog-id=211 op=UNLOAD
Feb 12 13:30:52 machinename systemd[1]: Shutting down.
Feb 12 13:30:52 machinename systemd[1]: Reached target reboot.target - System Reboot.
Feb 12 13:30:52 machinename audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-reboot comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 12 13:30:52 machinename audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-reboot comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 12 13:30:52 machinename systemd[1]: Finished systemd-reboot.service - System Reboot.
Feb 12 13:30:52 machinename systemd[1]: systemd-reboot.service: Deactivated successfully.
Feb 12 13:30:52 machinename systemd[1]: Reached target final.target - Late Shutdown Services.
Feb 12 13:30:52 machinename systemd[1]: Reached target shutdown.target - System Shutdown.
Feb 12 13:30:52 machinename audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=lvm2-monitor comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 12 13:30:52 machinename systemd[1]: Stopped lvm2-monitor.service - Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling.
Feb 12 13:30:52 machinename systemd[1]: lvm2-monitor.service: Deactivated successfully.
Feb 12 13:30:52 machinename systemd[1]: Removed slice system-systemd\x2dzram\x2dsetup.slice - Slice /system/systemd-zram-setup.
Feb 12 13:30:52 machinename kernel: audit: type=1131 audit(1707769852.232:983): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-zram-setup@zram0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 12 13:30:52 machinename audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-zram-setup@zram0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 12 13:30:52 machinename systemd[1]: Stopped systemd-zram-setup@zram0.service - Create swap on /dev/zram0.
Feb 12 13:30:52 machinename systemd[1]: systemd-zram-setup@zram0.service: Deactivated successfully.
Feb 12 13:30:52 machinename kernel: zram0: detected capacity change from 16777216 to 0
Feb 12 13:30:52 machinename systemd[1]: Stopping systemd-zram-setup@zram0.service - Create swap on /dev/zram0...
Feb 12 13:30:52 machinename systemd[1]: Stopped systemd-tmpfiles-setup-dev-early.service - Create Static Device Nodes in /dev gracefully.
Feb 12 13:30:52 machinename systemd[1]: systemd-tmpfiles-setup-dev-early.service: Deactivated successfully.
Feb 12 13:30:52 machinename systemd[1]: Stopped systemd-tmpfiles-setup-dev.service - Create Static Device Nodes in /dev.
Feb 12 13:30:52 machinename audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-tmpfiles-setup-dev-early comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 12 13:30:52 machinename audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-tmpfiles-setup-dev comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 12 13:30:52 machinename kernel: audit: type=1131 audit(1707769852.201:982): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-tmpfiles-setup-dev-early comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 12 13:30:52 machinename kernel: audit: type=1131 audit(1707769852.200:981): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-tmpfiles-setup-dev comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 12 13:30:52 machinename kernel: audit: type=1131 audit(1707769852.200:980): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-remount-fs comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 12 13:30:52 machinename systemd[1]: systemd-tmpfiles-setup-dev.service: Deactivated successfully.
Feb 12 13:30:52 machinename audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-remount-fs comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 12 13:30:52 machinename systemd[1]: Stopped systemd-remount-fs.service - Remount Root and Kernel File Systems.
Feb 12 13:30:52 machinename systemd[1]: systemd-remount-fs.service: Deactivated successfully.
Feb 12 13:30:52 machinename systemd[1]: Stopping lvm2-monitor.service - Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling...
Feb 12 13:30:52 machinename systemd[1]: Stopped target local-fs-pre.target - Preparation for Local File Systems.
Feb 12 13:30:52 machinename systemd[1]: Removed slice system-systemd\x2dfsck.slice - Slice /system/systemd-fsck.
Feb 12 13:30:52 machinename kernel: audit: type=1131 audit(1707769852.177:979): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-fsck@dev-disk-by\x2duuid-ca864753\x2d3398\x2d4e3d\x2d862f\x2dbdc3e31c50ca comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 12 13:30:52 machinename audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-fsck@dev-disk-by\x2duuid-ca864753\x2d3398\x2d4e3d\x2d862f\x2dbdc3e31c50ca comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 12 13:30:52 machinename systemd[1]: Stopped systemd-fsck@dev-disk-by\x2duuid-ca864753\x2d3398\x2d4e3d\x2d862f\x2dbdc3e31c50ca.service - File System Check on /dev/disk/by-uuid/ca864753-3398-4e3d-862f-bdc3e31c50ca.
Feb 12 13:30:52 machinename systemd[1]: systemd-fsck@dev-disk-by\x2duuid-ca864753\x2d3398\x2d4e3d\x2d862f\x2dbdc3e31c50ca.service: Deactivated successfully.
Feb 12 13:30:52 machinename systemd[1]: Reached target umount.target - Unmount All Filesystems.
Feb 12 13:30:52 machinename systemd[1]: Unmounted boot.mount - /boot.
Feb 12 13:30:52 machinename systemd[1]: boot.mount: Deactivated successfully.
Feb 12 13:30:52 machinename systemd[1]: Deactivated swap dev-zram0.swap - Compressed Swap on /dev/zram0.
Feb 12 13:30:52 machinename systemd[1]: dev-zram0.swap: Deactivated successfully.
Feb 12 13:30:52 machinename kernel: EXT4-fs (nvme0n1p4): unmounting filesystem ca864753-3398-4e3d-862f-bdc3e31c50ca.
Feb 12 13:30:52 machinename kernel: audit: type=1131 audit(1707769852.128:978): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-fsck@dev-disk-by\x2duuid-2443\x2dD878 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 12 13:30:52 machinename audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-fsck@dev-disk-by\x2duuid-2443\x2dD878 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 12 13:30:52 machinename systemd[1]: Stopped systemd-fsck@dev-disk-by\x2duuid-2443\x2dD878.service - File System Check on /dev/disk/by-uuid/2443-D878.
Feb 12 13:30:52 machinename systemd[1]: systemd-fsck@dev-disk-by\x2duuid-2443\x2dD878.service: Deactivated successfully.
Feb 12 13:30:52 machinename systemd[1]: Unmounting boot.mount - /boot...
Feb 12 13:30:52 machinename systemd[1]: Deactivating swap dev-zram0.swap - Compressed Swap on /dev/zram0...
Feb 12 13:30:52 machinename systemd[1]: Stopped target swap.target - Swaps.
Feb 12 13:30:52 machinename systemd[1]: Unmounted tmp.mount - Temporary Directory /tmp.
Feb 12 13:30:52 machinename systemd[1]: tmp.mount: Deactivated successfully.
Feb 12 13:30:52 machinename systemd[1]: Unmounted boot-efi.mount - /boot/efi.
Feb 12 13:30:52 machinename systemd[1]: boot-efi.mount: Deactivated successfully.
Feb 12 13:30:52 machinename systemd[1]: Unmounted home.mount - /home.
Feb 12 13:30:52 machinename systemd[1]: home.mount: Deactivated successfully.
Feb 12 13:30:52 machinename systemd[1]: Unmounting tmp.mount - Temporary Directory /tmp...
Feb 12 13:30:52 machinename systemd[1]: Unmounting home.mount - /home...
Feb 12 13:30:52 machinename systemd[1]: Unmounting boot-efi.mount - /boot/efi...
Feb 12 13:30:52 machinename kernel: audit: type=1131 audit(1707769852.060:977): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=import-state comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 12 13:30:52 machinename systemd[1]: Stopped target local-fs.target - Local File Systems.
Feb 12 13:30:52 machinename audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=import-state comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 12 13:30:52 machinename systemd[1]: Stopped import-state.service - Import network configuration from initramfs.
Feb 12 13:30:52 machinename kernel: audit: type=1131 audit(1707769852.059:976): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-tmpfiles-setup comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 12 13:30:52 machinename kernel: audit: type=1131 audit(1707769852.059:975): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=auditd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 12 13:30:52 machinename systemd[1]: import-state.service: Deactivated successfully.
Feb 12 13:30:52 machinename audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-tmpfiles-setup comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 12 13:30:52 machinename systemd[1]: Stopped systemd-tmpfiles-setup.service - Create Volatile Files and Directories.
Feb 12 13:30:52 machinename systemd[1]: systemd-tmpfiles-setup.service: Deactivated successfully.
Feb 12 13:30:52 machinename audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=auditd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 12 13:30:52 machinename systemd[1]: Stopped auditd.service - Security Auditing Service.
Feb 12 13:30:52 machinename systemd[1]: auditd.service: Deactivated successfully.
Feb 12 13:30:52 machinename kernel: audit: type=1305 audit(1707769852.046:974): op=set audit_pid=0 old=958 auid=4294967295 ses=4294967295 subj=system_u:system_r:auditd_t:s0 res=1
Feb 12 13:30:52 machinename kernel: kauditd_printk_skb: 54 callbacks suppressed
Feb 12 13:30:52 machinename auditd[958]: The audit daemon is exiting.
Feb 12 13:30:52 machinename audit: CONFIG_CHANGE op=set audit_pid=0 old=958 auid=4294967295 ses=4294967295 subj=system_u:system_r:auditd_t:s0 res=1
Feb 12 13:30:52 machinename systemd[1]: proc-sys-fs-binfmt_misc.mount: Deactivated successfully.
Feb 12 13:30:52 machinename systemd[1]: Stopped systemd-modules-load.service - Load Kernel Modules.
Feb 12 13:30:52 machinename audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-modules-load comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 12 13:30:52 machinename systemd[1]: systemd-modules-load.service: Deactivated successfully.
Feb 12 13:30:52 machinename systemd[1]: Closed systemd-coredump.socket - Process Core Dump Socket.
Feb 12 13:30:52 machinename systemd[1]: systemd-coredump.socket: Deactivated successfully.
Feb 12 13:30:52 machinename audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-sysctl comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 12 13:30:52 machinename systemd[1]: Stopped systemd-sysctl.service - Apply Kernel Variables.
Feb 12 13:30:52 machinename systemd[1]: systemd-sysctl.service: Deactivated successfully.
Feb 12 13:30:52 machinename systemd[1]: Stopping auditd.service - Security Auditing Service...
Feb 12 13:30:52 machinename systemd[1]: Unset automount proc-sys-fs-binfmt_misc.automount - Arbitrary Executable File Formats File System Automount Point.
Feb 12 13:30:52 machinename systemd[1]: proc-sys-fs-binfmt_misc.automount: Deactivated successfully.
Feb 12 13:30:52 machinename audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-update-utmp comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 12 13:30:52 machinename systemd[1]: Stopped systemd-update-utmp.service - Record System Boot/Shutdown in UTMP.
Feb 12 13:30:52 machinename audit: BPF prog-id=226 op=UNLOAD
Feb 12 13:30:51 machinename systemd[1]: systemd-update-utmp.service: Deactivated successfully.
Feb 12 13:30:51 machinename audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-resolved comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 12 13:30:51 machinename systemd[1]: Stopped systemd-resolved.service - Network Name Resolution.
Feb 12 13:30:51 machinename systemd[1]: systemd-resolved.service: Deactivated successfully.
Feb 12 13:30:51 machinename audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-binfmt comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 12 13:30:51 machinename systemd[1]: Stopped systemd-binfmt.service - Set Up Additional Binary Formats.
Feb 12 13:30:51 machinename audit[63116]: SYSTEM_SHUTDOWN pid=63116 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg=' comm="systemd-update-utmp" exe="/usr/lib/systemd/systemd-update-utmp" hostname=? addr=? terminal=? res=success'
Feb 12 13:30:51 machinename systemd[1]: systemd-binfmt.service: Deactivated successfully.
Feb 12 13:30:51 machinename audit: BPF prog-id=223 op=UNLOAD
The only error lines I could find:
Feb 12 13:30:50 machinename gnome-session-c[63087]: Couldn't connect to session bus: Error receiving data: Connection reset by peer
Feb 12 13:30:50 machinename gnome-shell[2345]: Could not release device '/dev/dri/card1' (226,1): GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
Feb 12 13:30:50 machinename gnome-shell[2345]: Could not release device '/dev/input/event5' (13,69): GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
Feb 12 13:30:50 machinename gnome-shell[2345]: Could not release device '/dev/input/event0' (13,64): GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
Feb 12 13:30:50 machinename gnome-shell[2345]: Could not release device '/dev/input/event1' (13,65): GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
Feb 12 13:30:50 machinename gnome-shell[2345]: Could not release device '/dev/input/event2' (13,66): GDBus.Error:org.freedesktop.DBus.Error.NoReply: Remote peer disconnected
Feb 12 13:30:49 machinename gdm[1435]: Gdm: Failed to list cached users: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
Feb 12 13:30:49 machinename cupsd[1320]: REQUEST localhost - - "POST / HTTP/1.1" 200 154 Cancel-Subscription client-error-not-found
Checking my journal logs and the pattern is the same also.
The behavior I have is after 1 minute and 30 seconds (90seconds) it does complete the process. But it is very annoying to wait that time every time since screen is powered off already
I tested in following systems:
F38 stock kernel 6.2, works fine. No issue
F38 with any kernel starting 6.5 , doesn’t work. Stuck in shutdown/reboot/wake from sleep
F39 stock kernel 6.5, doesn’t work. Stuck in shutdown/reboot/wake from sleep
F40 stock kernel 6.8, doesn’t work. Stuck in shutdown/reboot/wake from sleep
Ubuntu 24.04 kernel 6.8, doesn’t work. Stuck in shutdown/reboot/wake from sleep
I can confirm that I am experiencing the same problem, Fedora 40 KDE Plasma.
I am unable to perform a reboot, shutdown, or logout.
However, I can confirm that reboot and shutdown from the terminal are functional.