Issue with getting passed login screen. Stuck in a loop

Good morning community.
I am experiencing an issue where when the system boots up and I get to the login screen, once entered the password, and this is correct, when I press enter it seems to go back to requesting the password and this happens endlessly.

The workaround to successfully log in is to open a tty2 by pressing CTRL+Alt+F2 and login in from there and then typing startx.

This successfully logs me in and I have do this every time.

Output below from:

inxi -Fza 
System:
  Kernel: 5.15.25-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
    root=UUID=103b50da-c9d2-43de-b51e-2fb207d9a556 rw quiet apparmor=1
    security=apparmor udev.log_priority=3
  Desktop: KDE Plasma 5.24.2 tk: Qt 5.15.2 wm: kwin_x11 vt: 2 dm: SDDM
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
  Mobo: ASUSTeK model: ROG CROSSHAIR VIII HERO (WI-FI) v: Rev X.0x
    serial: <superuser required> UEFI: American Megatrends v: 4004
    date: 02/18/2022
CPU:
  Info: model: AMD Ryzen 9 5900X bits: 64 type: MT MCP arch: Zen 3
    family: 0x19 (25) model-id: 0x21 (33) stepping: 0 microcode: 0xA201016
  Topology: cpus: 1x cores: 12 tpc: 2 threads: 24 smt: enabled cache:
    L1: 768 KiB desc: d-12x32 KiB; i-12x32 KiB L2: 6 MiB desc: 12x512 KiB
    L3: 64 MiB desc: 2x32 MiB
  Speed (MHz): avg: 4668 high: 4707 min/max: 2200/6255 boost: disabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 4668 2: 4648
    3: 4660 4: 4697 5: 4686 6: 4676 7: 4667 8: 4639 9: 4670 10: 4688 11: 4673
    12: 4677 13: 4674 14: 4670 15: 4674 16: 4674 17: 4707 18: 4674 19: 4655
    20: 4640 21: 4679 22: 4617 23: 4687 24: 4641 bogomips: 224516
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: spec_store_bypass
    mitigation: Speculative Store Bypass disabled via prctl and seccomp
  Type: spectre_v1
    mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional,
    IBRS_FW, STIBP: always-on, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA GP107 [GeForce GTX 1050 Ti] vendor: Gigabyte
    driver: nvidia v: 510.54 alternate: nouveau,nvidia_drm pcie: gen: 3
    speed: 8 GT/s lanes: 16 bus-ID: 0a:00.0 chip-ID: 10de:1c82 class-ID: 0300
  Device-2: CQG-5693-201019 Real QHD(2592x1944) type: USB
    driver: snd-usb-audio,uvcvideo bus-ID: 3-2.4:4 chip-ID: 2b16:6689
    class-ID: 0102 serial: <filter>
  Display: server: X.Org v: 1.21.1.3 compositor: kwin_x11 driver: X:
    loaded: nvidia gpu: nvidia display-ID: :1 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 46 s-size: 1060x596mm (41.7x23.5")
    s-diag: 1216mm (47.9")
  Monitor-1: DP-1 res: 1920x1080 hz: 60 dpi: 26
    size: 1872x1053mm (73.7x41.5") diag: 2148mm (84.6")
  OpenGL: renderer: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2
    v: 4.6.0 NVIDIA 510.54 direct render: Yes
Audio:
  Device-1: NVIDIA GP107GL High Definition Audio vendor: Gigabyte
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 0a:00.1 chip-ID: 10de:0fb9 class-ID: 0403
  Device-2: AMD Starship/Matisse HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: 0c:00.4 chip-ID: 1022:1487 class-ID: 0403
  Device-3: CQG-5693-201019 Real QHD(2592x1944) type: USB
    driver: snd-usb-audio,uvcvideo bus-ID: 3-2.4:4 chip-ID: 2b16:6689
    class-ID: 0102 serial: <filter>
  Sound Server-1: ALSA v: k5.15.25-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.20 running: no
  Sound Server-3: PulseAudio v: 15.0 running: yes
  Sound Server-4: PipeWire v: 0.3.47 running: yes
Network:
  Device-1: Realtek RTL8125 2.5GbE vendor: ASUSTeK driver: r8169 v: kernel
    pcie: gen: 2 speed: 5 GT/s lanes: 1 port: e000 bus-ID: 04:00.0
    chip-ID: 10ec:8125 class-ID: 0200
  IF: enp4s0 state: up speed: 100 Mbps duplex: full mac: <filter>
  Device-2: Intel I211 Gigabit Network vendor: ASUSTeK driver: igb
    v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: d000 bus-ID: 05:00.0
    chip-ID: 8086:1539 class-ID: 0200
  IF: enp5s0 state: down mac: <filter>
  Device-3: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: gen: 2
    speed: 5 GT/s lanes: 1 bus-ID: 06:00.0 chip-ID: 8086:2723 class-ID: 0280
  IF: wlp6s0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8
    bus-ID: 1-6:4 chip-ID: 8087:0029 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 0 state: up address: see --recommends
Drives:
  Local Storage: total: 4.59 TiB used: 361.26 GiB (7.7%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung
    model: SSD 980 PRO 500GB size: 465.76 GiB block-size: physical: 512 B
    logical: 512 B speed: 63.2 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: 5B2QGXA7 temp: 42.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Seagate model: ST1000LM048-2E7172
    size: 931.51 GiB block-size: physical: 4096 B logical: 512 B
    speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter> rev: SDM1
    scheme: GPT
  ID-3: /dev/sdb maj-min: 8:16 vendor: Samsung model: SSD 870 QVO 1TB
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 2B6Q scheme: GPT
  ID-4: /dev/sdc maj-min: 8:32 vendor: Western Digital
    model: WD3200AVJS-63B6A0 size: 298.09 GiB block-size: physical: 512 B
    logical: 512 B speed: 3.0 Gb/s type: N/A serial: <filter> rev: 3A01
    scheme: MBR
  ID-5: /dev/sdd maj-min: 8:48 vendor: Seagate model: ST2000DM001-1CH164
    size: 1.82 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: HDD rpm: 7200 serial: <filter> rev: CC27 scheme: GPT
  ID-6: /dev/sde maj-min: 8:64 vendor: Maxtor model: STM3160813AS
    size: 149.05 GiB block-size: physical: 512 B logical: 512 B speed: 3.0 Gb/s
    type: HDD rpm: 7200 serial: <filter> rev: MC1J scheme: GPT
  ID-7: /dev/sdf maj-min: 8:80 type: USB vendor: SanDisk model: Ultra
    size: 57.3 GiB block-size: physical: 512 B logical: 512 B type: N/A
    serial: <filter> rev: 1.00 scheme: MBR
  SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
Partition:
  ID-1: / raw-size: 232.88 GiB size: 228.16 GiB (97.98%)
    used: 11.42 GiB (5.0%) fs: ext4 dev: /dev/sda4 maj-min: 8:4
  ID-2: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%)
    used: 34.8 MiB (36.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: N/A mobo: N/A gpu: nvidia temp: 46 C
  Fan Speeds (RPM): N/A gpu: nvidia fan: 0%
Info:
  Processes: 495 Uptime: 4m wakeups: 0 Memory: 31.32 GiB
  used: 2.41 GiB (7.7%) Init: systemd v: 250 tool: systemctl Compilers:
  gcc: 11.2.0 clang: 13.0.1 Packages: pacman: 1281 lib: 331 flatpak: 0
  Shell: Zsh v: 5.8.1 default: Bash v: 5.1.16 running-in: konsole
  inxi: 3.3.13

Apologies for raising something that may have been raised before and if this has been raised in the incorrect section.

Hello,

Make sure that in the Session option field you have X11 session selected and not the Wayland session. That can create that loop password with SDDM with Nvidia drivers and GPU …

1 Like

Hi thanks for coming back to me. Running the following I get:

loginctl
SESSION UID USER SEAT TTY
2 1000 robin seat0 tty2
4 1000 robin seat0 tty2
c2 962 sddm seat0

following that I ran:

loginctl show-session c2
Id=c2
User=962
Name=sddm
Timestamp=Sat 2022-03-19 08:13:12 GMT
TimestampMonotonic=63846783
VTNr=1
Seat=seat0
Display=:0
Remote=no
Service=sddm-greeter
Scope=session-c2.scope
Leader=1204
Audit=4294967295
Type=x11
Class=greeter
Active=no
State=online
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0

Also results from info centre show the following in OpenGL (EGL)

EGL_EXT_platform_x11 EGL_EXT_platform_device EGL_KHR_platform_wayland EGL_EXT_platform_wayland EGL_KHR_platform_gbm EGL_MESA_platform_gbm EGL_NV_robustness_video_memory_purge EGL_WL_bind_wayland_display EGL_WL_wayland_eglstream Wayland platform: EGL_NV_robustness_video_memory_purge EGL_WL_bind_wayland_display EGL_WL_wayland_eglstream EGL_NV_robustness_video_memory_purge EGL_WL_bind_wayland_display EGL_WL_wayland_eglstream

So I am king of confused as it seem that the sddm session is using x11. Do I need to remove Wayland all together.

Apologies I am kind of a noob :slightly_smiling_face:

Thanks in advance

PS. On a side note. love your caricatures. They look amazing :smiley:

1 Like

Hi @Deadlyhydra, and welcome!

Please provide the output of:

find /etc -name '*.pacnew' 

Tip:

To provide terminal output, copy the text you wish to share, and paste it here, surrounded by three (3) backticks, a.k.a grave accents. Like this:

```
pasted text
```

This will just cause it to be rendered like this:

Portaest sed
elementum
cursus nisl nisi
hendrerit ac quis
sit
adipiscing
tortor sit leo commodo.

Instead of like this:

Portaest sed elementum cursus nisl nisi hendrerit ac quis sit adipiscing tortor sit leo commodo.

Thereby improving legibility and making it much easier for those trying to be of assistance.

Please edit your post(s) accordingly.

1 Like

Hi thanks for coming back to me.

I am not entirely sure what happened on the last post and why it didn’t apply the outcome from the terminal as per 1st post.

Will keep you posted as soon as I able to run the cmd. (Currently in the middle of house work) :laughing:

That should not be necessary at all, just make sure the SDDM session is set to X11 in case you also have installed plasma-wayland-session.
Also, if you still have the .xinitrc in your home directory, it should have
DEFAULT_SESSION=startplasma-x11
hence also try from TTY with startplasma-x11 instead of startx … but see if sddm service is started.
When you got the time, provide the info requested here too

Much obliged!

find /etc -name '*.pacnew'                                                                    
find: ‘/etc/audit/plugins.d’: Permission denied
find: ‘/etc/cups/ssl’: Permission denied
find: ‘/etc/pacman.d/gnupg/private-keys-v1.d’: Permission denied
find: ‘/etc/pacman.d/gnupg/openpgp-revocs.d’: Permission denied
find: ‘/etc/polkit-1/rules.d’: Permission denied
find: ‘/etc/NetworkManager/system-connections’: Permission denied
find: ‘/etc/sudoers.d’: Permission denied
find: ‘/etc/samba/private’: Permission denied

Does this need to be run as Sudo by any chance?

It would clear the errors, yes. So please do:

sudo find /etc -name '*.pacnew'
sudo find /etc -name '*.pacnew'                                                             
[sudo] password for robin: 
    ~                                                                                        

Should I expect for something to happen?

No, it looks fine. I just had similar thing some time way back when, and I read something that unmerged .pacnew files could cause it. But yours look fine to me, so I don’t know what else can cause it.

So, even after latest update, the issue is still persisting?