NVidia GeForce GTX 750 Ubuntu Drivers (again)

The proprietary NVidia drivers for the GeForce GTX 750 are acting up again. Here’s the fix:

First verify that the wrong driver is in use:

lspci -nnk | grep -iA2 vga
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM107 [GeForce GTX 750] [10de:1381] (rev a2) 
    Subsystem: Micro-Star International Co., Ltd. [MSI] GM107 [GeForce GTX 750] [1462:3101]
    Kernel driver in use: nvidia

You should see nvidia as the kernel driver.  If you’re here, you probably see nouveau and maybe a few others.  Nouveau doesn’t work right with the GTX 750 and never has (and probably never will).

Download the NVidia 64-bit Linux driver.  At the time of this writing, it’s at https://www.geforce.com/drivers/results/145182

Install the driver. This is a two step process because the Nouveau driver is likely loaded by initramfs and needs to be removed. This requires a reboot.

sudo service lightdm stop
sudo sh ./NVIDIA*         # This is the driver you just downloaded
sudo update-initramfs -u  # purge nouveau driver from initramfs
sudo reboot

If your graphics are running at the right resolution, you can stop here.  If not, continue:

sudo service lightdm stop
sudo sh ./NVIDIA*
sudo service lightdm start

Source:  https://askubuntu.com/questions/823304/ubuntu-16-04-nvidia-driver-works-until-reboot