Actions
新建 #191
openrk3568 linux 旋转屏幕后触摸偏移
Start date:
03/08/2023
Due date:
% Done:
0%
Estimated time:
Description
版型:pro-rk3568
系统:ubunutu
需求:旋转屏幕
Files
Updated by 余 顺 about 2 years ago
- File linux 旋转系统界面 (1).pdf linux 旋转系统界面 (1).pdf added
参考附件的旋转显示界面 linux 旋转系统界面.pdf
触摸旋转参考 https://blog.csdn.net/PC1022/article/details/108200266
创建 /etc/X11/xorg.conf.d/40-libinput.conf 文件, 如果目录不存在则创建,然后编辑文件输入如下内容:
Section "InputClass"
Identifier "libinput touchscreen catchall"
Option "CalibrationMatrix" "0 1 0 -1 0 1 0 0 1" # 触摸旋转矩阵
MatchIsTouchscreen "on"
MatchDevicePath "/dev/input/event*" # 节点可以配置为具体节点名称,也可以配置扫描所有节点
Driver "libinput"
EndSection
触摸旋转矩阵:
"0 -1 1 1 0 0 0 0 1" 90度
"-1 0 1 0 -1 1 0 0 1" 180度
" 0 1 0 -1 0 1 0 0 1" 270度
"-1 0 1 1 0 0 0 0 1" xy对调
Updated by 余 顺 about 2 years ago
- Subject changed from rk3568 linux 旋转屏幕 to rk3568 linux 旋转屏幕后触摸偏移
Actions