NVIDIA GTX1050ti graphics card driver PPA installation under ubuntu16.04

NVIDIA GTX1050ti graphics card driver PPA installation under ubuntu16.04

1. Hardware configuration:
CPU Core i7-7700HQ (including integrated graphics card) 
discrete graphics card NVIDIA GTX1050ti

2. Disable nouveau driver
Ubuntu system integrated graphics driver is nouveau, we need to uninstall nouveau from the Linux kernel before installing the NVIDIA official driver. 
Add nouveau to the blacklist blacklist.conf (for blacklist, see "Disabling Linux Kernel Drivers"), when linux starts, nouveau will not be loaded. 
Because of the influence of the nouveau driver, ubuntu cannot log in to the desktop after installation, so in the ubuntu system After starting to display the login interface, you need to press ctrl+alt+F1 to enter the tty text mode to enter the following operations.
Because the attributes of the blacklist.conf file are not allowed to be modified. So you need to modify the file properties first.

3. View properties
ll /etc/modprobe.d/blacklist.conf

4. Modify properties
sudo chmod 666 /etc/modprobe.d/blacklist.conf 5. Open sudo vi /etc/modprobe.d/blacklist

with vi editor .
conf
Add the following lines at the end of the file:
blacklist vga16fb 
blacklist nouveau 
blacklist rivafb 
blacklist rivatv 
blacklist nvidiafb

6. Restore attributes After
modifying and saving the file, remember to restore the file attributes:
sudo chmod 644 /etc/modprobe.d/blacklist.conf

7. Update the kernel
sudo update-initramfs -u

For the purpose of the update-initramfs command, see "Introduction to initramfs, a new initial RAM disks model" 
requires a system restart after modification.  Restart the
system to confirm that nouveau has been blocked. Use the lsmod command to check:
lsmod | grep nouveau
The lsmod command is used to display the status information of the modules that have been loaded into the kernel. The graphics card also has an integrated intel graphics card that can be driven normally, so after disabling the nouveau driver in the previous step and restarting again, the system can log in to the desktop normally. 8. Use the following command to add Graphic Drivers PPA sudo add-apt-repository ppa:graphics-drivers/ppa sudo apt-get update 9. Find the appropriate driver version    ubuntu-drivers devices 10. Install the NVIDIA driver  GTX1050ti graphics card The recommended driver version is 381













Press ctrl+alt+F1 to enter tty text mode 
, close (graphics) desktop display manager LightDM
sudo service lightdm stop

install nvidia driver, if the network speed is not good, it may take a long time 
to restart after the installation is complete
sudo apt-get install nvidia -381
sudo reboot

11. After restarting the system, execute the following command to check the installation status of the driver. It shows that the installation is successful.
sudo nvidia-smi
sudo nvidia-setting
After installing the NVIDIA driver, the login freeze does not appear again, and everything is normal.

Reference: http://www.cnblogs.com/devilmaycry812839668/p/6867780.html

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325647673&siteId=291194637