I would like to know the model of my graphics card. I think it may be an ATI, but I want to be sure!

I have Ubuntu 11.10 (32 bit) and an Asus A6 VA laptop.


Open up "Terminal", and type: lspci | grep VGA

There, you'll find your GPU card's model.

  • 8
    I had to specify -v (verbose) to get the model on my ATI... for s in $(lspci | grep VGA | awk '{print $1}'); do lspci -v -s $s; done – Pete Dec 29 '15 at 19:27
  • 1
    In such cases, DeviceName is what you want and it's likely the line after the one you're grepping. Use lspci -v | grep VGA -A 1 to include one line after. – Adam Marshall Aug 14 '16 at 10:39
  • 2
    First do sudo update-pciids to download new version of the PCI ID list. Then do lspci. Updating pci ids can improve information available as lspci output. For example, before updating pci ids, 01:00.0 3D controller: NVIDIA Corporation GM107GLM (rev a2) Compare that to after doing update-pciids, 01:00.0 3D controller: NVIDIA Corporation GM107GLM [Quadro M1200 Mobile] (rev a2) – VJ- Nov 27 '17 at 7:52
  • Good shot, but which of [Radeon HD 6450/7450/8450 ... ] :) ? – runlevel0 Feb 9 at 16:46

For detailed information about your graphics card, usually including its make and model, run:

sudo lshw -C video

This might give the make and model name more often than lspci, but it is not guaranteed to give it (nor is lspci).

sudo lshw -C display is equivalent.

You can run this (either one) without sudo, but you're a little less likely to get as much information. Still, lshw -C video is a reasonable choice if you don't have administrative powers.

If you like, you can parse the output to get just the line with the model name:

sudo lshw -C video | grep product:

Or if you need to extract just the name (for example, for scripting purposes--but remember there isn't always anything to extract):

sudo lshw -C video | awk -F'product: ' '/product/{print $2}'

(Don't forget the space just after -Fproduct:, before the closing '.)

As an example: on my system, this gives:

M52 [Mobility Radeon X1300]
  • first command worked pretty well for AMD gpu – Rahul Jan 20 '17 at 10:28

Sometimes lspci is not enough:

$ lspci -nn |egrep "VGA|Display" 

e.g.: you can end up with something like this:

00:02.0 VGA compatible controller [0300]: Intel Corporation 4 Series Chipset Integrated Graphics Controller [8086:2e32] (rev 03)

so then you can try to grep Xorg log:

$ grep -i chipset /var/log/Xorg.0.log

and dmesg

$ dmesg |grep -i agp
  • 5
    The Xorg logs were the only thing that had the specific model for me. +1 – Cory Klein Sep 19 '13 at 22:49
  • 1
    +1 Having an Intel card, only this method gives me some specific info about my card. – Ramchandra Apte Sep 29 '13 at 11:10
  1. run gnome-control-center (from a terminal, or in the main menu system settings)
  2. search for 'system' and open "System Info"
  3. You are done.
  • 1
    Type update-pciids and then try lspci again – chrisfs Jan 18 '13 at 17:36

If GUI/display available, you can try:

xrandr --listproviders

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.