Starting from ubuntu 18.04 LTS, if display is not connected, screen does not refresh if connected over VNC. Anybody noticed?
To fix this, either we have connect physical display to system or we have to install dummy display packages and create xorg.conf file display configs
File '/etc/X11/xorg.conf' content:
Section "Device" Identifier "Configured Video Device"
Driver "dummy"
VideoRam 256000
EndSection
Section "Monitor"
Identifier "Configured Monitor"
HorizSync 5.0 - 1000.0
VertRefresh 5.0 - 200.0
ModeLine "1920x1080" 148.50 1920 2448 2492 2640 1080 1084 1089 1125 +Hsync +Vsync
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1920x1080"
EndSubSection
EndSection
Packages to be installed:
sudo apt-get install xorg-video-abi-23 -y;
sudo apt-get install xserver-xorg-video-dummy -y;
sudo apt-get install xserver-xorg-core -y
Do we have any fix for this or an alternative? Because it's not feasible to connect the physical display to each machine and installing a dummy display will not provide any output on the physical display in case we want to debug the system issue directly.