Extracting video card properties


 
Thread Tools Search this Thread
Top Forums Programming Extracting video card properties
# 1  
Old 06-17-2010
Extracting video card properties

Hi everyone.

I'm looking for a way to extract the video card properties (Name, Driver version, amount of vram). I've managed to deal with nVidia cards, but nothing came for ATI/AMD cards and other kind of chipsets. Can someone point a way to do this?

Thanks.
# 2  
Old 06-17-2010
If lspci doesn't provide detailed enough info, the most straightforward way may be viewing x.org's logfile. Recent versions of X ( >= 7.3 ) have full autodetection with HAL.
# 3  
Old 06-18-2010
Ok thanks. Hmm where can I find this (x.org log files)?Smilie


Edit: forget about my first message, I found it. However, it's a real pain in the ass to parse. Is there any other way to achieve this? I have to clarify things, I'm doing the video card's properties detection before creating any OpenGL context. Contrary to nVidia, ATI doesn't provide API or commands to get these sort of information. And moreover I have to detect properties for other type of video cards...

Last edited by JB007ROLV; 06-18-2010 at 05:41 AM..
# 4  
Old 06-18-2010
Well, it's a problem. easy tools like lspci and lsusb exist because the PCI and USB buses behave and communicate in a consistent way. Video cards, on the other hand, are a dogs' breakfast of warring standards and ad-hoc solutions. Nvidia was nice enough to make a tool for their cards but there's no general-purpose solution, supporting every card means special code for everything conceivable.

So, try lspci, if you're lucky the PCI ID will be unique enough to determine much about the card. Try the nvidia tool. If these aren't specific enough, you're stuck with large general-purpose things with specific code for every possible chipset, like Xorg.

I haven't had luck finding out how, but Xorg might be able to be induced to generate a configuration file based on the video hardware it sees.
# 5  
Old 06-21-2010
Thanks for your answer.

It looks like I'm in a dead end. I'll try to parse the xorg.conf file.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Join two video files with different properties

I need to join two video files file1 and file2. File1 has to be converted to get the properties of file2 and then the two are supposed to be joined together into one file. If the properties like codec, resolution etc are different, it is impossible to merge the two files. Is there... (4 Replies)
Discussion started by: locoroco
4 Replies

2. Solaris

Very new to Solaris and Sun, need help please (video card)

Hello all, I am trying to learn about Solaris and Sun systems so I purchased a SunFire 280r running Solaris 9 with a disk array from eBay. The system had no video card so I purchased a PGX32 card for the PCI slot and installed it. The problem is I have no video what so ever. I am familiar... (3 Replies)
Discussion started by: FTBTX
3 Replies

3. Red Hat

nautilus audio/video properties missing tutorial

Since it was a royal pain for me to figure out how to show nautilus audio/video properties I would share this with other people. I KNOW this package does the trick. totem-nautilus This package MAY do the trick. I was reading this. gnome-mplayer-nautilus-1.0.3-1.fc15.x86_64.rpm -... (0 Replies)
Discussion started by: cokedude
0 Replies

4. Solaris

video card for a V440

I am looking into getting some cards for the SunFire V440. Not sure how most folks go about this but I am assuming we can find compatible cards for this server platform without going through SUN. Do you guys recommend getting this video card from SUN? Yeah we got these servers without the video... (5 Replies)
Discussion started by: bluridge
5 Replies

5. Solaris

How can I get the supported video card list by solaris 10?

How can I get the supported video card list by solaris 10 (sparc)? Could you tell me that which video card was supported by solaris 10? I need all kinds of video card supported by solaris 10? I find a lot of documents,but I didn't get what I want... ... Could you help me? Thank you very much. (1 Reply)
Discussion started by: jg159993
1 Replies

6. UNIX for Advanced & Expert Users

Video Card for Lin/Unix

I am wondering if a ATI Mobile Radeon 9600 PROTURBO will work with a any version of linux or Unix (NetBSD 1.6.2, FreeBSD). (0 Replies)
Discussion started by: mentor6
0 Replies

7. UNIX for Dummies Questions & Answers

Need help with video card.

http://adsl.027game.com/uploadImages/200211122321064403.jpg Help, please!!! :confused: :confused: :confused: (7 Replies)
Discussion started by: HOUSCOUS
7 Replies

8. UNIX for Advanced & Expert Users

redhat 7.2 dual head video card

HI. i have two monitor and two video card in one system, i want use both of the monitor, i am currently using redhat 7.2 and solaris 8, i was wondering if someone can help me set my system as a dual monitor, basically it called dual head in redhat but i dont' know what it called in sun. Im tring... (4 Replies)
Discussion started by: souldier
4 Replies

9. UNIX for Dummies Questions & Answers

Sun Video Card

My Ultra -2 Sun Monitor went blank one day ... I tried using our monitor on another Sun , It worked fine . So the problem would be with the video card .. The thing is i have an Old Ultra 1 which has not been used for some time . I hooked that up to see the monitor works with that ..it works... (6 Replies)
Discussion started by: DPAI
6 Replies

10. UNIX for Dummies Questions & Answers

X Server on AIX w/o video card

Hi there, I'm a newbie so please be patient. I wanted to know if it was possible to run X server on a box w/o a video card. The reason I want to do this is I'd like to have a CDE session from sun workstation into the AIX box. Please let me know if this is feasible. Thanks for your time. (5 Replies)
Discussion started by: blah00000
5 Replies
Login or Register to Ask a Question