Hi
Recently upgraded to F40 and i discovered that when the laptop goes to sleep/suspend, it cant wake up, i will have to power the laptop down (force and power on). I use Intel and Nvidia.
There was obviously a considerable time between your last update with f39 (the 6.6.9 kernel) and the upgrade to f40.
The recommended upgrade between versions always suggests to do a full update on the existing version before performing the system upgrade and it seems you did not. If done there should have been a 6.8.7 kernel for f39 installed.
I cannot state that the version upgrade is related, but I can state that you do not know whether the same would have happened while still running f39 had it been fully updated. Many things in the entire software suite installed changed between the 6.6.9 kernel release and the 6.8.7 kernel release on f39, as well as between f39 & f40.
I suggest that you run sudo dnf distro-sync --refresh and see if there are any differences following that. I also suggest that you perform updates more frequently than about every 6 months since improvements, security fixes, and bug fixes are occurring regularly.
Though i cannot give the exact time of my last update, i can state that i always do updates when i see them in software center, so i dont think it took that long.
I must have updated the kernel version before the 40 update tbh, as i know i do them regularly, i could have missed it or didnt show up in my software center?
This clearly shows that the nvidia driver was still at 545.29.06 and the kernel was at 6.6.9 when the latest update to the nvidia drivers was done before the system upgrade.
f39 had been updated to the 6.8.6 kernel before the release of f40 and to 6.8.7 coincident with that release. I think the last kernel in f39 before the release of 6.8.4 was something like 6.7.8 or higher. 6.6.13 should have been the last update to the 6.6 kernel before fedora released the 6.7 kernels. about 5 months ago.
Had you performed a system update with dnf upgrade --refresh and a reboot as is recommended before performing the system upgrade there should have been a kernel 6.8.7 and an nvidia driver such as here for f39.
To find out exactly when the last update was you could use dnf history --reverse which keeps a log of all updates and should show the last build and install of the kmod-nvidia package related to a kernel update.
I edited your post to add the preformatted text tags to your post (the </> button on the toolbar) so the nvidia-smi output is formatted the same as seen on-screen.
We really do not know what your problem is since the same issue is not really helpful.
Ollama-llama is using nearly all the video ram on that GPU.
Please open your own thread since this thread already has a solution marked.
Also note that you are not using the latest nvidia driver and you really should update as the first step in troubleshooting issues.