Can't log in when screen is locked

I installed xfce4-screensaver and configured it. Sometimes when the screen locks, I can’t enter my password to log back in.
I see in “Session and Startup” that both Screen Locker and Screensaver are set to start up automatically. Is this maybe the problem, and if so, what is the solution?

inxi -F
  Host: shmuel-manjaro Kernel: 6.1.12-1-MANJARO arch: x86_64 bits: 64
    Desktop: Xfce v: 4.18.1 Distro: Manjaro Linux
  Type: Desktop Mobo: ASUSTeK model: PRIME B365M-A v: Rev X.0x
    serial: <superuser required> UEFI: American Megatrends v: 2208
    date: 07/09/2021
  Info: 8-core model: Intel Core i7-9700 bits: 64 type: MCP cache: L2: 2 MiB
  Speed (MHz): avg: 1075 min/max: 800/4700 cores: 1: 800 2: 800 3: 3000
    4: 800 5: 800 6: 800 7: 800 8: 800
  Device-1: Intel CoffeeLake-S GT2 [UHD Graphics 630] driver: i915 v: kernel
  Device-2: USB C Video Adaptor type: USB driver: N/A
  Device-3: Microdia USB Live camera type: USB
    driver: snd-usb-audio,uvcvideo
  Display: x11 server: X.Org v: 21.1.7 driver: X: loaded: modesetting
    dri: iris gpu: i915 resolution: 1: 1920x1080~120Hz 2: 1920x1080~60Hz
  API: OpenGL Message: Unable to show GL data. Required tool glxinfo
  Device-1: Intel 200 Series PCH HD Audio driver: snd_hda_intel
  Device-2: Microdia USB Live camera type: USB
    driver: snd-usb-audio,uvcvideo
  Sound API: ALSA v: k6.1.12-1-MANJARO running: yes
  Sound Server-1: PulseAudio v: 16.1 running: yes
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    driver: r8169
  IF: enp3s0 state: up speed: 1000 Mbps duplex: full mac: a8:5e:45:e2:87:3c
  Device-2: Realtek RTL8153 Gigabit Ethernet Adapter type: USB driver: r8152
  IF: enp0s20f0u3u1 state: down mac: 00:e0:4c:68:51:92
  Device-1: Cambridge Silicon Radio Bluetooth Dongle (HCI mode) type: USB
    driver: btusb
  Report: rfkill ID: hci0 state: up address: see --recommends
  Local Storage: total: 2.26 TiB used: 848.48 GiB (36.7%)
  ID-1: /dev/sda vendor: Kingston model: SA400S37480G size: 447.13 GiB
  ID-2: /dev/sdb vendor: Toshiba model: HDWD120 size: 1.82 TiB
  ID-1: / size: 67.79 GiB used: 12.11 GiB (17.9%) fs: ext4 dev: /dev/sda7
  ID-2: /boot/efi size: 96 MiB used: 53.6 MiB (55.9%) fs: vfat
    dev: /dev/sda1
  Alert: No swap data was found.
  System Temperatures: cpu: 29.0 C mobo: N/A
  Fan Speeds (RPM): N/A
  Processes: 270 Uptime: 11m Memory: 15.49 GiB used: 8.04 GiB (51.9%)
  Shell: Bash inxi: 3.3.25

By default, manjaro xfce isos make use of light-locker to lock the screen. xfce4-screensaver can handle both screensaving and locking task so I think you can safely remove light-locker and reboot.

Check out /usr/bin/xflock4 to see how things work.

I removed light-locker and rebooted. Now, when I click on the lock icon in Whisker menu, it doesn’t do anything.

light-locker needs to be explicitly called for locking. Since you removed it, you also need to remove that call and let Xfce handle xfce4-screensaver, which it supports natively.

xfconf-query -c xfce4-session -p /general/LockCommand -r
1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.