---
name: "modeline2fb"
section: "8"
platform: "linux"
package: "fbset"
version: "2.1-16"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/modeline2fb/8"
---

# modeline2fb(8)

simple modeline to fb.modes translator

## NAME

modeline2fb - simple modeline to fb.modes translator

## SYNOPSIS

**modeline2fb** \[*OPTION*\] \[*FILES*\]

## DESCRIPTION

*Modeline2fb* is a simple Perl script that converts XF86Config-style modelines to options suitable for a fb.modes file.

Note that only one option can be successfully enabled at any particular time.

## OPTIONS

- **-d**, **--depth** *depth*

  Use the given display depth (default is 8).

- **-h** **--help**

  Print out a help screen and exit.

## ADVANCED OPTIONS

- **-r** **--rounding** *div*

  Sets the vxres divisor (default is 128).

- **-x** **--vxres** *X,X,X,...*

  Sets extra vxres values.

\[*FILES*\] refers to one or more XF86Config files.  Note that all modelines  must be in single-line format.  If no files are given on the command line,  this program reads from standard in.  This program will also write to standard out.

## EXAMPLE

/usr/sbin/modeline2fb -d 16 /etc/X11/XF86Config

## SEE ALSO

**[fb.modes(5)](/fb.modes/5.md),** **XF86Config(5)**

## AUTHOR

This manual page is a quick write-up for Debian done by Kevin Kreamer  \<kkreamer@etherhogz.org\>.
