Nvidia-settings doesn't work

sudo DISPLAY=:0 XAUTHORITY=/run/user/121/gdm/Xauth nvidia-settings -a “[gpu:0]/GPUFanControlState=1” -a “[fan:0]/GPUTargetFan=70”

Unable to init server: Could not connect: Connection refused

ERROR: The control display is undefined; please run `nvidia-settings --help
for usage information.

nvidia-settings
Unable to init server: Could not connect: Connection refused

ERROR: The control display is undefined; please run nvidia-settings --help for usage information.

OS: ubuntu 20.04 LTS
gpu: RTX 3090 * 4

Hi @jun040329,

Welcome to the NVIDIA Developer Forums. This category is only used for community feedback, and offers no support resources. I am moving your topic over to the Linux category for better visibility.