Nostigex wrote: ↑
Ok, I got the drivers installed successfully. Next issue is that now after selecting CentOS from Grub (I'm dual booting with Debian) it hangs on displaying a single underscore in the upper left corner of the screen and the display itself flickers on and off. Same thing when trying to boot into recovery mode, just with more text that's difficult to make out due to the screen flickering on and off.
On CentOS 8, after installing the 'kmod-nvidia' package from http://elrepo.org
, I had exactly the same problem : No login screen.
I have performed some research and some tests.
The information I provide here still has to be checked by experienced people, for example package maintainers.
- The '/etc/X11/xorg.conf' file provided by http://elrepo.org
is BAD. You have to delete or rename it.
- Inside the '/etc/X11/xorg.conf.d' folder, you have to install the '/usr/share/X11/xorg.conf.d/nvidia-drm-outputclass.conf' file.
- By default, the 'gdm' display manager uses Wayland, which is NOT correctly managed by the Nvidia drivers yet.
Therefore, you have to force 'gdm' to use 'xorg', with following lines inside the [daemon] section of the '/etc/gdm/custom.conf' file :
WaylandEnable=false # uncommented
The attached 'centos-install-nvidia.txt' file is a shell script which :
- Installs Nvidia drivers on CentOS
- Renames the bad 'xorg.conf' provided by http://elrepo.org
- Installs '/usr/share/X11/xorg.conf.d/nvidia-drm-outputclass.conf'
- Forces 'gdm' to use 'xorg'
Then reboot, and you should get the login screen with the Nvidia drivers.
If everything is correctly installed, the above mentionned script does nothing. So you can run it several times.
In the hope that this will be useful.