Thread: XFree86 tutorial?

  1. #1
    Algorithm engineer
    Join Date
    Jun 2006
    Posts
    286

    Post XFree86 tutorial?

    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.
    Come on, you can do it! b( ~_')

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    You could look at the source of the xrandr client program.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    Algorithm engineer
    Join Date
    Jun 2006
    Posts
    286
    Can I learn how to change refresh frequency, length of the vertical and horizontal signals and the front and back porch?
    Come on, you can do it! b( ~_')

  4. #4
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    Frequency, definitely. I don't know what the other things are.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  5. #5
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Source code to "xvidtune" is probably also useful.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. My new website
    By joeprogrammer in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 03-17-2006, 07:38 PM
  2. Cprog tutorial: Design Patterns
    By maes in forum C++ Programming
    Replies: 7
    Last Post: 10-11-2004, 01:41 AM
  3. Tutorial review
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 03-22-2004, 09:40 PM
  4. Problem with tutorial (Vector class)
    By OdyTHeBear in forum C++ Programming
    Replies: 4
    Last Post: 12-18-2002, 02:49 PM
  5. My DirectInput tutorial....
    By jdinger in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 06-18-2002, 11:32 PM