Smart Systems for Home

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

Linux Graphics Card Info: How to Check & Choose

· 4 min read · Home Tech

In this article
  1. Why Linux Graphics Info Matters
  2. Basic Commands to Identify Your GPU
  3. Understanding the Output
  4. How to Choose a Graphics Card for Linux
  5. Common Problems and Fixes
  6. NVIDIA vs AMD vs Intel on Linux
  7. Cost and Alternatives
  8. Frequently Asked Questions

To get graphics card info on Linux, use the lspci command with grep VGA, or install and run lshw -C display, glxinfo, or nvidia-smi (for NVIDIA). These tools reveal the model, driver in use, and sometimes memory and temperature.

Why Linux Graphics Info Matters

Unlike Windows, Linux doesn't have a single "Device Manager" that shows everything. Knowing your GPU is essential for installing the right driver, troubleshooting display issues, or checking if your hardware supports a feature like Vulkan or hardware acceleration. The kernel and display server (X11 or Wayland) interact directly with the GPU, so the correct driver is critical for performance and stability.

Basic Commands to Identify Your GPU

Open a terminal and try these commands. They work on most distributions without extra software:

  • lspci -nnk | grep -A 3 VGA – shows the PCI device ID and kernel driver in use.
  • lspci | grep -i 'vga\|3d' – quick list of display controllers.
  • sudo lshw -C display – detailed info including memory size and driver.
  • cat /proc/driver/nvidia/version – only works if the NVIDIA proprietary driver is loaded.
  • glxinfo -B – shows OpenGL renderer and vendor (install mesa-utils if missing).

For NVIDIA cards with the proprietary driver, nvidia-smi gives GPU model, driver version, VRAM usage, and temperature.

Understanding the Output

The output of lspci includes a vendor ID and device ID. For example, 10de:1b81 means NVIDIA (10de) and a specific chip (1b81). You can look up these IDs online to confirm the exact model. The kernel driver name (e.g., nvidia, amdgpu, i915) tells you which driver is active.

If you see nouveau for an NVIDIA card, that's the open-source driver, which may have limited performance. For AMD and Intel, the open-source drivers (amdgpu, i915) are the default and generally recommended.

How to Choose a Graphics Card for Linux

Compatibility with Linux is a major factor. Here's what to consider:

  • AMD: Best open-source driver support; works well out of the box on most distros.
  • Intel: Integrated graphics have solid open-source drivers, ideal for laptops and basic tasks.
  • NVIDIA: Proprietary driver offers best performance, but installation can be manual and may require secure boot configuration.

For gaming, AMD and NVIDIA both work, but AMD's open-source driver is often easier to set up. For CUDA or machine learning, NVIDIA is the standard. For older cards, check that the driver still supports your model.

Common Problems and Fixes

Here are typical issues users face:

  • Black screen after installing NVIDIA driver: Boot into recovery mode, remove the driver, or use a live USB to reinstall.
  • Wrong resolution: Install the correct driver or adjust display settings in your desktop environment.
  • No hardware acceleration in browsers: Enable hardware acceleration in browser settings; ensure the GPU driver is loaded.
  • Fan always on or overheating: Check with sensors or nvidia-smi; adjust fan curves if supported.

Always unplug the power and ground yourself before opening a PC to install or replace a graphics card.

NVIDIA vs AMD vs Intel on Linux

Each vendor has a different Linux experience:

  • NVIDIA: Proprietary driver is feature-rich (CUDA, DLSS) but closed-source. The open-source nouveau driver is limited and not recommended for gaming.
  • AMD: Fully open-source drivers are in the kernel; excellent performance and compatibility. Good for open-source purists.
  • Intel: Integrated graphics only (mostly); open-source drivers are reliable for basic use and battery life.

For most users, AMD is the easiest choice for a new Linux GPU.

Cost and Alternatives

Graphics cards range from budget to high-end. For Linux, you don't need the most expensive card unless you game or do GPU computing. Alternatives to a discrete GPU include using integrated graphics (Intel or AMD APU) for basic tasks, or using cloud GPU services for heavy workloads. Always check the Linux compatibility of a card before buying.

Frequently Asked Questions

How do I check my graphics card on Linux?

Run lspci | grep VGA or lshw -C display in a terminal. These show the model and driver.

What is the best Linux command for GPU info?

lspci -nnk | grep -A 3 VGA gives the most concise view, but glxinfo -B shows the driver and OpenGL version.

Does Linux support NVIDIA graphics cards?

Yes, via the proprietary driver or the open-source nouveau. The proprietary driver is needed for full performance.

How do I install the NVIDIA driver on Linux?

Use your distribution's package manager (e.g., sudo apt install nvidia-driver on Ubuntu) or the NVIDIA .run file from their website. Be aware of secure boot.

Why does my Linux system show 'llvmpipe' as the GPU?

That means software rendering is being used, likely because no GPU driver is loaded. Install the proper driver or check your hardware.

Can I use an AMD graphics card on Linux for gaming?

Yes, AMD's open-source drivers work well for gaming, especially with recent Mesa and Vulkan support.