Please be sure you check the following before attempting any steps of this guide:
- (If there is absolutely no POST screen) Check if the monitors are correctly plugged in and powered on
- Using off-board video (from GPU cards)
If you are experiencing the following symptoms, a NVIDIA driver re-installation may be needed to get the X11 working properly:
- Ubuntu returns to login page after logging in with correct credentials
- Experiencing white blinking line on the top left after BIOS loaded
Reinstalling NVIDIA drivers is a more involved procedure, and is prone to cause further driver issues if the reinstall is not needed.
Step-by-step guide:
Open up a terminal for the system:
ctrl+alt+f2 (try f1/f2/f3 if 'f2' does not work)
or
alt+(left or right arrow key)
or
SSH access (if possible)
...
If NVIDIA fails stating kernel source does not match
Check 'uname -r'
to see if the system is running the latest kernel version for the NVIDIA driver installation
If NVIDIA driver fails due to running an X server
init 3
#proceed to install NVIDIA drivers
If running cd /usr/local/CUDA_INSTALL_FILES states the directory is not found:
try 'mkdir CUDA_INSTALL_FILES'
If nouveau needs to be blacklisted:
...
Instructions for Ubuntu 14.04
1) Update necessary packages used for Ubuntu
Code Block | ||
---|---|---|
| ||
apt -y update && apt -y upgrade && apt -y dist-upgrade |
2) Download NVIDIA driver from website
Code Block | ||
---|---|---|
| ||
wget http://us.download.nvidia.com/XFree86/Linux-x86_64/375.39/NVIDIA-Linux-x86_64-375.39.run |
3) Update permissions on the file you just downloarded
Code Block | ||
---|---|---|
| ||
chmod 700 ./NV *tab key to fill in the rest* |
4) Remove nouveau related files that prevents system from installing NVIDIA drivers
Code Block | ||
---|---|---|
| ||
apt-get remove nvidia* && apt-get autoremove |
5) Blacklist nouveau files from re-installing themselves when you restart the system
Code Block | ||
---|---|---|
| ||
echo "blacklist nouveau" >> /etc/modprobe.d/blacklist-nouveau.conf |
...
&& echo "blacklist lbm-nouveau" >> /etc/modprobe.d/blacklist-nouveau.conf |
...
&& echo "options nouveau modeset=0" >> /etc/modprobe.d/blacklist-nouveau.conf |
...
&& echo "alias nouveau off" >> /etc/modprobe.d/blacklist-nouveau.conf |
...
&& echo "alias lbm-nouveau off" >> /etc/modprobe.d/blacklist-nouveau.conf |
...
&& echo options nouveau modeset=0 | tee -a /etc/modprobe.d/nouveau-kms.conf |
6. Updates your system to boot with the settings you JUST changed
Code Block | ||
---|---|---|
| ||
update-initramfs -u |
7. Reboot
Code Block | ||
---|---|---|
| ||
reboot |
8. Run this command as root user
Code Block | ||
---|---|---|
| ||
service lightdm stop
or
systemctl stop lightdm.service |
If Ubuntu 16.04, it is 'service lightdm stop' instead
9. Install NVIDIA driver
Code Block | ||
---|---|---|
| ||
./NV *tab key to fill in rest* |
Re-installing drivers (Ubuntu 16.x)
- Download '.run' driver from NVIDIA site, or use '.run' driver in '/home' folder
Exit GUI and stop all NVIDIA-related services; perform the following commands in text/console mode
Code Block theme Emacs ##To stop the GUI, used command: systemctl stop lightdm
- Run '.run' file as root
Re-installing drivers (If using NVIDIA-docker) (Ubuntu 16.x)
- Download '.run' driver from NVIDIA site, or use '.run' driver in '/home' folder
Exit GUI and stop all NVIDIA-related services; perform the following commands in text/console mode
Code Block theme Emacs ##To stop the GUI, used command: systemctl stop lightdm ##To stop the docker digits, use: docker stop <docker ID>
- Run '.run' file as root
Example of looking Docker container ID
Code Block | ||
---|---|---|
| ||
##Use command 'docker ps -a' to list docker IDs
spc@u09292017001:~$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
4ddbe2048db6 nvidia/digits "python -m digits" 10 minutes ago Up 10 minutes 0.0.0.0:5000->5000/tcp, 6006/tcp digits-640594574-0
1d070d81dbcb portainer/portainer "/portainer" 11 minutes ago Up 11 minutes 0.0.0.0:9000->9000/tcp portainer-304854449-0
spc@u09292017001:~$
|
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...