I am using vnc to share my ubuntu machine screen to windows vnc client and it works fine but when I disconnect the ubuntu machines HDMI to monitor connection the vnc server stops serving the feed and my vnc client display freezes. When I did some research I saw that I have to set hdmi_force_hotplug=1
inside the /boot/config.txt
file but this is for raspberry pi os what is the equivalent solution for Ubuntu 22.04.2 LTS? Thanks in advance.
Link where I found the raspberry pi vnc solution: https://forums.raspberrypi.com/viewtopic.php?t=162734