Ubuntu – How to find the Graphics card’s Memory

graphics

sudo lshw -C display

shows …

*-display              
   description: VGA compatible controller
   product: Broadwell-U Integrated Graphics
   vendor: Intel Corporation
   physical id: 2
   bus info: pci@0000:00:02.0
   version: 09
   width: 64 bits
   clock: 33MHz
   capabilities: msi pm vga_controller bus_master cap_list rom
   configuration: driver=i915 latency=0
   resources: irq:63 memory:c3000000-c3ffffff memory:d0000000-dfffffff ioport:7000(size=64)

 *-display
   description: 3D controller
   product: GF117M [GeForce 610M/710M/820M / GT 620M/625M/630M/720M]
   vendor: NVIDIA Corporation
   physical id: 0
   bus info: pci@0000:09:00.0
   version: a1
   width: 64 bits
   clock: 33MHz
   capabilities: pm msi pciexpress bus_master cap_list
   configuration: driver=nouveau latency=0
   resources: irq:65 memory:c4000000-c4ffffff memory:b0000000-bfffffff memory:c0000000-c1ffffff ioport:4000(size=128)

Then I tried

amruth@HP-Ci5:~$ lspci | grep VGA

which returns

00:02.0 VGA compatible controller: Intel Corporation Broadwell-U Integrated Graphics (rev 09)

Then I tried

amruth@HP-Ci5:~$ lspci -v -s 00:02.0

which returns

00:02.0 VGA compatible controller: Intel Corporation Broadwell-U Integrated Graphics (rev 09) (prog-if 00 [VGA controller])
    Subsystem: Hewlett-Packard Company Device 2337
    Flags: bus master, fast devsel, latency 0, IRQ 64
    Memory at c3000000 (64-bit, non-prefetchable) [size=16M]
    Memory at d0000000 (64-bit, prefetchable) [size=256M]
    I/O ports at 7000 [size=64]
    Expansion ROM at <unassigned> [disabled]
    Capabilities: <access denied>
    Kernel driver in use: i915

From this can I conclude that my graphics card is just 256Mb. This is my new HP laptop[HP 15-r240TX Notebook (5th Gen Ci5/ 8GB/ 1TB/ Free DOS/ 2GB Graph) (L8P42PA)] from Flipcart. So I plan to request replacement. Thanks for the reply.

Best Answer

lspci | grep VGA

mark the digits in front of it. Then do...

lspci -v -s {digits}

Example from my machine:

~$ lspci | grep VGA
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. 
[AMD/ATI] Whistler [Radeon HD 6630M/6650M/6750M/7670M/7690M]

and

$ lspci -vm -s 01:00.0
Device: 01:00.0
Class:  VGA compatible controller
Vendor: Advanced Micro Devices, Inc. [AMD/ATI]
Device: Whistler [Radeon HD 6630M/6650M/6750M/7670M/7690M]
SVendor:    Acer Incorporated [ALI]
SDevice:    Radeon HD 6650M

will show all the details of the videocard. edit: seems not all show the memory of the card. This methods works for more than just your videocard: details on network card both wired and wireless, USB controller are also shown (just change the command to 02:00.0, 03:00.0. My audio is on 01:00.1; just check the 1st command for the digits).


So another method:

lspci -v | grep VGA -A12
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Whistler [Radeon HD 6630M/6650M/6750M/7670M/7690M] (prog-if 00 [VGA controller])
    Subsystem: Acer Incorporated [ALI] Radeon HD 6650M
    Flags: bus master, fast devsel, latency 0, IRQ 35
    Memory at b0000000 (64-bit, prefetchable) [size=256M]
    Memory at c0300000 (64-bit, non-prefetchable) [size=128K]
    I/O ports at 3000 [size=256]
    Expansion ROM at c0340000 [disabled] [size=128K]
    Capabilities: <access denied>
    Kernel driver in use: fglrx_pci
  • 256Mb
Related Question