Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Check NVIDIA Graphics Card Ubuntu: Full Guide

· 4 min read · Home Tech

In this article
  1. Why Checking Your GPU Matters
  2. Methods to Identify Your NVIDIA GPU
  3. Using the Command Line: Step-by-Step
  4. Checking the Driver in Use
  5. Common Issues and Misconceptions
  6. When to Use Each Method
  7. Safety and System Stability
  8. Frequently Asked Questions

To check your NVIDIA graphics card on Ubuntu, open a terminal and run lspci | grep -i nvidia to see the model, or nvidia-smi if the proprietary driver is installed. For a user-friendly view, use the System Information tool under the About section in Settings, which lists your graphics adapter.

Why Checking Your GPU Matters

Knowing your exact NVIDIA model is the first step to installing the correct driver, troubleshooting display issues, or verifying hardware acceleration. Ubuntu often uses the open-source nouveau driver by default, which may not support newer features or optimal performance. Identifying your GPU lets you decide whether to switch to the proprietary NVIDIA driver and which version to install.

Methods to Identify Your NVIDIA GPU

There are several reliable ways to check your NVIDIA graphics card in Ubuntu, each with its own strengths:

  • Terminal with lspci: Run lspci -nnk | grep -iA3 vga or lspci | grep -i nvidia. This shows the PCI device ID and often the model name (e.g., "NVIDIA Corporation GA106 [GeForce RTX 3060 Lite Hash Rate]").
  • System Information GUI: Go to Settings → About → Graphics. It displays the GPU name, but may show "llvmpipe" if no proper driver is active.
  • NVIDIA System Management Interface (nvidia-smi): If the proprietary driver is installed, this command shows the GPU model, driver version, and memory usage in a table format.
  • Hardware probe tools: Tools like hardinfo or lshw (e.g., sudo lshw -C display) provide detailed information including bus address and driver in use.

Using the Command Line: Step-by-Step

For most users, the terminal is the fastest way. Follow these steps:

  1. Press Ctrl+Alt+T to open a terminal.
  2. Type lspci | grep -i nvidia and press Enter. This lists all PCI devices with "NVIDIA" in the name.
  3. If nothing appears, try lspci -nn | grep -i '0300\|0302' to list all display controllers.
  4. For driver and performance info, run nvidia-smi. If it says "command not found", the proprietary driver is not installed.

Checking the Driver in Use

Knowing which driver is active is as important as the model. Run lsmod | grep -i nvidia to see if the NVIDIA kernel module is loaded. Alternatively, lspci -k | grep -A2 -i vga shows the kernel driver in use (e.g., nvidia or nouveau). The ubuntu-drivers devices command lists recommended drivers for your GPU.

Common Issues and Misconceptions

A frequent misconception is that lspci always shows the full model name. In some cases, it only shows a generic name like "NVIDIA Corporation Device 1f03". To decode that, you can search the PCI ID online or use the nvidia-detect package. Another issue: if you see "llvmpipe" in System Information, it means the system is using software rendering, not your NVIDIA GPU—often due to missing or misconfigured drivers.

When to Use Each Method

  • Quick check: Use lspci | grep -i nvidia—works even without drivers.
  • Driver status: Use nvidia-smi—shows driver version and GPU utilization.
  • Full details: Use sudo lshw -C display—shows driver, memory, and clock info.
  • GUI preference: Use System Settings if you avoid the terminal.

Safety and System Stability

Checking your GPU is safe and does not require opening your PC. However, if you plan to install a driver, always back up your data. Installing the wrong driver can cause display issues, but you can usually recover by booting into recovery mode or using the open-source driver. Never download drivers from unofficial sources. Ubuntu's Software & Updates tool provides tested drivers from its repositories.

Frequently Asked Questions

How do I see my NVIDIA GPU model in Ubuntu without installing anything?

Open a terminal and run lspci | grep -i nvidia. This works out of the box and shows the device name and ID.

Why does nvidia-smi show "command not found"?

This means the proprietary NVIDIA driver is not installed. The open-source nouveau driver is likely in use. You can install the recommended driver via sudo ubuntu-drivers autoinstall or through the Software & Updates GUI.

What does "llvmpipe" mean in System Information?

It indicates that the system is using software rendering (Mesa's LLVMpipe) instead of your NVIDIA GPU. This usually happens when the GPU driver is not properly loaded or is not supported.

Can I check my GPU if I'm using a laptop with hybrid graphics?

Yes. Run lspci | grep -i vga to see both integrated and discrete GPUs. For NVIDIA Optimus systems, you may need additional tools like prime-select to switch between GPUs.

Is it safe to install the NVIDIA driver from the official website?

It is generally safer to use Ubuntu's repositories via ubuntu-drivers or the Additional Drivers tab, as they are tested for your Ubuntu version. The official NVIDIA driver can be used but may require manual installation and can break after kernel updates.