foucault / nvfancontrol

NVidia dynamic fan control for Linux and Windows

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

XNVCtrl failed: XOpenDisplay failed; is $DISPLAY set?

florinshen opened this issue · comments

When I run the bin file, one error reported ,I have create the file named 20-nvidia.conf in /usr/share/X11/xorg.conf.d/.
distro: ubuntu 18.04

XNVCtrl failed: XOpenDisplay failed; is $DISPLAY set.

Hi! Could you please let me know what's the value of your $DISPLAY (echo $DISPLAY) for your current environment? Please note that you cannot run the program as system daemon; it can only be started after the current user session has been brought up.

Closed due to inactivity and insufficient information. Please reopen if necessary.

Hi, why we need a DISPLAY to adjust the GPU fan speed...
Most linux GPU server have no display at all. It's not a good experience to plug a monitor manually for servers one by one....

Unfortunately that's the way it works with the NVidia driver. It assumes the presence of a display server to do anything with their NVCtrl API. Some workarounds may exist but they are orthogonal to nvfancontrol.