我的笔记本电脑 HDMI 端口连接了一个外接显示器。当我启动我的笔记本电脑时,笔记本电脑屏幕和显示器都成功打开并且运行良好。但是,每当我拔下外接显示器,然后重新插入时,Ubuntu 都无法检测到显示器已再次插入,并显示为已断开连接。让外接显示器再次打开的唯一方法是重新启动我的笔记本电脑。
笔记本电脑规格:Dell Inspiron 15 Gaming Nvidia GeForce GTX 960M
lshw 显示部分的输出:
*-display
description: 3D controller
product: GM107M [GeForce GTX 960M]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:01:00.0
version: a2
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list rom
configuration: driver=nvidia latency=0
resources: irq:130 memory:e2000000-e2ffffff memory:d0000000-dfffffff memory:e0000000-e1ffffff ioport:e000(size=128) memory:e3000000-e307ffff
Run Code Online (Sandbox Code Playgroud)
这是连接两个屏幕时我的 xrandr 输出:
Screen 0: minimum 8 x 8, current 3840 x 1113, maximum 16384 x 16384
eDP-1-1 connected primary 1920x1080+0+33 344mm x 193mm …Run Code Online (Sandbox Code Playgroud)