You are not logged in.

#1 2020-10-29 10:27:21

unnilquadium
Member
Registered: 2017-08-27
Posts: 70

[SOLVED]lightdm problems with nvidia drivers

Upon starting xfce4 from lightdm, most of the times it doesn't load the nvidia drivers properly, and I'm left with the software renderer (I think). Logging out and back in solves the issue. This happens *most* of the times but not always.

I've disabled lightdm and starting xfce4 with xinit works normally all the times, so I'm guessing this is some kind of problem with lightdm and the nvidia drivers.
Does anyone else have this problem, and have been able to solve it?

I've tried many different versions of the kernel and nvidia drivers. It happens with all of them.

My graphics card is a Quadro K4000.

Thank you for any suggestions.

Last edited by unnilquadium (2020-10-29 14:34:20)

Offline

#2 2020-10-29 11:01:55

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,756

Re: [SOLVED]lightdm problems with nvidia drivers

Classical race condition with the graphics driver not being ready before xorg loads: https://wiki.archlinux.org/index.php/NV … de_setting

You don't necessarily need the kernel parameter but add nvidia,nvidia_modeset and nvidia_drm to the initramfs modules (... if you are on an up to date kernel - i.e. 5.9 you don't want and necessarily need the nvidia_uvm module as that might lead to hanging shutdowns, because the uvm module can currently not be loaded)

Additionally maybe also check https://wiki.archlinux.org/index.php/Li … TTY_output

Last edited by V1del (2020-10-29 11:02:43)

Offline

#3 2020-10-29 14:33:55

unnilquadium
Member
Registered: 2017-08-27
Posts: 70

Re: [SOLVED]lightdm problems with nvidia drivers

Thank you, V1del.

I've added the suggested modules to the initramfs and it appears to have solved the issue.

I'm still on kernel 5.8.14 because the nvidia drivers are still broken on 5.9 and I need cuda. Anyway, and for reference, it now works normally.

Offline

#4 2020-10-30 08:29:45

unnilquadium
Member
Registered: 2017-08-27
Posts: 70

Re: [SOLVED]lightdm problems with nvidia drivers

I've noticed that it works with just the logind-check-graphical=true option in LightDM, as detailed here and suggested by V1del, with no need to add any module to the initramfs.

I leave this comment for future reference.

Last edited by unnilquadium (2020-10-30 08:30:42)

Offline

Board footer

Powered by FluxBB