XFree86 Modeline

XFree86 Modeline
A mode line may also refer to a line in the Emacs editor that provides information about the buffer and modes.

A modeline is a configuration line in xorg.conf or the XFree86 configuration file (XF86Config) that provides information to the X server about a connected computer monitor or television and how to drive it at a specified display resolution. The Modeline is based on the Generalized Timing Formula or the Coordinated Video Timings standards produced by VESA.

Modelines are now all but unused, but XFree86 and the Xorg Server still allow them to be set should the EDID information be inadequate.

Contents

Syntax

Each modeline has ten parameters, beginning with a label for the resolution being specified. The second parameter specifies the rate of the pixel clock in megahertz. Then follow four numbers that together specify the x-resolution (width) and related parameters, and four numbers that specify the y-resolution (height).

Modeline syntax: pclk hdisp hsyncstart hsyncend htotal vdisp vsyncstart vsyncend vtotal [flags]
Flags (optional): +HSync, -HSync, +VSync, -VSync, Interlace, DoubleScan, CSync, +CSync, -CSync
Modeline "1600x1200" 155   1600 1656 1776 2048   1200 1202 1205 1263
#           (Label) (clk)     (x-resolution)        (y-resolution)
#                     |
#              (pixel clock in MHz)

Or, the modeline can be split into multiple lines for greater clarity

Modeline "1600x1200"  155  1600 1656 1776 2048
                           1200 1202 1205 1263
The horizontal and vertical frequencies can be calculated by:
Hfreq=pclk/htotal
Vfreq=pclk/(htotal*vtotal) (field rate) For interlace mode, frame rate=field rate/2, otherwise frame rate=field rate.

The numbers after the width and height are used to determine the front porch, sync pulse, and back porch timings. The resulting refresh rate or frame rate of the display can be determined by dividing the pixel clock frequency by the product of the horizontal and vertical field lengths. In this case, the display is operating at 155,000,000/(2048*1263)=59.92 Hz.

Optionally, extra parameters for controlling the polarity of the horizontal and vertical sync pulses can be added. There are also options for interlaced and doublescan modes. In most situations they will not be required.

Obsolescence

Modelines may no longer be necessary in XFree86 versions 4 and higher,[1] since for many monitors and HDTVs they are now calculated by the X server at startup based on two factors:

  • other, more generic and intuitive, settings in the server configuration file
  • monitor capabilities acquired via an EDID query

EDID is not always completely accurate, and for some situations such as older or unusual display hardware or many HDTVs, it will be necessary to create a modeline to get the setting right. The EDID information can be obtained by using the command "startx -- -logverbose 6" and looking at /var/log/XFree86.0.log.

See also

References

External links


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • XFree86 — Infobox Software name = XFree86 caption = developer = The XFree86 Project, Inc. released = ? frequently updated = yes programming language = C operating system = multiple language = Various genre = Windowing system license = 1.1 website =… …   Wikipedia

  • XF86Config — The configuration file XF86Config of the XFree86 project is used by the X server to set necessary configuration parameters.It is a plain text file ordered into sections and subsections.Important sections are Files , InputDevice , Monitor , Modes …   Wikipedia

  • xorg.conf — El archivo xorg.conf es un archivo usado para configurar el servidor X.Org. Típicamente está ubicado en la ruta /etc/X11/xorg.conf, aunque su ubicación puede variar entre sistemas operativos. Durante mucho tiempo, fue necesaria la edición manual… …   Wikipedia Español

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”