Project

General

Profile

Actions

新建 #191

open

rk3568 linux 旋转屏幕后触摸偏移

Added by 余 顺 about 1 year ago. Updated about 1 year ago.

Status:
新建
Priority:
普通
Assignee:
-
Category:
display
Target version:
Start date:
03/08/2023
Due date:
% Done:

0%

Estimated time:

Description

版型:pro-rk3568

系统:ubunutu

需求:旋转屏幕


Files

Actions #1

Updated by 余 顺 about 1 year ago

参考附件的旋转显示界面 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对调

Actions #2

Updated by 余 顺 about 1 year ago

  • Subject changed from rk3568 linux 旋转屏幕 to rk3568 linux 旋转屏幕后触摸偏移
Actions

Also available in: Atom PDF