README.md
1 libxcvt
2 =======
3
4 `libxcvt` is a library providing a standalone version of the X server
5 implementation of the VESA CVT standard timing modelines generator.
6
7 `libxcvt` also provides a standalone version of the command line tool
8 `cvt` copied from the Xorg implementation and is meant to be a direct
9 replacement to the version provided by the `Xorg` server.
10
11 An example output is:
12
13 ```
14 $ cvt --verbose 1920 1200 75
15 # 1920x1200 74.93 Hz (CVT 2.30MA) hsync: 94.04 kHz; pclk: 245.25 MHz
16 Modeline "1920x1200_75.00" 245.25 1920 2064 2264 2608 1200 1203 1209 1255 -hsync +vsync
17 ```
18
19 Building
20 ========
21
22 `libxcvt` is built using [Meson](https://mesonbuild.com/)
23
24 $ git clone https://gitlab.freedesktop.org/xorg/lib/libxcvt.git
25 $ cd libxcvt
26 $ meson build/ --prefix=...
27 $ ninja -C build/ install
28 $ cd ..
29
30 Credit
31 ======
32
33 The code base of `libxcvt` is identical to `xf86CVTMode()` therefore
34 all credits for `libxcvt` go to the author (Luc Verhaegen) and
35 contributors of `xf86CVTMode()` and the `cvt` utility as found in the
36 [xserver](https://gitlab.freedesktop.org/xorg/xserver/) repository.
37