nvidia-settings无法连接到Mir:无法连接到服务器套接字-无头ubuntu 16.04,如何解决?

时间:2018-06-20 12:52:26

标签: ubuntu-16.04 nvidia ubuntu-server

Ubuntu 16.04-无头

╰─# nvidia-smi
Wed Jun 20 14:30:06 2018
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 396.24.02              Driver Version: 396.24.02                 |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 108...  On   | 00000000:0A:00.0  On |                  N/A |
|  0%   22C    P8    11W / 320W |     19MiB / 11177MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      1946      G   /usr/lib/xorg/Xorg                            16MiB |
+-----------------------------------------------------------------------------+

到目前为止,我尝试了其他x台服务器。现在我正在使用“ lightdm”。

我尝试过

export DISPLAY=:0 nvidia-settings -a [gpu:0]/GPUFanControlState=1 ╰─# nvidia-settings -a [gpu:0]/GPUFanControlState=1 zsh: no matches found: [gpu:0]/GPUFanControlState=1

╰─# sudo DISPLAY=:0 XAUTHORITY=/var/run/lightdm/root/:0 nvidia-settings -a GPUFanControlState=1 [1] 3045 segmentation fault (core dumped) sudo DISPLAY=:0 XAUTHORITY=/var/run/lightdm/root/:0 nvidia-settings -a

以及其他变化。这是经典信息:

    ╰─# 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.

我尝试将屏幕连接到hdmi端口并断开连接。都给出相同的结果。

Cuda 9.0和cudnn7已安装并正常工作。

0 个答案:

没有答案