在 Centos 7 上安装 Nvidia 驱动程序导致黑屏

在 Centos 7 上安装 Nvidia 驱动程序导致黑屏

我已按照本指南中的步骤操作(https://linuxconfig.org/nvidia-geforce-driver-installation-on-centos-7-linux-64-bit) 最后我看到的是黑屏而不是 gnome 桌面。

我可以检查哪些日志文件来找出问题所在?

答案1

An example of a fix that worked for me:

lspci | grep VGA => get *hex* numbers at beginning of NVIDIA line
convert to *decimal*, all semi-colons (e.g., 21:00.0 => 33:0:0)
vi /etc/X11/xorg.conf => add BusID num in "Device" section
#-------------------------------------------------------------------
Section "Device"
    ...
    BusID          "PCI:33:0:0"
    Option         "AllowEmptyInitialConfiguration"
    ...
EndSection
#-------------------------------------------------------------------
reboot

相关内容