please help found out how much "video RAM" the video card has
hi all ! very trivial things tend to go hard in Linux.... (and I have 3 years of experience with Linux) Under Windows, I can use "display properties" to find out how much Video RAM I have. But there it works only *after* drivers are installed. how to do so under openSUSE ? The best I found is "lspci -v -v" but it's very incorrect sometimes... On some systems is shows the video RAM reliably... on others not at all. Yast's Sax2 doesn't seem to show me this info at all. So - is there any method that allows me to see how much VRAM I have? one command line method ? and one GUI method? -Fenix*NBK*. 26.10.2006.
Alexey Eremenko wrote:
hi all !
very trivial things tend to go hard in Linux.... (and I have 3 years of experience with Linux) Under Windows, I can use "display properties" to find out how much Video RAM I have. But there it works only *after* drivers are installed.
how to do so under openSUSE ?
The best I found is "lspci -v -v" but it's very incorrect sometimes... On some systems is shows the video RAM reliably... on others not at all.
Yast's Sax2 doesn't seem to show me this info at all.
So - is there any method that allows me to see how much VRAM I have? one command line method ? and one GUI method?
-Fenix*NBK*. 26.10.2006.
The amount of RAM your video card has is displayed on the (top) screen when you press the ON switch to boot your computer. It's been displayed here now for as long as I can remember with all the various cards I've had installed over the years and so it should also be in your case. Have a look next time you (re)boot. Cheers. -- I'm dangerous when I know what I'm doing.
unfortunately some cards do not display this info in Video BIOS on boot. Is there any command *from Linux* to make it?
-----Original Message----- From: Alexey Eremenko [mailto:al4321@gmail.com] Sent: 26 October 2006 09:44 To: suse-linux-e@suse.com Subject: Re: [SLE] please help found out how much "video RAM" the video card has unfortunately some cards do not display this info in Video BIOS on boot. Is there any command *from Linux* to make it? Doesn't YaST -> Hardware Info tell you this? Matthew
On Thursday 26 October 2006 10:16, Basil Chupin wrote:
The amount of RAM your video card has is displayed on the (top) screen when you press the ON switch to boot your computer. It's been displayed here now for as long as I can remember with all the various cards I've had installed over the years and so it should also be in your case. Have a look next time you (re)boot.
Not all PCs do that. Mine, e.g., with an on-board ATI card, doesn't. It might be shown in the BIOS setup, but i'm not gonna reboot just to check. IIRC, i used to see the RAM size when is started X from runlevel 3 using 'startx'. However, i'm running runlevel 5 now and of course doen't see the X startup messages anymore. -- ----- stephan@s11n.net http://s11n.net "...pleasure is a grace and is not obedient to the commands of the will." -- Alan W. Watts
On Oct 26, 06 18:16:09 +1000, Basil Chupin wrote:
how to do so under openSUSE ?
The best I found is "lspci -v -v" but it's very incorrect sometimes... On some systems is shows the video RAM reliably... on others not at all.
If the driver outputs the amount of memory it found, it is the most reliable source for this information. Start the Xserver with 'X -logverbose 9 :0' (or use :1 if you're already running X), then kill the Xserver (Ctrl-Alt-Backspace) and check /var/log/Xorg.0.log (.1.log, respectively) for some line from the driver that tells you how much graphics memory it found. That particular line can differ from driver to driver, so you have to check for yourself. Matthias -- Matthias Hopf <mhopf@suse.de> __ __ __ Maxfeldstr. 5 / 90409 Nuernberg (_ | | (_ |__ mat@mshopf.de Phone +49-911-74053-715 __) |_| __) |__ labs www.mshopf.de
Actually yes, the command : "vi /var/log/Xorg.0.log" Is the most reliable one, and it shows the video RAM much better than other commands. (like lspci -v -v) But it requires quite some digging in the file to find it out...
On Thursday 26 October 2006 1:48 pm, Alexey Eremenko wrote:
Actually yes, the command : "vi /var/log/Xorg.0.log"
Is the most reliable one, and it shows the video RAM much better than other commands. (like lspci -v -v) But it requires quite some digging in the file to find it out...
Perhaps "cat /var/log/Xorg.0.log | grep -c mem" would make it easier to find B-)
* Brad Bourn <brad@summitrd.com> [10-26-06 16:10]:
Perhaps "cat /var/log/Xorg.0.log | grep -c mem" would make it easier to find
errrr: grep -c mem /var/log/Xorg.0.log or better: grep -i VideoRAM /var/log/Xorg.0.log -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2
Perhaps "cat /var/log/Xorg.0.log | grep -c mem" would make it easier to find
Unfortunately this method doen't works on some systems (such as VMware 5). Therefore unreliable. Not to mention that I don't want to count, but "see" the lines. I found better way: "cat /var/log/Xorg.0.log | grep -i ram" To also see the lines, it could be: "cat -n /var/log/Xorg.0.log | grep -i ram"
* Alexey Eremenko <al4321@gmail.com> [10-26-06 16:24]:
I found better way: "cat /var/log/Xorg.0.log | grep -i ram"
To also see the lines, it could be: "cat -n /var/log/Xorg.0.log | grep -i ram"
why insist on using two operations where one suffices ??? grep -i ram /var/log/X...... direct instead of cat -> pipe -> strain pipe output -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2
why insist on using two operations where one suffices ???
grep -i ram /var/log/X......
direct instead of cat -> pipe -> strain pipe output
Agreed. So the best command until now has been: "grep -i ram /var/log/Xorg.0.log" Please test it... maybe we can ask for a feature-request on openSUSE bugzilla to make this feature easier ? i.e. viewable by one command (w/o parameters), and perhaps Yast? Because as I said in the original post, there are hundereds of small things in Linux, even for experienced Linuxoids, that make life hard. :( such a simple thing like asking for video RAM took a long discussion among Linuxoids.... terrible.
On Thursday 26 October 2006 22:38, Alexey Eremenko wrote:
Because as I said in the original post, there are hundereds of small things in Linux, even for experienced Linuxoids, that make life hard.
Are you KIDDING? Hundreds is an insult! There are thousands! ;) -- ----- stephan@s11n.net http://s11n.net "...pleasure is a grace and is not obedient to the commands of the will." -- Alan W. Watts
People, I have added a feature request for that issue: Bug 215522 - [feature-request] add simple way to show the Video RAM https://bugzilla.novell.com/show_bug.cgi?id=215522
On Thursday 26 October 2006 21:57, stephan beal wrote:
On Thursday 26 October 2006 22:38, Alexey Eremenko wrote:
Because as I said in the original post, there are hundereds of small things in Linux, even for experienced Linuxoids, that make life hard.
Are you KIDDING?
Hundreds is an insult! There are thousands! ;)
Have you tried using XP recently! :) Linux may have thousands of possible 'blips', but after cleaning up a Win XP SP2 PC recently, I still don't feel clean :( NVidia framerates are a mere distraction. There really is a class of user that put up with the worst of spyware, trojans, viruses (spelling?), rootkits, popups and what not. I undertook to clean a friends PC recently and I had honestly forgotten how bad it can be for a casual Windows user with a broadband connection.. Really, really depressing. 4 hours work to get a PC back to 'normal' and I honestly don't think they'll be able to defend themselves from being compromised again while they run Win32. It is getting truly outrageous out there. I'm so glad I don't have to jump through those hoops, but it still depresses me that people get such a negative impression of computing and networking by using a flawed OS. Cheers Pete PS Sorry to destroy the humour in your post, but I' ve got a point to make dagnabbit! :)
On 06/10/26 16:38 (GMT-0400) Alexey Eremenko apparently typed:
Agreed. So the best command until now has been:
"grep -i ram /var/log/Xorg.0.log"
For those who don't use grep enough to remember its syntax, like me, an easy option is to view Xorg.0.log. That's how I found out that the answer was in that file in the first place, in order to provide my answer posted upthread Thu, 26 Oct 2006 16:28:09 -0400. On way to view a file was posted by someone else upthread - with vi, which I noted was overkill (opening an editor to view a file). An alternative viewing method is available in the OFM swiss army knife - F3 in mc, which works whether you're on a console or in X. I usually have at least two instances open at any given time, one on tty2, another in each X session inside Konsole. Anyone unfamiliar with what to do when X is broken really ought to try mc, preferably before finding yourself with a broken X. If you need to fetch an upgraded or missing package to feed to rpm, that's easily done with wget, but only if you have the appropriate URL. You could get that URL with a text mode browser, but have fun figuring out out to get it and save it in your preferred location. In contrast, mc has built in ftp, which you can use to go directly to the source, and fetch simply by a stroke of the F5 key. And, you'll get a true archive, not some timestamp modified version like you get from "saving" with a web browser. These may all be things Konq can do, but Konq requires X, unlike mc. -- "The Lord is my strength and my shield; my heart trusts in him, and I am helped." Psalm 28:7 NIV Team OS/2 ** Reg. Linux User #211409 Felix Miata *** http://mrmazda.no-ip.com/
On 06/10/26 21:48 (GMT+0200) Alexey Eremenko apparently typed:
Actually yes, the command : "vi /var/log/Xorg.0.log"
Is the most reliable one, and it shows the video RAM much better than other commands. (like lspci -v -v) But it requires quite some digging in the file to find it out...
Vi is rather a sledgehammer for swatting a fly here. # cat /var/log/Xorg.0.log | grep VideoRAM (--) MGA(0): VideoRAM: 16384 kByte # lspci -v | grep Mb Subsystem: Matrox Graphics, Inc. Millennium G400 16Mb SGRAM # -- "The Lord is my strength and my shield; my heart trusts in him, and I am helped." Psalm 28:7 NIV Team OS/2 ** Reg. Linux User #211409 Felix Miata *** http://mrmazda.no-ip.com/
# cat /var/log/Xorg.0.log | grep VideoRAM (--) MGA(0): VideoRAM: 16384 kByte # lspci -v | grep Mb Subsystem: Matrox Graphics, Inc. Millennium G400 16Mb SGRAM #
That command won't work on VMware machine. Therefore unreliable. It wont work on some S3 Trio cards as well....
On 06/10/26 22:31 (GMT+0200) Alexey Eremenko apparently typed: Felix Miata wrote:
# cat /var/log/Xorg.0.log | grep VideoRAM (--) MGA(0): VideoRAM: 16384 kByte # lspci -v | grep Mb Subsystem: Matrox Graphics, Inc. Millennium G400 16Mb SGRAM #
That command won't work on VMware machine. Therefore unreliable. It wont work on some S3 Trio cards as well....
Which "that" command? -- "The Lord is my strength and my shield; my heart trusts in him, and I am helped." Psalm 28:7 NIV Team OS/2 ** Reg. Linux User #211409 Felix Miata *** http://mrmazda.no-ip.com/
Alexey Eremenko wrote:
hi all !
very trivial things tend to go hard in Linux.... (and I have 3 years of experience with Linux) Under Windows, I can use "display properties" to find out how much Video RAM I have. But there it works only *after* drivers are installed.
how to do so under openSUSE ?
The best I found is "lspci -v -v" but it's very incorrect sometimes... On some systems is shows the video RAM reliably... on others not at all.
Yast's Sax2 doesn't seem to show me this info at all.
So - is there any method that allows me to see how much VRAM I have? one command line method ? and one GUI method?
-Fenix*NBK*. 26.10.2006.
Try lspci -v and look for your video card. In my case it shows: -------------------------------------- 01:00.0 VGA compatible controller: nVidia Corporation NV25 [GeForce4 Ti 4400] (rev a3) (prog-if 00 [VGA]) Subsystem: Chaintech Computer Co. Ltd: Unknown device 1911 Flags: bus master, 66MHz, medium devsel, latency 248, IRQ 177 Memory at fa000000 (32-bit, non-prefetchable) [size=16M] Memory at f0000000 (32-bit, prefetchable) [size=128M] Memory at f8f80000 (32-bit, prefetchable) [size=512K] [virtual] Expansion ROM at fbee0000 [disabled] [size=128K] Capabilities: [60] Power Management version 2 Capabilities: [44] AGP version 2.0 -------------------------------------- Which is a 128M memory video card. If it is nvidia, IIRC, nvidia-settings should show the amount of memory aswell (in GUI). /Sylvester
Alexey Eremenko wrote:
hi all !
very trivial things tend to go hard in Linux.... (and I have 3 years of experience with Linux) Under Windows, I can use "display properties" to find out how much Video RAM I have. But there it works only *after* drivers are installed.
how to do so under openSUSE ?
The best I found is "lspci -v -v" but it's very incorrect sometimes... On some systems is shows the video RAM reliably... on others not at all.
Yast's Sax2 doesn't seem to show me this info at all.
So - is there any method that allows me to see how much VRAM I have? one command line method ? and one GUI method?
-Fenix*NBK*. 26.10.2006.
Hi, Here's the best I could come up with: First, issue the following command 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 HTH solenoid
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.
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
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 >
On both 10.0 and Factory I have this in /var/log/Xorg.0.log: (--) MGA(0): VideoRAM: 16384 kByte -- "The Lord is my strength and my shield; my heart trusts in him, and I am helped." Psalm 28:7 NIV Team OS/2 ** Reg. Linux User #211409 Felix Miata *** http://mrmazda.no-ip.com/
On Thursday 26 October 2006 18:06, Felix Miata wrote:
On both 10.0 and Factory I have this in /var/log/Xorg.0.log:
(--) MGA(0): VideoRAM: 16384 kByte -- "The Lord is my strength and my shield; my heart trusts in him, and I am helped." Psalm 28:7 NIV
Team OS/2 ** Reg. Linux User #211409
Felix Miata *** http://mrmazda.no-ip.com/
That implies that you have X set up, no? lspci works on a "console only" system too :) -- /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 >
On 06/10/26 18:23 (GMT+0200) Rikard Johnels apparently typed:
On Thursday 26 October 2006 18:06, Felix Miata wrote:
On both 10.0 and Factory I have this in /var/log/Xorg.0.log:
(--) MGA(0): VideoRAM: 16384 kByte
That implies that you have X set up, no? lspci works on a "console only" system too :)
Had or have, even if broken. Without X, what's the difference how much RAM a video card has? -- "The Lord is my strength and my shield; my heart trusts in him, and I am helped." Psalm 28:7 NIV Team OS/2 ** Reg. Linux User #211409 Felix Miata *** http://mrmazda.no-ip.com/
That implies that you have X set up, no? lspci works on a "console only" system too :)
Had or have, even if broken. Without X, what's the difference how much RAM a video card has?
Perhaps to help to configure X... :)
On Thursday 26 October 2006 16:47, Rikard Johnels wrote:
On Thursday 26 October 2006 15:35, solenoid (lists) wrote: 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"
I would advise caution on believing this figure. I have an nvidia card, and nvidia-settings reports it as 128M. The lspci output shows it as: Memory at d4000000 (32-bit, non-prefetchable) [size=16M] Memory at c0000000 (32-bit, prefetchable) [size=256M] Memory at d5000000 (32-bit, non-prefetchable) [size=16M] I think this value may be the AGP aperture as posited in another post. And finally from X.org.0.log: (II) NVIDIA(0): NVIDIA GPU GeForce 6600 GT at PCI:1:0:0 (--) NVIDIA(0): VideoRAM: 131072 kBytes -- Steve Boddy
participants (13)
-
Alexey Eremenko
-
Basil Chupin
-
Brad Bourn
-
Felix Miata
-
Matthew Stringer
-
Matthias Hopf
-
Patrick Shanahan
-
Pete Connolly
-
Rikard Johnels
-
solenoid (lists)
-
stephan beal
-
Stephen Boddy
-
Sylvester Lykkehus