NVidia Linux Compatibility
First Advice - Avoid NVidia, the company are not Linux Friendly.
Nvidia control panel
/usr/bin/nvidia-settings
Remove Nvidia driver that fails and start over
sudo apt remove --purge *nvidia*
nouveau - complete rubbish if you have any intention of gaming
You can try drivers from this PPA, but it didn't help me
sudo apt-add-repository ppa:graphics-drivers/ppa sudo apt update
You can remove it
sudo apt-add-repository --remove ppa:graphics-drivers/ppa sudo apt update
If it is still there
ls -l /etc/apt/sources.list.d
Contents
NVidia Geforce 6150 Linux Compatibility
To find out what model of Nvidia card that you have:
lshw -numeric -C display
or
lspci -vnn | grep VGA
Linux x64 (AMD64/EM64T) Display Driver
Version: 304.137 Release Date: 2017.9.19 Operating System: Linux 64-bit Language: English (US) File Size: 66.84 MB
ref: http://www.nvidia.com/download/driverResults.aspx/123709/en-us
You can stop the X server with this command:
service lightdm stop
seen: NVIDIA-Linux-x86_64-304.137.run
VERSION: 304
sudo apt-get install nvidia-304
ref: https://linuxconfig.org/how-to-install-the-latest-nvidia-drivers-on-ubuntu-16-04-xenial-xerus
Fix Suggestion 1
I found that the correct driver (working well now for two days) is the nvidia-304 which can be installed from repositories. This might be problematic if you are making a clean install because the Geforce 6150SE will not work well when installing from the Ubuntu DVD: the Ubuntu live session will freeze, so follow this sequence:
Boot from the DVD and press Space to choose different methods of installation. Choose Experienced Install. Install Ubuntu. After install is done, press CTRL+ALT+F1 and login.
Update your system:
sudo apt-get update
sudo apt-get upgrade
Install the driver:
sudo apt-get install nvidia-304
DO NOT run nvidia-xconfig (THIS IS IMPORTANT). Reboot the system (just press CTRL+ALT+DEL) Login normally. Open Nvidia X server settings from the dash. Backup your configuration (you can copy and paste it to a txt file)
Fix Suggestion 2
1) Download Newest Nvidia drivers from here
2) Open module blacklist as admin
gksudo gedit /etc/modprobe.d/blacklist.conf
Add these lines and save:
blacklist vga16fb blacklist nouveau blacklist rivafb blacklist nvidiafb blacklist rivatv
3) Uninstall any previously installed Nvidia drivers:
sudo apt-get --purge remove nvidia-*
4) Reboot your computer
5) When an error message pops up saying that Ubuntu cannot load Nvidia drivers, choose Exit to terminal (Exit to console)
6) Login and cd to the directory where you saved your file
7)Install drivers
sudo sh NVIDIA-Linux-x86_64-195.36.24-pkg2.run
8)Start GDM
sudo service gdm start
ref: https://ubuntuforums.org/showthread.php?t=1467074
Fix Suggestion 3
There is a problem with the driver in software center.The bug is fixed in latest NVIDIA drivers. Run these commands in a terminal.
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates sudo apt-get update sudo apt-get install nvidia-current
login screen displays, goes black after logging in
System boots to the graphical login screen, then after you enter password the screen goes black where the desktop should be.