Калибровка touch
Материал из База знаний
Версия от 06:48, 11 ноября 2016; Admin (обсуждение | вклад)
Калибровка touch в многомониторной системе
Определяем список дисплеев:
xrandr Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192 DVI-I-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 0mm x 0mm 1024x768 60.00 800x600 60.32 56.25 848x480 60.00 640x480 59.94 1920x1080_60.00 60.00* HDMI-1 disconnected (normal left inverted right x axis y axis) VGA-1 connected (normal left inverted right x axis y axis) 1024x768 60.00 800x600 60.32 56.25 848x480 60.00 640x480 59.94 1920x1080_60.00 60.00
DVI-I-1 с тачем, а VGA-1 без (к примеру)
Определяем наличие тачей в системе:
xinput Virtual core pointer id=2 [master pointer (3)] Virtual core XTEST pointer id=4 [slave pointer (2)] Advanced Silicon S.A CoolTouch(TM) System id=8 [slave pointer (2)] Virtual core keyboard id=3 [master keyboard (2)] Virtual core XTEST keyboard id=5 [slave keyboard (3)] Power Button id=6 [slave keyboard (3)] Power Button id=7 [slave keyboard (3)] HD Pro Webcam C920 id=9 [slave keyboard (3)] Eee PC WMI hotkeys id=10 [slave keyboard (3)]
Тач с id=8 (в текущей раскладке)
Отключаем временно монитор без touch:
xrandr --output VGA-1 --off
Мапим тачевый монитор к тачу:
xinput map-to-output 8 DVI-I-1
Запускаем калибровку:
xinput_calibrator
Калибруем, правим файлик /etc/X11/xorg.conf.d/99-calibration.conf указынными параметрами.
Подключаем второй монитор:
xrandr --output VGA-1 --on
Повторно мапим тач к монитору:
xinput map-to-output 8 DVI-I-1