Ubuntu – force VGA signal output even when xrandr shows ‘disconnected’

intel graphicskvm-switchvgaxrandr

My notebook is connected to a HDTV through a KVM Switch (one other notebook also connected to the same HDTV). The problem seems to be that Ubuntu doesn't recognize the HDTV to be turned on and therefore doesn't enable the VGA output. As far as I understand it has something to do with EDID information not being send trough the KVM Switch.

xrandr won't enable the VGA output through xrandr --output VGA1 --auto, it just keeps showing as disconnected.

Can I somehow force the VGA port to send a signal?

My Graphics Controller:

Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)

Best Answer

Yes,you can , but --auto is doing the right thing. Instead do something like:

xrandr --addmode VGA1 1024x768
xrandr --output VGA1 --mode 1024x768 --right-of LVDS1

For other users with a similar problem on all video outputs, first run xrandr to see what outputs you have.

~$ 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  

In this case the main screen is called eDP1 and the additional outputs are VGA1, HDMI1 and DP1 (Mini DisplayPort)

As an example, to force output to the Mini DisplayPort at 720x480 run

xrandr --addmode DP1 720x480

and then

xrandr --output DP1 --mode 720x480 --right-of eDP1
Related Question