I am providing the following information to install NVIDIA drivers, because Nouveau drivers were causing so many problems on my laptop. I contacted https://nouveau.freedesktop.org/ and received no response. That makes me feel they have a take-it or leave-it attitude. The installation instructions I found were difficult to understand. So in layman terms, I tested the procedure below and it worked for me on my Fedora 40 distro.
NVIDIA Releases Major Driver Update 560.35.03 for Linux x64 Systems
# = Notation
$ = CLI prompt
$ /sbin/lspci | grep -e VGA
(lists compatiable video cards)
CUDA Installation Guide for Linux
(gcc not installed by default)
$ sudo dnf groupinstall āDevelopment Toolsā
(installs everyting including gcc)
NVIDIA driver download link:
https://us.download.nvidia.com/XFree86/Linux-x86_64/560.35.03/NVIDIA-Linux-x86_64-560.35.03.run
copy file to ~/Downloads
Set File Permissions > Executable as Program > ON
Set Custom Permissions
Read and Write: Owner, Group, Others
Shut down X-Server (Run Levels in Linux - GeeksforGeeks)
$ sudo init 3
$ login:
$ cd ~/Downloads
$ sudo ./NVIDIA-Linux-x86_64-560.35.03.run
note the period preceding the forward slash
$ enter
didnāt install 32-bit files
install completes, power OFF, power ON
$ sudo dnf upgrade --refresh
done