openSuse: nvidia-settings not working due to undefined control display

Xorg configuration under openSuSE can be fickle:

If attempting to run nvidia-settings but get stuck at:

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

From your regular user login (not root):
export DISPLAY=:0.0

Now can become root and run nvidia-settings

su
nvidia-settings

This entry was posted in Linux. Bookmark the permalink.