眼镜:
4x GTX 1080
nVidia 390.25
Ubuntu Server 17.10
Kernel 4.13.0-32-generic
目标:无头系统在启动时运行以下风扇控制脚本:
nvidia-settings -a [gpu:0]/GPUFanControlState=1
nvidia-settings -a [fan:0]/GPUTargetFanSpeed=100
nvidia-settings -a [gpu:1]/GPUFanControlState=1
nvidia-settings -a [fan:1]/GPUTargetFanSpeed=100
nvidia-settings -a [gpu:2]/GPUFanControlState=1
nvidia-settings -a [fan:2]/GPUTargetFanSpeed=100
nvidia-settings -a [gpu:3]/GPUFanControlState=1
nvidia-settings -a [fan:3]/GPUTargetFanSpeed=100
其中任何一行都会产生以下消息:
Unable to init server: Could not connect: Connection refused
ERROR The control display is undefined; please run 'nvidia-settings --help' for usage information
nvidia-smi 报告称任何 GPU 上都没有运行 Xorg 进程,问题似乎就出在这里。我猜是缺少一个或多个软件包或未正确设置,但这并不能缩小我的问题范围。有什么想法吗?