-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Control display is undefined #12
Comments
Hmm... can I have some more information about your setup? Like are you using the X display server, do you have coolbits enabled, etc. Post the output of the two commands It sounds like you have a strange display configuration, which doesn't use the default display |
I have a 6 GPU (1080 Ti) with Asus Prime z370-a motherboard and linux 18.04. The result of both the commands is: ERROR: The control display is undefined; please run Output of Nvidia-smi is: -----------------------------------------------------------------------------+ +-----------------------------------------------------------------------------+ |
This is weird; it seems like the nvidia drivers aren't finding your X-server. This isn't a problem with my script, but I'm happy to help as much as I can. What's the output of |
Sincerely appreciate the help and support in troubleshooting. I have a 18.04 desktop environment running but currently display is disabled (maybe due to my tweaking -- Noob). Here's the output: 00:00.0 Host bridge [0600]: Intel Corporation Device [8086:3e1f] (rev 08) |
Yeah I think that may be the issue; not having a display enabled. You should be able to have a faux display running if you're into that, which may convinse Nvidia enough so that you can use my script. There may be another way around this, where I could try controlling the fans without the use of nvidia-settings. However, I don't know how long it'd take to get that working... :P From a few threads I've found it says you need to have an x-display running on each GPU for nvidia-settings to work. This may help point you in the right direction: |
Lol I just followed that thread an hour ago myself and manage to manually get the control over Nvidia GPU's but I guess I can't utilize your script for now (which is a pity). Thanks again for all the help and guidance. |
No problem! Hope you get things how you would like them :) I'll keep this issue open to remind myself to look into fan control without nvidia-settings to see if it's possible. If it is, it shouldn't be too hard to add in. :D |
Tring to run this script manually works as expected, however it seems it can't be used as a service due to the error described in the following logs: >$ systemctl --user status nfancurve.service >$ journalctl _PID=14194 >$ nvidia-settings -q screens
PS: I have tried various modifications of the service file, all give the same error. |
Yeah this isn't a problem with the service file itself, but the way the script is run. By default, NVIDIA should set the display to ":0", but I guess since we're running it from another program, there's no default display set. You can fix this manually in your service file by adding a parameter to the execution of the script: I was thinking of adding an option to set this via the config file... so I guess this is a good reason to put it in there! :P |
I think I'm having a similar issue, with the systemctl user service not starting at boot due to:
Starting the script myself has no such issue. Should the |
Sorry for the delay! Yeah if you start the script manually with However, if you don't usually need to specify the display when running the script manually, this issue could be related to another one that is currently open that is to do with the service file. Try changing your service file to something like:
Let me know how that goes. |
I have the same issue. When I tested -d :0 and :1 directly from cmd, all go smoothly, :0 works and :1 doesn't, and that is correct. [Service] [Install] when I run /bin/sh /usr/bin/nfancurve -l -d :0 -c /etc/nfancurve.conf from console it works, service doesn't. |
Are your logs the same as the above? What's the actual error? |
Error is exactly the same, Unable to init server. But I resolve my problem with: |
Interesting, I'll have to look into that. |
Hello, is it possible to use this script without running Xorg on the card at all? I'm using the card for deep learning only. |
Good question. I personally haven't done any playing around with it so I am not sure. It just depends on whether you can get If you find anything or figure it out please let me know. |
As nan0s7, If you find out, i am interested too :) |
I have the same issue when using the project remotely by ssh, the error is as follow:
====
where the user id for the 'gdm' user is get as introduced in the link mentioned above. |
Please help
The text was updated successfully, but these errors were encountered: