我有一台联想 Ideapad 330,配有两块显卡,英特尔和英伟达。我将 HDMI 连接到外接显示器,显示器被检测到。显示器暂时从安全模式恢复(连接后立即恢复),然后显示没有信号,然后又回到安全模式。
在 Ubuntu 设置 -> 显示中,我尝试了所有选项,包括加入显示、镜像和单显示(仅使用外接显示器)。但它们都不起作用。
在“连接显示”和“单一显示”中,会显示显示器的型号。因此,它似乎被很好地检测到了。
以下是 xrandr 的输出:
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
1920x1080 60.00*+ 59.97 59.96 59.93
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 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 518mm x 324mm
1920x1200 59.95 +
1920x1080 60.00* 60.00 50.00 59.94 24.00 23.98
1920x1080i 60.00 60.00 50.00 59.94
1600x1200 60.00
1280x1024 75.02 60.02
1152x864 75.00
1280x720 60.00 60.00 50.00 59.94
1024x768 75.03 60.00
800x600 75.00 60.32
720x576 50.00 50.00
720x576i 50.00 50.00
720x480 60.00 60.00 59.94 59.94 59.94
720x480i 60.00 60.00 59.94 59.94
640x480 75.00 60.00 59.94 59.94
720x400 70.08
当我拔下 HDMI 时(奇怪),我在 journalctl 中看到了这一点,一直记录着大量这样的消息:
wrz 30 23:15:42 myname-lenovo kernel: audit: type=1400 audit(1569878142.636:7225580): apparmor="DENIED" operation="open" profile="snap.gnome-system-monitor.gnome-system-monitor" name="/run/systemd/sessions/2" pid=9231 comm="gnome-system-mo" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
wrz 30 23:15:42 myname-lenovo kernel: audit: type=1400 audit(1569878142.636:7225581): apparmor="DENIED" operation="open" profile="snap.gnome-system-monitor.gnome-system-monitor" name="/run/systemd/sessions/2" pid=9231 comm="gnome-system-mo" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
wrz 30 23:15:42 myname-lenovo kernel: audit: type=1400 audit(1569878142.636:7225582): apparmor="DENIED" operation="open" profile="snap.gnome-system-monitor.gnome-system-monitor" name="/run/systemd/sessions/2" pid=9231 comm="gnome-system-mo" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
wrz 30 23:15:42 myname-lenovo audit[9231]: AVC apparmor="DENIED" operation="open" profile="snap.gnome-system-monitor.gnome-system-monitor" name="/run/systemd/sessions/2" pid=9231 comm="gnome-system-mo" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
wrz 30 23:15:42 myname-lenovo audit[9231]: AVC apparmor="DENIED" operation="open" profile="snap.gnome-system-monitor.gnome-system-monitor" name="/run/systemd/sessions/2" pid=9231 comm="gnome-system-mo" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
wrz 30 23:15:42 myname-lenovo audit[9231]: AVC apparmor="DENIED" operation="open" profile="snap.gnome-system-monitor.gnome-system-monitor" name="/run/systemd/sessions/2" pid=9231 comm="gnome-system-mo" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
wrz 30 23:15:42 myname-lenovo audit[9231]: AVC apparmor="DENIED" operation="open" profile="snap.gnome-system-monitor.gnome-system-monitor" name="/run/systemd/sessions/2" pid=9231 comm="gnome-system-mo" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
当我插入 HDMI 时,我得到了这个:
wrz 30 23:17:59 myname-lenovo /usr/lib/gdm3/gdm-x-session[1423]: (II) modeset(0): EDID vendor "BOE", prod id 1955
wrz 30 23:17:59 myname-lenovo /usr/lib/gdm3/gdm-x-session[1423]: (II) modeset(0): Printing DDC gathered Modelines:
wrz 30 23:17:59 myname-lenovo /usr/lib/gdm3/gdm-x-session[1423]: (II) modeset(0): Modeline "1920x1080"x0.0 141.39 1920 1968 2000 2104 1080 1083 1089 1120 +hsync -vsync (67.2 kHz eP)
wrz 30 23:17:59 myname-lenovo /usr/lib/gdm3/gdm-x-session[1423]: (--) modeset(0): HDMI max TMDS frequency 225000KHz
wrz 30 23:17:59 myname-lenovo /usr/lib/gdm3/gdm-x-session[1423]: (II) modeset(0): EDID vendor "BOE", prod id 1955
wrz 30 23:17:59 myname-lenovo /usr/lib/gdm3/gdm-x-session[1423]: (II) modeset(0): Printing DDC gathered Modelines:
wrz 30 23:17:59 myname-lenovo /usr/lib/gdm3/gdm-x-session[1423]: (II) modeset(0): Modeline "1920x1080"x0.0 141.39 1920 1968 2000 2104 1080 1083 1089 1120 +hsync -vsync (67.2 kHz eP)
wrz 30 23:17:59 myname-lenovo /usr/lib/gdm3/gdm-x-session[1423]: (--) modeset(0): HDMI max TMDS frequency 225000KHz
wrz 30 23:17:59 myname-lenovo /usr/lib/gdm3/gdm-x-session[1423]: (II) modeset(0): EDID vendor "BOE", prod id 1955
wrz 30 23:17:59 myname-lenovo /usr/lib/gdm3/gdm-x-session[1423]: (II) modeset(0): Printing DDC gathered Modelines:
wrz 30 23:17:59 myname-lenovo /usr/lib/gdm3/gdm-x-session[1423]: (II) modeset(0): Modeline "1920x1080"x0.0 141.39 1920 1968 2000 2104 1080 1083 1089 1120 +hsync -vsync (67.2 kHz eP)
wrz 30 23:17:59 myname-lenovo /usr/lib/gdm3/gdm-x-session[1423]: (--) modeset(0): HDMI max TMDS frequency 225000KHz
wrz 30 23:17:59 myname-lenovo /usr/lib/gdm3/gdm-x-session[1423]: (II) modeset(0): EDID vendor "BOE", prod id 1955
wrz 30 23:17:59 myname-lenovo /usr/lib/gdm3/gdm-x-session[1423]: (II) modeset(0): Printing DDC gathered Modelines:
wrz 30 23:17:59 myname-lenovo /usr/lib/gdm3/gdm-x-session[1423]: (II) modeset(0): Modeline "1920x1080"x0.0 141.39 1920 1968 2000 2104 1080 1083 1089 1120 +hsync -vsync (67.2 kHz eP)
wrz 30 23:17:59 myname-lenovo /usr/lib/gdm3/gdm-x-session[1423]: (--) modeset(0): HDMI max TMDS frequency 225000KHz
wrz 30 23:17:59 myname-lenovo /usr/lib/gdm3/gdm-x-session[1423]: (II) modeset(0): EDID vendor "BOE", prod id 1955
wrz 30 23:17:59 myname-lenovo /usr/lib/gdm3/gdm-x-session[1423]: (II) modeset(0): Printing DDC gathered Modelines:
wrz 30 23:17:59 myname-lenovo /usr/lib/gdm3/gdm-x-session[1423]: (II) modeset(0): Modeline "1920x1080"x0.0 141.39 1920 1968 2000 2104 1080 1083 1089 1120 +hsync -vsync (67.2 kHz eP)
wrz 30 23:17:59 myname-lenovo /usr/lib/gdm3/gdm-x-session[1423]: (--) modeset(0): HDMI max TMDS frequency 225000KHz
wrz 30 23:17:59 myname-lenovo /usr/lib/gdm3/gdm-x-session[1423]: (II) modeset(0): EDID vendor "BOE", prod id 1955
wrz 30 23:17:59 myname-lenovo /usr/lib/gdm3/gdm-x-session[1423]: (II) modeset(0): Printing DDC gathered Modelines:
wrz 30 23:17:59 myname-lenovo /usr/lib/gdm3/gdm-x-session[1423]: (II) modeset(0): Modeline "1920x1080"x0.0 141.39 1920 1968 2000 2104 1080 1083 1089 1120 +hsync -vsync (67.2 kHz eP)
wrz 30 23:17:59 myname-lenovo /usr/lib/gdm3/gdm-x-session[1423]: (--) modeset(0): HDMI max TMDS frequency 225000KHz
wrz 30 23:17:59 myname-lenovo gsd-color[1202]: no xrandr-Dell Inc.-DELL U2413-84K963B4A96L device found: Failed to find output xrandr-Dell Inc.-DELL U2413-84K963B4A96L
wrz 30 23:18:00 myname-lenovo audit[9231]: AVC apparmor="DENIED" operation="open" profile="snap.gnome-system-monitor.gnome-system-monitor" name="/run/systemd/sessions/2" pid=9231 comm="gnome-system-mo" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
当我运行时,xrandr --output HDMI-1 --auto --same-as eDP-1
我得到:wrz 30 23:19:27 myname-lenovo /usr/lib/gdm3/gdm-x-session[1423]: (II)
modeset(0): EDID vendor "BOE", prod id 1955
wrz 30 23:19:27 myname-lenovo /usr/lib/gdm3/gdm-x-session[1423]: (II) modeset(0): Printing DDC gathered Modelines:
wrz 30 23:19:27 myname-lenovo /usr/lib/gdm3/gdm-x-session[1423]: (II) modeset(0): Modeline "1920x1080"x0.0 141.39 1920 1968 2000 2104 1080 1083 1089 1120 +hsync -vsync (67.2 kHz eP)
wrz 30 23:19:27 myname-lenovo /usr/lib/gdm3/gdm-x-session[1423]: (--) modeset(0): HDMI max TMDS frequency 225000KHz
wrz 30 23:19:27 myname-lenovo /usr/lib/gdm3/gdm-x-session[1423]: (II) modeset(0): EDID vendor "BOE", prod id 1955
wrz 30 23:19:27 myname-lenovo /usr/lib/gdm3/gdm-x-session[1423]: (II) modeset(0): Printing DDC gathered Modelines:
wrz 30 23:19:27 myname-lenovo /usr/lib/gdm3/gdm-x-session[1423]: (II) modeset(0): Modeline "1920x1080"x0.0 141.39 1920 1968 2000 2104 1080 1083 1089 1120 +hsync -vsync (67.2 kHz eP)
wrz 30 23:19:27 myname-lenovo /usr/lib/gdm3/gdm-x-session[1423]: (--) modeset(0): HDMI max TMDS frequency 225000KHz
wrz 30 23:19:27 myname-lenovo gnome-control-c[13318]: Config not applicable: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: Logical monitors not adjecent
wrz 30 23:19:28 myname-lenovo gnome-control-c[13318]: Config not applicable: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: Logical monitors not adjecent
我还可以尝试什么?
答案1
您可以尝试使用该xrandr
工具进行连接。我倾向于使用的命令如下
xrandr --output HDMI1 --auto --left-of eDP1
--output
:这表示xrandr
您想要修改一个(或多个)输出
HDMI1
:这是您要修改的输出,可以从xrandr
的转储中获取。(虽然我认为对于大多数用例来说HDMI1
应该是正确的[有人可以证实这一点吗?])
--auto
:自动设置一些设置?(我不太记得这个是干什么的)
--left-of
:设置第二屏幕的位置或方向,可以传入--left-of
、--right-of
、--above
、--below
和--same-as
eDP1
:默认屏幕的名称。