/xcal

X.org touchscreen calibrator

Primary LanguagePythonMIT LicenseMIT

What this?

This is an alternative to xinput_calibrator (as seen on github, FreeDesktop, Ubuntu, etc.).

Similarities:

  • For Unix-like OS
  • Calibrates touchscreens

Differences:

Thing xinput_calibrator xcal
Language C++ Python3
LOC 2,289 284
Interface Command-line args with some GUI Walkthrough-based with some GUI
GUI toolkit X tk
Cal points 4 Selectable
Math Manual Numpy least-squares
Outputs Xorg.conf, hal, xinput xinput
Popularity High Zero so far
Tested Pretty well Not very well
OS distribution Available in most major repos Zero so far
Dependencies libstdc++, libx11, libxi python3, tkinter, numpy

xinput_calibrator features precalibration, timeouts, misclick detection, fake driver testing, and a resizable window. xcal features none of those things, but offers some other features not present in xinput_calibrator, including pre-save cal test, cal quality indicator, arbitrary cal point count, and a slightly more informative GUI. Also, the source is quite simpler.

Why this?

After I couldn't figure out why xinput_calibrator wasn't doing anything on my system (an old CF-29), I read and followed this excellent walkthrough on the Arch wiki. It was too hacky for my comfort, so I wrote this tool inspired by Zootboy's procedure but with some key differences - this is a stand-alone tool that does not require running xinput_calibrator; and it uses Numpy to do some real matrix math instead of hacking around with element-by-element calculations and a fixed calibration dataset size.

How this?

./xcal

To do

  • ?

Discuss

Join the chat at https://gitter.im/reinderien_xcal/Lobby