How to Check Your Graphics Card in Ubuntu
In this article
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
- Open a terminal window. You can do this by pressing Ctrl+Alt+T or searching for "Terminal" in the Activities overview.
- Run the simplest command. Type
lspci | grep VGAand press Enter. This lists PCI devices and filters for the VGA controller line. You'll see something likeVGA compatible controller: NVIDIA Corporation GA106 [GeForce RTX 3060 Lite Hash Rate]orVGA compatible controller: Intel Corporation UHD Graphics 620. The output shows the manufacturer and model. - 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 theconfiguration: driver=line). You'll need to enter your password when prompted. - Check the driver in use. Run
glxinfo -B | grep -i "OpenGL renderer"if you havemesa-utilsinstalled (install withsudo apt install mesa-utilsif not). This shows the OpenGL renderer string, which often includes the GPU model and driver name (e.g.,NVIDIA GeForce RTX 3060/PCIe/SSE2). - 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.
- 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. - For NVIDIA specifically. If you have an NVIDIA card and the proprietary driver is installed, run
nvidia-smiin 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 displaywithoutsudooften returns incomplete information or a "permission denied" error. Always usesudo. - Misinterpreting the VGA line. Some systems have multiple VGA controllers (e.g., an integrated Intel GPU and a discrete NVIDIA GPU). The
lspcioutput may show both; identify which one is active by checking the driver line inlshw. - Assuming lspci is enough.
lspcionly shows the hardware ID, not the driver in use. For driver info, you needlshworglxinfo. - Typing the command incorrectly. Ensure there's a space between
lspciand|, and betweengrepandVGA. A common typo islspci |grep VGA(missing space) which still works, butlspci | grep VGAis 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 devicesto 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) ornvidia-smifor NVIDIA cards. - Bookmark the
lspci | grep VGAcommand – 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.