Hi,
I have a scenario where workstations with Nvidia GPUs have to be accessible through NoMachine without any monitor attached.
I know this xorg configuration allows to do just that:
pcibus=$(nvidia-xconfig –query-gpu-info | grep -o ‘PCI:.*’)
sudo nvidia-xconfig -a –allow-empty-initial-configuration –use-display-device=None –virtual=1920×1200 –busid {$pcibus}
However, if I want to revert to using a monitor, I have to undo this configuration and reboot the computer.
I would like to find a way to switch headless mode on and off at will, without rebooting the computer if it can be helped.
Is this the right place to ask this?