Reinstall the graphics driver

1: First uninstall the graphics card driver, you can check the previous blog
2: disable nouveau
sudo gedit /etc/modprobe.d/blacklist-nouveau.con
add the following content:
blacklist nouveau
options nouveau modeset = 0
update kernel:
sudo update- initramfs -u
reboot
#Restart the system Check whether nouveau is disabled:
lsmod | grep nouveau #If nothing is displayed, it means that the disable is successful
3: Install the NVIDIA graphics driver
to go to the official website-> www.nvidia.com to download the corresponding graphics driver The driver for NVIDIA 1080 graphics card is: NVIDIA-Linux-x86_34-390.67.run, if it is 1080TI, use 396 version
4: If the following situation occurs, Insert picture description here
you need to upgrade gcc and g ++. The upgrade instructions are as follows:
(gcc -v, g ++ -v is used to view the versions of gcc and g ++)
sudo add-apt-repository ppa: ubuntu-toolchain-r / test
sudo apt-get install gcc-5 g + ± 5 #Upgrade to 5.5.0
gcc -v #View gcc version
g ++ -v #View g ++ version
If it is still the old version,
cd / usr / bin
ls -l gcc * ## Check the display to see if the new version and the old version exist at the same time. If so, execute the following command:
sudo rm gcc
sudo ln -s / usr / bin / gcc-5 gcc
g ++

Published 36 original articles · won praise 1 · views 6384

Guess you like

Origin blog.csdn.net/qq_34291583/article/details/90645969