顯卡驅動相關問題記錄

一、查看顯卡型號

lspci | grep -i vga   輸出4位十六進制,查看搜索http://pci-ids.ucw.cz/mods/PC/10de?action=help?help=pci

二、循環登錄

在登錄界面按下ctrl+alt+fn進入非圖形界面命令行,登錄賬戶。

查看顯卡驅動 nvidia-smi

                       cat /proc/driver/nvidia/version

沒有輸出驅動型號,需要重新安裝驅動。

三、卸載顯卡驅動

用runfile方法重裝顯卡驅動後會覆蓋之前的驅動,不需要在安裝之前卸載之前的驅動,卸載方法:

apt-get安裝的卸載方法:sudo apt-get remove --purge nvidia*

runfile安裝的卸載方法:sudo chmod +x  *.run

                                       sudo ./*.run  --uninstall

四、重新重裝驅動:

 修改blacklist.conf權限    chmod sudo chmod 666 /etc/modprobe.d/blacklist.conf

                                        echo "blacklist nouveau">> /etc/modprobe.d/blacklist.conf

使修改生效:sudo update-initramfs –u

重啓

驗證是否已關閉:lsmod | grep nouveau

sudo chmod a+x NVIDIA-Linux-x86_64-390.67.run(以390.67爲例)

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

Would you like to run the nvidia-xconfigutility to automatically update your x configuration so that the NVIDIA x driver will be used when you restart x? Any pre-existing x confile will be backed up. 選擇 Yes

安裝完成後重啓電腦,驗證:nvidia-smi

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章