日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

ubuntu多显示器单触摸屏校准

發布時間:2023/12/19 37 生活家
生活随笔 收集整理的這篇文章主要介紹了 ubuntu多显示器单触摸屏校准 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

多顯示器單觸摸屏屏幕校準

0、觸摸屏重定向

sudo xinput map-to-output 13 DP1 #將觸摸屏映射到指定的顯示器

  其中:13為觸摸屏設備id,可通過 xinput命令查看 ILITEK ILITEK-TP id=13 [slave pointer (2)];

     DP1為指定的顯示設備名,可通過$ xrandr命令查看,見最下面附件。

1、安裝屏幕校準器
$ sudo apt-get install xinput-calibrator

2、查看屏幕分辨率
在 System settings --> Display 查看屏幕分辨率

3、手動設置校準窗口的大?。ㄓ卸鄠€顯示器而只有一個觸摸屏時用的,用于設置只指定窗口)

  我的電腦有兩個顯示器,一個 1920x1080, 一個 1024x768,我只校準左邊的顯示器,如
Usage:xinput_calibrator --geometry <w>x<h>
--geometry: manually provide the geometry (width and height) for the calibration window

$ sudo xinput_calibrator --geometry 1920x1080 注意:1920x1080 此處是字母x 

Warning: multiple calibratable devices found, calibrating last one (ILITEK ILITEK-TP)
use --device to select another one.
Setting calibration data: 0, 16384, 0, 9600
Calibrating EVDEV driver for "ILITEK ILITEK-TP" id=14
current calibration values (from XInput): min_x=0, max_x=16384 and min_y=0, max_y=9600

Doing dynamic recalibration:
Setting calibration data: 82, 32942, 155, 9796
--> Making the calibration permanent <--
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 "ILITEK ILITEK-TP"
Option "Calibration" "82 32942 155 9796"
Option "SwapAxes" "0"
EndSection

我的電腦是在/usr/share/X11/xorg.conf.d/目錄下

4、按提示說明 拷貝校正信息到下面的文件中:
sudo gedit /usr/share/X11/xorg.conf.d/99-calibration.conf
將 下面的內容拷貝進去
Section "InputClass"
Identifier "calibration"
MatchProduct "ILITEK ILITEK-TP"
Option "Calibration" "82 32942 155 9796"
Option "SwapAxes" "0"
EndSection

5、完成。

附錄:---相關的常用命令-------------------

1、查看 xinput_calibrator 使用方法
$ xinput_calibrator -h
xinput_calibrator, v0.7.5

Usage: xinput_calibrator [-h|--help] [-v|--verbose] [--list] [--device <device name or XID or sysfs path>] [--precalib <minx> <maxx> <miny> <maxy>] [--misclick <nr of pixels>] [--output-type <auto|xorg.conf.d|hal|xinput>] [--fake] [--geometry <w>x<h>] [--no-timeout]
-h, --help: print this help message
-v, --verbose: print debug messages during the process
--list: list calibratable input devices and quit
--device <device name or XID or sysfs event name (e.g event5)>: select a specific device to calibrate
--precalib: manually provide the current calibration setting (eg. the values in xorg.conf)
--misclick: set the misclick threshold (0=off, default: 15 pixels)
--output-type <auto|xorg.conf.d|hal|xinput>: type of config to output (auto=automatically detect, default: auto)
--fake: emulate a fake device (for testing purposes)
--geometry: manually provide the geometry (width and height) for the calibration window
--no-timeout: turns off the timeout
--output-filename: write calibration data to file (USB: override default /etc/modprobe.conf.local

2、查看輸入設備
$ xinput

? Virtual core pointer id=2 [master pointer (3)]
? ? Virtual core XTEST pointer id=4 [slave pointer (2)]
? ? Logitech USB Receiver id=11 [slave pointer (2)]
? ? ILITEK ILITEK-TP id=13 [slave pointer (2)]
? ? ILITEK ILITEK-TP id=14 [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)]
? Video Bus id=7 [slave keyboard (3)]
? Power Button id=8 [slave keyboard (3)]
? Sleep Button id=9 [slave keyboard (3)]
? Logitech USB Receiver id=10 [slave keyboard (3)]
? USB2.0 Camera
id=12 [slave keyboard (3)]

3、查看輸出設備
$ xrandr
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
DP1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 521mm x 293mm
1920x1080 60.0*+
1680x1050 60.0
1280x1024 75.0 60.0
1440x900 59.9
1280x960 60.0
1280x720 60.0
1024x768 75.1 70.1 60.0
832x624 74.6
800x600 72.2 75.0 60.3 56.2
640x480 75.0 72.8 66.7 60.0
720x400 70.1
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

總結

以上是生活随笔為你收集整理的ubuntu多显示器单触摸屏校准的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。