[HowTo]Install latests community NvidiaGraphicsDrivers on LMDE5

Write tutorials for LMDE here
More tutorials on https://github.com/orgs/linuxmint/discu ... /tutorials and (archive) on https://community.linuxmint.com/tutorial
Forum rules
Don't add support questions to tutorials; start your own topic in the appropriate sub-forum instead. Before you post please read forum rules
Post Reply
User avatar
cpedretti
Level 3
Level 3
Posts: 199
Joined: Tue Mar 10, 2020 12:06 am

[HowTo]Install latests community NvidiaGraphicsDrivers on LMDE5

Post by cpedretti »

Disclaimer: "This tutorial only focuses on the second way to install Nvidia's proprietary drivers, if the "sudo apt install nvidia-driver" way does not work on your installation, you can rely on this tutorial.To all those who use Plymouth with various scripts, there is a high risk of startup problems because Plymouth behaves badly with nvidia's proprietary drivers, so please do not follow this How-to. You can, however, find out more on the Plymouth Debian Wiki."


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
Output


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
Enjoy!
Last edited by cpedretti on Fri Jan 05, 2024 6:41 am, edited 6 times in total.
AMD Ryzen 7 3700X - 32GB DDR4 RGB White - RTX4060TI O8GB White- SSD NVME Crucial P5 500GB - Mobo Gigabyte AORUS ELITE B550 V2 - PSU Corsair RM750 White - Case Corsair 5000D Airflow White 7 fans AF120 ARGB - AIO Corsair H100I Cappelix 240 White
ne0h

Re: [HowTo]Install latests community NvidiaGraphicsDrivers on LMDE5

Post by ne0h »

Thanks for write this guide!!!
User avatar
MiZoG
Level 8
Level 8
Posts: 2468
Joined: Fri Jan 26, 2018 8:30 pm
Location: Athens, Greece

Re: [HowTo]Install latests community NvidiaGraphicsDrivers on LMDE5

Post by MiZoG »

I'm under the impression that a mere "sudo apt install -t bullseye-backports nvidia-driver" should be just enough for now to install the 470.X nvidia driver.
User avatar
SMG
Level 25
Level 25
Posts: 32438
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: [HowTo]Install latests community NvidiaGraphicsDrivers on LMDE5

Post by SMG »

Moderator Note: RonO's post on wanting to get both Nvidia and Intel working can now be found here How to get Nvidia and Intel working on LMDE5?
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Post Reply

Return to “Tutorials”