Skip to content

Instantly share code, notes, and snippets.

@pigfrown
Created December 22, 2017 12:56
Show Gist options
  • Save pigfrown/13e00d3f3e39526c726dc3275c60c60c to your computer and use it in GitHub Desktop.
Save pigfrown/13e00d3f3e39526c726dc3275c60c60c to your computer and use it in GitHub Desktop.
Nvidia-settings ubuntu server
nvidia-settings fails on Ubuntu server because it can't init xserver.
To remedy this set the DISPLAY and XAUTHORITY variables, and run with sudo.
To find the DISPLAY and XAUTHORITY values use "pgrep -a Xorg"
e.g.
DISPLAY=:0 XAUTHORITY=/var/run/lightdm/root/:0 sudo nvidia-settings -q CurrentMetaMode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment