キオスクシステムのタッチスクリーンを補正するのに問題があります。私は以下をインストールしxinput_calibrator
て実行しました。
$ xinput_calibrator -v
DEBUG: XInputExtension version is 2.3
DEBUG: Skipping virtual master devices and devices without axis valuators.
DEBUG: Skipping device 'Virtual core XTEST pointer' id=4, does not report Absolute events.
DEBUG: Skipping device 'PS/2 Generic Mouse' id=12, does not report Absolute events.
DEBUG: Selected device: MicroTouch Systems, Inc. MicroTouch USB Touchscreen - EX II
DEBUG: Not usbtouchscreen calibrator: Not a usbtouchscreen device
DEBUG: Not evdev calibrator: Evdev: invalid "Evdev Axis Calibration" property format
Calibrating standard Xorg driver "MicroTouch Systems, Inc. MicroTouch USB Touchscreen - EX II"
current calibration values: min_x=0, max_x=65535 and min_y=0, max_y=65535
If these values are estimated wrong, either supply it manually with the --precalib option, or run the 'get_precalib.sh' script to automatically get it (through HAL).
DEBUG: Found that 'MicroTouch Systems, Inc. MicroTouch USB Touchscreen - EX II' is a sysfs name.
DEBUG: Adding click 0 (X=323, Y=768)
DEBUG: Adding click 1 (X=970, Y=766)
DEBUG: Adding click 2 (X=321, Y=253)
DEBUG: Adding click 3 (X=969, Y=247)
--> Making the calibration permanent <--
DEBUG: Found that 'MicroTouch Systems, Inc. MicroTouch USB Touchscreen - EX II' is a sysfs name.
copy the snippet below into '/etc/X11/xorg.conf.d/99-calibration.conf' (/usr/share/X11/xorg.conf.d/ in some distro's)
Section "InputClass"
Identifier "calibration"
MatchProduct "MicroTouch Systems, Inc. MicroTouch USB Touchscreen - EX II"
Option "MinX" "10961"
Option "MaxX" "55163"
Option "MinY" "54602"
Option "MaxY" "10485"
Option "SwapXY" "0" # unless it was already set to 1
Option "InvertX" "0" # unless it was already set
Option "InvertY" "0" # unless it was already set
EndSection
xinput_calibrator --precalib
ただし、画面のキャリブレーションエラーが変わるわけではなく、生成された値が間違っているため、そのオプションを使用する必要があるようです。
この値をどのようにインポートしてこのコマンドに入れることができますか?
修正する
コメントに基づいて、詳細は次のとおりです。
- 上記の出力は次の場所に保存されます。
/etc/X11/xorg.conf.d/99-calibration.conf
.local/share/xorg/Xorg.0.log
上記の設定を適用する前と適用した後、ファイルの内容の一部を参照してください。->ここ<-
ベストアンサー1
xinput_calibrator は、evdev を使用してタッチスクリーンを校正するために使用されます。タッチスクリーン用のドライバはlibinputです。したがって、CalibrationMatrixまたはTransformationMatrixオプションを使用する必要があります。