This was by far more difficult than it needed to be. Nouveau has to be blacklisted..
Some of this taken from Emil’s blog (thanks Emil)
1. Driver installation
- Go the the Nvidia’s driver homepage and download the appropriate package for your gpu. http://www.nvidia.com/Download/index.aspx?lang=en-us
- Open a terminal: ctrl + alt + t
- $sudo apt-get install build-essential
- sudo gedit /etc/modprobe.d/blacklist-nouveau.conf
blacklist nouveau
options nouveau modeset=0
# lbm-nouveau #optional – havent tried with this
Save and close the file.
$sudo update-initramfs -u update-initramfs: Generating /boot/initrd.img-4.4.0-31-generic $sudo service nouveau stop
- Press ctrl + alt+ F1 to enter the console.
- Go to the directory where your driver is located and run: $chmod a+x .
- $ sudo service lightdm stop
- Install the drivers by: $sudo bash NVIDIA-*run –no-opengl-files
- You might get an error during the installation but continue if possible.
- I answered no to installing nVidia drivers under X. Apparently you can enable this later if you want by running nvidia-xconfig
- Installation should be complete. Now check if device nodes are present:
- Check if /dev/nvidia* files exist. If they don’t, do: (this didnt work for me)
$ sudo modprobe nvidia - Reboot computer
- apt-cache search nvidia | grep -P ‘^nvidia-[0-9]+\s’
this gave me:nvidia-173 - NVIDIA legacy binary driver - version 173.14.39 nvidia-310 - Transitional package for nvidia-310 nvidia-319 - Transitional package for nvidia-319 nvidia-304 - NVIDIA legacy binary driver - version 304.132 nvidia-331 - Transitional package for nvidia-331 nvidia-340 - NVIDIA binary driver - version 340.98 nvidia-346 - Transitional package for nvidia-346 nvidia-352 - Transitional package for nvidia-367 nvidia-367 - NVIDIA binary driver - version 367.57
-
nvidia-smi+-----------------------------------------------------------------------------+ | NVIDIA-SMI 375.20 Driver Version: 375.20 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | |===============================+======================+======================| | 0 GeForce GTX 1060 Off | 0000:01:00.0 Off | N/A | | N/A 47C P0 25W / N/A | 0MiB / 3045MiB | 0% Default | | Processes: GPU Memory | |GPU PID Type Process name Usage | | No running processes found |
- $ nvidia-debugdump -l
Found 1 NVIDIA devices
Device ID: 0
Device name: GeForce GTX 1060
GPU internal ID: GPU-00c74f5d-66d2-6f5b-9fcc-1614ac8b8db3
Some more info here: https://devtalk.nvidia.com/default/topic/878117/cuda-setup-and-installation/-solved-titan-x-for-cuda-7-5-login-loop-error-ubuntu-14-04-/