AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / unix / 问题

问题[touch-screen](unix)

Martin Hope
Darian Whisk
Asked: 2019-07-13 11:46:36 +0800 CST

在 16:10 的屏幕上调整 4:3 纵横比的触摸屏坐标

  • 1

您好,我最近一直在研究一种奇怪的设备。它是一款原生分辨率为 800x1280 的平板电脑——是的,它是向后的。显示器处于纵向模式,我必须进行一些 xorg 配置编辑来旋转屏幕和旋转触摸屏。如果我使用本机分辨率,这很好用,但是我试图让它使用 768x1024 分辨率。通过使用以下命令,我已成功获得 4:3 模式下的 768x1024 分辨率(侧面有黑条,这是我想要的)在平板电脑上显示:

user1:~ # xrandr --newmode "768x1024_60.00"   65.25  768 816 896 1024  1024 1027 1037 1063 -hsync +vsync
user1:~ # xrandr --addmode DSI-1 768x1024_60.00
user1:~ # xrandr -s 768x1024_60.00

我遇到的问题是让实际的触摸屏数字化仪与之对齐,就像它仍然停留在 16:10 一样。这是我的 xorg 配置文件:

user1:~ # cat /etc/X11/xorg.conf.d/99-touchscreen.conf
Section "InputClass"
        Identifier "evdev touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
        Option "SwapAxes" "true"
        Option "InvertY" "true"
EndSection

user1:~ # cat /etc/X11/xorg.conf.d/50-monitor.conf
Section "Monitor"
    Identifier "DSI-1"
    Option "Rotate" "right"
EndSection

以下是触摸屏的属性:

Device 'Goodix Capacitive TouchScreen':
    Device Enabled (152):   1
    Coordinate Transformation Matrix (154): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    Device Accel Profile (284):     0
    Device Accel Constant Deceleration (285):       1.000000
    Device Accel Adaptive Deceleration (286):       1.000000
    Device Accel Velocity Scaling (287):    10.000000
    Device Product ID (276):        1046, 9111
    Device Node (275):      "/dev/input/event2"
    Evdev Axis Inversion (288):     0, 1
    Evdev Axis Calibration (289):   <no items>
    Evdev Axes Swap (290):  1
    Axis Labels (291):      "Abs MT Position X" (282), "Abs MT Position Y" (283), "Abs MT Touch Major" (280), "Abs MT Width Major" (281), "None" (0), "None" (0)
    Button Labels (292):    "Button Unknown" (277), "Button Unknown" (277), "Button Unknown" (277), "Button Wheel Up" (158), "Button Wheel Down" (159)
    Evdev Scrolling Distance (293): 0, 0, 0
    Evdev Middle Button Emulation (294):    0
    Evdev Middle Button Timeout (295):      50
    Evdev Third Button Emulation (296):     0
    Evdev Third Button Emulation Timeout (297):     1000
    Evdev Third Button Emulation Button (298):      3
    Evdev Third Button Emulation Threshold (299):   20
    Evdev Wheel Emulation (300):    0
    Evdev Wheel Emulation Axes (301):       0, 0, 4, 5
    Evdev Wheel Emulation Inertia (302):    10
    Evdev Wheel Emulation Timeout (303):    200
    Evdev Wheel Emulation Button (304):     4
    Evdev Drag Lock Buttons (305):  0
    Evdev Kiosk Touch Mode (306):   0
    Evdev Kiosk Touch Button (307): 1
    Evdev Kiosk Touch Button Delay (308):   0

那么这是我需要编辑触摸矩阵的情况吗?对此有任何指示还是有更简单的方法?谢谢你的帮助。

resolution touch-screen
  • 1 个回答
  • 291 Views
Martin Hope
Tyler Durden
Asked: 2018-08-31 00:53:49 +0800 CST

ncurses的触摸屏,超越鼠标?

  • 4

ncurses 是否支持触摸屏计算机?触摸屏会在 ncurses 中触发与鼠标相同的事件吗?例如,点击触摸屏是否会在 ncurses 中产生“鼠标点击”事件?

我知道 ncurses 确实支持鼠标输入,所以我希望触摸屏可以像鼠标一样工作,它可以与 ncurses 交互。所以点击就像鼠标点击一样,拖动在两者中都是一样的。

但是触摸屏没有滚轮,也没有右键。此外,触摸屏可能具有鼠标没有的手势。

touch-screen ncurses
  • 1 个回答
  • 1112 Views
Martin Hope
OtterFox
Asked: 2018-02-03 09:30:33 +0800 CST

Xorg 没有在 xinput 中显示我的设备

  • 3

我有一个文件“51-mitsubishi.conf”,我已经创建并放置在 /usr/share/X11/xorg.conf.d/ 以及其他已经存在的 .conf 文件中。

查看 /var/log/Xorg.0.log 时,没有提及我的驱动程序或与我的 conf 文件相关的任何内容。

我知道 xorg 使用“AutoAddDevices”,这可能是导致问题的原因,但我还没有找到解决方案。

我可以使用 'lsmod | 查看我的驱动程序 grep “mitsubishi”,但它显示“Used By 0”。我应该提一下,我已将驱动程序添加到 /etc/modules 中,如下所示: lp mitsubishi_ts_serial rtc 驱动程序自动启动。

Xorg 似乎忽略了我的设备。关于我接下来应该做什么以让 Xorg 查看我的设备并附加到它的任何建议?

这是conf文件:

Section "InputClass" 
Identifier "MitsubishiTouchscreen" 
MatchIsTouchscreen "true" 
EndSection

Section "InputDevice" 
Identifier "MitsubishiTouchscreen" 
Driver "mitsubishi_ts_serial" 
Option "Device" "/dev/ttyUSB0" 
Option "BaudRate" "38400" 
Option "MinX" "0" 
Option "MaxX" "2000" 
Option "MinY" "0" 
Option "MaxY" "2000" 
Option "UntouchDelay" "10" 
Option "ReportDelay" "10" 
Option "SendCoreEvents" "yes" 
Option "ScreenNumber" "0" 
Option "ButtonNumber" "1" 
EndSection
xorg touch-screen
  • 1 个回答
  • 2470 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    模块 i915 可能缺少固件 /lib/firmware/i915/*

    • 3 个回答
  • Marko Smith

    无法获取 jessie backports 存储库

    • 4 个回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    user12345 无法获取 jessie backports 存储库 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl 为什么大多数 systemd 示例都包含 WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve