Nvidia-settings: ERRORS (no display)

Hello,

I ssh from one system to other system using ssh -X inside VNC.
When I run nvidia-settings command on the other system, I receive:

$ nvidia-settings 
ERROR: Unable to load info from any available system

After setting $DISPLAY variable on the other system, I receive:

$ nvidia-settings 
No protocol specified
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

When I use root privileges on the other system using sudo su, I receive:

# nvidia-settings 

** (nvidia-settings:21188): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-VnEbfAnVr6: Connection refused

ERROR: Unable to load info from any available system

My aim is to modify GPUPowerMizerMode using nvidia-settings. But I am not able to get nvidia-settings display.

Other details of the system are:

$ uname -a
Linux sys23-MS-7B07 4.15.0-142-generic #146~16.04.1-Ubuntu SMP Tue Apr 13 09:27:15 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

My Nvidia graphic card is GeForce GT 730.

$ lspci | grep VGA
1f:00.0 VGA compatible controller: NVIDIA Corporation GK208B [GeForce GT 730] (rev a1)

Nvidia-driver version is 470.103.01.

$ nvidia-smi 
Thu Feb 17 21:20:35 2022       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.103.01   Driver Version: 470.103.01   CUDA Version: 11.4     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:1F:00.0 N/A |                  N/A |
| 30%   38C    P0    N/A /  N/A |      0MiB /  2000MiB |     N/A      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

How can I fix it? Is there any other method to set GPUPowerMizerMode?
Please help.

Thank you,
Anega

Please see this thread:
https://forums.developer.nvidia.com/t/nvidia-settings-unable-to-load-info-from-any-available-system/120192
you need to set both DISPLAY and XAUTHORITY to the correct values.

I am still getting error while trying to retrieve nvidia-settings display.


root@sys23-MS-7B07:~# DISPLAY=192.168.10.7:55 XAUTHORITY=/run/user/1032/gdm/Xauthority nvidia-settings

** (nvidia-settings:16316): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-drLUGjLBp4: Connection refused

ERROR: Unable to load info from any available system

where 192.168.10.7 is the IP of the machine I am using to access the other system and VNC running with display number-55.

Since the memory usage of the GT730 is 0MB, I guess you’re not even running an Xserver on it.