使用 Xubuntu 19.10,我正在尝试校准 Toughbook CF-19 MK5 的触摸屏。我已经xinput_calibrator
按照其他人的建议使用它完成并给了我一个片段以复制到 xorg.conf 文件中,但是有一个问题:
chris@helmhorn:~$ sudo xinput_calibrator -v
Calibrating standard Xorg driver "Fujitsu Component USB Touch Panel Pen (0)"
current calibration values: min_x=0, max_x=16777215 and min_y=0, max_y=16777215
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: Name 'Fujitsu Component USB Touch Panel Pen (0)' does not match any in '/sys/class/input/event*/device/name'
--> 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 "!!Name_Of_TouchScreen!!"
Option "MinX" "1267029"
Option "MaxX" "16165546"
Option "MinY" "615310"
Option "MaxY" "14567195"
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
Change '!!Name_Of_TouchScreen!!' to your device's name in the config above.
未应用校准,将代码段/usr/share/X11/xorg.conf.d/99-calibration.conf
与其他 xorg 文件放在一起并重新启动无效。我怀疑错误信息Name 'Fujitsu Component USB Touch Panel Pen (0)' does not match any in '/sys/class/input/event*/device/name'
是关键,但通过谷歌找不到太多信息。
比较来自两个相关来源的设备名称:
chris@helmhorn:~$ cat /sys/class/input/event*/device/name | grep Fujitsu
Fujitsu Component USB Touch Panel
chris@helmhorn:~$ sudo xinput_calibrator --list
Device "Fujitsu Component USB Touch Panel Pen (0)" id=13
设备名称不完全匹配,将这些值中的任何一个放在 xorg.conf.d 文件中都没有效果。
编辑:我在谷歌上能找到的最好的信息是这个韩语网站,我必须和翻译一起阅读;基本上它建议使用不同的匹配器,如MatchUSBID "28bd: 000c"
.
这是迄今为止我发现的最清晰的信息:
chris@helmhorn:~$ sudo xinput --list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ PS/2 Generic Mouse id=11 [slave pointer (2)]
⎜ ↳ Fujitsu Component USB Touch Panel Pen (0) id=13 [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)]
↳ Fujitsu Component USB Touch Panel id=9 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=10 [slave keyboard (3)]
↳ Panasonic Laptop Support id=12 [slave keyboard (3)]
chris@helmhorn:~$ sudo xinput_calibrator --list
Device "Fujitsu Component USB Touch Panel Pen (0)" id=13
它仍然没有告诉我出了什么问题,但它将触摸面板和笔显示为单独的设备,并且校准器正在尝试使用笔。
编辑:我在同一硬件上发现了一个有非常相似问题的人最近发表的一篇博文。在 xorg.conf 不起作用后,他们决定创建一个xinput set-prop
在登录时调用的脚本。我会看看他们的解决方案是否适合我。作为奖励,他们谈到了我也需要的屏幕键盘。