In this tip, we will see how we can get information about your installed graphics card such as your graphics memory, kernel driver used, kernel modules, etc. via the terminal.

Get Started

Launch the terminal and issue this command:

lspci -v -s `lspci | awk '/VGA/{print $1}'`

My computer is running with GeForce 9600 GT, after running this command, I got the following:

~$ lspci -v -s `lspci | awk '/VGA/{print $1}'`
01:00.0 VGA compatible controller: nVidia Corporation G94 [GeForce 9600 GT] (rev a1) (prog-if 00 [VGA controller])
Subsystem: Device 196e:0545
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at fa000000 (32-bit, non-prefetchable) [size=16M]
Memory at c0000000 (64-bit, prefetchable) [size=512M]
Memory at f8000000 (64-bit, non-prefetchable) [size=32M]
I/O ports at ef00 [size=128]
[virtual] Expansion ROM at fb000000 [disabled] [size=512K]
Kernel driver in use: nvidia
Kernel modules: nvidia-current, nouveau, nvidiafb

This command also has the same function:

lspci | grep "VGA"

Note: These commands are tested under Ubuntu 10.10.

Post a Comment