gmonitor
gmonitor copied to clipboard
Unable to init server:
after I installed gmonitor, I can't run it as below error, but nvidia-smi run correctly what am I missing?
Unable to init server: Could not connect: Connection refused
ERROR: The control display is undefined; please run nvidia-settings --help
for usage information.
No gpus to monitor, terminating.
That sounds like you are running gmonitor through ssh?
If that's the case, make sure to add "-s" as described in the readme.
yes I am running gmonitor through ssh then when I add "-s", I got another error such as 'No protocol specified'
kyungsoo@workstation:~$ gmonitor -s No protocol specified Unable to init server: Could not connect: Connection refused
ERROR: The control display is undefined; please run nvidia-settings --help
for usage information.
No gpus to monitor, terminating.
below is nvidia-smi, seems my gpu is working good
Wed Jan 9 12:27:54 2019
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 390.87 Driver Version: 390.87 |
|-------------------------------+----------------------+----------------------+
| 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... Off | 00000000:05:00.0 Off | N/A |
| 48% 81C P2 115W / 250W | 6244MiB / 11176MiB | 55% Default |
+-------------------------------+----------------------+----------------------+
| 1 GeForce GTX 108... Off | 00000000:06:00.0 Off | N/A |
| 23% 42C P8 8W / 250W | 12MiB / 11178MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+ | Processes: GPU Memory | | GPU PID Type Process name Usage | |=============================================================================| | 0 1317 G /usr/lib/xorg/Xorg 9MiB | | 0 1359 G /usr/bin/gnome-shell 7MiB | | 0 25401 C python 6215MiB | +-----------------------------------------------------------------------------+
I'm getting the same thing, even with -s.
$ gmonitor -s
No protocol specified
ERROR: The control display is undefined; please run `nvidia-settings --help` for usage information.
No gpus to monitor, terminating.
$ nvidia-smi
Tue Jan 15 22:51:31 2019
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 390.87 Driver Version: 390.87 |
|-------------------------------+----------------------+----------------------+
| 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 105... Off | 00000000:02:00.0 On | N/A |
| 30% 30C P0 N/A / 75W | 344MiB / 4031MiB | 3% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1193 G /usr/libexec/Xorg 321MiB |
+-----------------------------------------------------------------------------+
Interestingly, both @RonenHong and I are using driver 390.87; I'm on a 32 bit system. @RonenHong, are you on a 32-bit system too? @mountassir, do you normally test on 32-bit or 64-bit?
The reason that I ask is because 390.87 is a long-lived driver and the latest 32-bit driver for my card, while the 64-bit driver for my card has been getting updates.
@mountassir I'm on a 64-bit system
I am using driver 410.79 on a 64-bit system running Ubuntu, it works on my side.
Can you please confirm Which version of gmonitor you are using? What operating system you are using?
On your ssh window, can you try running the following to rule out gmonitor?
DISPLAY=:0 nvidia-settings -t -q gpus
I see that both of you @RonenHong and @therealbstern are running pascal GPUs, it could be something specific to the drivers for that architecture, I am running a Maxwell GPU at the moment. Once I get some more details, I can swap my card and try to replicate this.
There was a mentionning of some dependency on nvidia-utils in https://aur.archlinux.org/packages/gmonitor-git/ , might be worth giving that a go.
@mountassir this is result of DISPLAY=:0 nvidia-settings -t -q gpus as below maybe do I miss something to configure?
kyungsoo@workstation:~$ DISPLAY=:0 nvidia-settings -t -q gpus Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect: Connection refused
ERROR: The control display is undefined; please run nvidia-settings --help
for
usage information.
$ DISPLAY=:0 nvidia-settings -t -q gpus
1 GPU on farad:0
[0] farad:0[gpu:0] (GeForce GTX 1050 Ti)
Has the following names:
GPU-0
GPU-eddc61a2-3b03-b07f-61f5-a5181af335ca