A generic touchscreen calibration program for X.Org
Révision | 3535b3c9dd3d7f20e1a00cd2cdb701f0f96e589e (tree) |
---|---|
l'heure | 2010-08-16 06:52:23 |
Auteur | Tias Guns <tias@ulys...> |
Commiter | Tias Guns |
replace udev rule by xorg.conf.d snippet for standard xorg drivers too
@@ -46,7 +46,7 @@ bool CalibratorXorgPrint::finish_data(const XYinfo new_axys, int swap_xy) | ||
46 | 46 | { |
47 | 47 | // TODO: detect which are applicable at runtime/in the makefile ? |
48 | 48 | printf("\n\n== Applying the calibration ==\n"); |
49 | - printf("There are multiple ways to do this: the tranditional way (xorg.conf), the new way (udev rule) and the soon deprecated way (HAL policy):\n"); | |
49 | + 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"); | |
50 | 50 | |
51 | 51 | // Xorg.conf output |
52 | 52 | printf("\nxorg.conf: edit /etc/X11/xorg.conf and add in the 'Section \"InputDevice\"' of your device:\n"); |
@@ -74,20 +74,6 @@ bool CalibratorXorgPrint::finish_data(const XYinfo new_axys, int swap_xy) | ||
74 | 74 | printf(" Option \"SwapXY\" \"%d\" # unless it was already set to 1\n", swap_xy); |
75 | 75 | printf("EndSection\n"); |
76 | 76 | |
77 | - // udev rule | |
78 | - printf("\nudev rule: create the file '/etc/udev/rules.d/99_touchscreen.rules' with: (replace %%Name_Of_TouchScreen%% appropriately)\n\ | |
79 | -\tACTION!=\"add|change\", GOTO=\"xorg_touchscreen_end\"\n\ | |
80 | -\tKERNEL!=\"event*\", GOTO=\"xorg_touchscreen_end\"\n\ | |
81 | -\tATTRS{product}!=\"%%Name_Of_TouchScreen%%\", GOTO=\"xorg_touchscreen_end\"\n\ | |
82 | -\tENV{x11_options.minx}=\"%d\"\n\ | |
83 | -\tENV{x11_options.maxx}=\"%d\"\n\ | |
84 | -\tENV{x11_options.miny}=\"%d\"\n\ | |
85 | -\tENV{x11_options.maxy}=\"%d\"\n" | |
86 | - , new_axys.x_min, new_axys.x_max, new_axys.y_min, new_axys.y_max); | |
87 | - if (swap_xy != 0) | |
88 | - printf("\tENV{x11_options.swapxy}=\"%d\"\n", swap_xy); | |
89 | - printf("\tLABEL=\"xorg_touchscreen_end\"\n"); | |
90 | - | |
91 | 77 | // HAL policy output |
92 | 78 | printf("\nHAL policy: create the file '/etc/hal/fdi/policy/touchscreen.fdi' with: (replace %%Name_Of_TouchScreen%% appropriately)\n\ |
93 | 79 | \t<match key=\"info.product\" contains=\"%%Name_Of_TouchScreen%%\">\n\ |