woff 發表於 2024-4-23 15:35:01

如何關閉 GDM 及 nouveau 並安裝 NVIDIA VGA驅動

安裝顯示卡 NVIDIA驅動時
出現錯誤


ERROR: You appear to be running an X server; please exit X before
installing.For further details, please see the section INSTALLING
THE NVIDIA DRIVER in the README available on the Linux driver
download page at www.nvidia.com.

關閉GDM
service gdm stop
關閉nouveau 驅動

lsmod | grep nouveau
nouveau            21872641
video                  450561 nouveau
mxm_wmi                163841 nouveau
wmi                  327682 mxm_wmi,nouveau
i2c_algo_bit         163841 nouveau
drm_kms_helper      2007041 nouveau
ttm                   1310721 nouveau
drm                   5201924 drm_kms_helper,ttm,nouveau

vi /etc/modprobe.d/blacklist-nouveau.conf
# add to the end (create new if it does not exist)
blacklist nouveau
options nouveau modeset=0
dracut --force
reboot

lspci | grep VGA

./NVIDIA-Linux-x86_64-470.239.06.run



或最後照著這篇安裝驅動即可
CentOS 8 下安裝NVIDIA RTX 3070 驅動程式及CUDA



頁: [1]
查看完整版本: 如何關閉 GDM 及 nouveau 並安裝 NVIDIA VGA驅動