Random login glitch - fixed (i hope)

hey!
i run gnome manjaro on my thinkpad w530. it had been running perfectly for months, and i run updates regularly. but about a month ago, i think after running an update, i got a problem.

sometimes when i get to the login screen i type my password, hit go, the screen goes black, and it drops me back into the login screen. the password is correct, typing in a wrong password just gives a ‘wrong password’ response and this is different. it doesn’t matter how many times i try, it just kicks me back to a fresh login screen.
to get into my computer i have to restart and try again, but this is no guarantee. somtimes i have to restart 4 or 5 times. at some point it just works normally.

i haven’t found any contributing factor yet. it doesn’t matter if i shutdown through gui or with the command shortcut i made. it doesnt matter if i shut down after closing all windows or not. it doesnt matter which apps i used, afaik. it seems very random.

now today i ran updates again, and i got a prompt saying ‘error while configuring manjaro-keyring’, so i hoped that would be a hint. but duckduckgoïng on that phrase didn’t give any situations that looked familiar. updating also didn’t solve the problem.

so… does anyone have an idea of what the problem might be? and maybe how to fix it?
if you want more info about my system please tell me to which command you’d like to see the response. i’m afraid i’m not fluent enough in code to know which you might want… :slight_smile:

thanks in advance!
jochem

If you could provide some good information there might be users who can help you solve this issue.

The #announcements threads have common solutions to certain problems, it is a good idea to look through the last few stable update threads 2nd posts for solutions.

Posting the errors from the journal log could shed some light on your issue.
The command below lists the errors in the previous bootup of your machine.
journalctl --boot -1 --priority=err

thanks for your reaction, @Hanzel!

here goes:
the inxi from the good info page:

System:
  Kernel: 5.9.16-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.9-x86_64 
  root=UUID=28550f19-1cd5-413d-afc9-360fa35ee0e7 ro quiet splash apparmor=1 
  security=apparmor udev.log_priority=3 
  Desktop: GNOME 40.4 tk: GTK 3.24.30 wm: gnome-shell dm: GDM 40.1 
  Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Laptop System: LENOVO product: 24477Z0 v: ThinkPad W530 
  serial: <filter> Chassis: type: 10 serial: <filter> 
  Mobo: LENOVO model: 24477Z0 serial: <filter> UEFI-[Legacy]: LENOVO 
  v: G5ETA3WW (2.63 ) date: 09/18/2015 
Battery:
  ID-1: BAT0 charge: 53.5 Wh (65.1%) condition: 82.2/84.2 Wh (97.6%) 
  volts: 12.5 min: 10.8 model: SANYO 45N1015 type: Li-ion serial: <filter> 
  status: Charging 
Memory:
  RAM: total: 15.2 GiB used: 1.77 GiB (11.6%) 
  RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:
  Info: Quad Core model: Intel Core i7-3740QM bits: 64 type: MT MCP 
  arch: Ivy Bridge family: 6 model-id: 3A (58) stepping: 9 microcode: 21 
  cache: L2: 6 MiB bogomips: 43123 
  Speed: 1198 MHz min/max: 1200/3700 MHz Core speeds (MHz): 1: 1198 2: 1198 
  3: 1250 4: 1198 5: 1233 6: 1199 7: 1198 8: 1197 
  Flags: acpi aes aperfmperf apic arat arch_perfmon avx bts clflush cmov 
  constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts epb erms 
  est f16c flush_l1d fpu fsgsbase fxsr ht ibpb ibrs ida lahf_lm lm mca mce 
  md_clear mmx monitor msr mtrr nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq 
  pdcm pebs pge pln pni popcnt pse pse36 pti pts rdrand rdtscp rep_good sep 
  smep smx ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2 tsc 
  tsc_deadline_timer vme x2apic xsave xsaveopt xtopology xtpr 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX unsupported 
  Type: l1tf mitigation: PTE Inversion 
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
  Type: meltdown mitigation: PTI 
  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 generic retpoline, IBPB: conditional, 
  IBRS_FW, STIBP: conditional, RSB filling 
  Type: srbds status: Vulnerable: No microcode 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: Intel 3rd Gen Core processor Graphics vendor: Lenovo driver: i915 
  v: kernel bus-ID: 00:02.0 chip-ID: 8086:0166 class-ID: 0300 
  Device-2: NVIDIA GK107GLM [Quadro K1000M] driver: N/A alternate: nouveau 
  bus-ID: 01:00.0 chip-ID: 10de:0ffc class-ID: 0300 
  Device-3: Chicony Integrated Camera [ThinkPad] type: USB driver: uvcvideo 
  bus-ID: 1-1.6:4 chip-ID: 04f2:b2ea class-ID: 0e02 
  Display: wayland server: X.org 1.20.13 compositor: gnome-shell driver: 
  loaded: N/A note: try sudo/root unloaded: intel display-ID: 0 
  resolution: <missing: xdpyinfo> 
  OpenGL: renderer: Mesa DRI Intel HD Graphics 4000 (IVB GT2) 
  v: 4.2 Mesa 21.2.1 compat-v: 3.0 direct render: Yes 
