nvidia-settings on headless server
Is it possible to run nvidia-settings to control clock frequencies and the other parameters this command is used for on a headless server with no display? When run, this is the output: [code]# nvidia-settings Failed to connect to Mir: Failed to connect to server socket: No such file or directory Unable to init server: Could not connect: Connection refused ERROR: The control display is undefined; please run `nvidia-settings --help` for usage information.[/code] Am I barking up the wrong tree? The application domain is ethereum mining, and we have Nvidia P109 cards that are not designed for graphics display.
Is it possible to run nvidia-settings to control clock frequencies and the other parameters this command is used for on a headless server with no display? When run, this is the output:

# nvidia-settings
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused

ERROR: The control display is undefined; please run `nvidia-settings --help` for usage information.


Am I barking up the wrong tree? The application domain is ethereum mining, and we have Nvidia P109 cards that are not designed for graphics display.

#1
Posted 09/27/2017 10:35 AM   
To use nvidia-settings, an xserver has to be started on the/every gpu, even if it's not used for display. Use Option "AllowEmptyInitialConfiguration" in device section of xorg.conf to have it started without connected displays.
To use nvidia-settings, an xserver has to be started on the/every gpu, even if it's not used for display. Use
Option "AllowEmptyInitialConfiguration"
in device section of xorg.conf to have it started without connected displays.

#2
Posted 09/27/2017 01:12 PM   
Thanks - this is helpful. Would it be possible to see just a small example of an entry required for an Nvidia GTX 1070 card? Adding that option to the xorg.conf file created by nvidia-xconfig does not appear to achieve anything, except for allowing the X server to run. I am still unable to connect to it with nvidia-settings.
Thanks - this is helpful. Would it be possible to see just a small example of an entry required for an Nvidia GTX 1070 card? Adding that option to the xorg.conf file created by nvidia-xconfig does not appear to achieve anything, except for allowing the X server to run. I am still unable to connect to it with nvidia-settings.

#3
Posted 09/27/2017 11:42 PM   
Over ssh DISPLAY=:0 XAUTHORITY=/var/run/lightdm/root/:0 nvidia-settings -a [gpu:0]/GPUFanControlState=1 DISPLAY=:0 XAUTHORITY=/var/run/lightdm/root/:0 nvidia-settings -a [fan:0]/GPUTargetFanSpeed=75
Answer Accepted by Original Poster
Over ssh

DISPLAY=:0 XAUTHORITY=/var/run/lightdm/root/:0 nvidia-settings -a [gpu:0]/GPUFanControlState=1
DISPLAY=:0 XAUTHORITY=/var/run/lightdm/root/:0 nvidia-settings -a [fan:0]/GPUTargetFanSpeed=75

#4
Posted 09/28/2017 03:55 AM   
Is it still necessary to keep the X context open if you enable persistence mode with nvidia-smi?
Is it still necessary to keep the X context open if you enable persistence mode with nvidia-smi?

#5
Posted 10/28/2017 11:23 PM   
Scroll To Top

Add Reply