即使 xrandr 显示“已断开连接”,我也可以强制输出 VGA 信号吗?

Tob*_*obe 12 xrandr intel-graphics vga kvm-switch

我的笔记本电脑通过 KVM 切换器连接到高清电视(另一台笔记本电脑也连接到同一台高清电视)。问题似乎是 Ubuntu 无法识别要打开的 HDTV,因此无法启用 VGA 输出。据我了解,这与未通过 KVM 切换器发送的 EDID 信息有关。

xrandr 不会通过 启用 VGA 输出xrandr --output VGA1 --auto,它只是一直显示为断开连接。

我可以以某种方式强制 VGA 端口发送信号吗?

我的图形控制器:

Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)
Run Code Online (Sandbox Code Playgroud)

小智 8

是的,你可以,但--auto正在做正确的事情。而是执行以下操作:

xrandr --addmode VGA1 1024x768
xrandr --output VGA1 --mode 1024x768 --right-of LVDS1
Run Code Online (Sandbox Code Playgroud)

对于在所有视频输出上有类似问题的其他用户,首先运行xrandr以查看您有哪些输出。

~$ xrandr -q
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
eDP1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 294mm x 165mm
   1920x1080      60.0*+   59.9     40.0  
   1680x1050      60.0     59.9  
   1600x1024      60.2  
   1400x1050      60.0  
   1280x1024      60.0  
   1440x900       59.9  
   1280x960       60.0  
   1360x768       59.8     60.0  
   1152x864       60.0  
   1024x768       60.0  
   800x600        60.3     56.2  
   640x480        59.9  
VGA1 disconnected (normal left inverted right x axis y axis)
   1024x768       60.0  
HDMI1 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)
   1024x768       60.0  
Run Code Online (Sandbox Code Playgroud)

在这种情况下,主屏幕称为 eDP1,附加输出为 VGA1、HDMI1 和 DP1(Mini DisplayPort)

例如,要以 720x480 的分辨率强制输出到 Mini DisplayPort,请运行

xrandr --addmode DP1 720x480
Run Code Online (Sandbox Code Playgroud)

进而

xrandr --output DP1 --mode 720x480 --right-of eDP1
Run Code Online (Sandbox Code Playgroud)