• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

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

修订版59ee7d6ec7998b2cfe6c56026876c3294641be95 (tree)
时间2010-08-16 06:52:23
作者Peter Hutterer <peter.hutterer@who-...>
CommiterTias Guns

Log Message

Print out an xorg.conf.d snippet for the configuration.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>

更改概述

差异

--- a/src/calibrator/calibratorEvdev.cpp
+++ b/src/calibrator/calibratorEvdev.cpp
@@ -222,6 +222,16 @@ bool CalibratorEvdev::finish_data(const XYinfo new_axys, int swap_xy)
222222 printf(" xinput set-int-prop \"%s\" \"Evdev Axes Swap\" 8 %d\n", device_name, new_swap_xy);
223223 printf("See scripts/xinput_calibrator_pointercal.sh for an example used on mobile devices\n");
224224
225+ // xorg.conf.d snippet
226+ printf("\nxorg.conf.d snippet (RECOMMENDED): copy the snippet below into /etc/X11/xorg.conf.d/99-calibration.conf\n");
227+ printf("Section \"InputClass\"\n");
228+ printf(" Identifier \"calibration\"\n");
229+ printf(" MatchProduct \"%s\"\n", device_name);
230+ printf(" Option\t\"Calibration\"\t\t\"%d %d %d %d\"\n",
231+ new_axys.x_min, new_axys.x_max, new_axys.y_min, new_axys.y_max);
232+ printf("EndSection\n");
233+ printf("\n");
234+
225235 // Xorg.conf output
226236 printf("xorg.conf: edit /etc/X11/xorg.conf and add in the 'Section \"InputDevice\"' of your device:\n");
227237 printf(" Option\t\"Calibration\"\t\t\"%d %d %d %d\"\n",