Troubles logging in after booting

Hi,
I have troubles logging after booting: in the Grub menu, I select the kernel, enter the harddrive password, then the boot process starts (takes–arguably–slightly longer than usual).
Then I select my user account and enter the password. Then, a second mouse cursor appears on the lower right quadrant of my screen, encased in a black tile, and sometimes the login succeeds, sometimes it won’t and I’m back at the login screen.
I am sure that I have not made misspelled my password etc. and it does not say “Wrong password”, as well.

I have tried logging on the three kernels I have installed (listed below), it didn’t work on any of them. Then I used the rescue entry in Grub, there it worked. Rebooted again, and used the 5.14 kernel, and the login now works (still get that black tile upon login, which then disappears).

One difference here: upon login, I can only select GNOME or GNOME classic. I think that previously, there used to be a third entry, as well.

I do notice other differences, as well. I can’t set the screen brightness at the moment (before this problem I couldn’t set it on the 5.15 kernels but it did work on 5.14) and there are no animations (e.g., when using the window tiling (windows key + left/right arrow) the window won’t “slide” to the left/right but just appear there without animation).

Also, my external screen does not work.

Yet another difference: during the boot process, it used to say “Cannot find NVIDIA drivers. Falling back to nouveau”. This is due to me installing nouveau, then proprietary NVIDIA drivers. However, I had problems with the proprietary drivers and removed them and ever since got this message. That message has now disappeared, as well.

Regarding the graphics problem, I am wondering if this is related to me deleting an old, unused kernel yesterday? However, I do not understand how or why this could influence my login process (on any other kernel).

List of installed kernels:

$ dnf list kernel*
Last metadata expiration check: 0:21:37 ago on So 23 Jan 2022 10:21:19 CET.
Installed Packages
kernel.x86_64                                                    5.14.10-300.fc35                             @fedora 
kernel.x86_64                                                    5.15.14-200.fc35                             @updates
kernel.x86_64                                                    5.15.16-200.fc35                             @updates
kernel-core.x86_64                                               5.14.10-300.fc35                             @fedora 
kernel-core.x86_64                                               5.15.14-200.fc35                             @updates
kernel-core.x86_64                                               5.15.16-200.fc35                             @updates
kernel-headers.x86_64                                            5.15.4-200.fc35                              @updates
kernel-modules.x86_64                                            5.14.10-300.fc35                             @fedora 
kernel-modules.x86_64                                            5.15.14-200.fc35                             @updates
kernel-modules.x86_64                                            5.15.16-200.fc35                             @updates
kernel-modules-extra.x86_64                                      5.15.14-200.fc35                             @updates
kernel-modules-extra.x86_64                                      5.15.16-200.fc35                             @updates
kernel-srpm-macros.noarch                                        1.0-6.fc35                                   @fedora

Other information:
GNOME v41.3, Windowing system X11, Lenovo Lenovo Legion 5 15ARH05H, Graphics llvmpipe (LLVM 13.0.0, 256 bits) (this is definitely a different entry than before)

EDIT: Add paragraph about nouveau/NVIDIA message during boot and about external screen

Update:

I reinstalled the nouveau drivers and rebooted, which did not help. Then I reinstalled the NVIDIA proprietary drivers and rebooted. Ironically, I now get the “NVIDIA driver missing, falling back to nouveau” message and problems all seem to be resolved (external screen and brightness control work, the “Settings/About” section shows I am on Wayland and I am using NV166 graphics).
(I have not yet checked if the third entry upon login appears, will do that later).

Nonetheless, I’d be interested in knowing why this happened and how I could prevent it in the future.

Hi, I’m not sure look like during the boot it failed to load nvidia modules, either it broken or completely failed to load (when you get message falling back to Nouveau).

May be you need to find on what Nvidia driver match to your card. You could search other posts here related to Nvidia, your card series, or driver version you use.

I would venture that the issue is that you are using wayland on a machine with an nvidia card.

Does the same thing happen if you select “gnome on xorg” with the gear on the login screen?

What version of the nvidia driver is installed? Wayland is only usable with the nvidia 495.46 driver and some things still are not 100% there.

What nvidia card is installed? inxi -Gxx will tell you that.

The message about falling back to nouveau could easily be caused by using secure boot. Doing so with fedora 35 prevents an unsigned kernel module (the nvidia drivers) from loading. That can be checked by doing dmesg | grep -E -i 'secure|nvidia'. It it tells you secure boot is enabled and gives the fallback message then you need to enter bios and disable secure boot before it can load the nvidia drivers.
The dmesg command above should give something similar to this if secure boot is disabled and the nvidia module is being loaded.

