显卡驱动重装
1. 打开终端
在盒子上插上显示器键盘之后,打开终端,快捷点为***Ctrl+Alt+T***,或者右击屏幕选择***打开终端***
2. 查看状态
执行命令:nvidia-smi ,查看显卡驱动状态
显卡驱动未运行状态
newtranx@mossbox:~/$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
当有上面报错时,需要重装显卡驱动
显卡驱动正常运行状态
newtranx@mossbox:~/doc-soa/mt_soft$ nvidia-smi
Wed Oct 23 16:47:00 2019
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 430.14 Driver Version: 430.14 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 GTX 1070 Off | 00000000:01:00.0 Off | N/A |
| N/A 42C P0 28W / N/A | 0MiB / 8119MiB | 3% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
(base) newtranx@mossbox:~/doc-soa/mt_soft$
3. 重装驱动
卸载驱动
执行命令,进入驱动所在目录
cd ~/doc-soa/mt_soft/
卸载驱动,根据提示,一直回车:
sudo ./NVIDIA-Linux-x86_64-430.14.run --uninstall --no-questions
安装驱动
安装驱动,根据提示,一直回车:
sudo ./NVIDIA-Linux-x86_64-430.14.run --no-opengl-files --no-questions --no-cc-version-check
NVIDIA Accelerated Graphics Driver for Linux-x86_64 (430.14)
WARNING: Unable to find a suitable destination to install 32-bit compatibility libraries. Your system may not be set up for 32-bit compatibility. 32-bit compatibility files will not be
installed; if you wish to install them, re-run the installation and set a valid directory with the --compat32-libdir option.
OK #回车
NVIDIA Software Installer for Unix/Linux www.nvidia.com
NVIDIA Accelerated Graphics Driver for Linux-x86_64 (430.14)
Installation of the NVIDIA Accelerated Graphics Driver for Linux-x86_64 (version: 430.14) is now complete. Please update your xorg.conf file as appropriate; see the file
/usr/share/doc/NVIDIA_GLX-1.0/README.txt for details.
OK #回车
NVIDIA Software Installer for Unix/Linux www.nvidia.com
4. 验证
验证,执行命令:nvidia-smi,查看显卡驱动状态,说明驱动已经安装成功
5. 重启操作系统
然后重启服务器即可
sudo reboot