On Thursday 26 October 2006 15:35, solenoid (lists) wrote:
Alexey Eremenko wrote:
hwinfo --gfxcard
Then, search the output for lines containing words "Memory Range". There you will find upper and lower memory boundaries in hex. Convert hex to decimal, and you'll get what (I guess) is what you want. You might want to divide the number of bytes you get there by 1024*1024 in order to get number in megabytes...
I checked the above on my own system and the result was correct
Memory Range: 0xf0000000-0xf7ffffff (rw,prefetchable)
7ffffff --> 134217727 bytes 134217727 / (1024*1024) = 128 Mb
I have tried that on S3 Tri with 4MB VRAM and it shows:
Memory Range: 0xf8000000-0xfbffffff (rw,non-prefetchable)
and no prefetchable lines were found. I did as you say: 201,326,591 - 134,217,728 = 67,108,863 (=64 MB, which is simply not true) lspci -vv also shows 64 MB of non-prefetchable memory.
But, of course ancient S3 Trio cards have no 64MB of VRAM.
Next is to check "AGP apreture" settings in BIOS. As far as I remember, the default on most BIOSes was 64Mb. I wander if hwinfo takes the whole AGP apreture size and shows it as real memory.
Then again, I remember there were also some S3 Trios with 32 and 64Mb... Are you positive that yours S3 is only 4Mb ?
Regards,
solenoid
Do lspci -v and you'll get something in the line of: (taken from my tripple headed system, 1x dual head Matrox + 1x ATI PCI card) 01:00.0 VGA compatible controller: Matrox Graphics, Inc. G400/G450 (rev 04) (prog-if 00 [VGA]) Subsystem: Matrox Graphics, Inc. Millennium G400 MAX/Dual Head 32Mb Flags: bus master, medium devsel, latency 64, IRQ 10 Memory at e4000000 (32-bit, prefetchable) [size=32M] Memory at e6000000 (32-bit, non-prefetchable) [size=16K] Memory at e7000000 (32-bit, non-prefetchable) [size=8M] [virtual] Expansion ROM at e6010000 [disabled] [size=64K] Capabilities: [dc] Power Management version 2 Capabilities: [f0] AGP version 2.0 02:05.0 VGA compatible controller: ATI Technologies Inc 264VT [Mach64 VT] (rev 40) (prog-if 00 [VGA]) Subsystem: ATI Technologies Inc Mach64VT Reference Flags: stepping, medium devsel Memory at e9000000 (32-bit, non-prefetchable) [size=16M] I/O ports at c000 [size=256] [virtual] Expansion ROM at 20000000 [disabled] [size=64K] As you can see the lines begining with "Memory at" shows the mem the card has "on it s own" Happy hunting... -- /Rikard ----------------------------------------------------------------------------- email : rikard.j@rikjoh.com web : http://www.rikjoh.com mob: : +46 (0)763 19 76 25 ------------------------ Public PGP fingerprint ---------------------------- < 15 28 DF 78 67 98 B2 16 1F D3 FD C5 59 D4 B6 78 46 1C EE 56 >