Re: Video Card model name?
Re: Video Card model name?
- Subject: Re: Video Card model name?
- From: Brian Bergstrand <email@hidden>
- Date: Wed, 21 Jul 2004 11:16:26 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Jul 21, 2004, at 3:22 AM, Lorenzo wrote:
>
Hi,
>
how can I get (programmatically or not) the name and model of my Video
>
Card?
>
I would like to get something like "NVIDIA GeForceFX Go 5200" or "ATI
>
Radeon
>
9700 Pro". I went to the System Profiler and I got this
>
You can use IOKit to get this info.
For instance, here is the "ioreg -c IOAGPDevice" output for my machine:
| +-o pci@f0000000 <class IOPlatformDevice, registered, matched,
active, busy 0, retain count 9>
| | +-o AppleMacRiscAGP <class AppleMacRiscAGP, !registered,
!matched, active, busy 0, retain count 10>
| | +-o uni-north-agp@B <class IOPCIDevice, registered, matched,
active, busy 0, retain count 8>
| | +-o NVDA,Parent@10 <class IOAGPDevice, registered, matched,
active, busy 0, retain count 14>
| | | {
| | | "vendor-id" = <000010de>
| | | "device-id" = <00000110>
...
| | | "name" = <"NVDA,Parent">
| | | "IOInterruptControllers" =
("IOInterruptControllerFF94FB70")
| | | "Power Management protected data" = "{
theNumberOfPowerStates = 3, version 1, power state 0 = {
capabilityFlags 0000000$
| | | "interrupts" = <00000001>
| | | "device_type" = <"NVDA,GeForce2MX">
| | | "model" = <"GeForce2 TwinView">
| | | "subsystem-id" = <00000002>
...
The "device_type" and "model" properties are the ones you want. You can
get all of this programmatically using the IOKit framework.
HTH.
>
---------------------------------
>
ATY,RV250M9:
>
>
Type: display
>
Bus: AGP
>
VRAM (Total): 64 MB
>
Vendor: ATI (0x1002)
>
Device ID: 0x4c66
>
Revision ID: 0x0001
>
ROM Revision: 113-xxxxx-106
>
---------------------------------
>
>
How can I get the video card model? I have a PB Titanium G4, 1GHz.
>
Brian Bergstrand <
http://www.bergstrand.org/brian/>, AIM: triryche206
PGP Key: <
http://www.bergstrand.org/brian/misc/public_key.txt>
Politics is supposed to be the second oldest profession. I have come to
realize that it bears a very close resemblance to the first. - Ronald
Reagan
As of 11:09:01 AM, iTunes is playing "Rise" from "Believe" by
"Disturbed"
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.1
iQA/AwUBQP6Iy3nR2Fu2x7aiEQKbZACfWMGY3kAjlld6xssQ9wuq+ByBefkAnRGQ
36HkE5Tc3FJpMV9ZDP3byyaf
=Anqc
-----END PGP SIGNATURE-----
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.