Audio:
  Device-1: Intel 7 Series/C216 Family High Definition Audio vendor: Lenovo 
  driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:1e20 
  class-ID: 0403 
  Device-2: NVIDIA GK107 HDMI Audio driver: snd_hda_intel v: kernel 
  bus-ID: 01:00.1 chip-ID: 10de:0e1b class-ID: 0403 
  Sound Server-1: ALSA v: k5.9.16-1-MANJARO running: yes 
  Sound Server-2: JACK v: 1.9.19 running: no 
  Sound Server-3: PulseAudio v: 15.0 running: yes 
  Sound Server-4: PipeWire v: 0.3.35 running: yes 
Network:
  Device-1: Intel 82579LM Gigabit Network vendor: Lenovo driver: e1000e 
  v: kernel port: 7080 bus-ID: 00:19.0 chip-ID: 8086:1502 class-ID: 0200 
  IF: enp0s25 state: down mac: <filter> 
  Device-2: Intel Centrino Advanced-N 6205 [Taylor Peak] driver: iwlwifi 
  v: kernel port: efa0 bus-ID: 03:00.0 chip-ID: 8086:0085 class-ID: 0280 
  IF: wlp3s0 state: up mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  broadcast: <filter> 
  IP v6: <filter> type: dynamic noprefixroute scope: global 
  IP v6: <filter> type: noprefixroute scope: link 
  WAN IP: <filter> 
Bluetooth:
  Device-1: Broadcom BCM20702 Bluetooth 4.0 [ThinkPad] type: USB driver: btusb 
  v: 0.8 bus-ID: 1-1.4:3 chip-ID: 0a5c:21e6 class-ID: fe01 serial: <filter> 
  Report: rfkill ID: hci0 rfk-id: 2 state: up address: see --recommends 
Logical:
  Message: No logical block device data found. 
RAID:
  Message: No RAID data found. 
