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.