Skip navigation.
 
mlRe: getting a list of connected displays
FROM : Alex Reynolds
DATE : Thu Nov 25 19:23:27 2004

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>

Related mailsAuthorDate
mlgetting a list of connected displays Alex Reynolds Nov 25, 11:50
mlRe: getting a list of connected displays Yann Bizeul Nov 25, 15:36
mlRe: getting a list of connected displays Shawn Erickson Nov 25, 17:56
mlRe: getting a list of connected displays Alex Reynolds Nov 25, 19:23
mlRe: getting a list of connected displays Shawn Erickson Nov 29, 16:18