Re: getting a list of connected displays
Re: getting a list of connected displays
- Subject: Re: getting a list of connected displays
- From: Alex Reynolds <email@hidden>
- Date: Thu, 25 Nov 2004 13:23:27 -0500
Thanks Shawn and Yann,
I guess my problem now is trying to figure out how to get from the IOKit call-equivalent of:
[Sond] reynolda$ ioreg -c AppleDisplay | grep DisplayVendorID
| | | "DisplayVendorID" = 1552
| | | "DisplayVendorID" = 4268
[Sond] reynolda$
to "Apple Studio Display" and "Dell 1504FP".
The files in /System/Library/Displays/Overrides/DisplayVendorID-610 are not in a consistent format as far as the information they return.
There's an entry in there for Apple Studio Display but I can't find anything for non-Apple displays. (I'm guessing that it must be somewhere if the Display system preference knows it.)
-Alex
On Nov 25, 2004, at 11:56 AM, Shawn Erickson wrote:
For device information such as this one can likely mine the ioregistry [1].
As an example...
[G5:~] shawnce% ioreg -c AppleDisplay | grep DisplayVendorID
| | | | "DisplayVendorID" = 1552
| | | | "DisplayVendorID" = 1552
Anyway you can search the ioregistry programatically. See the following links as a starting point...
<http://developer.apple.com/documentation/DeviceDrivers/Conceptual/AccessingHardware/AH_Finding_Devices/chapter_4_section_2.html#//apple_ref/doc/uid/TP30000379/TPXREF108>
<http://developer.apple.com/documentation/Darwin/Reference/IOKit/IOKitLib/index.html>
-Shawn
[1] <http://developer.apple.com/documentation/DeviceDrivers/Conceptual/IOKitFundamentals/TheRegistry/chapter_4_section_1.html#//apple_ref/doc/uid/TP0000014>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden