CGMainDisplay API alternative
CGMainDisplay API alternative
- Subject: CGMainDisplay API alternative
- From: "rohit dhamija" <email@hidden>
- Date: Mon, 7 May 2007 10:06:02 +0530
Dear All,
I am developing a monitor calibration application which uses EDID data
with i2c communication. It works fine with most of the single head
cards but now a days most of the cards are dual head like nVidia
GeForce 7300 GT and nVidia Quadro 4500 FX.
So when i try to run my application for these dual head cards by
connecting both the monitors then it will show random behavior, i.e. I
am not able to read EDID data from the monitors.
The same application works fine with one arrangement but if i change
the arrangement from system preferences then it shows some random
behavoir.
In case of dual head cards, there are two physical ports. One is the
physical primary and other is the physical secondary.
Corresponding to each ports, there must be logical port at OS level.
i.e. if i connect two monitors then one will become primary monitor
and other secondary. So my query is
"Is their any key in IORegistryExplorer for getting logical primary
port according to system preference or Is there any API for finding
logical primary port"??
I know about CGMainDisplay, but this doesnot works for all cards.
Anyone knowing another API for finding primary port ? Or any
alternative way? Please suggest.
Thanks and Regards,
Rohit Dhamija
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden