• 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évisionf4a7fda8ed0f0760a8351a74c33517c0337cde8d (tree)
l'heure2010-08-16 06:52:23
AuteurTias Guns <tias@ulys...>
CommiterTias Guns

Message de Log

remove xorg.conf mention (superseded by xorg.conf.d snippet, or HAL on
older systems)

The xorg.conf option is not as straightforward as I thought:
Since hotplugging with HAL, the Input Sections of xorg.conf are
automatically ignored. When adding an input section, one would have to
disable hotplugging with Option "AutoAddDevices" "false".
But it is a lot simpler to just write a HAL policy file in that case.

Change Summary

Modification

--- a/src/calibrator/calibratorEvdev.cpp
+++ b/src/calibrator/calibratorEvdev.cpp
@@ -234,13 +234,6 @@ bool CalibratorEvdev::finish_data(const XYinfo new_axys, int swap_xy)
234234 printf("EndSection\n");
235235 printf("\n");
236236
237- // Xorg.conf output
238- printf("xorg.conf: edit /etc/X11/xorg.conf and add in the 'Section \"InputDevice\"' of your device:\n");
239- printf(" Option\t\"Calibration\"\t\t\"%d %d %d %d\"\n",
240- new_axys.x_min, new_axys.x_max, new_axys.y_min, new_axys.y_max);
241- if (swap_xy)
242- printf(" Option\t\"SwapAxes\"\t\"%d\" # unless it was already set to 1\n", new_swap_xy);
243-
244237 return success;
245238 }
246239
--- a/src/calibrator/calibratorXorgPrint.cpp
+++ b/src/calibrator/calibratorXorgPrint.cpp
@@ -50,20 +50,7 @@ bool CalibratorXorgPrint::finish_data(const XYinfo new_axys, int swap_xy)
5050
5151 // TODO: detect which are applicable at runtime/in the makefile ?
5252 printf("\n\n== Applying the calibration ==\n");
53- printf("There are multiple ways to do this: the tranditional way (xorg.conf), the new way (xorg.conf.d snippet) and the soon deprecated way (HAL policy):\n");
54-
55- // Xorg.conf output
56- printf("\nxorg.conf: edit /etc/X11/xorg.conf and add in the 'Section \"InputDevice\"' of your device:\n");
57- printf("\tOption\t\"MinX\"\t\t\"%d\"\n",
58- new_axys.x_min);
59- printf("\tOption\t\"MaxX\"\t\t\"%d\"\n",
60- new_axys.x_max);
61- printf("\tOption\t\"MinY\"\t\t\"%d\"\n",
62- new_axys.y_min);
63- printf("\tOption\t\"MaxY\"\t\t\"%d\"\n",
64- new_axys.y_max);
65- if (swap_xy != 0)
66- printf("\tOption\t\"SwapXY\"\t\"%d\" # unless it was already set to 1\n", new_swap_xy);
53+ printf("There are multiple ways to do this: the new way (xorg.conf.d snippet) and the soon deprecated way (HAL policy):\n");
6754
6855 // xorg.conf.d snippet
6956 printf("\nxorg.conf.d snippet (RECOMMENDED): copy the snippet below into /etc/X11/xorg.conf.d/99-calibration.conf\n");