Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
15.9屏幕旋转显示及触控屏坐标问题。(已解决)
Experiences and Insight
582
views ·
0
replies ·
To
floor
Go
stan1
deepin
2019-04-11 18:18
Author
本帖最后由 stan1 于 2019-4-11 12:25 编辑
解决方式:使用显卡驱动管理器,使用intel加速模式,修改配置文件解决触控坐标翻转问题。
故障发现及处理过程:
1.硬件:1200X1900的右旋屏幕。win10下支持自动旋转。
15.5 下,通过设置屏幕旋转,正常显示,无问题。
15.9下 旋转屏幕,直接黑屏,通过https://github.com/linuxdeepin/internal-discussion/issues/871解决。
向左旋转90度 xrandr -o left
向右旋转90度 xrandr -o right
上下翻转 xrandr -o inverted
归位(向上) xrandr -o normal
然后通过命令行旋转-归位。
降低分辨率到1024X768,理论上,旋转屏幕,设备各个方向都能输出。
结果发现只要旋转了,还是黑屏。
初步判断屏幕驱动有问题。
Screen 0: minimum 320 x 200, current 1200 x 1920, maximum 8192 x 8192
eDP-1 connected primary 1200x1920+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1200x1920 59.98*+
1920x1200 59.88 59.95
1920x1080 60.01 59.97 59.96 59.93
1600x1200 60.00
1680x1050 59.95 59.88
1600x1024 60.17
1400x1050 59.98
1600x900 59.99 59.94 59.95 59.82
1280x1024 60.02
1440x900 59.89
1400x900 59.96 59.88
1280x960 60.00
1440x810 60.00 59.97
1368x768 59.88 59.85
1360x768 59.80 59.96
1280x800 59.99 59.97 59.81 59.91
1152x864 60.00
1280x720 60.00 59.99 59.86 59.74
1024x768 60.04 60.00
960x720 60.00
928x696 60.05
896x672 60.01
1024x576 59.95 59.96 59.90 59.82
960x600 59.93 60.00
960x540 59.96 59.99 59.63 59.82
800x600 60.00 60.32 56.25
840x525 60.01 59.88
864x486 59.92 59.57
800x512 60.17
700x525 59.98
800x450 59.95 59.82
640x512 60.02
720x450 59.89
700x450 59.96 59.88
640x480 60.00 59.94
720x405 59.51 58.99
684x384 59.88 59.85
680x384 59.80 59.96
640x400 59.88 59.98
576x432 60.06
640x360 59.86 59.83 59.84 59.32
512x384 60.00
512x288 60.00 59.92
480x270 59.63 59.82
400x300 60.32 56.34
432x243 59.92 59.57
320x240 60.05
360x202 59.51 59.13
320x180 59.84 59.32
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)
2.发现有个显卡驱动管理
a.使用兼容模式,屏幕旋转正常,但是屏幕效果太慢,各种等待。没法操作。放弃。
b.使用加速模式,屏幕旋转正常。速度响应没问题。
c.再切换回默认模式,屏幕还是旋转黑屏。
看来只能使用intel加速模式。
3.发现旋转后屏幕触控位置不对。。。。
找到https://blog.csdn.net/u013491946/article/details/79895853
安装xinput
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
然后重启生效。
4.至此,屏幕旋转及触控问题完全解决。
Reply
Like 0
Favorite
View the author
All Replies
No replies yet
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Events
More
解决方式:使用显卡驱动管理器,使用intel加速模式,修改配置文件解决触控坐标翻转问题。
故障发现及处理过程:
1.硬件:1200X1900的右旋屏幕。win10下支持自动旋转。
15.5 下,通过设置屏幕旋转,正常显示,无问题。
15.9下 旋转屏幕,直接黑屏,通过https://github.com/linuxdeepin/internal-discussion/issues/871解决。
- 向右旋转90度 xrandr -o right
- 上下翻转 xrandr -o inverted
- 归位(向上) xrandr -o normal
然后通过命令行旋转-归位。降低分辨率到1024X768,理论上,旋转屏幕,设备各个方向都能输出。
结果发现只要旋转了,还是黑屏。
初步判断屏幕驱动有问题。
Screen 0: minimum 320 x 200, current 1200 x 1920, maximum 8192 x 8192
eDP-1 connected primary 1200x1920+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1200x1920 59.98*+
1920x1200 59.88 59.95
1920x1080 60.01 59.97 59.96 59.93
1600x1200 60.00
1680x1050 59.95 59.88
1600x1024 60.17
1400x1050 59.98
1600x900 59.99 59.94 59.95 59.82
1280x1024 60.02
1440x900 59.89
1400x900 59.96 59.88
1280x960 60.00
1440x810 60.00 59.97
1368x768 59.88 59.85
1360x768 59.80 59.96
1280x800 59.99 59.97 59.81 59.91
1152x864 60.00
1280x720 60.00 59.99 59.86 59.74
1024x768 60.04 60.00
960x720 60.00
928x696 60.05
896x672 60.01
1024x576 59.95 59.96 59.90 59.82
960x600 59.93 60.00
960x540 59.96 59.99 59.63 59.82
800x600 60.00 60.32 56.25
840x525 60.01 59.88
864x486 59.92 59.57
800x512 60.17
700x525 59.98
800x450 59.95 59.82
640x512 60.02
720x450 59.89
700x450 59.96 59.88
640x480 60.00 59.94
720x405 59.51 58.99
684x384 59.88 59.85
680x384 59.80 59.96
640x400 59.88 59.98
576x432 60.06
640x360 59.86 59.83 59.84 59.32
512x384 60.00
512x288 60.00 59.92
480x270 59.63 59.82
400x300 60.32 56.34
432x243 59.92 59.57
320x240 60.05
360x202 59.51 59.13
320x180 59.84 59.32
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)
2.发现有个显卡驱动管理
a.使用兼容模式,屏幕旋转正常,但是屏幕效果太慢,各种等待。没法操作。放弃。
b.使用加速模式,屏幕旋转正常。速度响应没问题。
c.再切换回默认模式,屏幕还是旋转黑屏。
看来只能使用intel加速模式。
3.发现旋转后屏幕触控位置不对。。。。
找到https://blog.csdn.net/u013491946/article/details/79895853安装xinput
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
然后重启生效。
4.至此,屏幕旋转及触控问题完全解决。