Drives:
  Local Storage: total: 689.33 GiB used: 110.25 GiB (16.0%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/sda maj-min: 8:0 vendor: SanDisk model: SDSSDA240G 
  size: 223.57 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s 
  type: SSD serial: <filter> rev: 30RL scheme: MBR 
  ID-2: /dev/sdb maj-min: 8:16 vendor: Western Digital 
  model: WD5000LPCX-24VHAT0 size: 465.76 GiB block-size: physical: 4096 B 
  logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter> 
  rev: 1A02 
  Message: No optical or floppy data found. 
Partition:
  ID-1: / raw-size: 223.57 GiB size: 219.06 GiB (97.98%) 
  used: 110.25 GiB (50.3%) fs: ext4 dev: /dev/sda1 maj-min: 8:1 label: N/A 
  uuid: 28550f19-1cd5-413d-afc9-360fa35ee0e7 
Swap:
  Alert: No swap data was found. 
Unmounted:
  Message: No unmounted partitions found. 
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 3 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Hub-2: 1-1:2 info: Intel Integrated Rate Matching Hub ports: 6 rev: 2.0 
  speed: 480 Mb/s chip-ID: 8087:0024 class-ID: 0900 
  Device-1: 1-1.4:3 info: Broadcom BCM20702 Bluetooth 4.0 [ThinkPad] 
  type: Bluetooth driver: btusb interfaces: 4 rev: 2.0 speed: 12 Mb/s 
  chip-ID: 0a5c:21e6 class-ID: fe01 serial: <filter> 
  Device-2: 1-1.6:4 info: Chicony Integrated Camera [ThinkPad] type: Video 
  driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 200mA 
  chip-ID: 04f2:b2ea class-ID: 0e02 
  Hub-3: 2-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Hub-4: 3-0:1 info: Full speed (or root) Hub ports: 3 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Hub-5: 3-1:2 info: Intel Integrated Rate Matching Hub ports: 8 rev: 2.0 
  speed: 480 Mb/s chip-ID: 8087:0024 class-ID: 0900 
  Device-1: 3-1.5:3 info: Maxxter Wireless Receiver type: Mouse,Keyboard 
  driver: hid-generic,usbhid interfaces: 2 rev: 1.1 speed: 12 Mb/s power: 50mA 
  chip-ID: 248a:ff0f class-ID: 0301 
  Hub-6: 4-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.0 speed: 5 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
Sensors:
  System Temperatures: cpu: 46.0 C mobo: 0.0 C 
  Fan Speeds (RPM): cpu: 1954 
Info:
  Processes: 268 Uptime: 6m wakeups: 2 Init: systemd v: 249 tool: systemctl 
  Compilers: gcc: 11.1.0 alt: 10 clang: 12.0.1 Packages: 1491 pacman: 1463 
  lib: 455 flatpak: 18 snap: 10 Shell: Zsh v: 5.8 running-in: io.elementary.t 
  inxi: 3.3.06 

the journalctl readout:

journalctl --boot -1 --priority=err                                                    ✔ 
-- Journal begins at Thu 2021-04-15 12:32:21 CEST, ends at Wed 2021-09-22 13:19:53 CEST. --
Sep 22 13:09:52 manjaro kernel: x86/cpu: VMX (outside TXT) disabled by BIOS
Sep 22 13:09:53 manjaro kernel: snd_hda_intel 0000:01:00.1: can't change power state from D3cold to D>
Sep 22 13:09:53 manjaro kernel: snd_hda_intel 0000:01:00.1: can't change power state from D3hot to D0>
Sep 22 13:09:53 manjaro bumblebeed[489]: Module 'nvidia' is not found.
Sep 22 13:09:53 manjaro kernel: hdaudio hdaudioC1D0: no AFG or MFG node found
Sep 22 13:09:53 manjaro kernel: hdaudio hdaudioC1D1: no AFG or MFG node found
Sep 22 13:09:53 manjaro kernel: hdaudio hdaudioC1D2: no AFG or MFG node found
Sep 22 13:09:53 manjaro kernel: hdaudio hdaudioC1D3: no AFG or MFG node found
Sep 22 13:09:53 manjaro kernel: hdaudio hdaudioC1D4: no AFG or MFG node found
Sep 22 13:09:53 manjaro kernel: hdaudio hdaudioC1D5: no AFG or MFG node found
Sep 22 13:09:53 manjaro kernel: hdaudio hdaudioC1D6: no AFG or MFG node found
Sep 22 13:09:53 manjaro kernel: hdaudio hdaudioC1D7: no AFG or MFG node found
Sep 22 13:09:53 manjaro kernel: snd_hda_intel 0000:01:00.1: no codecs initialized
Sep 22 13:09:54 manjaro kernel: Bluetooth: hci0: BCM: firmware Patch file not found, tried:
Sep 22 13:09:54 manjaro kernel: Bluetooth: hci0: BCM: 'brcm/BCM20702A1-0a5c-21e6.hcd'
Sep 22 13:09:54 manjaro kernel: Bluetooth: hci0: BCM: 'brcm/BCM-0a5c-21e6.hcd'
Sep 22 13:09:54 manjaro gnome-session-binary[886]: Unrecoverable failure in required component org.gn>
Sep 22 13:09:54 manjaro gdm-launch-environment][777]: GLib-GObject: g_object_unref: assertion 'G_IS_O>
Sep 22 13:10:22 manjaro gdm-password][1537]: gkr-pam: unable to locate daemon control file
Sep 22 13:10:39 manjaro gdm-password][1592]: gkr-pam: unable to locate daemon control file
Sep 22 13:10:52 manjaro gdm-password][1634]: gkr-pam: unable to locate daemon control file
Sep 22 13:10:53 manjaro bumblebeed[1661]: Module 'nvidia' is not found.
Sep 22 13:11:04 manjaro gdm-password][1675]: gkr-pam: unable to locate daemon control file
lines 1-24/24 (END)

i really don’t understand a lot about this? is this a readout of my previous try to boot? that was one where it didn’t let me in. the session i’m in now is obviously glitch-free.

i also tried to change to gnome classic during login. didn’t help.

It appears the NVIDIA drivers are not installed properly.

What’s the output of the following commands? The first will list available drivers, the second will list installed drivers:

mhwd -l
mhwd -li
> 0000:00:02.0 (0300:8086:0166) Display controller Intel Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           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-390xx-bumblebee            2020.11.30               false            PCI


Warning: No installed USB configs!

ok so i turned on automatic login, so without password. and did a bunch of problem free restarts since then…

What’s the output of the following? It will attempt to reinstall the proprietary NVIDIA driver:

sudo mhwd -a pci nonfree 0300

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

[sudo] password for jochem: 
> Skipping already installed config 'video-hybrid-intel-nvidia-390xx-bumblebee' for device: 0000:01:00.0 (0300:10de:0ffc) Display controller nVidia Corporation GK107GLM [Quadro K1000M]
> Skipping already installed config 'video-hybrid-intel-nvidia-390xx-bumblebee' for device: 0000:00:02.0 (0300:8086:0166) Display controller Intel Corporation 3rd Gen Core processor Graphics Controller

looks like it was already installed?

…and by turning automatic login off the problem came back!
…so logically i’d think the problem is somewhere around there, not in the drivers which should be engaged earlier in the boot? or am i wrong?

5.9.x is eol, this might explain some issues with things breaking after updates.

5.10 is long term supported, 5.14 is the current latest stable : https://www.kernel.org/

Luckily managing kernels is quick and simple in Manjaro:
https://wiki.manjaro.org/index.php/Manjaro_Kernels

ah, thanks! i went to 5.10, and did like 10 succesfull restarts. it seems to have fixed it!