显卡出错

显卡驱动突然崩了

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

重新安装驱动

sudo apt-get remove nvidia-* sudo apt-get autoremove

sudo apt-get autoremove

sudo nvidia-uninstall

sudo ./NVIDIA-Linux-x86_64-381.22.run -no-x-check -no-nouveau-check -no-opengl-files

切换nvidia显卡/inter

sudo apt install nvidia-prime

sudo prime-select nvidia

 

其他错误

ERROR: Unable to load the 'nvidia-drm' kernel module

https://onlycaptain.github.io/2018/08/18/Ubuntu%E4%B8%8BNvidia%E9%A9%B1%E5%8A%A8%E5%AE%89%E8%A3%85/

 

#######################20201222#####################

最近在ununtu18上又遇到了这个错误,使用sudo ubuntu-drivers autoinstall重新安装也不行,仔细看发现编译时报了这个错误

Error! Bad return status for module build on kernel: 5.4.0-58-generic (x86_64)

应该是自动升级内核导致的错误,先去软件和更新里设置从不自动更新。有人用降低内核的办法解决了,但我试了下没效果,最终查看Log通过升级gcc-8解决问题\

sudo apt-get install gcc-8 g++-8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 10
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-8 10

 然后重新sudo ubuntu-drivers autoinstall ,确认编译时没问题,reboot解决问题

 

#####################

在新机上装ubuntu时,出现花屏现象,查了下是显卡原因,用如下方法解决:

              https://blog.csdn.net/X_BoLuoPi/article/details/105711570

在安装时,分辨率不正常,使得界面显示不全,可通过alt+f7强行拖动

posted @ 2018-09-08 13:24  牧马人夏峥  阅读(477)  评论(0编辑  收藏  举报