How can I control programmatically the output format of any given
video card on both WindowsXP and Linux platforms. Video cards could be
limited to either ATI/NVidia or both.
IMPORTANT
-----------
I'm not looking for an application that we could hook to it through
the windows/linux message pump (ala Powerstrip). I'm looking for the
low-level control of video card through system calls and/or drivers
that I can compile into my program.
What I need to control:
-----------------------
I need to control the videocard VGA/DVI outputs or at least DVI outputs.
Parameters to control:
* Horizontal Active/Total chars
* Vertical Active/Total lines
* Back/Front proch of both V and H
* Pixel Clock
I've looked at VESA standards but I can't perform any of the functions
under windows and linux:
e.g. I need to set a resolution of 1920x1200 with
Vfp=1,VSync=3,Vbp=25, Hfp=80,HSync=136,Hbp=216 these numbers are
really specific.
To my understanding VESA doesn't support higher than 1280x1024 resolutions.
The researcher doesn't have to limit himself/herself to VESA
standards, I'm just mentioning it to provide a starting point.
for the interested the VESA function call I've tried (but failed) to
tinker with is 0x4F02 of the VBE extension v3.0
The answer should include functioning code for windows.
The answer should include functioning code for linux while X server is running.
thanks. |