当前位置: 首页> 健康> 美食 > ubuntu屏幕旋转与触控屏坐标校准

ubuntu屏幕旋转与触控屏坐标校准

时间:2025/7/10 2:56:24来源:https://blog.csdn.net/w504430863/article/details/140792929 浏览次数:0次

一、首先需要涉及到的配置文件有:

1.桌面旋转配置文件:/etc/X11/xorg.conf

Section "Monitor"
    Identifier  "DSI-1"

#配置rotate 正常-normal, 左90°-left,  右90°-right, 翻转180°-inverted
    Option      "Rotate" "right" 
EndSection

2.触控屏校准配置文件:/usr/share/X11/xorg.conf.d/40-libinput.conf

Section "InputClass"
        Identifier "libinput touchscreen catchall"

#转置矩阵
        Option "TransformationMatrix" "1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0"

#校准矩阵
        Option "CalibrationMatrix" "-1.219822 0.0 1.124682 0.0 1.492537 -0.229478 0.0 0.0 1.0"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection

二、校准用到的工具

1.xinput_calibrator 这个工具输出的参数不能直接使用,需要根据校准坐标自己技术校准矩阵值

2.xinput.py

关键字:ubuntu屏幕旋转与触控屏坐标校准

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: