Fedora KDE 40 freezing shortly after login (KDE 6.8.10-300.fc40.x86_64)

I am experiencing frequent system freezes after logging into Fedora KDE 40 on my Asus F15, which is set up as a dual boot with Windows 11. The issue arises inconsistently: sometimes Plasma does not load at all, while other times it freezes within a minute or two, necessitating a forced restart via the power button as the tty does not respond. Initially, after about 3 or 4 force restarts, the system would eventually run fine. However, now it freezes again upon opening applications like VSCode, Chrome, or Firefox.

For diagnostics, I am including the output of journalctl -b --priority=3, fpaste --sysinfo --printonly, neofetch, and a screenshot of ‘htop’ during a freeze. On the hardware side, there is an issue with the Wi-Fi card (MediaTek Wi-Fi 6 MT7921), though it operates well under Windows and was flawless with Fedora 39 over the past year. Windows continues to run without any freezing issues.

In journalctl logs, Jun 02 17:02:43 Owl systemd-coredump[4882]: [🡕] Process 4606 (code) of user 1000 dumped core. is new one today, it was not there yesterday.
Logs:
fpaste: https://drive.google.com/file/d/1DPzWozGUyDqKE_XMk08R0KUoedVmNGBN/view?usp=drive_link
journalctl -b --priority=3: https://drive.google.com/file/d/1r-rLnUupD0AwoBJ3Y8lF_NGRbvSkmkHJ/view?usp=drive_link

I have a feeling that it might be Nvidia crap:

sudo lsmod | grep -i nvidia
nvidia_drm            135168  0
nvidia_modeset       1617920  1 nvidia_drm
nvidia_uvm           6795264  0
nvidia              61001728  2 nvidia_uvm,nvidia_modeset
video                  77824  4 asus_wmi,asus_nb_wmi,i915,nvidia_modeset
sudo dnf list installed '*nvidia*'                                                                                                                                                                           
Installed Packages
kmod-nvidia-latest-dkms.x86_64                                                                         3:555.42.02-1.fc39                                                                       @cuda-fedora39-x86_64
nvidia-driver.x86_64                                                                                   3:555.42.02-1.fc39                                                                       @cuda-fedora39-x86_64
nvidia-driver-NVML.x86_64                                                                              3:555.42.02-1.fc39                                                                       @cuda-fedora39-x86_64
nvidia-driver-NvFBCOpenGL.x86_64                                                                       3:555.42.02-1.fc39                                                                       @cuda-fedora39-x86_64
nvidia-driver-cuda.x86_64                                                                              3:555.42.02-1.fc39                                                                       @cuda-fedora39-x86_64
nvidia-driver-cuda-libs.x86_64                                                                         3:555.42.02-1.fc39                                                                       @cuda-fedora39-x86_64
nvidia-driver-devel.x86_64                                                                             3:555.42.02-1.fc39                                                                       @cuda-fedora39-x86_64
nvidia-driver-libs.x86_64                                                                              3:555.42.02-1.fc39                                                                       @cuda-fedora39-x86_64
nvidia-gpu-firmware.noarch                                                                             20240513-1.fc40                                                                          @updates             
nvidia-kmod-common.noarch                                                                              3:555.42.02-1.fc39                                                                       @cuda-fedora39-x86_64
nvidia-libXNVCtrl.x86_64                                                                               3:555.42.02-1.fc39                                                                       @cuda-fedora39-x86_64
nvidia-libXNVCtrl-devel.x86_64                                                                         3:555.42.02-1.fc39                                                                       @cuda-fedora39-x86_64
nvidia-modprobe.x86_64                                                                                 3:555.42.02-2.fc39                                                                       @cuda-fedora39-x86_64
nvidia-persistenced.x86_64                                                                             3:555.42.02-1.fc39                                                                       @cuda-fedora39-x86_64
nvidia-settings.x86_64                                                                                 3:555.42.02-1.fc39                                                                       @cuda-fedora39-x86_64
nvidia-xconfig.x86_64                                                                                  3:555.42.02-2.fc39                                                                       @cuda-fedora39-x86_64

╰─$ dkms status
nvidia/555.42.02, 6.8.10-300.fc40.x86_64, x86_64: installed
nvidia/555.42.02, 6.8.9-300.fc40.x86_64, x86_64: installed



Removed f39

I think you are using the driver from nvidia web site (dkms being the clue).
We do not recommend you do that as users report issues with them.

Use the rpmfusion nvidia drivers please. Howto/NVIDIA - RPM Fusion

You will need to completely remove the nvidia provided drivers before installing the rpmfusion drivers.

Potentially since you installed that from cuda-fedora39-x86_64 repo.

In my experience for most users problems occur when they choose to install nvidia drivers from anywhere other than rpmfusion, plus you are running f40 with an f39 repo.

Please remove those packages, disable that repo, and then install according to the instructions at the rpmfusion site (as indicated by @barryascott just above)

1 Like

Not a solution, but it really seems like there should be a consistent way to install NV drivers on Fedora, and an auto-block on any other method without setting some SEbool or something like hdparm’s --please-destroy-my-drive implication :stuck_out_tongue:

Allowing the user to install a driver from an apparently non-vetted source and break what appears to be either the DE as a whole or the entire distro sounds like something that shouldn’t be happening. RPM Fusion is the vetted place. Block any other repo and NV .run scripts. Fedora isn’t scared of safety-nets with Btrfs, Atomics, rpm-ostree, and probably etc, so put one up for this? Most people just want the basics with 3D, so sources other than RPM Fusion should only be desirable to power-users, who can use a flag to allow potentially breaking their OS.

1 Like

@barryascott @computersavvy @Espionage724 Thanks very much. Uninstalling the Nvidia drivers appears to have resolved the issue. I plan to reinstall them using rpmfusion. I wasn’t aware that it would cause such a significant problem, especially since it worked fine for a year. Appreciate the help once again. :raised_hands:t3:

The nvidia drivers work directly with the kernel and kernel updates occur regularly. Probably your situation is one result of that.

:eyes:

Funny enough, When I use the RPMFusion way of installing the Nvidia GPU drivers, I always end up having to fix the computer/s during system-upgrade and some updates.

Yet, with Negativo17 repo (uses dkms) I haven’t had to do this since Fedora 31. . . Been using the repo since Fedora 26 across many GPU’s.

Also I get this nice verbose information during an update. (just updated 10 mins ago coincidentally)