---
name: "some_modes.sh"
section: "1x"
platform: "linux"
package: "videogen"
version: "0.21-9"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://carta.tech/man/videogen/1x"
---

# some\_modes.sh(1x)

generate Modelines for XFree86 servers

Part of [videogen(1x)](/man/videogen/1x.md).

## NAME

videogen - generate Modelines for XFree86 servers

## SYNOPSIS

**videogen** \<-i\>

**videogen** \[-s\] \[-n\] \[-fb\] \<-clk=freq\> \<-width=pixels\> \[-height=pixels\] \<-hf=freq\> \<-vf=freq\> \<-hsync=duration\>

## DESCRIPTION

**videogen** generates Modelines for XFree86 servers to make the screen refresh rate as high as possible. Can print the timings in Linux framebuffer device format as well.

### OPTIONS

- *-s*

  Silent mode suppresses all output other than the generated Modeline itself.

- *-n*

  The Non-free-Nvidia mode. The calculations will be checked and corrected if they do not comply with stronger specifications used by the closed-source Nvidia drivers. You do not need this switch for the normal nv driver.

- *-fb*

  In silent mode, output is in fbset format instead of X format. At normal verbosity, this option has no effect, both the X and the fbset format will be printed.

- *-clk=freq*

  Set **freq** to the maximum dot clock frequency of your video card.

- *-width=pixels*

  Set **width** to the desired horizontal resolution (screen width in pixels).

- *-height=pixels*

  Set **height** to the desired vertical resolution (screen height in pixels).

- *-hf=freq*

  Set **freq** to the maximum horizontal refresh frequency of your monitor.

- *-vf=freq*

  Set **freq** to the maximum vertical refresh frequency of your monitor.

- *-hsync=duration*

  Set **duration** to the minimal horizontal sync pulse duration of your monitor. if you don't know it, no problem: version 0.20 and up will use a default that is believed to be safe for most cases.

### ERRORS

The error messages will not be printed if you are using the **-s** switch, but the error values described below should always be returned.

- *101*

  invalid horizontal resolution

- *102*

  invalid maximum dot clock rate

- *103*

  invalid horizontal refresh frequency

- *104*

  invalid vertical refresh frequency

- The limits which specify what parameters are considered to be invalid are specified at compile time.

  ### FIXED DOT CLOCKS

If your display adapter does not have a programmable clockchip then you will need to get a list of available clocks somehow and enter these as the maximum dot clock frequency. This way videogen will have to adjust (decrease) the horizontal retrace frequency to get exactly the given dot clock rate.

## FILES

- *some\_modes.sh*

  A bourne again shell script included in the package to generate modelines easily for the most common resolutions.

- */etc/X11/XF86Config(-4)*

  This is the common Xserver configuration file where the Modelines generated with **videogen** can be used. Currently this must be done by hand.

## SEE ALSO

X(1), XF86Setup(1), [xvidtune(1)](/man/xvidtune/1.md), kvideogen(1), xf86cfg(1)

## AUTHOR

Szabolcs Rumi \<szrumi@matavnet.hu\>

## COPYING

GNU General Public License Version 2 (included in the videogen package, on Debian systems in the documentation directory of videogen)
