CVT (Coordinated Video Timings) modeline calculator with CVT v1.2 timings.
Clone or download
kevinlekiller Merge pull request #2 from lukexcom/master
Fixes for and updates for CVT v1.2 Reduced Blanking v2
Latest commit 55b5e78 Dec 2, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md Fix compile line. May 25, 2015
cvt12.c Additional fixes and updates for CVT v1.2 Reduced Blanking v2: Dec 1, 2017

README.md

cvt_modeline_calculator_12

CVT (Coordinated Video Timings) modeline calculator with CVT v1.2 timings.

This is a modified CVT modeline calculator based on cvt
by erich@uruk.org, which is based on GTF modeline calculator by Andy Ritger.

This modified version adds support for CVT v1.2 (VESA-2013-3 v1.2).

Changes:

  • Add support for CVT v1.2 reduced blanking timings.
  • Add support for 1000/1001 reducing of refresh rate for better movie support (ie 24hz * 1000 / 1001 = 23.976hz).
  • Add check for reduce blanking on CVT v1.1 for refresh rates not a multiple of 60hz.
  • Add checks for bad x y and refresh values.
  • Display 3 digits after decimal point on CLI output for the commented out part of the xf86 modeline. (ie 23.98hz -> 23.976hz)
  • Change xf86 modeline printout to be similar to x.org's cvt.
  • Fix some default timing values on v1.1 to be in line with the Vesa Public Standards CVT Generator.
  • Various minor changes.

Download:

$ curl https://raw.githubusercontent.com/kevinlekiller/cvt_modeline_calculator_12/master/cvt12.c --output cvt12.c

Compilation:

$ gcc cvt12.c -O2 -o cvt12 -lm -Wall

License is in the source at the top.