大约一个月前,我因未知原因失去了与第三台显示器的连接。我一直在等待更新能否修复这个问题,但这似乎是一个长期存在的问题。我需要帮助。
环境:基本 ubuntu 18.04 安装。带 TB16 底座的戴尔笔记本电脑。
我注意到我的xrandr
电脑上显示多个似乎不存在的显示器。这台笔记本电脑只有一个用于连接一个外部 HDMI 显示器的连接器。我猜这可能与问题有关(也许我将笔记本电脑连接到了某个外部第三显示器,导致某些设置出错)。
我尝试删除~/.config/monitors.xml
,但这对输出没有影响xrandr
。有没有办法删除或重置 xrandr 监控数据库?
与 Dock 断开连接时的 xrandr 输出:
$ xrandr|grep connect
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 309mm x 173mm
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)
从 Dock 连接时 xrandr 的输出:
$ xrandr|grep connect
eDP-1 connected primary 1920x1080+0+2160 (normal left inverted right x axis y axis) 309mm x 173mm
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)
DP-1-1 disconnected (normal left inverted right x axis y axis)
DP-1-2 connected 3840x2160+0+0 (normal left inverted right x axis y axis) 609mm x 349mm
DP-1-3 disconnected (normal left inverted right x axis y axis)
当我从 Dock 断开正在工作的外部显示器时,断开的显示器 (hd) 开始工作,并以与前一个显示器相同的名称显示在 xrandr 中:
$ xrandr|grep connect
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 309mm x 173mm
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)
DP-1-1 disconnected (normal left inverted right x axis y axis)
DP-1-2 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 527mm x 296mm
DP-1-3 disconnected (normal left inverted right x axis y axis)