Configure an headless server with Nvidia GPU with option to plug in monitor

Forum / NoMachine for Linux / Configure an headless server with Nvidia GPU with option to plug in monitor

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #25807
    FredRon
    Participant

    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?

    #25869
    graywolf
    Participant

    Hello. I think rebooting is not necessary. In order to make changes effective, restarting the display manager is enough: systemctl restart display-manager.

Viewing 2 posts - 1 through 2 (of 2 total)

This topic was marked as solved, you can't post.