473,379 Members | 1,123 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Querying Graphics Card Name

Hello,
I would like to find out the name of the graphics card of the machine
my program is running on. I have looked into the pyopengl module, and
using them to query the card, but it seems like there ought to be a
simpler way to find this out without setting up a glcontext. Does
anyone have any ideas?

Thanks,
Benjamin

Aug 9 '07 #1
5 1989
Benjamin Goldenberg wrote:
I would like to find out the name of the graphics card of the
machine my program is running on. I have looked into the pyopengl
module, and using them to query the card, but it seems like there
ought to be a simpler way to find this out without setting up a
glcontext. Does anyone have any ideas?
You could execute glxinfo and look for the renderer string. If
that's sharp enough for your purpose. Another option is lspci.

Regards,
Björn

--
BOFH excuse #215:

High nuclear activity in your area.

Aug 9 '07 #2
On Aug 9, 3:26 pm, Bjoern Schliessmann <usenet-
mail-0306.20.chr0n...@spamgourmet.comwrote:
Benjamin Goldenberg wrote:
I would like to find out the name of the graphics card of the
machine my program is running on. I have looked into the pyopengl
module, and using them to query the card, but it seems like there
ought to be a simpler way to find this out without setting up a
glcontext. Does anyone have any ideas?

You could execute glxinfo and look for the renderer string. If
that's sharp enough for your purpose. Another option is lspci.
I should have clarified. I would like a cross platform implementation,
Windows and *nix. It doesn't seem as if glxinfo is available under
Windows, at least not without installing X11 under cygwin. If
necessary, I can write the *nix and Windows queries separately.

Thanks,
Benjamin

Aug 9 '07 #3
Benjamin Goldenberg wrote:
I would like to find out the name of the graphics card of the machine
my program is running on. I have looked into the pyopengl module, and
using them to query the card, but it seems like there ought to be a
simpler way to find this out without setting up a glcontext. Does
anyone have any ideas?
You need a context if you're going to ask OpenGL to tell you what the card
is. To find out any other way would be highly platform-specific, possibly
though looking in the /proc directory on Linux, and who-knows-where-else on
other platforms.

Also, have a look at tools/info.py in the pyglet project
<http://www.pyglet.org/>
Richard

Aug 9 '07 #4
On Aug 9, 4:06 pm, Richard Jones <richardjo...@optushome.com.au>
wrote:
Benjamin Goldenberg wrote:
I would like to find out the name of the graphics card of the machine
my program is running on. I have looked into the pyopengl module, and
using them to query the card, but it seems like there ought to be a
simpler way to find this out without setting up a glcontext. Does
anyone have any ideas?

You need a context if you're going to ask OpenGL to tell you what the card
is. To find out any other way would be highly platform-specific, possibly
though looking in the /proc directory on Linux, and who-knows-where-else on
other platforms.

Also, have a look at tools/info.py in the pyglet project
<http://www.pyglet.org/>

Richard
Thanks for the reference, but I was unable to find tools/info.py in
pyglet. What would be the full path to this file?
Thanks.

Aug 9 '07 #5
On Thu, 09 Aug 2007 21:58:54 -0000, Benjamin Goldenberg <bg*********@gmail.comwrote:
On Aug 9, 3:26 pm, Bjoern Schliessmann <usenet-
mail-0306.20.chr0n...@spamgourmet.comwrote:
>Benjamin Goldenberg wrote:
I would like to find out the name of the graphics card of the
machine my program is running on. I have looked into the pyopengl
module, and using them to query the card, but it seems like there
ought to be a simpler way to find this out without setting up a
glcontext. Does anyone have any ideas?

You could execute glxinfo and look for the renderer string. If
that's sharp enough for your purpose. Another option is lspci.

I should have clarified. I would like a cross platform implementation,
Windows and *nix. It doesn't seem as if glxinfo is available under
Windows, at least not without installing X11 under cygwin. If
necessary, I can write the *nix and Windows queries separately.
Yeah, but ...
- what if there isn't one?
- what if there are several?
- what if there *is* one, but your user is sitting by a remote machine,
not using the card at all?

Your method will, no matter how you choose, fail sooner or later,
so you'd better plan for that.

What is your reason to do this, by the way? Remember what Homer
Simpson said: if something appears to be hard, it is simply not worth
doing. And I mean that semi-seriously.

/Jorgen

--
// Jorgen Grahn <grahn@ Ph'nglui mglw'nafh Cthulhu
\X/ snipabacken.dyndns.org R'lyeh wgah'nagl fhtagn!
Aug 12 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: rogerclive | last post by:
Perhaps, there is no bigger sleazy company in the entire Maple Republic ( Canada ) than Matrox Graphics Inc. I paid $100+ through my nose circa 1999 for Matrox Millenium II and Mystique. It...
10
by: dries | last post by:
A friend of mine has a problem with his credit card validation routine and it is probably a simple thing to solve but I cannot find it. It has to do with the expiry dates. What happens is that as...
1
by: paul | last post by:
library for querying virtual polygon over raster spatial data in my c++ application, after calculating my polygon i wish to define it (simple 4 sided polygon with floats or line parameters) and...
8
by: Mark Johnson | last post by:
Using: VS 2003 NET C# for Framework and Framework Compact Trying : Moving a Card (Bitmap) as in Solitare (PC + WinCe) Version on OnMouseMove Problem : The affected drawing Area by Invalidate (or...
1
by: James dean | last post by:
Could someone explain how this works. I think the graphics card is used to do blitting and drawing shapes like rectangles. How does it draw using the Graphics card on the PC and why is this feature...
5
by: Snuyt | last post by:
Hello, I want to make a cards game. The only problem is now to add the cards in the form. I want to add bitmaps (that part is working), but also delete those bitmaps (1 at a time) by clicking on...
5
by: Comatose | last post by:
Well I have Ubuntu Fiesty Fawn set up succesfully but only under the safe graphics mode from the boot menu. (The only distro I have ever got to work) I would like to get it to work under the default...
5
by: =?Utf-8?B?TW9oYW1tYWQtUmV6YQ==?= | last post by:
Hi everyone. We're trying to diplay a message on the screen, and we want it to be always there, regardless of whether a new application is run, which may occupy that portion of the screen. Put...
0
yoda
by: yoda | last post by:
I have a .dll error its for my ati graphics card its older but still works fine its just the .dll i've tried everything reinstalled the original drivers and still and then i tried to uninstall and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.