• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

A generic touchscreen calibration program for X.Org


Commit MetaInfo

Révisione3b0f24802c9163a35f1590665c7d76c311d2606 (tree)
l'heure2010-08-16 06:52:23
AuteurTias Guns <tias@ulys...>
CommiterTias Guns

Message de Log

xorg.conf.d snippet for standard xorg drivers too

Change Summary

Modification

--- a/src/calibrator/calibratorXorgPrint.cpp
+++ b/src/calibrator/calibratorXorgPrint.cpp
@@ -61,6 +61,19 @@ bool CalibratorXorgPrint::finish_data(const XYinfo new_axys, int swap_xy)
6161 if (swap_xy != 0)
6262 printf("\tOption\t\"SwapXY\"\t\"%d\" # unless it was already set to 1\n", swap_xy);
6363
64+ // xorg.conf.d snippet
65+ printf("\nxorg.conf.d snippet (RECOMMENDED): copy the snippet below into /etc/X11/xorg.conf.d/99-calibration.conf\n");
66+ printf("Section \"InputClass\"\n");
67+ printf(" Identifier \"calibration\"\n");
68+ printf(" MatchProduct \"%s\"\n", "%Name_Of_TouchScreen%");
69+ printf(" Option \"MinX\" \"%d\"\n", new_axys.x_min);
70+ printf(" Option \"MaxX\" \"%d\"\n", new_axys.x_max);
71+ printf(" Option \"MinY\" \"%d\"\n", new_axys.y_min);
72+ printf(" Option \"MaxY\" \"%d\"\n", new_axys.y_max);
73+ if (swap_xy != 0)
74+ printf(" Option \"SwapXY\" \"%d\" # unless it was already set to 1\n", swap_xy);
75+ printf("EndSection\n");
76+
6477 // udev rule
6578 printf("\nudev rule: create the file '/etc/udev/rules.d/99_touchscreen.rules' with: (replace %%Name_Of_TouchScreen%% appropriately)\n\
6679 \tACTION!=\"add|change\", GOTO=\"xorg_touchscreen_end\"\n\