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 / 问题 / 529896
Accepted
Darian Whisk
Darian Whisk
Asked: 2019-07-13 11:46:36 +0800 CST2019-07-13 11:46:36 +0800 CST 2019-07-13 11:46:36 +0800 CST

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

  • 772

您好,我最近一直在研究一种奇怪的设备。它是一款原生分辨率为 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 1 个回答
  • 291 Views

1 个回答

  • Voted
  1. Best Answer
    Darian Whisk
    2019-07-13T13:22:55+08:002019-07-13T13:22:55+08:00

    我能够使用 来解决这个问题xinput_calibrator,这给了我正确的 xorg 校准数据。

    基本上,打开一个终端窗口并启动 xinput_calibrator 并触摸它要求您触摸的点。完成后,终端窗口将输出与 xorg 一起使用的信息:

    user1:~> xinput_calibrator
    Calibrating EVDEV driver for "Goodix Capacitive TouchScreen" id=11
            current calibration values (from XInput): min_x=66, max_x=725 and min_y=-5, max_y=1284
    
    Doing dynamic recalibration:
            Setting new calibration data: 61, 730, -3, 1272
    
    
    --> Making the calibration permanent <--
      copy the snippet below into '/etc/X11/xorg.conf.d/99-calibration.conf'
    Section "InputClass"
            Identifier      "calibration"
            MatchProduct    "Goodix Capacitive TouchScreen"
            Option  "Calibration"   "61 730 -3 1272"
    EndSection
    
    • 1

相关问题

  • X11 窗口的屏幕尺寸是否可以设置为高于显示器的分辨率,并且视图可以围绕较大的显示器进行平移?

  • ncurses的触摸屏,超越鼠标?

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

  • 如何取回外接显示器的原始分辨率?[关闭]

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