Prerequisites:
- make a backup with Timeshift (safety first)
- check graphics card compatibility
(if your graphics card does not appear in the list, it is necessary to install the legacy driver)
- command line to check which GPU is installed:
Code: Select all
sudo lshw -numeric -C display
If the prerequisites are satisfied, you can continue with the tutorial below.
First step install Linux Headers and compilation dependencies:
Code: Select all
sudo apt install linux-headers-$(uname -r) build-essential libglvnd-dev pkg-config dkms -y
Second step blacklist the nouveau driver, create a blacklist file:
Code: Select all
sudo nano /etc/modprobe.d/blacklist-nouveau.conf
In the file add the following and save the file:
Code: Select all
blacklist nouveau
options nouveau modeset=0
Then regenerate the kernel initramfs:
Code: Select all
sudo update-initramfs -u
Third step install the latests NvidiaGraphicsDrivers:
Code: Select all
sudo apt install firmware-misc-nonfree nvidia-kernel-dkms nvidia-driver nvidia-cuda-toolkit nvidia-cuda-dev nvidia-settings nvidia-smi nvidia-xconfig nvidia-opencl-icd nvidia-opencl-common nvidia-detect -y
Reboot.
To view how version you have installed, just open an terminal and enter follow:
Code: Select all
nvidia-smi
Source
[Edit] After updating the repos there was a dependency error with the nvidia-settings package in the backports sources, to fix this incident it was enough to remove the backports source command.
It may happen that the persistenced daemon does not activate, it will then have to be done manually with the commands below:
Code: Select all
sudo systemctl daemon-reload
Code: Select all
sudo systemctl enable nvidia-persistenced