Skip to content

Commit 1871293

Browse files
committed
README.md: add suggestion for calibrating during startup
1 parent b93cfa3 commit 1871293

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,28 @@ To _uninstall_, again go inside the extracted directory, and do
2626
### multitouch
2727
if you use tslib 1.10 or higher (libts.so.0.7.0 or higher), you have multitouch.
2828

29+
### calibrate (if not calibrated) before X starts the display
30+
(untested :) If you use the `linear` module in `ts.conf` you want to calibrate
31+
your screen, using `ts_calibrate`. To do this once in case not already done, you'd
32+
add something like the following snippet to your display manager's init script
33+
* `/etc/gdm3/Init/Default` for Gnome3's gdm
34+
* `/etc/X11/xdm/Xsetup` for X's display manager
35+
* `/etc/kde4/kdm/Xsetup` for KDE's kdm
36+
and so on:
37+
38+
TSCALIB_BIN=/usr/bin/ts_calibrate
39+
40+
# calibrate touchscreen, if no calibfile exists
41+
if ! [ -f "${TSLIB_CALIBFILE}" ] ; then
42+
if ! ${TSCALIB_BIN} ; then
43+
echo "calibration failed!"
44+
else
45+
echo "calibration done."
46+
fi
47+
fi
48+
49+
To trigger re-calibration, simply delete the `TSLIB_CALIBFILE` file and reboot.
50+
2951
### contact
3052
* If you have problems or suggestions, feel free to
3153
[open an issue](https://github.com/merge/xf86-input-tslib/issues).

0 commit comments

Comments
 (0)