XFree86 Modeline
- A mode line may also refer to a line for the Emacs and Vim editors that provides information about the file and modes.
A modeline is a configuration line in
Modelines are now rarely used, but
Syntax
Each modeline has ten parameters, beginning with a label for the resolution being specified. The second parameter specifies the rate of the
- 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:
- (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
Optionally, extra parameters for controlling the polarity of the horizontal and vertical sync pulses can be added. There are also options for
Obsolescence
Modelines may no longer be necessary in XFree86 versions 4 and higher,
- other, more generic and intuitive, settings in the server configuration file
- monitor capabilities acquired via an EDIDquery
EDID is not always completely accurate, and for some situations such as older or unusual display hardware or many
startx -- -logverbose 6
" and looking at /var/log/XFree86.0.log.
See also
- Raster scan
- Sync pulse