Some quick tips to guide you to find out about the Graphics card installed and driver in-use in your Linux system.
If you are a seasoned user or a new user, or during some debugging, you might want to find out details about Graphics card and driver in-use. This is mostly useful when you do not know which driver to use or a broken system where Graphics card driver is mixed up.
So, this guide explains some basics, which you can use via terminal to find it out all about graphics cards.
Find Graphics Card in Linux with its Drivers
First, you need to update the PCI database in your system. Because it helps to get the latest PCI hardware in your system. To do that, open a terminal (CTRL+ALT+T) and run the below commands.
For Debian, Ubuntu and its derivatives –
We are going to use the following options to find it out.
This is list PCI command which prints detailed information about PCI devices in Unix like systems. Most of the graphics cards, in general, plugged in PCI slots of motherboard.
The above command gives you a lot of texts with information.
You may either scroll through it and look for keyword like vga, video controller and get your device name. Or you can use grep to filter out.
The lshw command also you can use to display various hardware information, including your graphics card. This utility a little different from lspci command above. The lshw command shows you some additional information such as clock frequency, bus speed, memory address.
So, these are some command line tools. But if you are using a desktop, then your Linux distribution must have a GUI utility to view system information.
- Using hardinfo: The hardinfo utility is a simple GUI based app which you can install and use in any Linux distribution. Installation commands are below. This is one of the simplest way to get all your hardware info including graphics card.
sudo apt install hardinfo (for Ubuntu and related)
sudo dnf install hardinfo (for Fedora and related)
pacman -S hardinfo (For Arch)
After installation, you can launch and get the info you needed.
- If you are using KDE Plasma, then it comes with its own KInfoCenter which is a super nice way of displaying all the information about your system.
- GNOME desktop, Xfce, LXQt – they normally do not ship any native tool. So, I would recommend of using above GUI tool hardinfo Or, any of the CLI methods above.
I hope these tools helps you find out about the graphics card, its drivers and other details in your Linux system. Armed with these, you can also get other device details as well, including creating reports.