Graphics performance on Linux Mint improves significantly with proprietary NVIDIA drivers. If you are wondering how to install nvidia drivers linux mint, this guide covers every step clearly. You will learn multiple methods, from the GUI to the command line.
NVIDIA drivers are essential for gaming, video editing, and CUDA workloads. Linux Mint makes installation straightforward, but you need to follow the right process. Let’s get started.
How To Install Nvidia Drivers Linux Mint
This section covers the most common and reliable method. You will use the Driver Manager tool, which is built into Linux Mint. It automatically detects your GPU and suggests the best driver.
Step 1: Update Your System
Always update your system before installing drivers. Open a terminal and run these commands:
sudo apt update
sudo apt upgrade -y
This ensures all packages are current. Reboot if prompted after the upgrade.
Step 2: Open Driver Manager
Click the Menu button and type “Driver Manager”. Select the application from the results. It may take a few seconds to scan your hardware.
Driver Manager lists available drivers for your NVIDIA GPU. You will see options like:
- nvidia-driver-535 (recommended)
- nvidia-driver-525
- nvidia-driver-470 (legacy)
- nouveau (open-source, default)
Step 3: Select The Recommended Driver
Choose the driver marked as “recommended”. This is usually the latest stable version. Click “Apply Changes” and enter your password.
The installation may take several minutes. Driver Manager will download and install the driver along with dependencies. Do not interrupt the process.
Step 4: Reboot Your System
After installation finishes, reboot your computer. You can do this from the menu or by running:
sudo reboot
Once rebooted, your system will use the proprietary NVIDIA driver. You can verify this by running:
nvidia-smi
This command shows GPU status, driver version, and memory usage.
Installing NVIDIA Drivers Via Terminal
If you prefer the command line, you can install drivers directly. This method is faster and gives you more control. It also works if Driver Manager fails.
Step 1: Identify Your GPU
First, check your graphics card model:
lspci | grep -i nvidia
This lists your NVIDIA GPU. Note the model number for driver compatibility.
Step 2: Add The Graphics Drivers PPA
Ubuntu-based systems, including Linux Mint, use the graphics-drivers PPA. Add it with:
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
Step 3: Install The Driver
You can install the latest driver or a specific version. For the latest stable driver:
sudo apt install nvidia-driver-535
Replace “535” with your preferred version. You can list available versions with:
apt search nvidia-driver
Step 4: Blacklist Nouveau
The open-source nouveau driver can conflict with the proprietary driver. The installation usually handles this, but you can do it manually:
echo 'blacklist nouveau' | sudo tee /etc/modprobe.d/blacklist-nvidia-nouveau.conf
sudo update-initramfs -u
Step 5: Reboot And Verify
Reboot your system:
sudo reboot
After reboot, check the driver is active:
nvidia-smi
You should see your GPU model and driver version.
Installing NVIDIA Drivers For CUDA Development
If you need CUDA for machine learning or scientific computing, install the NVIDIA CUDA toolkit. This includes the driver and development libraries.
Step 1: Download The CUDA Toolkit
Visit the NVIDIA CUDA download page. Select Linux, x86_64, Ubuntu, and your version (Linux Mint is based on Ubuntu). Choose the runfile or deb installer.
Step 2: Install Via Runfile
For the runfile method, make it executable and run:
chmod +x cuda_*.run
sudo sh cuda_*.run
Follow the prompts. Accept the license and choose to install the driver and toolkit.
Step 3: Set Environment Variables
Add CUDA to your PATH:
echo 'export PATH=/usr/local/cuda/bin:$PATH' >> ~/.bashrc
echo 'export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH' >> ~/.bashrc
source ~/.bashrc
Step 4: Verify CUDA Installation
Check CUDA version:
nvcc --version
This confirms the toolkit is installed correctly.
Troubleshooting Common Issues
Sometimes installation does not go smoothly. Here are solutions for frequent problems.
Black Screen After Reboot
If you see a black screen, boot into recovery mode. From the GRUB menu, select “Advanced options” and choose “Recovery mode”. Then select “root” and run:
sudo apt purge nvidia-*
sudo apt install nvidia-driver-535
Reboot normally.
Driver Not Loading
If nvidia-smi shows “NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver”, try:
sudo modprobe nvidia
If this fails, reinstall the driver.
Secure Boot Issues
Secure Boot can block unsigned drivers. During installation, you may be prompted to enroll a key. Follow the on-screen instructions. Alternatively, disable Secure Boot in your BIOS.
Legacy GPU Support
Older GPUs may require legacy drivers. Use Driver Manager to select nvidia-driver-470 or nvidia-driver-390. Check NVIDIA’s website for compatibility.
Verifying Your Installation
After installation, verify everything works. Use these commands:
nvidia-smi– Shows GPU info and driver versionglxinfo | grep "OpenGL renderer"– Confirms OpenGL is using NVIDIAprime-select query– Shows which GPU is active (for laptops with hybrid graphics)
You can also test with a game or benchmark tool like glmark2.
Managing Multiple GPUs (Hybrid Graphics)
Laptops often have integrated Intel graphics and a discrete NVIDIA GPU. Linux Mint supports NVIDIA Prime for switching.
Step 1: Install NVIDIA Prime
Prime is usually installed with the driver. If not, install it:
sudo apt install nvidia-prime
Step 2: Switch GPUs
Use the NVIDIA Settings GUI or terminal:
sudo prime-select nvidia
To switch back to Intel:
sudo prime-select intel
Reboot after switching.
Step 3: Check Active GPU
Run:
prime-select query
This shows which GPU is active.
Updating NVIDIA Drivers
Keep your drivers updated for performance and security. Use Driver Manager or terminal:
sudo apt update
sudo apt upgrade
This updates the driver if a new version is available. You can also install a specific version as shown earlier.
Uninstalling NVIDIA Drivers
If you need to remove the driver, use:
sudo apt purge nvidia-*
sudo apt autoremove
Reboot and the system will fall back to nouveau.
Performance Tips
After installing NVIDIA drivers, optimize your system:
- Enable “Performance Mode” in NVIDIA Settings for maximum power
- Disable compositing for full-screen applications
- Use the latest kernel for better compatibility
- Monitor temperatures with
nvidia-smi -l
These tweaks can improve gaming and rendering performance.
Frequently Asked Questions
How do I know which NVIDIA driver to install?
Driver Manager shows the recommended driver. You can also check NVIDIA’s website for your GPU model.
Can I install NVIDIA drivers on Linux Mint without internet?
No, you need an internet connection to download the driver package. Offline installation is complex and not recommended.
Will NVIDIA drivers work on all Linux Mint versions?
Yes, but older versions may have limited support. Linux Mint 21 and 22 work well with current drivers.
What should I do if the driver installation fails?
Try the terminal method. If that fails, check your GPU compatibility and ensure your system is updated.
Is it safe to install NVIDIA drivers from the PPA?
Yes, the graphics-drivers PPA is maintained by the Ubuntu community and is widely trusted.
Final Thoughts
Installing NVIDIA drivers on Linux Mint is straightforward. Use Driver Manager for simplicity or the terminal for control. Always update your system first and reboot after installation. If you encounter issues, the troubleshooting section above covers common problems. With proprietary drivers, your graphics performance will be much better, enabling gaming, rendering, and CUDA work.
Remember to check for driver updates periodically. Linux Mint makes this easy with the Update Manager. Enjoy your improved graphics experience.
That covers everything about how to install nvidia drivers linux mint. Follow these steps and you will have a fully functional NVIDIA setup.