FROM : Shawn Erickson
DATE : Thu Nov 25 17:56:00 2004
On Nov 25, 2004, at 2:50 AM, Alex Reynolds wrote:
> Can anyone provide advice on how to get a list of monitor models
> connected to the system programatically?
>
> For example, on my Mac, I have an Apple Studio Display and a Dell
> 1504FP.
>
> These device names are listed in the Displays system preference
> applet. I would like to get these model names into an array or
> dictionary so that I can use them elsewhere.
>
> Any help would be appreciated!
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>
DATE : Thu Nov 25 17:56:00 2004
On Nov 25, 2004, at 2:50 AM, Alex Reynolds wrote:
> Can anyone provide advice on how to get a list of monitor models
> connected to the system programatically?
>
> For example, on my Mac, I have an Apple Studio Display and a Dell
> 1504FP.
>
> These device names are listed in the Displays system preference
> applet. I would like to get these model names into an array or
> dictionary so that I can use them elsewhere.
>
> Any help would be appreciated!
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 mails | Author | Date |
|---|---|---|
| Alex Reynolds | Nov 25, 11:50 | |
| Yann Bizeul | Nov 25, 15:36 | |
| Shawn Erickson | Nov 25, 17:56 | |
| Alex Reynolds | Nov 25, 19:23 | |
| Shawn Erickson | Nov 29, 16:18 |






Cocoa mail archive

