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

Message de Log

replace udev rule by xorg.conf.d snippet for standard xorg drivers too

Change Summary

Modification

--- a/src/calibrator/calibratorXorgPrint.cpp
+++ b/src/calibrator/calibratorXorgPrint.cpp
@@ -46,7 +46,7 @@ bool CalibratorXorgPrint::finish_data(const XYinfo new_axys, int swap_xy)
4646 {
4747 // TODO: detect which are applicable at runtime/in the makefile ?
4848 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");
5050
5151 // Xorg.conf output
5252 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)
7474 printf(" Option \"SwapXY\" \"%d\" # unless it was already set to 1\n", swap_xy);
7575 printf("EndSection\n");
7676
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-
9177 // HAL policy output
9278 printf("\nHAL policy: create the file '/etc/hal/fdi/policy/touchscreen.fdi' with: (replace %%Name_Of_TouchScreen%% appropriately)\n\
9379 \t<match key=\"info.product\" contains=\"%%Name_Of_TouchScreen%%\">\n\