Quantcast
Channel: openSUSE Forums
Viewing all articles
Browse latest Browse all 40713

nvidia-settings - How to call it from script on a server when nobody is logged ( No X display ).

$
0
0
Hello.
I need to set up the fan speed on my server.
When logged in, I can use this command to set up the fan speed to 30% :
Code:

/usr/bin/nvidia-settings -a "[gpu:0]/GPUFanControlState=1" -a "[fan:0]/GPUCurrentFanSpeed=30"
this one works also :
Code:

/usr/bin/nvidia-settings -a ":0[gpu:0]/GPUFanControlState=1" -a ":0[fan:0]/GPUCurrentFanSpeed=30"
I have created a service "after.local.service" and put the command in the associated after.local script.
I got the following error in /var/log/message :
Code:

No protocol specified. ERROR: The control display is undefined; please run `/usr/bin/nvidia-settings --help` for usage information.
How to setup fan speed after startup when nobody is logged in.

Any help is welcome.

Viewing all articles
Browse latest Browse all 40713

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>