After screen lock the screen remains black

When locking my screen per keystroke or waiting the lock time the screen goes black. The system is still awake.
With a mouse or key action the screen remains dark, but I can see and move the mouse.
Only if I switch to another console (e.g. CtrlF1 and then back again to console 2, the login screen appears again.

Any ideas how to fix this behavior?
Thanks.

Post your hardware - inxi -Fxxxc0

System:
  Host: eosneu Kernel: 6.6.52-1-lts arch: x86_64 bits: 64 compiler: gcc
    v: 14.2.1 clocksource: tsc
  Desktop: KDE Plasma v: 6.1.5 tk: Qt v: N/A wm: kwin_x11 vt: 2 dm: SDDM
    Distro: EndeavourOS base: Arch Linux
Machine:
  Type: Desktop System: Micro-Star product: MS-7D75 v: 1.0
    serial: <superuser required>
  Mobo: Micro-Star model: MAG B650 TOMAHAWK WIFI (MS-7D75) v: 1.0
    serial: <superuser required> uuid: <superuser required> UEFI: American
    Megatrends LLC. v: 1.I0 date: 06/07/2024
Battery:
  Device-1: hidpp_battery_0 model: Logitech M720 Triathlon Multi-Device Mouse
    serial: 29-1d-ec-ec charge: 55% (should be ignored) rechargeable: yes
    status: discharging
CPU:
  Info: 8-core model: AMD Ryzen 7 7700 bits: 64 type: MT MCP smt: enabled
    arch: Zen 4 rev: 2 cache: L1: 512 KiB L2: 8 MiB L3: 32 MiB
  Speed (MHz): avg: 735 high: 3600 min/max: 545/5389 cores: 1: 545 2: 545
    3: 545 4: 545 5: 3600 6: 545 7: 545 8: 545 9: 545 10: 545 11: 545 12: 545
    13: 545 14: 545 15: 545 16: 545 bogomips: 121659
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: AMD Navi 32 [Radeon RX 7700 XT / 7800 XT] vendor: ASRock
    driver: amdgpu v: kernel arch: RDNA-3 pcie: speed: 16 GT/s lanes: 16 ports:
    active: DP-3 empty: DP-1,DP-2,HDMI-A-1 bus-ID: 03:00.0 chip-ID: 1002:747e
    class-ID: 0300
  Device-2: AMD Raphael vendor: Micro-Star MSI driver: amdgpu v: kernel
    arch: RDNA-2 pcie: speed: 16 GT/s lanes: 16 ports: active: none empty: DP-4,
    DP-5, DP-6, HDMI-A-2 bus-ID: 12:00.0 chip-ID: 1002:164e class-ID: 0300
    temp: 39.0 C
  Display: x11 server: X.Org v: 21.1.13 with: Xwayland v: 24.1.2
    compositor: kwin_x11 driver: X: loaded: amdgpu unloaded: modesetting,radeon
    alternate: fbdev,vesa dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3440x1440 s-dpi: 96 s-size: 910x381mm (35.83x15.00")
    s-diag: 987mm (38.84")
  Monitor-1: DP-3 mapped: DisplayPort-2 model: LG (GoldStar) ULTRAGEAR
    serial: 403NTJJ93548 res: 3440x1440 hz: 144 dpi: 109
    size: 800x335mm (31.5x13.19") diag: 867mm (34.1") modes: max: 3440x1440
    min: 640x480
  API: EGL v: 1.5 hw: drv: amd radeonsi platforms: device: 0 drv: radeonsi
    device: 1 drv: radeonsi device: 2 drv: swrast gbm: drv: kms_swrast
    surfaceless: drv: radeonsi x11: drv: radeonsi inactive: wayland
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.2.2-arch1.1
    glx-v: 1.4 direct-render: yes renderer: AMD Radeon RX 7800 XT (radeonsi
    navi32 LLVM 18.1.8 DRM 3.54 6.6.52-1-lts) device-ID: 1002:747e
  API: Vulkan v: 1.3.295 layers: 6 surfaces: xcb,xlib device: 0
    type: discrete-gpu driver: amd device-ID: 1002:747e device: 1
    type: integrated-gpu driver: amd device-ID: 1002:164e
Audio:
  Device-1: AMD Navi 31 HDMI/DP Audio driver: snd_hda_intel v: kernel pcie:
    speed: 16 GT/s lanes: 16 bus-ID: 03:00.1 chip-ID: 1002:ab30 class-ID: 0403
  Device-2: AMD Rembrandt Radeon High Definition Audio
    vendor: Micro-Star MSI driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s
    lanes: 16 bus-ID: 12:00.1 chip-ID: 1002:1640 class-ID: 0403
  Device-3: AMD Family 17h/19h HD Audio vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 12:00.6 chip-ID: 1022:15e3 class-ID: 0403
  Device-4: Micro Star USB Audio driver: hid-generic,snd-usb-audio,usbhid
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 1-6:3 chip-ID: 0db0:422d
    class-ID: 0300
  Device-5: Logitech [G533 Wireless Headset Dongle]
    driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 1.1 speed: 12 Mb/s
    lanes: 1 bus-ID: 3-2:2 chip-ID: 046d:0a66 class-ID: 0300
  API: ALSA v: k6.6.52-1-lts status: kernel-api
  Server-1: PipeWire v: 1.2.3 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin
Network:
  Device-1: Realtek RTL8125 2.5GbE vendor: Micro-Star MSI driver: r8169
    v: kernel pcie: speed: 5 GT/s lanes: 1 port: c000 bus-ID: 0e:00.0
    chip-ID: 10ec:8125 class-ID: 0200
  IF: enp14s0 state: down mac: d8:43:ae:13:14:61
  Device-2: MEDIATEK MT7922 802.11ax PCI Express Wireless Network Adapter
    driver: mt7921e v: kernel pcie: speed: 5 GT/s lanes: 1 bus-ID: 0f:00.0
    chip-ID: 14c3:0616 class-ID: 0280
  IF: wlan0 state: up mac: 2e:79:28:f3:ca:34
Bluetooth:
  Device-1: MediaTek Wireless_Device driver: btusb v: 0.8 type: USB rev: 2.1
    speed: 480 Mb/s lanes: 1 bus-ID: 1-7:6 chip-ID: 0e8d:0616 class-ID: e001
    serial: 000000000
  Report: btmgmt ID: hci0 rfk-id: 1 state: down bt-service: disabled
    rfk-block: hardware: no software: no address: N/A
Drives:
  Local Storage: total: 3.64 TiB used: 261.61 GiB (7.0%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 980 PRO 2TB size: 1.82 TiB
    speed: 63.2 Gb/s lanes: 4 tech: SSD serial: S69ENF0WA29882R fw-rev: 5B2QGXA7
    temp: 33.9 C scheme: GPT
  ID-2: /dev/nvme1n1 vendor: Lexar model: SSD NM610PRO 2TB size: 1.82 TiB
    speed: 31.6 Gb/s lanes: 4 tech: SSD serial: NDH562R004784P1112 fw-rev: 9442
    temp: 34.9 C scheme: GPT
Partition:
  ID-1: / size: 491.37 GiB used: 88.37 GiB (18.0%) fs: ext4
    dev: /dev/nvme0n1p5
  ID-2: /boot/efi size: 998 MiB used: 210.2 MiB (21.1%) fs: vfat
    dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: partition size: 16 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/nvme0n1p4
Sensors:
  System Temperatures: cpu: 40.9 C mobo: 30.0 C
  Fan Speeds (rpm): N/A
  GPU: device: amdgpu temp: 39.0 C device: amdgpu temp: 34.0 C mem: 46.0 C
    fan: 0 watts: 7.00
Info:
  Memory: total: 32 GiB note: est. available: 30.46 GiB used: 3.08 GiB (10.1%)
  Processes: 364 Power: uptime: 1h 32m states: freeze,mem,disk suspend: deep
    wakeups: 0 hibernate: platform Init: systemd v: 256 default: graphical
  Packages: pm: pacman pkgs: 1193 Compilers: gcc: 14.2.1 Shell: Bash
    v: 5.2.32 running-in: konsole inxi: 3.3.35

Unfortunately, I know diddly squat about amd graphics, so I will bow out.

1 Like

Don’t know if this is relevant and helps, journalctl has some lines with “screenlocker”:

Sep 21 12:02:05 eosneu kscreenlocker_greet[10950]: qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile
Sep 21 12:02:05 eosneu kscreenlocker_greet[10950]: qt.virtualkeyboard.hunspell: Hunspell dictionary is missing for "de_DE". Search paths QList("/usr/share/qt6/qtvirtualkeyboard/hunspell", "/usr/share/hunspell", "/usr/share/myspell/dicts")
Sep 21 12:02:31 eosneu kscreenlocker_greet[10950]: pam_systemd_home(kde:auth): New sd-bus connection (system-bus-pam-systemd-home-10950) opened.

The lines at 12:02:05 are the lock, the 12:02:31 is the unlock.

Look for entries like:

Sep 21 10:55:45 xircon-legion systemd-sleep[10191]: Performing sleep operation 'suspend'...
Sep 21 10:55:45 xircon-legion kernel: PM: suspend entry (deep)
Sep 21 10:56:05 xircon-legion kernel: PM: suspend exit
Sep 21 10:56:05 xircon-legion kernel: PM: suspend entry (s2idle)
Sep 21 10:56:25 xircon-legion kernel: PM: suspend exit
Sep 21 10:56:26 xircon-legion systemd[1]: systemd-suspend.service: Main process exited, code=exited, status=1/FAILURE
Sep 21 10:56:26 xircon-legion systemd[1]: systemd-suspend.service: Failed with result 'exit-code'.
Sep 21 10:56:26 xircon-legion systemd[1]: suspend.target: Job suspend.target/start failed with result 'dependency'.
Sep 21 10:56:26 xircon-legion systemd[1]: systemd-suspend.service: Consumed 3.769s CPU time, 2.8M memory peak.
Sep 21 10:56:26 xircon-legion systemd-logind[676]: Operation 'suspend' finished.
Sep 21 10:56:27 xircon-legion suspend[10246]: nvidia-resume.service
Sep 21 10:56:27 xircon-legion logger[10246]: <13>Sep 21 10:56:27 suspend: nvidia-resume.service
Sep 21 10:56:43 xircon-legion systemd[1]: suspend@xircon.service: Main process exited, code=exited, status=1/FAILURE
Sep 21 10:56:43 xircon-legion systemd[1]: suspend@xircon.service: Failed with result 'exit-code'.

Mine fails to suspend because I have sshfs file systems mounted (I am trying to find a solution and failing!).

No, none of your specified lines are listed in my log.
I suspect this is because I don’t send my system to sleep. I just lock the screen and then it darkens. (Just an assumption, I’m not a pro in those things).