两个屏幕连接到GTX1060:监视器@dp-2和TV@HDMI-0。
在重新启动期间,屏幕配置似乎默认为HDMI作为主屏幕。即使在配置了Settings >中的设置之后,它也会在每次重新启动时重置。
登录屏幕和桌面都显示在电视上,而监视器根本没有接收到信号。
监视器应该被视为主屏幕,而不管最后的会话配置如何,电视都应该被忽略。
基本上如下:xrandr --output HDMI-0 --off和xrandr --output DP-2 --mode 2560x1080 --rate 144.00。
使用shell脚本,我可以自动更改输出,但只有在登录后(例如启动应用程序)。如何在登录屏幕之前/期间实现此配置?
我使用python脚本将音频和视频输出更改为HDMI,这样我就可以在电视上玩游戏了。将输出恢复到DP-2和USBAudio也很好。
systemctl服务失败,因为randr/X还没有准备好(?)添加After=display-manager.service也不起作用。
发布于 2021-01-01 14:25:06
文件~/.config/monitors.xml列出监视器配置。我的文件配置不正确,以下内容解决了我的问题:
<monitors version="2">
<configuration>
<logicalmonitor>
<x>0</x>
<y>0</y>
<scale>1</scale>
<primary>yes</primary>
<monitor>
<monitorspec>
<connector>DP-0</connector>
<vendor>GSM</vendor>
<product>LG ULTRAWIDE</product>
<serial>0x0003b343</serial>
</monitorspec>
<mode>
<width>2560</width>
<height>1080</height>
<rate>144.00051879882812</rate>
</mode>
</monitor>
</logicalmonitor>
<disabled>
<monitorspec>
<connector>HDMI-1</connector>
<vendor>SAM</vendor>
<product>SAMSUNG</product>
<serial>0x01000e00</serial>
</monitorspec>
</disabled>
</configuration>
</monitors>注意:当我尝试使用连接器时,端口发生了变化。
https://askubuntu.com/questions/1304278
复制相似问题