Screen locks after I try to wake it up, and takes time to unlock

Recently, my laptop is behaving wierdly for autolocking.

Normally, I expect that when it goes to sleep, it should get locked. However, what’s happening is that when the screen turns off, it’s not locked. When I move my mouse later to turn it on, I am able to access the open windows for few seconds. After that, it locks up.

Also, unlocking takes few seconds now, although earlier it used to be instantaneous. Also, sometimes when I try to unlock, after I enter the password, I get a message saying “This session is locked - you will be redirected to the unlock dialog automatically in a few seconds”. Then I am redirected to the login session and have to enter password again.

Seems like some issue with sleep. Happens both on 5.13 and 5.10 kernels. Haven’t tried other kernels. Not sure how to debug this further.

System info:

System:
  Host: me-pc Kernel: 5.13.19-2-MANJARO x86_64 bits: 64 compiler: gcc
  v: 11.1.0 Desktop: Xfce 4.16.0 tk: Gtk 3.24.29 info: xfce4-panel
  wm: xfwm 4.16.1 vt: 7 dm: LightDM 1.30.0 Distro: Manjaro Linux
  base: Arch Linux
Machine:
  Type: Laptop System: HP product: HP Notebook v: Type1ProductConfigId
  serial: <superuser required> Chassis: type: 10
  serial: <superuser required>
  Mobo: HP model: 8136 v: 31.36 serial: <superuser required> UEFI: Insyde
  v: F.1F date: 01/18/2016
Battery:
  ID-1: BAT1 charge: 19.9 Wh (96.6%) condition: 20.6/31.7 Wh (64.9%)
  volts: 16.1 min: 14.4 model: Hewlett-Packard PABAS0241231 type: Li-ion
  serial: 41167 status: Unknown
CPU:
  Info: Dual Core model: Intel Core i5-6200U bits: 64 type: MT MCP
  arch: Skylake rev: 3 cache: L2: 3 MiB
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  bogomips: 19204
  Speed: 721 MHz min/max: 400/2800 MHz Core speeds (MHz): 1: 721 2: 656
  3: 565 4: 500
Graphics:
  Device-1: Intel Skylake GT2 [HD Graphics 520] vendor: Hewlett-Packard
  driver: i915 v: kernel bus-ID: 00:02.0 chip-ID: 8086:1916 class-ID: 0300
  Device-2: AMD Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430 /
  Radeon 520 Mobile]
  vendor: Hewlett-Packard driver: radeon v: kernel bus-ID: 01:00.0
  chip-ID: 1002:6660 class-ID: 0380
  Device-3: Realtek HP Truevision HD type: USB driver: uvcvideo
  bus-ID: 1-5:4 chip-ID: 0bda:57d6 class-ID: 0e02 serial: DEWKP01BI9L83M
  Display: x11 server: X.Org 1.20.13 compositor: xfwm4 v: 4.16.1 driver:
  loaded: ati,modesetting,radeon alternate: fbdev,vesa resolution:
  1: 1920x1080~60Hz 2: 2560x1440~75Hz s-dpi: 96
  OpenGL: renderer: Mesa Intel HD Graphics 520 (SKL GT2) v: 4.6 Mesa 21.2.3
  direct render: Yes
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: Hewlett-Packard
  driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:9d70
  class-ID: 0403
  Sound Server-1: ALSA v: k5.13.19-2-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.38 running: no
Network:
  Device-1: Realtek RTL810xE PCI Express Fast Ethernet
  vendor: Hewlett-Packard driver: r8169 v: kernel port: 4000 bus-ID: 02:00.0
  chip-ID: 10ec:8136 class-ID: 0200
  IF: enp2s0 state: down mac: dc:4a:3e:d7:70:0d
  Device-2: Realtek RTL8723BE PCIe Wireless Network Adapter
  vendor: Hewlett-Packard driver: rtl8723be v: kernel port: 3000
  bus-ID: 03:00.0 chip-ID: 10ec:b723 class-ID: 0280
  IF: wlp3s0 state: up mac: 48:e2:44:b1:d8:85
  IF-ID-1: br-06f9136fed06 state: down mac: 02:42:bf:95:c5:14
  IF-ID-2: docker0 state: down mac: 02:42:34:1a:73:0a
  IF-ID-3: mpqemubr0 state: down mac: 52:54:00:e8:da:67
  IF-ID-4: virbr0 state: down mac: 52:54:00:a3:29:1f
Bluetooth:
  Device-1: Realtek Bluetooth Radio type: USB driver: btusb v: 0.8
  bus-ID: 1-4:3 chip-ID: 0bda:b006 class-ID: e001 serial: 00e04c000001
  Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
Drives:
  Local Storage: total: 465.76 GiB used: 242.02 GiB (52.0%)
  ID-1: /dev/sda vendor: Crucial model: CT500MX500SSD1 size: 465.76 GiB
  speed: 6.0 Gb/s type: SSD serial: 1926E20F554B rev: 023 scheme: GPT
Partition:
  ID-1: / size: 63.48 GiB used: 44.27 GiB (69.7%) fs: ext4 dev: /dev/sda2
  ID-2: /boot/efi size: 98.4 MiB used: 266 KiB (0.3%) fs: vfat
  dev: /dev/sda1
  ID-3: /home size: 377.62 GiB used: 197.75 GiB (52.4%) fs: ext4
  dev: /dev/sda3
Swap:
  ID-1: swap-1 type: partition size: 16 GiB used: 0 KiB (0.0%) priority: -2
  dev: /dev/sda4
Sensors:
  System Temperatures: cpu: 53.5 C mobo: 29.8 C gpu: radeon temp: 57.0 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 227 Uptime: 19m wakeups: 1 Memory: 7.67 GiB
  used: 3.05 GiB (39.8%) Init: systemd v: 249 Compilers: gcc: 11.1.0
  Packages: 2154 pacman: 2143 snap: 11 Shell: Bash v: 5.1.8
  running-in: xfce4-terminal inxi: 3.3.07

Which screen locker do you use?

I get a message saying “This session is locked - you will be redirected to the unlock dialog automatically in a few seconds”.

Sometimes I also get this in lightdm.

How do I check that?

A search for locker in installed packages shows that light-locker is installed.

Not sure if that issue is related, but it may give a few ideas:

As suggested there, if you can’t resolve this, you may try switching to another locker such as xfce4-screensaver.