NVIDIA Setup & Maintenance

GPU/NVDIA Commands
lspci -k | grep -A 3 -i 'VGA\|3D controller'
→ list the graphic adaptersnvcc --version
→` version of nvidia cuda compiler — if not installed then Cuda Toolkit not installednvidia-smi
→ NVIDIA System Management Interfacewatch -n 0.5 nvidia-smi
→ monitor gpu usage (update every 0.5 seconds)nvidia-settings
→ launch NVIDIA Control Paneltail -f /var/log/gpu-manager.log
glxgears
→ simple MESA OpenGL demo program that shows rotating gears and prints frame rates
Setup
Update Driver (Ubuntu)
Setting a new driver via Settings
→ About
→ Software Updates
→ Additional Drivers
as shown in the image, does not work! However, it is a useful screen for seeing which drivers are
available, and then after completing the steps below, for confirming that the desired update has stuck.
sudo apt update
→ updates the package repository on your system to ensure the latest driversapt search nvidia-driver
→ best fit is the latest tested proprietary versionsudo apt purge nvidia-driver*
(followed bysudo apt autoremove
just to be sure)sudo apt install xserver-xorg-video-nouveau
(to have at least some driver)- Reboot
sudo apt install nvidia-driver-570
- Reboot
Troubleshoot
If you have no screen: Did you change the system's python version?