NVIDIA driver - gkgkgk1215/else GitHub Wiki
Graphics Driver
-
My laptop: ASUS ROG GU603ZX uses NVIDIA Geforce 3080 Ti
-
Search suitable version of linux drivers on the NVIDA webpage
-
(Caution) apt installer includes CUDA 12.2 version, not officially supported by PyTorch
-
Binary installer is recommended for the use of PyTorch
-
For ASUS laptop (Rtx 3080 ti), download "NVIDIA-Linux-x86_64-535.183.01.run"
-
535 supports RTX 3080 ti (laptop) driver:
sudo apt-get install nvidia-driver-535
-
"apt installer" includes CUDA installation. CUDA 12.2 is included in 535
-
It is recommended to install ROS prior to the followings.
Laptop: ASUS ROG GU603ZX uses NVIDIA Geforce 3080 Ti (2024. 07. 21)
Install using apt
Pre-setup
- Uninstall any previously installed Nvidia drivers & Nouveau driver
sudo apt-get remove nvidia* && sudo apt autoremove
sudo apt-get install dkms build-essential linux-headers-generic
- Open configuration file and blacklist Nouveau
sudo gedit /etc/modprobe.d/blacklist.conf
- Add this line in the end: blacklist nouveau
blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau off
- Disable the Kernel Nouveau and kernel rebuild.
echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf
sudo update-initramfs -u
- Reboot system
sudo reboot
Install NVIDIA graphics driver
- Tested with my laptop (Samsung NT900-X5N, Geforce 940MX)
- Stop lightdm (GUI) and login to console (Ctrl+Alt+F1)
sudo service lightdm stop
- Install the appropriate driver. To check the recommended drivers,
sudo ubuntu-drivers devices
- For the SRI desktop, nvidia-455 is compatible.
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-driver-460 (for my laptop)
- Reboot system and check the installed driver after rebooting.
sudo reboot
nvidia-smi
Install from source
-
First, go to the Nvidia website and download the newest Nvidia driver compatible with your graphics card series.
-
Reboot Ubuntu
-
Before login, Screen Choose “Recovery mode” on the grub menu.
-
And then chose “root console”
-
Open module blacklist as admin:
$ sudo nano /etc/modprobe.d/blacklist.conf
-
Add this line in the end:
blacklist nouveau
-
Uninstall any previously installed Nvidia drivers:
$ sudo apt-get --purge remove nvidia-*
- Disable the Kernel Nouveau.
$ echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf
$ update-initramfs -u
-
Reboot Ubuntu again and enter “root console” following the above steps.
-
Change to init 3
init 3
- Install the Driver:
sudo apt-get install build-essential
sudo ./NVIDIA-XXXXX.run
- (Not tested) You can add the following options.
sudo ./NVIDIA-Linux-x86_64-535.183.01.run --ui=none --no-questions --accept-license --disable-nouveau --no-cc-version-check --install-libglvnd
- Reboot your computer and you’re good to go.. 🙂
Reference: https://altinukshini.wordpress.com/2011/07/28/how-to-install-nvidia-drivers-in-ubuntu-linux/