My Fedora 41 system often hangs up/crashes on shutdown

My Fedora 41 system will often crash during shutown - system hangs on graphical display (showing motherboard logo, spinning circle and Fedora logo), and I have to physically press and hold the power off button to shut down my computer.

This doesn’t happen every time - I have no idea what could possibly be the cause of it.

I am using Fedora 41 with the KDE Plasma desktop, with Nvidia drivers installed through RPM Fusion and signed to Secure Boot.

I thought that kernel updates will help fix the issue, but even after updating it continues to persist. :frowning:

My system details:

Operating System: Fedora Linux 41
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.1
Kernel Version: 6.12.4-200.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × Intel® Core™ i7-10700F CPU @ 2.90GHz
Memory: 31.3 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7C82
System Version: 1.0

I have submitted a bug report to bugzilla, but sadly haven’t had any interaction yet:

https://bugzilla.redhat.com/show_bug.cgi?id=2329732

I will be grateful for any help. :slight_smile:

You can check with journalctl what your system is doing when it hangs, even post reboot.
That should help narrow down the issue.
A similar issue happened with me when my disk was dying, when the system shuts down it flushes disk caches, and a dying disk and/or corrupt filesystem can then hang.
But without logs it’s hard to tell.
See also systemd-shutdown-debug.txt · GitHub (not tested myself) and [SOLVED] Read journalctl shutdown log / Newbie Corner / Arch Linux Forums (archlinux, but systemd/journalctl will work the same on Arch as on Fedora.

You can then update the bugzilla with those logs, without them it’s exceedingly difficult to debug this. Hope this helps,

Thank you for your response! I was able to create logs using journalctl, but didn’t seem to find any messages regarding the shutdown process. :frowning: Sadly, the issue is difficult to replicate, since it doesn’t happen every time. Is there a specific command that I should use to only receive logs from the shutdown process, or should I use journalctl --since=?

I found that another user has a similar issue, and I think our common denominator is the Nvidia hardware.

Unfortunately, Nvidia GPU is the sole GPU I have on this machine, so I can’t switch to integrated graphics and see it it helps. :frowning:

Thank you again for your help!

I don’t think journalctl would be much help here. In my case, the hang happens after all filesystems are unmounted, which probably means that journalctl is stopped by the time this hang happens, thus there are no records of any errors.

1 Like

Do you have the quiet and splash removed from your grub commandline? E.g. do you see terminal messages when you shutdown, or just the logo? That would at least show you where it freezes.
A related issue (with nvidia and freezing on [powering off]) on arch [Solved] Sometimes shutdown hangs / Newbie Corner / Arch Linux Forums seems to have gone away with changing the kernel, but without narrowing down the cause it’s very hard to debug.
I’ve had similar issues (F39, intermittent), but running nouveau (not the proprietary driver), and no issues so far, but can’t be sure this is related and you may need the proprietary driver for cuda/gaming.