$ dmesg | grep -E -i 'secure|nvidia'
[    0.000000] Command line: BOOT_IMAGE=(hd0,gpt5)/vmlinuz-5.15.16-200.fc35.x86_64 root=/dev/mapper/fedora_laptop-root ro rd.lvm.lv=fedora_laptop/root rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1
[    0.000000] secureboot: Secure boot disabled
[    0.017347] secureboot: Secure boot disabled
[    0.071477] Kernel command line: BOOT_IMAGE=(hd0,gpt5)/vmlinuz-5.15.16-200.fc35.x86_64 root=/dev/mapper/fedora_laptop-root ro rd.lvm.lv=fedora_laptop/root rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1
[    0.994822] integrity: Loaded X.509 cert 'Fedora Secure Boot CA: fde32599c2d61db1bf5807335d7b20e4cd963b42'
[    5.911400] nvidia-gpu 0000:01:00.3: enabling device (0000 -> 0002)
[    6.017771] nvidia: loading out-of-tree module taints kernel.
[    6.017781] nvidia: module license 'NVIDIA' taints kernel.
[    6.042790] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[    6.059004] nvidia-nvlink: Nvlink Core is being initialized, major device number 509
[    6.059480] nvidia 0000:01:00.0: enabling device (0006 -> 0007)
[    6.059562] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
[    6.109352] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  495.46  Wed Oct 27 16:31:33 UTC 2021
[    6.210179] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input39
[    6.210219] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input40
[    6.210249] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input41
[    6.210293] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input42
[    6.210372] input: HDA NVidia HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input43
[    6.303443] nvidia_uvm: module uses symbols from proprietary module nvidia, inheriting taint.
[    6.341571] nvidia-uvm: Loaded the UVM driver, major device number 507.
[    6.389740] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  495.46  Wed Oct 27 16:22:48 UTC 2021
[    6.408502] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[    7.136222] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 1
[    7.237305] nvidia-gpu 0000:01:00.3: i2c timeout error e0000000

Thanks for the answer @computersavvy @oprizal.
One thing regarding both of your answers: could the graphics driver be responsible for the troubles I had to log in? Because this is what I want to prevent first and foremost.

