A generic touchscreen calibration program for X.Org
Révision | f4a7fda8ed0f0760a8351a74c33517c0337cde8d (tree) |
---|---|
l'heure | 2010-08-16 06:52:23 |
Auteur | Tias Guns <tias@ulys...> |
Commiter | Tias Guns |
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.
@@ -234,13 +234,6 @@ bool CalibratorEvdev::finish_data(const XYinfo new_axys, int swap_xy) | ||
234 | 234 | printf("EndSection\n"); |
235 | 235 | printf("\n"); |
236 | 236 | |
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 | - | |
244 | 237 | return success; |
245 | 238 | } |
246 | 239 |
@@ -50,20 +50,7 @@ bool CalibratorXorgPrint::finish_data(const XYinfo new_axys, int swap_xy) | ||
50 | 50 | |
51 | 51 | // TODO: detect which are applicable at runtime/in the makefile ? |
52 | 52 | 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"); | |
67 | 54 | |
68 | 55 | // xorg.conf.d snippet |
69 | 56 | printf("\nxorg.conf.d snippet (RECOMMENDED): copy the snippet below into /etc/X11/xorg.conf.d/99-calibration.conf\n"); |