nvidia-settings errors in Ubuntu 16
I recently added an additional GTX 1080 FE to my setup and couldn't control it through nvidia-settings commands.  It is not quite plug and play.  After the physical installation of the card, you will need to rerun nvidia-xconfig just like in the previous post.

I am still running Ubuntu 14 with xdm as my login manager.  It has been configured per the instructions on the wiki (even though those instructions are for AMD).

Optionally, update the Nvidia driver to version 378 with "sudo apt-get install nvidia-378"
(You don't really need to update the driver.  I could post benchmarks for the GTX 1080 FE with driver versions 370, 375, and 378, but they are almost identical.)

If you want to update to the latest driver (384 as of August 6th, 2017), then execute the following:

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-384 nvidia-libopencl1-384 nvidia-opencl-icd-384


Run the following as root. (Note: I am running headless.)

nvidia-xconfig -s -a --allow-empty-initial-configuration \
--cool-bits=12 --registry-dwords="PerfLevelSrc=0x2222" \
--no-sli --connected-monitor="DFP-0" -o /etc/X11/xorg.conf

sed -i '/Driver/a Option "Interactive" "False"' /etc/X11/xorg.conf

Reboot once more and you should be good to go.

I can now control the fans with commands like:

nvidia-settings -a "[gpu:0]/GPUFanControlState=1" -a "[fan:0]/GPUTargetFanSpeed=90" --ctrl-display=:0
nvidia-settings -a "[gpu:1]/GPUFanControlState=1" -a "[fan:1]/GPUTargetFanSpeed=90" --ctrl-display=:0

Footnote: if you are doing this from scratch, see evilmog's guide on how to do this with Ubuntu 16.

Also, admins, please consider updating the wiki one of these days.

Messages In This Thread
RE: nvidia-settings errors in Ubuntu 16 - by devilsadvocate - 03-22-2017, 04:34 AM
RE: nvidia-settings errors in Ubuntu 16 - by red - 04-03-2017, 06:17 PM