【bug反馈】15.X所有版本调整屏幕方向导致触屏反向
Tofloor
poster avatar
星辰使者
deepin
2019-04-11 18:49
Author
本帖最后由 deepin_zxr 于 2019-4-11 15:11 编辑

求助各位高手,如何解决调整屏幕方向后,触屏反向的问题,搜索了论坛里的帖子和网络上的解决方案,全部无法解决问题。请  @aida  帮忙向官方反馈下这个bug(2个月前已经提交)

Reply Favorite View the author
All Replies
avatar
stan1
deepin
2019-04-11 19:15
#1
本帖最后由 stan1 于 2019-4-11 12:28 编辑

+1
15.9发现这个问题。旋转屏幕后,触控点取的坐标还是旋转之前的xy轴坐标。导致这个问题。
1.试试这个:
https://blog.csdn.net/so_do_it/article/details/79269569

xinput --list-props id
这操作只针对特定触控屏幕,我这个屏幕没“Evdev Axes Swap”参数。

2.找到https://blog.csdn.net/u013491946/article/details/79895853
继续测试。
sudo apt-get install xinput

xinput --list
xinput --list-props id
发现我的设备用libinput驱动

解决问题:
sudo cp /usr/share/X11/xorg.conf.d/40-libinput.conf /etc/X11/xorg.conf.d/
下一步进入/etc/X11/xorg.conf.d/目录下修改40-libinput.conf 文件
cd /etc/X11/xorg.conf.d/
sudo nano 40-libinput.conf
找到touchscreen section
Section "InputClass"
        Identifier "libinput touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
EndSection
添加一行  Option "CalibrationMatrix" "0 1 0 -1 0 1 0 0 1        
结果为
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

然后重启生效






Reply View the author
Comments
deepin_zxr
2019-04-11 23:09
这个我试过了,好像我的不行
deepin_zxr
2019-04-11 23:07
好的,我试试
avatar
星辰使者
deepin
2019-04-15 19:03
#2
https://bbs.deepin.org/post/176643
+1
15.9发现这个问题。旋转屏幕后,触控点取的坐标还是旋转之前的xy轴坐标。导致这个问题。
1.试试这个:

旋转270度可以了
Reply View the author
avatar
oliverivy
deepin
2019-08-03 03:10
#3
https://bbs.deepin.org/post/176643
+1
15.9发现这个问题。旋转屏幕后,触控点取的坐标还是旋转之前的xy轴坐标。导致这个问题。
1.试试这个:

确实有效果了,但是方向还是不太对,请问参数应该怎么设置
Reply View the author
avatar
oliverivy
deepin
2019-08-03 03:31
#4
https://bbs.deepin.org/post/176643
+1
15.9发现这个问题。旋转屏幕后,触控点取的坐标还是旋转之前的xy轴坐标。导致这个问题。
1.试试这个:

我的应该是沿着中轴翻转了,不是旋转可以解决的
Reply View the author
avatar
oliverivy
deepin
2019-08-03 03:31
#5
https://bbs.deepin.org/post/176643
+1
15.9发现这个问题。旋转屏幕后,触控点取的坐标还是旋转之前的xy轴坐标。导致这个问题。
1.试试这个:

我的应该是沿着中轴翻转了,不是旋转可以解决的
Reply View the author