XFree86 tutorial? [Archive] - C Board

PDA

View Full Version : XFree86 tutorial?


TriKri
03-26-2008, 07:09 AM
Hi!

I am going to use XFree86 to enable my C program to set all properties a screen can have, i.e. resolution, frequency, horizontal and vertical sync and front and back porch, etc. Is there some good tutorial for teaching me how to do this? All information I have found is quite insufficient.

I have found some interesting functions though: XF86VidModeSwitchToMode, XF86VidModeModModeLine, XF86VidModeGetModeLine and XF86VidModeValidateModeLine. Also the very similar structs XF86VidModeModeLine and XF86VidModeModeInfo could be useful. I could try some trial and error, but I would really appreciate if there where some good learning resource. Thanks to those who know some. :)

CornedBee
03-26-2008, 09:11 AM
You could look at the source of the xrandr client program.

TriKri
03-28-2008, 09:02 AM
Can I learn how to change refresh frequency, length of the vertical and horizontal signals and the front and back porch?

CornedBee
03-28-2008, 09:05 AM
Frequency, definitely. I don't know what the other things are.

brewbuck
03-28-2008, 11:16 AM
Source code to "xvidtune" is probably also useful.