Manjaro KDE: Can't login, loging in tty works, no error displayed

Hi everyone,

today I have tried to log in to my Manjaro KDE laptop and got stuck in the login loop. After putting in my password I get a short glimpse of black screen and then I am back in login screen again. I can’t start any desktop session (wayland or X) or any other WM.

I am running Manjaro KDE on a laptop with nVidia 2060 graphics card. Yesterday, everything was running fine. I did not perform any update.

I have been making some changes to my .bashrc file yesterday. I have reverted that, but that didn’t lead to resolving my issue.

I am sure I am entering my password correctly. I have been looking around this forum for a solution to my problem, but didn’t found anything specific.

I can use Ctrl + Alt + F2 to access tty.

I have no idea how to resolve this issue. Any tip on what to do would be a tremendous help!

Furthermore, creating a new user and attempt to log in doesn’t fix the issue, so the root cause shouldn’t be a user configuration.

Any ideas?

in TTY run this command:
startx

I got in!

Now, how do I fix my situation to prevent repeating it?

try rebooting first and see if it happens again and select x11 instead of wayland in the log in screen

Both X11 and wayland sessions lead to the login loop.

Only way I can use my computer is to avoid SDDM, by going into tty, loggin in there and runing startx.

so it did happened again? probably a graphic driver issue… provide formated output from:
mhwd -l
mhwd -li

It happens to me every time I reboot or turn off my laptop.

Output of mhwd -l

> 0000:01:00.0 (0300:10de:1f15) Display controller nVidia Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime            2021.12.18               false            PCI
video-hybrid-intel-nvidia-470xx-prime            2021.12.18               false            PCI
          video-nvidia            2021.12.18               false            PCI
    video-nvidia-470xx            2021.12.18               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI


> 0000:00:02.0 (0300:8086:3e9b) Display controller Intel Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime            2021.12.18               false            PCI
video-hybrid-intel-nvidia-470xx-prime            2021.12.18               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI

mhwd -li

> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime            2021.12.18               false            PCI
     video-modesetting            2020.01.13                true            PCI


Warning: No installed USB configs!

Side note: I am using accessibility option to display desktop notification in KDE when I turn on the Caps-lock key. These notification have randomly an oversized window. also, my chromium browser in which I am writing this froze a few times, probably because of that. without caps lock it seems to hold.

you could try reinstalling your video drivers:
uninstall first nvidia drivers with:
sudo mhwd -r pci video-hybrid-intel-nvidia-prime
im not sure if you need video linux, but i have it installed and have the same setup as you, so try installing it:
sudo mhwd -i pci video-linux
reboot and check if you can boot without black screen

EDIT: if you using optimus manager dont run these commands!!!

I am not using optius manager. I have stopped using it after some other issues (not sure what they were to be honest).

I am using the DRI_PRIME env var whenever possible.

Does this have a influence on proprietary vs opensource drivers or not?

EDIT: Also, you are suggesting removing some drivers. Should I install them back again afterwards?

yes were reinstalling them, youll install them back again … but first provide also info from:
mhwd-kernel -li

i already ran sudo mhwd -r pci video-hybrid-intel-nvidia-prime

got probably a little unexpected output:

Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true
Sourcing /var/lib/mhwd/local/pci/video-hybrid-intel-nvidia-prime/MHWDCONFIG
Processing classid: 0300
Sourcing /var/lib/mhwd/scripts/include/0300
checking dependencies...
:: dwarffortress optionally requires nvidia-utils: If you have nvidia graphics
:: ffmpeg optionally requires nvidia-utils: Nvidia NVDEC/NVENC support
:: ffmpeg4.4 optionally requires nvidia-utils: Nvidia NVDEC/NVENC support
:: gzdoom optionally requires vulkan-driver: Vulkan renderer
:: lib32-vulkan-icd-loader optionally requires lib32-vulkan-driver: packaged vulkan driver
:: steam-manjaro optionally requires vulkan-driver: packaged vulkan driver
:: steam-manjaro optionally requires lib32-vulkan-driver: packaged vulkan driver (32bit)
:: steam-native optionally requires vulkan-driver: packaged vulkan driver
:: steam-native optionally requires lib32-vulkan-driver: packaged vulkan driver (32bit)
:: vulkan-icd-loader optionally requires vulkan-driver: packaged vulkan driver
warning: dependency cycle detected:
warning: eglexternalplatform will be removed after its nvidia-utils dependency

Packages (6) egl-wayland-2:1.1.9+r3+g582b2d3-1  eglexternalplatform-1.1-2  lib32-nvidia-utils-510.60.02-1  libxnvctrl-510.60.02-1  nvidia-prime-1.0-4  nvidia-utils-510.60.02-1

Total Removed Size:  557,13 MiB

:: Do you want to remove these packages? [Y/n]
:: Processing package changes...
removing lib32-nvidia-utils...
removing nvidia-prime...
removing nvidia-utils...
removing egl-wayland...
removing eglexternalplatform...
removing libxnvctrl...
:: Running post-transaction hooks...
(1/5) Reloading system manager configuration...
(2/5) Reloading device manager configuration...
(3/5) Arming ConditionNeedsUpdate...
(4/5) Reloading system bus configuration...
(5/5) Updating the desktop file MIME type cache...
> Successfully removed video-hybrid-intel-nvidia-prime

output of mhwd -li

Currently running: 5.15.32-1-MANJARO (linux515)
The following kernels are installed in your system:
   * linux515

is this ok? i was surprised by the nvidia-prime dependency … what should I do now? do the sudo mhwd -i pci video-linux, restart ad see how it goes?

well well, yes install the video-linux, reboot and see if you get stuck

After

sudo mhwd -i pci video-linux

and reboot the situation is still the same.

Can’t login through SDDM into both X and wayland.

ok so can you check logs with:
journalctl --boot -0 --no-pager

the output is extremely long. I put it in pastebin: dub 27 19:25:35 tomaskrulis-nitroan51554 kernel: microcode: microcode updated ea - Pastebin.com

I noticed something about sddm exit code 127. could that be something?

ok so you have these errors:
pcieport 0000:00:1d.5: AER: Corrected error received
i dont say thats what is causing your black screen, but it needs to be fixed… so first turn on your wifi and open the ksystemlog application and check if you have logs spamming there…

i have these

27.04.22 19:44	kernel	alx 0000:07:00.0: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Receiver ID)
27.04.22 19:44	kernel	alx 0000:07:00.0:   device [1969:e0b1] error status/mask=00000080/00002000
27.04.22 19:44	kernel	alx 0000:07:00.0:    [ 7] BadDLLP               

and these:

27.04.22 19:44	kernel	alx 0000:07:00.0: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Receiver ID)
27.04.22 19:44	kernel	alx 0000:07:00.0:   device [1969:e0b1] error status/mask=00000080/00002000
27.04.22 19:44	kernel	alx 0000:07:00.0:    [ 7] BadDLLP               

they are red and yellow (first time i am using this application so please bear with me). is that relevant or should i look for something specific?

edit: it runs ok, lot of spamming, if that was in question.

thats ok… and are there many of these messages in there?

Yes, roughly every second, in the default (no filtering) view.