本帖最后由 水精灵 于 2023-10-24 09:59 编辑

注意:如果想翻转屏幕后触摸正常,那么需要在翻转前进行触摸校准。

1.打开配置文件
root@ELF1:~# vi /etc/X11/xorg.conf

2.添加如下标红内容
Section "Device"
    Identifier "Kernel Framebuffer Device"
    Driver "fbdev"
Option "fbdev" "/dev/fb0"
Option "Rotate" "UD" //显示旋转 180°
EndSection

Section "ServerFlags"
    Option "BlankTime" "0"
    Option "StandbyTime" "0"
    Option "SuspendTime" "0"
    Option "OffTime" "0"
EndSection

Section "InputClass"
    Identifier "calibration"
    MatchProduct "goodix-ts" //设置当前触摸设备
    MatchDevicePath "/dev/input/event*" //设备节点
    Option "InvertY" "1" //翻转 Y
    Option "InvertX" "1" //翻转 X
EndSection
效果如下:
1.png
保存退出。

3.断电,连接屏幕,上电,等待系统启动完成,此时可以看到qt界面已经翻转180度。
效果图如下:
2.jpg 1.jpg

0

主题

1

回帖

4

积分

新手上路

积分
4
发表于 3 小时前 | 显示全部楼层
板凳

1win_rvKi

как зарегистрироваться в 1win http://1win10030.ru/ .

2

主题

1

回帖

14

积分

新手上路

积分
14
发表于 10 小时前 | 显示全部楼层
沙发
Hello guys!
I came across a 110 interesting site that I think you should browse.
This tool is packed with a lot of useful information that you might find helpful.
It has everything you could possibly need, so be sure to give it a visit!
https://www.internetvibes.net/2025/01/22/why-tech-cant-solve-loneliness/
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    Powered by Discuz! X3.5  © 2001-2013 Comsenz Inc.