/var/log/Xorg.0.log may contain video memory size. However, the problem is that the reporting is done by the video driver itself, and different drivers have different output formats. This hastily cobbled together command should find video memory for most cards/drivers:
Code:
grep -E 'Memory:|RAM:|VideoRam:|vram size:' /var/log/Xorg.0.log
For Nvidia proprietary drivers, the output should look like this:
Code:
(--) NVIDIA(0): Memory: 1048576 kBytes
For ATI proprietary drivers:
Code:
(--) fglrx(0): Video RAM: 1048576 kByte, Type: DDR3
For ATI open source drivers (we want the number following "vram size: s:" - it's the size in bytes, in hexadecimal. In this case, it's the same 1GB as in previous examples):
Code:
(II) RADEON(0): mem size init: gart size :1fbde000 vram size: s:40000000 visible:3f1b0000
For Intel drivers:
Code:
(==) intel(0): VideoRam: 262144 KB
No output for open source Nvidia drivers (nouveau), but then again, Nvidia owners should be directed to the proprietary drivers anyway.