When I had the login trouble, I could not select “Gnome on Xorg”, I only had the “GNOME” and “GNOME Classic” option… After reinstalling etc (see Troubles logging in after booting - #2 by blatzematze), the login problems had vanished and I could select “GNOME on Xorg” as well.

Graphics card is a GeForce RTX 2060 Mobile. Also, secure boot is disabled.

I just tried out switching kernels: when I am on 5.15, it uses proprietary drivers and brightness control does not work (on both wayland and Xorg + night light does not work on wayland).
On 5.14, it falls back to nouveau drivers and brightness control does work.

In case this helps, here’s the dmesg output for both kernels.

$ uname -srm
Linux 5.14.10-300.fc35.x86_64 x86_64
$ dmesg | grep -E -i 'secure|nvidia'
[    0.000000] Command line: BOOT_IMAGE=(hd0,gpt6)/vmlinuz-5.14.10-300.fc35.x86_64 root=UUID=93239d8b-922f-4ec0-ad1b-c8450cb4e293 ro rootflags=subvol=root rd.luks.uuid=luks-755a4509-8571-4c37-9eca-ca230f36e1e1 rhgb quiet amdgpi.backlight=0 rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1
[    0.000000] secureboot: Secure boot disabled
[    0.004969] secureboot: Secure boot disabled
[    0.117500] Kernel command line: BOOT_IMAGE=(hd0,gpt6)/vmlinuz-5.14.10-300.fc35.x86_64 root=UUID=93239d8b-922f-4ec0-ad1b-c8450cb4e293 ro rootflags=subvol=root rd.luks.uuid=luks-755a4509-8571-4c37-9eca-ca230f36e1e1 rhgb quiet amdgpi.backlight=0 rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1
[    0.913228] integrity: Loaded X.509 cert 'Fedora Secure Boot CA: fde32599c2d61db1bf5807335d7b20e4cd963b42'
[   17.576298] nvidia-gpu 0000:01:00.3: enabling device (0000 -> 0002)
[   17.980926] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input18
[   17.981008] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input19
[   17.981051] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input20
[   17.981096] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input21
[   17.981145] input: HDA NVidia HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input22
[   18.214947] nouveau 0000:01:00.0: NVIDIA TU106 (166000a1)
[   18.812228] nvidia-gpu 0000:01:00.3: i2c timeout error e0000000

$ uname -srm
Linux 5.15.16-200.fc35.x86_64 x86_64
$ dmesg | grep -E -i 'secure|nvidia'
[    0.000000] Command line: BOOT_IMAGE=(hd0,gpt6)/vmlinuz-5.15.16-200.fc35.x86_64 root=UUID=93239d8b-922f-4ec0-ad1b-c8450cb4e293 ro rootflags=subvol=root rd.luks.uuid=luks-755a4509-8571-4c37-9eca-ca230f36e1e1 rhgb quiet amdgpi.backlight=0 rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1
[    0.000000] secureboot: Secure boot disabled
[    0.004918] secureboot: Secure boot disabled
[    0.115767] Kernel command line: BOOT_IMAGE=(hd0,gpt6)/vmlinuz-5.15.16-200.fc35.x86_64 root=UUID=93239d8b-922f-4ec0-ad1b-c8450cb4e293 ro rootflags=subvol=root rd.luks.uuid=luks-755a4509-8571-4c37-9eca-ca230f36e1e1 rhgb quiet amdgpi.backlight=0 rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1
[    0.919870] integrity: Loaded X.509 cert 'Fedora Secure Boot CA: fde32599c2d61db1bf5807335d7b20e4cd963b42'
[   19.211839] nvidia-gpu 0000:01:00.3: enabling device (0000 -> 0002)
[   19.346284] nvidia: loading out-of-tree module taints kernel.
[   19.346298] nvidia: module license 'NVIDIA' taints kernel.
[   19.358455] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[   19.381854] nvidia-nvlink: Nvlink Core is being initialized, major device number 507
[   19.384157] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
[   19.428797] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  495.46  Wed Oct 27 16:31:33 UTC 2021
[   19.493434] nvidia_uvm: module uses symbols from proprietary module nvidia, inheriting taint.
[   19.504822] nvidia-uvm: Loaded the UVM driver, major device number 505.
[   19.526675] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  495.46  Wed Oct 27 16:22:48 UTC 2021
[   19.564580] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[   19.777873] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input19
[   19.777995] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input20
[   19.778119] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input21
[   19.778328] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input22
[   19.778460] input: HDA NVidia HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input23
[   20.204509] nvidia-modeset: WARNING: GPU:0: AU Optronics Corporation (DP-2): G-SYNC Compatible: EDID min refresh rate invalid, disabling G-SYNC Compatible.
[   20.204825] nvidia-modeset: WARNING: GPU:0: AU Optronics Corporation (DP-2): G-SYNC Compatible: EDID min refresh rate invalid, disabling G-SYNC Compatible.
[   20.208291] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 0
[   20.220440] nvidia-modeset: WARNING: GPU:0: AU Optronics Corporation (DP-2): G-SYNC Compatible: EDID min refresh rate invalid, disabling G-SYNC Compatible.
[   20.348868] nvidia-modeset: WARNING: GPU:0: AU Optronics Corporation (DP-2): G-SYNC Compatible: EDID min refresh rate invalid, disabling G-SYNC Compatible.
[   20.494566] nvidia-gpu 0000:01:00.3: i2c timeout error e0000000
[   21.287099] nvidia-modeset: WARNING: GPU:0: AU Optronics Corporation (DP-2): G-SYNC Compatible: EDID min refresh rate invalid, disabling G-SYNC Compatible.

My laptop has GTX 1660 in it, and with the nvidia driver + xorg the night light settings work. I do not use wayland since several apps I use are not functional with nvidia + wayland.

I have never seen the brightness control you continue to reference, and going through all the settings I can find it is still hiding from me so I cannot speak to the brightness.

Your original question was about logging in and it seems that might have been resolved? correct?

Ah sorry for being unclear here, my bad. What I mean is: in F35, I cannot adjust screen brightness using the brightness keys on the keyboard (using these keys). Does that help?

Yes, it has been resolved, but I still don’t know what caused the error and what has fixed it.

Since that keyboard has key mappings that are specific to windows you really cannot expect them to work in linux. Linux has other ways to control the screen brightness, but it is not using the windows key mappings.

I don’t remember the specifics, but it should not be hard to find some hints with a search online.

If I can remember correctly, it should be related to ACPI kernel parameter. May be you can start search with someting like “acpi keyboard your-laptop-manufacturer”.

About the Gnome Xorg menu on GDM, if Nvidia driver that currently installed doesn’t support wayland, the options we have only Gnome (which actually X11) and Gnome Classic.

Above error obviously about monitor refresh rate that not supported.

All kinds of resolution and refresh rate are troublesome for Xorg (usually too high).