赞
踩
想给Ubuntu18.04安装一下NVIDIA 显卡驱动,搜了一下,还有点复杂,先记录一下,有时间再折腾;
https://blog.csdn.net/Gentlezzx/article/details/99314053
https://blog.csdn.net/new_delete_/article/details/81544438
https://www.cnblogs.com/abelsu/p/10625616.html
安装之后,终端输入命令nvidia-smi,依然
Command 'nvidia-sim' not found, did you mean:
command 'nvidia-smi' from deb nvidia-340
command 'nvidia-smi' from deb nvidia-utils-390
Try: sudo apt install <deb name>
输入 nvidia-settings,却能打开显卡控制界面,
比较奇怪;
后来回过头去看,可能是lightdmstop之后没有启动,于是
在命令行输入:sudo service lightdm start
再参考https://blog.csdn.net/fengzhongluoleidehua/article/details/82626538
输入
1.sudo rmmod nvidia
显示rmmod: ERROR: Module nvidia is in use by: nvidia_modeset
2.sudo nvidia-smi
显示正常:
Wed Nov 27 14:15:46 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 106... Off | 00000000:04:00.0 On | N/A |
| 50% 33C P8 9W / 120W | 359MiB / 6077MiB | 16% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1159 G /usr/lib/xorg/Xorg 115MiB |
| 0 1673 G /usr/bin/gnome-shell 73MiB |
| 0 3175 G ...uest-channel-token=16429544354154564076 168MiB |
+-----------------------------------------------------------------------------+
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。