VIDEOGEN(1)
π VIDEOGEN(1) π
okay bestie, welcome to the videogen manual page, section 1, from the General Commands Manual β the whole girlie is about generating Modelines for Xorg servers, and honestly? she ate. β¨
πΈ NAME πΈ
videogen β generate Modelines for Xorg servers
π¦ SYNOPSIS π¦
videogen [-v|-q] [-fb|-nfb] [-nv|-nnv] [-f=<file|->] [-m=mode] [-mdc=n]
[-mhf=n] [-mvf=n] [-dvf=n] [-hv=n] [-vv=n] [-hfp=n] [-hbp=n] [-hsp=n]
[-vfp=n] [-vbp=n] [-vsp=n]
β¨ DESCRIPTION β¨
So basically videogen generates Modelines for Xorg servers (or XFree86 servers, we don't gatekeep) so you can reach the highest possible vertical refresh rate at all resolutions, or just match whatever refresh rate you're feeling. π
And as a new feature β new!! β it can obey the non-free NVidia driver's timing constraints. It can also print the calculated results in the Linux framebuffer device format. Versatile queen. π
ATTENTION!! π¨ You only have to specify the maximum dot clock, the maximum horizontal frequency, the maximum vertical refresh, and of course the modes (resolutions) to generate the appropriate Modelines. Everything else is just there for tweaking or solving special problems β there are hardcoded defaults for all of them that are suitable for the vast majority of cases. So don't stress fr fr. π«Ά
π CONFIGURATION FILE π
A configuration file can be used to specify all or part of the parameters videogen needs to do its calculations. This can be very comfortable in many cases. You can also specify a configuration file path on the command line instead of the default (~/.videogen), or read from stdin β which is lowkey helpful if you want to call videogen from another program or from a script. π§
The general syntax rules are the following: parameters are specified using name=value pairs. The parameter names are matched in a case insensitive manner. Blanks are optional. Multiple name=value pairs can be specified on a single line separated by ";" characters. Any string after a "#" character is treated as a comment up to the end of the line.
π COMMAND LINE π
The command line options always override the parameters set in the configuration file. This also applies to the mode list, so when one or more modes are specified on the command line, the entire list of modes read from the configuration file is replaced by these. no cap.
π OPTIONS π
The command line options are described below together with their configuration file variable counterparts (if present). One bullet per option, as the universe intended. π
-v-qverbose=on|offβ Turn on/off verbose output. FYI-qstands for quiet ;) (default=on)-fb-nfbfbset=on|offβ Turn on/off fbset (Linux framebuffer timings) mode. In this mode, fbset timings are printed instead of Modelines. (default=off)-nv-nnvnvidia=on|offβ Turn on/off non-free NVidia Linux driver compatibility mode. (default=on)-f=filespecβ Use filespec as the configuration file. This accepts-to read the options from the standard input. The"~"character gets expanded to the home directory of the user runningvideogen. (default=~/.videogen)-m=modespecmode=modespecβ Adds modespec to the list of modes to calculate a Modeline for. This must be in the form800x600(width x height) and it can be specified more than once to add several modes.-mdc=freqβ Set freq to the maximum dot clock rate of your video card or the bandwidth of your monitor, whichever is lower, in MHz.-mhf=freqβ Set freq to the maximum horizontal refresh frequency of your monitor in kHz.-mvf=freqβ Set freq to the maximum vertical refresh frequency of your monitor in Hz.-dvf=freqβ Set freq to the vertical refresh frequency which you think would be optimal for you, in Hz. The program will try to match this frequency at all resolutions, instead of the maximum frequency that would be technically possible. (optional)-hv=percentβ Set percent to the percentage of the horizontal frame length you want the visible resolution to be. (optional)-vv=percentβ Set percent to the percentage of the vertical frame length you want the visible resolution to be. (optional)-hfp=durationβ Set duration to the horizontal front porch duration of your monitor in clock ticks. (optional)-hbp=durationβ Set duration to the horizontal back porch duration of your monitor in clock ticks. (optional)-hsp=durationβ Set duration to the minimum horizontal sync pulse duration of your monitor in clock ticks. (optional)-vfp=durationβ Set duration to the vertical front porch duration of your monitor in clock ticks. (optional)-vbp=durationβ Set duration to the vertical back porch duration of your monitor in clock ticks. (optional)-vsp=durationβ Set duration to the minimum vertical sync pulse duration of your monitor in clock ticks. (optional)
π ERRORS π
You can expect the following error codes to be returned by videogen β screenshot these for later bestie:
100β system error (memory allocation problems, or other)101β command line option error102β configuration file error103β bad resolution error, currently returned when no (valid) modes have been specified anywhere104β bad maximum dot clock rate, currently returned when no proper value has been specified anywhere105β bad maximum horizontal refresh, currently returned when no proper value has been specified anywhere106β bad maximum vertical refresh, currently returned when no proper value has been specified anywhere
π 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 refresh frequency to get exactly the given dot clock rate. A similar method can be used to match the proper frequencies of a fixed frequency monitor. Iconic workaround behavior. β¨
π FILES π
~/.videogenβ The default location for thevideogenconfiguration file./etc/X11/xorg.confβ The Xserver configuration file where Modelines generated withvideogencan be inserted. Currently this must be done by hand. π/etc/X11/XF86Config/etc/X11/XF86Config-4β Names of the Xserver configuration file in older releases of X.
π«Ά SEE ALSO π«Ά
some_modes(1), Xorg(1), xorg.conf(5), xvidtune(1)
π AUTHOR π
Szabolcs Rumi <rumi_at_rtfm_dot_hu>
π COPYING π
GNU General Public License Version 2 (found in /usr/share/common-licenses on Debian systems)
and that's the whole page bestie!! π this was videogen in the General Commands Manual, page VIDEOGEN(1), written by Szabolcs Rumi β love that for him. go forth and generate those Modelines, you absolute main character. πβ¨π¦
π¦ where this page comes from
- debian bookworm: videogen 0.33-8 Β· GPL-2.0-only
- debian trixie: videogen 0.33-8 Β· GPL-2.0-only
- ubuntu jammy: videogen 0.33-8 Β· GPL-2.0-only
- ubuntu noble: videogen 0.33-8 Β· GPL-2.0-only
- ubuntu questing: videogen 0.33-8
- ubuntu resolute: videogen 0.33-8build1 Β· GPL-2.0-only
- ubuntu stonking: videogen 0.33-8build1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms