How to see available VGA/GPU/OpenGL/Displays available on our Linux Server ?
Today in this article, we will see how to check the available VGA/GPU/Graphics cards with our Linux system.
Let us have a look at different commands available to achieve this.
1. Using lspci command
We can search in lspci command the VGA cards available.
[root@ngelinux001~]# lspci |grep -i vga 02:00.0 VGA compatible controller: NVIDIA Corporation GM204GL [Quadro M4000] (rev a1)
2. Using nvidia-smi command if this is NVIDIA card.
[root@ngelinux001~]# nvidia-smi Tue Jul 26 16:33:54 2022 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 470.129.06 Driver Version: 470.129.06 CUDA Version: 11.4 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |===============================+======================+======================| | 0 Quadro M4000 Off | 00000000:02:00.0 Off | N/A | | 47% 41C P8 22W / 120W | 0MiB / 8126MiB | 0% Default | | | | N/A | +-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=============================================================================| | No running processes found | +-----------------------------------------------------------------------------+ [root@ngelinux001~]#
3. Using lshw command to show displays available.
[root@ngelinux001~]# lshw -C display *-display description: VGA compatible controller product: GM204GL [Quadro M4000] vendor: NVIDIA Corporation physical id: 0 bus info: pci@0000:02:00.0 version: a1 width: 64 bits clock: 33MHz capabilities: pm msi pciexpress vga_controller bus_master cap_list rom configuration: driver=nvidia latency=0 resources: iomemory:383f0-383ef iomemory:383f0-383ef irq:67 memory:ef000000-efffffff memory:383fe0000000-383fefffffff memory:383ff0000000-383ff1ffffff ioport:6000(size=128) memory:f0000000-f007ffff [root@ngelinux001~]#