[FX.php List] [OffTopic] Screen resolution under MacOS X

Erik Andreas Cayré erik at cayre.dk
Tue Oct 30 16:05:52 MDT 2007


Den 26/10/2007 kl. 17.03 skrev Gjermund Gusland Thorsen:

> Do any of you have a clue to where MacOS X finds the resolution for  
> the different screens?

AFAIK, the Video Card queries the connected display using a protocol  
named DDC.
It's an auto-discovery mechanism, where a video card queries a  
connected display about it's capabilities/properties. This means  
there are probably no files in the OS containing a list of  
resolutions... (I remember connecting an old CRT to a recent Mac, not  
being able to select all resolutions that the display is capable of,  
because the display didn't have DDC support...)

There is probably some system call available to query the OS about  
the properties of the currently connected display(s), and there is  
(?) some way to make system calls from PHP...

http://en.wikipedia.org/wiki/Display_Data_Channel

Hope this helps...




---
Erik Andreas Cayré
Spangsbjerg Møllevej 169
DK-6705 Esbjerg Ø

Home Tel: +45 75150512
Mobile: +45 40161183

»Interest can produce learning on a scale compared to fear as a  
nuclear explosion to a firecracker.«
--Stanley Kubrick

»If you can't explain it simply, you don't understand it well enough.«
-- Albert Einstein

»If you don't have time to do it right, when will you have time to do  
it over?«
-- John Wooden, basketball coach


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20071030/a7de5ade/attachment.html


More information about the FX.php_List mailing list