Gray screen when I boot into gnome on xorg

Probably. Although it worked fine yesterday and when I switch from nvidia-dkms to nvidia and then restarted my pc it stopped working.

Yeah, that was strange. But one needs only one of packages nvidia or nvidia-dkms, and we prefer nvidia-dkms because of less packaging problems with it.

Strange is that if you go back to nvidia-dkms, the system no more works. Is it possible that you did something more too?

It might be worth noting that I also use Gnome with an Xorg session, except I use use the nvidia and nvidia-lts packages to match the kernels and I use the lts kernel as my regular kernel.

So @DelianST might want to try linux-lts? That might narrow down the problem.

I’ll try it out now

Do I have to delete the normal Linux kernel on order to use the lts one?

No, you will just have to configure your bootloader to display the new kernel you installed.

I am not sure how to add the linux-lts kernel to the grub menu.

Run sudo grub-mkconfig -o /boot/grub/grub.cfg, it should then show up in your output and then the next time you reboot the linux-lts kernel should show up in your Grub menu.

Thanks! It showed up but unfortunately I still can’t get into xorg. Now it just send me to the user select screen everytime I want to login

Actually just thinking back, doesn’t seem likely that it is an nvidia issue since gdm is already loaded since you can select to use xorg and wayland session. As a test, create a new user and see if that user is able to login into an xorg session?

I created one but no it didn’t work. Should I try switching to lightdm? Maybe the problem is with gdm?

Can you share what packages with the name “xorg” you have installed?

Yes.

Looks about the same as mine, the next place to look will probably the xorg log, which will be located in: $HOME/.local/share/xorg/Xorg.0.log

This is the file

[   118.765] 	compiled for 1.21.1.8, module version = 1.0.0
[   118.765] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   118.771] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the
[   118.771] (EE) NVIDIA:     system's kernel log for additional error messages and
[   118.771] (EE) NVIDIA:     consult the NVIDIA README for details.
[   118.777] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the
[   118.777] (EE) NVIDIA:     system's kernel log for additional error messages and
[   118.777] (EE) NVIDIA:     consult the NVIDIA README for details.
[   118.777] (EE) No devices detected.
[   118.777] (EE) 
Fatal server error:
[   118.777] (EE) no screens found(EE) 
[   118.777] (EE)

Looks like the Nvidia driver is the problem, but I haven’t been able to figure out why it’s working for Wayland but isn’t working for xorg. Can you login into a Wayland session to see what driver Wayland is using just as a comparison?

How can I check that?

Run lspci -v, go down to the section of your Nvidia gpu and check what it says next to these options.

Kernel driver in use: 
Kernel modules:

01:00.1 Audio device: NVIDIA Corporation Device 10fa (rev a1)
Flags: bus master, fast devsel, latency 0, IRQ 17
Memory at c5000000 (32-bit, non-prefetchable) [size=16K]
Capabilities:
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel

01:00.0 VGA compatible controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Ti Mobile] (rev a1) (prog-if 00 [VGA controller])
Subsystem: Lenovo TU117M [GeForce GTX 1650 Ti Mobile]
Flags: bus master, fast devsel, latency 0, IRQ 255
Memory at c4000000 (32-bit, non-prefetchable) [size=16M]
Memory at b0000000 (64-bit, prefetchable) [size=256M]
Memory at c0000000 (64-bit, prefetchable) [size=32M]
I/O ports at 4000 [disabled] [size=128]
Expansion ROM at c3000000 [disabled] [size=512K]
Capabilities:
Kernel modules: nouveau

I think the second one is my graphics card.