Smart Systems for Home

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

How to Check Your Graphics Card in Ubuntu

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To check your graphics card in Ubuntu, open a terminal and run lspci | grep VGA for the quickest result, or use lshw -C display for more detailed information. This guide covers all the common methods, including graphical tools, so you can identify your GPU model, driver in use, and other useful details.

What You'll Need

  • An Ubuntu system (any recent version, including LTS releases)
  • Access to a terminal (usually found in the Applications menu or by pressing Ctrl+Alt+T)
  • Administrative (sudo) privileges for some commands, though most basic checks don't require them

Step-by-Step

  1. Open a terminal window. You can do this by pressing Ctrl+Alt+T or searching for "Terminal" in the Activities overview.
  2. Run the simplest command. Type lspci | grep VGA and press Enter. This lists PCI devices and filters for the VGA controller line. You'll see something like VGA compatible controller: NVIDIA Corporation GA106 [GeForce RTX 3060 Lite Hash Rate] or VGA compatible controller: Intel Corporation UHD Graphics 620. The output shows the manufacturer and model.
  3. Get more details with lshw. For a more detailed view, run sudo lshw -C display. This shows the product name, vendor, and the currently loaded driver (look for the configuration: driver= line). You'll need to enter your password when prompted.
  4. Check the driver in use. Run glxinfo -B | grep -i "OpenGL renderer" if you have mesa-utils installed (install with sudo apt install mesa-utils if not). This shows the OpenGL renderer string, which often includes the GPU model and driver name (e.g., NVIDIA GeForce RTX 3060/PCIe/SSE2).
  5. Use the GUI (Settings). Open Settings from the system menu, then go to About. Under the "Graphics" field, you'll see the GPU name. This is the easiest method for beginners, but it may not show the driver version.
  6. Check with the System Monitor (optional). The default System Monitor doesn't show GPU info, but you can install hardinfo (sudo apt install hardinfo) and run it. Under Devices > PCI Devices, you'll find your graphics card.
  7. For NVIDIA specifically. If you have an NVIDIA card and the proprietary driver is installed, run nvidia-smi in the terminal. This shows the GPU model, driver version, and current usage. If it says "command not found", the NVIDIA driver is not installed.

Common Mistakes

  • Forgetting sudo for lshw. Running lshw -C display without sudo often returns incomplete information or a "permission denied" error. Always use sudo.
  • Misinterpreting the VGA line. Some systems have multiple VGA controllers (e.g., an integrated Intel GPU and a discrete NVIDIA GPU). The lspci output may show both; identify which one is active by checking the driver line in lshw.
  • Assuming lspci is enough. lspci only shows the hardware ID, not the driver in use. For driver info, you need lshw or glxinfo.
  • Typing the command incorrectly. Ensure there's a space between lspci and |, and between grep and VGA. A common typo is lspci |grep VGA (missing space) which still works, but lspci | grep VGA is safer.

Tips

  • If you have a hybrid graphics system (Intel + NVIDIA), you can check which GPU is active for a specific application by running glxinfo | grep "OpenGL renderer" from within that application's environment.
  • For detailed driver information, use ubuntu-drivers devices to see recommended proprietary drivers for your NVIDIA or AMD card.
  • If you're troubleshooting performance, check the temperature and usage with sensors (for CPU/GPU temp) or nvidia-smi for NVIDIA cards.
  • Bookmark the lspci | grep VGA command – it's the fastest way to identify the hardware.

Troubleshooting

Command not found errors: If lspci or lshw is not found, install the necessary tools: sudo apt install pciutils lshw.

No output from lspci | grep VGA: This is unusual. Try lspci without the grep to see all PCI devices. If your GPU is very old or a USB display adapter, it might appear as a different class. Check lspci | grep -i display for a broader match.

Driver shows as "unknown" or "nouveau" for NVIDIA: This means the proprietary driver is not installed. Run ubuntu-drivers autoinstall (requires sudo) to install the recommended driver, then reboot.

glxinfo not found: Install mesa-utils: sudo apt install mesa-utils.

Settings shows a generic name like "llvmpipe": This indicates software rendering, meaning the GPU driver is not working properly. Check your drivers and ensure your GPU is enabled in the BIOS.

Frequently Asked Questions

How do I check my graphics card without a terminal?

Open Settings > About. The "Graphics" field shows the GPU name. For more detail, install hardinfo from the Ubuntu Software center and run it; it provides a graphical list of PCI devices.

How can I see which GPU driver is in use?

Run sudo lshw -C display and look for the driver= line. Alternatively, glxinfo -B | grep "OpenGL renderer" shows the driver in the renderer string.

Why does lspci show two VGA controllers?

This is common on laptops with hybrid graphics (Intel integrated + NVIDIA/AMD discrete). The active GPU depends on your system's power management settings; you can switch via the NVIDIA X Server Settings app if the proprietary driver is installed.

How do I find out if my NVIDIA card is being used?

Run nvidia-smi – if it shows your GPU and driver version, the NVIDIA driver is active. If it says "No devices were found", the card is either not present or the driver isn't loaded.

Can I check the GPU temperature?

Yes, for NVIDIA cards use nvidia-smi (shows temperature). For AMD or Intel, install lm-sensors (sudo apt install lm-sensors) and run sensors to see temperatures.

What does "llvmpipe" mean in the OpenGL renderer?

It means your system is using software rendering instead of your GPU. This usually indicates a missing or broken graphics driver. Reinstall the appropriate driver (e.g., sudo ubuntu-drivers autoinstall for NVIDIA) and reboot.