1、卸载驱动
sudo apt-get remove nvidia-* 
2、在线安装
2.1 查看可用驱动
sudo ubuntu-drivers devices

== /sys/devices/pci0000:00/0000:00:03.0/0000:03:00.0 ==
modalias : pci:v000010DEd00001B82sv00001458sd00003794bc03sc00i00
vendor : NVIDIA Corporation
model : GP104 [GeForce GTX 1070 Ti]
driver : nvidia-driver-390 - distro non-free
driver : nvidia-driver-435 - distro non-free
driver : nvidia-driver-450 - distro non-free
driver : nvidia-driver-450-server - distro non-free recommended
driver : nvidia-driver-418-server - distro non-free
driver : nvidia-driver-440-server - distro non-free
driver : xserver-xorg-video-nouveau - distro free builtin

2.2 安装
sudo apt install nvidia-driver-435

注: 安装过程可能要输入八位的密码要记住咯

3、图像界面安装
3.1、搜索驱动

在这里插入图片描述

3.1选择并安装

在这里插入图片描述
注: 安装过程可能要输入八位的密码要记住咯

4、重启验证

注意 重启时可能出现蓝色背景的界面 perform mok management 安装下面进行处理

  • 当进入蓝色背景的界面perform mok management 后,选择 enroll mok ,
  • 进入enroll mok 界面,选择 continue ,
  • 进入enroll the key 界面,选择 yes ,
  • 输入你在安装驱动时输入的密码,之后会跳到蓝色背景的界面perform mok management 选择第一个 reboot
4.1、验证是否成功
nvidia-smi

Thu May 14 22:55:34 2020
±----------------------------------------------------------------------------+
| NVIDIA-SMI 440.64 Driver Version: 440.64 CUDA Version: 10.2 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|=++==============|
| 0 GeForce MX150 Off | 00000000:02:00.0 Off | N/A |
| N/A 49C P5 N/A / N/A | 294MiB / 2002MiB | 7% Default |
±------------------------------±---------------------±---------------------+

±----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1098 G /usr/lib/xorg/Xorg 103MiB |
| 0 1516 G /usr/bin/gnome-shell 95MiB |
| 0 2473 G gnome-control-center 1MiB |
| 0 2706 G …AAAAAAAAAAAACAAAAAAAAAA= --shared-files 92MiB |
±----------------------------------------------------------------------------+

Logo

开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!

更多推荐