New nVidia driver does not allow logging in to desktop

INFO:root:MODULES="nvidia nvidia_modeset nvidia_uvm nvidia_drm" will be changed to MODULES=" _modeset _uvm _drm" in /etc/mkinitcpio.conf
2021-12-17 19:31:23 [INFO]: MODULES="nvidia nvidia_modeset nvidia_uvm nvidia_drm" will be changed to MODULES=" _modeset _uvm _drm" in /etc/mkinitcpio.conf

You try it for real?

Edit: I also see

WARNING:root:Cannot run mkinitcpio -p linux: Command '['mkinitcpio', '-p', 'linux']' returned non-zero exit status 1., please run it manually before rebooting!
2021-12-17 19:31:27 [WARNING]: Cannot run mkinitcpio -p linux: Command '['mkinitcpio', '-p', 'linux']' returned non-zero exit status 1., please run it manually before rebooting!

even with force mode same result , only 495.44 are working
nvidia conf are in /var on boot, file 20-nvidia.conf has been reset to Section device

I just uninstalled my Nvidia and reverted to Nouveau which the computer booted to a blinking cursor. Switched to a TTY and installed the Nvidia drivers no issues.

[ricklinux@eos-xfce ~]$ inxi -Ga
Graphics:
  Device-1: Intel CometLake-S GT2 [UHD Graphics 630] vendor: ASUSTeK
    driver: i915 v: kernel bus-ID: 00:02.0 chip-ID: 8086:3e92 class-ID: 0300
  Device-2: NVIDIA GP104 [GeForce GTX 1060 6GB] vendor: ASUSTeK
    driver: nvidia v: 495.46 alternate: nouveau,nvidia_drm bus-ID: 03:00.0
    chip-ID: 10de:1b83 class-ID: 0300
  Display: x11 server: X.Org 1.21.1.2 compositor: xfwm4 v: 4.16.1 driver:
    loaded: nvidia display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 101 s-size: 483x272mm (19.0x10.7")
    s-diag: 554mm (21.8")
  Monitor-1: DVI-D-0 res: 1920x1080 hz: 60 dpi: 102
    size: 477x268mm (18.8x10.6") diag: 547mm (21.5")
  OpenGL: renderer: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2
    v: 4.6.0 NVIDIA 495.46 direct render: Yes
[ricklinux@eos-xfce ~]$ 

since i have used option -f force for nvidia-installer-dkms,
i have error on build mkinitcptio for modules _nvidia and that it cannot build initrams
with version 495.46 and also 495.44 ( when i downgrade in cache )

inxi -Ga

Graphics:
  Device-1: NVIDIA GM204 [GeForce GTX 970] vendor: eVga.com. driver: nvidia
    v: 495.44 alternate: nouveau,nvidia_drm bus-ID: 07:00.0 chip-ID: 10de:13c2
    class-ID: 0300
  Display: x11 server: X.Org 1.21.1.2 compositor: marco v: 1.26.0 driver:
    loaded: nvidia display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 95 s-size: 513x292mm (20.2x11.5")
    s-diag: 590mm (23.2")
  Monitor-1: DVI-I-1 res: 1920x1080 hz: 60 dpi: 96
    size: 510x290mm (20.1x11.4") diag: 587mm (23.1")
  OpenGL: renderer: NVIDIA GeForce GTX 970/PCIe/SSE2 v: 4.6.0 NVIDIA 495.44
    direct render: Yes

I really don’t understand what the issue is unless you have a mismatch of package versions installed? I don’t understand why if you run nvidia-installer-dkms -n it should revert to nouveau. Then i would make sure ALL Nvidia drivers and packages are removed. Then i would reinstall with nvidia-installer-dkms.

i have tried
→ nvidia-installer-dkms -fn ,
after mkinitcpio -P errors on _nvidia , _uvm , etc

→ then retry nvidia-installer-dkms -f
results build mkinitcpio show same error
GUI login appears , on login crash Xorg

→ downgrade to 495.44
something go wrong inside theses drivers nvidias & dkms

Ya … i don’t understand why because my card is a little newer. GTX 1060 But that should matter because your card is in the data base and is supported by the current drivers. I’m not understanding what is causing it to do this. So you you do an install of the latest drivers it just boots to a black screen? Did you at the point see exactly what packages are installed to compare with when you downgrade it and it works. Plus checking the conf files etc?

@Stephane
Have you looked at the other post here? This is kind of my way of thinking on it also.

This is not right. Please check the MODULES line in /etc/mkinitcpio.conf and fix it manually. Then run

sudo mkinitcpio -P

Which part is not correct as the wiki has this. Is this no longer correct?

MODULES="nvidia nvidia_modeset nvidia_uvm nvidia_drm"

This is not right…

I just recently removed the Nvidia drivers and reverted to nouveau. Then i reinstalled with nvidia-installer-dkms. Mine shows this: MODULES= _modeset _uvm _drm

My system works but this different than what i had previously. :thinking:

I just went back and tried this again and when you run mkinicpio -P it’s giving errors that it can’t find the modules. So even though mine is working and i don’t have an issue i have removed all of them from modules= :man_shrugging:

i have version eos 3.3.12, maybe check if change python 3.9 to 3.10 can introduce theses effects

Note that line

MODULES=" _modeset _uvm _drm"

is wrong, and is most likely a result of command nvidia-installer-dkms.
The command removes words like nvidia from the MODULES definition the wrong way.

Currently the workaround is to manually fix that line, e.g. by making MODULES like this:

MODULES=""

We will address this issue in the quite near future.

3 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.