【问题标题】:Touchscreen on Raspberry Pi emits click not touchRaspberry Pi 上的触摸屏发出点击而不是触摸
【发布时间】:2016-07-12 19:52:02
【问题描述】:

我通过此链接校准触摸屏:http://www.circuitbasics.com/raspberry-pi-touchscreen-calibration-screen-rotation/

ls -la /dev/input/
total 0
drwxr-xr-x  4 root root     240 Jul 12 18:38 .
drwxr-xr-x 15 root root    3460 Jul 12 18:38 ..
drwxr-xr-x  2 root root     140 Jul 12 18:38 by-id
drwxr-xr-x  2 root root     140 Jul 12 18:38 by-path
crw-rw----  1 root input 13, 64 Jul 12 18:38 event0
crw-rw----  1 root input 13, 65 Jul 12 18:38 event1
crw-rw----  1 root input 13, 66 Jul 12 18:38 event2
crw-rw----  1 root input 13, 67 Jul 12 18:38 event3
crw-rw----  1 root input 13, 68 Jul 12 18:38 event4
crw-rw----  1 root input 13, 63 Jul 12 18:38 mice
crw-rw----  1 root input 13, 32 Jul 12 18:38 mouse0
crw-rw----  1 root input 13, 33 Jul 12 18:38 mouse1

root@raspberrypi:/sys/devices/virtual/input# cat input4/uevent 
PRODUCT=0/0/0/0
NAME="FT5406 memory based driver"
PROP=2
EV=b
KEY=400 0 0 0 0 0 0 0 0 0 0
ABS=2608000 3
MODALIAS=input:b0000v0000p0000e0000-e0,1,3,k14A,ra0,1,2F,35,36,39,mlsfw

root@raspberrypi:~# cat /etc/ts.conf
# Uncomment if you wish to use the linux input layer event interface
module_raw input

# Uncomment if you're using a Sharp Zaurus SL-5500/SL-5000d
# module_raw collie

# Uncomment if you're using a Sharp Zaurus SL-C700/C750/C760/C860
# module_raw corgi

# Uncomment if you're using a device with a UCB1200/1300/1400 TS interface
# module_raw ucb1x00

# Uncomment if you're using an HP iPaq h3600 or similar
# module_raw h3600

# Uncomment if you're using a Hitachi Webpad
# module_raw mk712

# Uncomment if you're using an IBM Arctic II
# module_raw arctic2

module pthres pmin=1
module variance delta=30
module dejitter delta=100
module linear

我只有在使用 xinput_calibrator 配置 X 时才会得到响应。当我输入这个命令时

sudo TSLIB_FBDEVICE=/dev/fb0 TSLIB_TSDEVICE=/dev/input/event1 ts_calibrate

我得到了选择

xres = 800, yres = 480
selected device is not a touchscreen I understand

谁能帮帮我,

提前致谢。

【问题讨论】:

    标签: raspberry-pi touchscreen


    【解决方案1】:

    我对此没有解决方案,但我认为这与触摸被视为鼠标悬停的问题有关。此错误已报告多次,但从未真正修复

    https://gitlab.gnome.org/GNOME/gtk/-/issues/945
    https://bugzilla.gnome.org/show_bug.cgi?id=789041
    https://bugs.launchpad.net/ubuntu-mate/+bug/1792787
    

    名为 niteshgupta16 的 bugzilla.gnome.org 用户创建了解决此问题的脚本,但该脚本已上传到 https://www.hastebin.com/uwuviteyeb.py 上名为 hastebin 的粘贴/共享服务。

    Hastebin 会删除 30 天内未访问过的文件。由于 hastebin 是一种 javascript 混淆服务,因此该文件在 archive.org 上不可用。

    我找不到 niteshgupta16 的电子邮件来询问他是否还有 uwuviteyeb.py。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-01-20
      • 1970-01-01
      • 1970-01-01
      • 2023-03-27
      • 2017-05-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多