Abnormal Wake-up After Lock Screen

I’m using Arch Linux with KDE Plasma and Wayland in a virtual machine, with NVIDIA GPU passed through. I have installed the nvidia-open driver, and since it is a virtual machine, I followed the Arch Wiki to disable all hibernation-related features.

/etc/systemd/sleep.conf.d/disable-sleep.conf
[Sleep]
AllowSuspend=no
AllowHibernation=no
AllowHybridSleep=no
AllowSuspendThenHibernate=no

According to my understanding, after locking the screen, the monitor should simply turn off without any other side effects. However, after the screen turns off for several minutes and then wakes up, sometimes it freezes or the resolution and sound card are lost.

                  -`                     zt@home-arch
                 .o+`                    ------------
                `ooo/                    OS: Arch Linux x86_64
               `+oooo:                   Host: KVM/QEMU Standard PC (Q35 + ICH9, 2009) (pc-q35-10.0)
              `+oooooo:                  Kernel: Linux 6.16.7-arch1-1
              -+oooooo+:                 Uptime: 40 mins
            `/:-:++oooo+:                Packages: 762 (pacman)
           `/++++/+++++++:               Shell: bash 5.3.3
          `/++++++++++++++:              Display (LG ULTRAFINE): 3840x2160 @ 1.7x in 27", 144 Hz [External]
         `/+++ooooooooooooo/`            DE: KDE Plasma 6.4.5
        ./ooosssso++osssssso+`           WM: KWin (Wayland)
       .oossssso-````/ossssss+`          WM Theme: Breeze
      -osssssso.      :ssssssso.         Theme: Breeze (Light) [Qt], Breeze [GTK2/3]
     :osssssss/        osssso+++.        Icons: breeze [Qt], breeze [GTK2/3/4]
    /ossssssss/        +ssssooo/-        Font: Noto Sans (10pt) [Qt], Noto Sans (10pt) [GTK2/3/4]
  `/ossssso+/:-        -:/+osssso+-      Cursor: breeze (24px)
 `+sso+:-`                 `.-/+oso:     Terminal: konsole 25.8.1
`++:.                           `-/+/    CPU: AMD Ryzen 5 PRO 5650GE (6) @ 3.42 GHz
.`                                 `/    GPU: NVIDIA RTX A2000 Mobile
                                         Memory: 3.23 GiB / 15.59 GiB (21%)
                                         Swap: 0 B / 4.00 GiB (0%)
                                         Disk (/): 12.11 GiB / 255.00 GiB (5%) - btrfs
                                         Local IP (ens18): 10.1.0.125/24
                                         Locale: en_US.UTF-8

Previously, on Debian with KDE Plasma 6.3.6, everything worked fine. However, in Wayland, I noticed that moving browser windows would leave a white bar trail, so I switched to Arch.

However, the issue with KDE Plasma on Arch causes me to need to restart every time after waking up from lock screen.

This is one of the journalctl logs related to my issue:

journalctl log

There’s no information in the journal log for the user session - where I expect the issue you describe happens - the log shows you’ve logged in at 23:29 and then logged out at 23:43 and shutdown the system, with nothing useful in between.

You should probably show the user’s journal log, that you get through journalctl --user, but likely just the kwin logs will be interesting - journalctl --user -u plasma-kwin_wayland.service

Sep 15 23:28:58 home-arch systemd[574]: Starting KDE Window Manager...
Sep 15 23:28:58 home-arch systemd[574]: Started KDE Window Manager.
Sep 15 23:28:59 home-arch kwin_wayland[620]: No backend specified, automatically choosing drm
Sep 15 23:28:59 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:28:59.764147 instance.cpp:1400] Override Enabled Addons: {}
Sep 15 23:28:59 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:28:59.767050 instance.cpp:1401] Override Disabled Addons: {}
Sep 15 23:28:59 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:28:59.771868 addonmanager.cpp:204] Loaded addon wayland
Sep 15 23:28:59 home-arch kwin_wayland_wrapper[723]: The XKEYBOARD keymap compiler (xkbcomp) reports:
Sep 15 23:28:59 home-arch kwin_wayland_wrapper[723]: > Warning:          Could not resolve keysym XF86RefreshRateToggle
Sep 15 23:28:59 home-arch kwin_wayland_wrapper[723]: > Warning:          Could not resolve keysym XF86Accessibility
Sep 15 23:28:59 home-arch kwin_wayland_wrapper[723]: > Warning:          Could not resolve keysym XF86DoNotDisturb
Sep 15 23:28:59 home-arch kwin_wayland_wrapper[723]: Errors from xkbcomp are not fatal to the X server
Sep 15 23:28:59 home-arch kwin_wayland_wrapper[731]: The XKEYBOARD keymap compiler (xkbcomp) reports:
Sep 15 23:28:59 home-arch kwin_wayland_wrapper[731]: > Warning:          Unsupported maximum keycode 708, clipping.
Sep 15 23:28:59 home-arch kwin_wayland_wrapper[731]: >                   X11 cannot support keycodes above 255.
Sep 15 23:28:59 home-arch kwin_wayland_wrapper[731]: > Warning:          Virtual modifier Hyper multiply defined
Sep 15 23:28:59 home-arch kwin_wayland_wrapper[731]: >                   Using 0, ignoring 0
Sep 15 23:28:59 home-arch kwin_wayland_wrapper[731]: > Warning:          Virtual modifier ScrollLock multiply defined
Sep 15 23:28:59 home-arch kwin_wayland_wrapper[731]: >                   Using 0, ignoring 0
Sep 15 23:28:59 home-arch kwin_wayland_wrapper[731]: > Warning:          Could not resolve keysym XF86RefreshRateToggle
Sep 15 23:28:59 home-arch kwin_wayland_wrapper[731]: > Warning:          Could not resolve keysym XF86Accessibility
Sep 15 23:28:59 home-arch kwin_wayland_wrapper[731]: > Warning:          Could not resolve keysym XF86DoNotDisturb
Sep 15 23:28:59 home-arch kwin_wayland_wrapper[731]: Errors from xkbcomp are not fatal to the X server
Sep 15 23:28:59 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:28:59.975123 xcbconnection.cpp:199] Connecting to X11 display, displa
y name::1.
Sep 15 23:28:59 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:28:59.975345 xcbconnection.cpp:204] X11 display: :1 is xwayland.
Sep 15 23:28:59 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:28:59.975434 addonmanager.cpp:204] Loaded addon xcb
Sep 15 23:28:59 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:28:59.978233 addonmanager.cpp:204] Loaded addon quickphrase
Sep 15 23:28:59 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:28:59.979767 addonmanager.cpp:204] Loaded addon clipboard
Sep 15 23:28:59 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:28:59.980172 addonmanager.cpp:204] Loaded addon imselector
Sep 15 23:28:59 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:28:59.980743 keyboard.cpp:226] Attempting to load keyboard from: ["/u
sr/share/X11/xkb"] Rule: evdev
Sep 15 23:28:59 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:28:59.984705 addonmanager.cpp:204] Loaded addon keyboard
Sep 15 23:28:59 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:28:59.986100 addonmanager.cpp:204] Loaded addon waylandim
Sep 15 23:28:59 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:28:59.987235 addonmanager.cpp:204] Loaded addon unicode
Sep 15 23:28:59 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:28:59.989971 addonmanager.cpp:204] Loaded addon pinyinhelper
Sep 15 23:28:59 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:28:59.991572 addonmanager.cpp:204] Loaded addon dbus
Sep 15 23:29:00 home-arch kcminit[733]: Initializing  "/usr/lib/qt6/plugins/plasma/kcms/systemsettings/kc
m_fonts.so"
Sep 15 23:29:00 home-arch kcminit[733]: Initializing  "/usr/lib/qt6/plugins/plasma/kcms/systemsettings/kc
m_style.so"
Sep 15 23:29:00 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:29:00.013845 addonmanager.cpp:204] Loaded addon fcitx4frontend
Sep 15 23:29:00 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:29:00.016352 addonmanager.cpp:204] Loaded addon ibusfrontend
Sep 15 23:29:00 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:29:00.018084 addonmanager.cpp:204] Loaded addon xim
Sep 15 23:29:00 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:29:00.019359 addonmanager.cpp:204] Loaded addon dbusfrontend
Sep 15 23:29:00 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:29:00.066576 inputmethodmanager.cpp:210] Found 742 input method(s) in
 addon keyboard
Sep 15 23:29:00 home-arch kwin_wayland_wrapper[760]: The XKEYBOARD keymap compiler (xkbcomp) reports:
Sep 15 23:29:00 home-arch kwin_wayland_wrapper[760]: > Warning:          Could not resolve keysym XF86RefreshRateToggle
Sep 15 23:29:00 home-arch kwin_wayland_wrapper[760]: > Warning:          Could not resolve keysym XF86Accessibility
Sep 15 23:29:00 home-arch kwin_wayland_wrapper[760]: > Warning:          Could not resolve keysym XF86DoNotDisturb
Sep 15 23:29:00 home-arch kwin_wayland_wrapper[760]: Errors from xkbcomp are not fatal to the X server
Sep 15 23:29:00 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:29:00.082047 addonmanager.cpp:204] Loaded addon kimpanel
Sep 15 23:29:00 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:29:00.082713 addonmanager.cpp:204] Loaded addon virtualkeyboard
Sep 15 23:29:00 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:29:00.104136 classicui.cpp:90] Created classicui for x11 display::1
Sep 15 23:29:00 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:29:00.104186 classicui.cpp:111] Created classicui for wayland display
:
Sep 15 23:29:00 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:29:00.104211 addonmanager.cpp:204] Loaded addon classicui
Sep 15 23:29:00 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:29:00.105261 addonmanager.cpp:204] Loaded addon notificationitem
Sep 15 23:29:00 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:29:00.106099 addonmanager.cpp:204] Loaded addon notifications
Sep 15 23:29:00 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:29:00.125251 dbusmodule.cpp:816] Service name change: org.fcitx.Fcitx
5  :1.22
Sep 15 23:29:00 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:29:00.125481 kimpanel.cpp:116] Kimpanel new owner:
Sep 15 23:29:00 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:29:00.125561 virtualkeyboard.cpp:218] VirtualKeyboard new owner:
Sep 15 23:29:00 home-arch kwin_wayland_wrapper[764]: The XKEYBOARD keymap compiler (xkbcomp) reports:
Sep 15 23:29:00 home-arch kwin_wayland_wrapper[764]: > Warning:          Unsupported maximum keycode 708, clipping.
Sep 15 23:29:00 home-arch kwin_wayland_wrapper[764]: >                   X11 cannot support keycodes above 255.
Sep 15 23:29:00 home-arch kwin_wayland_wrapper[764]: > Warning:          Virtual modifier Hyper multiply defined
Sep 15 23:29:00 home-arch kwin_wayland_wrapper[764]: >                   Using 0, ignoring 0
Sep 15 23:29:00 home-arch kwin_wayland_wrapper[764]: > Warning:          Virtual modifier ScrollLock multiply defined
Sep 15 23:29:00 home-arch kwin_wayland_wrapper[764]: >                   Using 0, ignoring 0
Sep 15 23:29:00 home-arch kwin_wayland_wrapper[764]: > Warning:          Could not resolve keysym XF86RefreshRateToggle
Sep 15 23:29:00 home-arch kwin_wayland_wrapper[764]: > Warning:          Could not resolve keysym XF86Accessibility
Sep 15 23:29:00 home-arch kwin_wayland_wrapper[764]: > Warning:          Could not resolve keysym XF86DoNotDisturb
Sep 15 23:29:00 home-arch kwin_wayland_wrapper[764]: Errors from xkbcomp are not fatal to the X server
Sep 15 23:29:01 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:29:01.276870 addonmanager.cpp:204] Loaded addon punctuation
Sep 15 23:29:01 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:29:01.445429 addonmanager.cpp:204] Loaded addon pinyin
Sep 15 23:29:01 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:29:01.449526 addonmanager.cpp:204] Loaded addon cloudpinyin
Sep 15 23:29:05 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:29:05.349831 portalsettingmonitor.cpp:97] A new portal show up, start
 a new query.
Sep 15 23:29:05 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:29:05.349885 portalsettingmonitor.cpp:97] A new portal show up, start
 a new query.
Sep 15 23:29:06 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:29:06.775544 waylandmodule.cpp:636] Wayland self diagnose information
Sep 15 23:29:06 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:29:06.775598 waylandmodule.cpp:637] Using Wayland native input method
 protocol: 1
Sep 15 23:29:06 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:29:06.775618 waylandmodule.cpp:639] Toolkit specific environment vari
able detected by process:
Sep 15 23:29:06 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:29:06.775634 waylandmodule.cpp:641] GTK_IM_MODULE=
Sep 15 23:29:06 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:29:06.775651 waylandmodule.cpp:642] QT_IM_MODULE=
Sep 15 23:29:06 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:29:06.775669 waylandmodule.cpp:643] QT_IM_MODULES=
Sep 15 23:30:56 home-arch kwin_wayland[620]: kwin_core: Failed to delay sleep: Sender is not authoriz
ed to send message
Sep 15 23:44:04 home-arch kscreenlocker_greet[1043]: qt.qpa.wayland: There are no outputs - creating placeholder screen
Sep 15 23:44:04 home-arch kwin_wayland[620]: kwin_xwl: Could not find a matching X RandR CRTC/output 
to set as primary for KWin::PlaceholderOutput(0x55c73cf55380, name="Placeholder-1", geometry=QRect(0,0 1920x1080), scale=1)
Sep 15 23:44:04 home-arch kwin_wayland[620]: kwin_xwl: Could not find a matching X RandR CRTC/output 
to set as primary for KWin::PlaceholderOutput(0x55c73cf55380, name="Placeholder-1", geometry=QRect(0,0 1920x1080), scale=1)
Sep 15 23:44:09 home-arch kwin_wayland[620]: kwin_xwl: Could not find a matching X RandR CRTC/output 
to set as primary for KWin::DrmOutput(0x55c73c1b2780, name="DP-3", geometry=QRect(0,0 2259x1271), scale=1.7)
Sep 15 23:44:24 home-arch kwin_wayland[620]: kwin_xwl: Could not find a matching X RandR CRTC/output 
to set as primary for KWin::PlaceholderOutput(0x55c73cf40440, name="Placeholder-1", geometry=QRect(0,0 1920x1080), scale=1)
Sep 15 23:44:24 home-arch kscreenlocker_greet[1043]: qt.qpa.wayland: There are no outputs - creating placeholder screen
Sep 15 23:44:24 home-arch kwin_wayland[620]: kwin_xwl: Could not find a matching X RandR CRTC/output 
to set as primary for KWin::PlaceholderOutput(0x55c73cf40440, name="Placeholder-1", geometry=QRect(0,0 1920x1080), scale=1)
Sep 15 23:44:29 home-arch kwin_wayland[620]: kwin_core: EDID colorimetry xy(0.330078, 0.297852) xy(0.
597656, 0.149414) xy(0.0605469, 0.314453) xy(0.328125, 0.00292969) is invalid
Sep 15 23:44:29 home-arch kwin_wayland[620]: kwin_xwl: Could not find a matching X RandR CRTC/output 
to set as primary for KWin::DrmOutput(0x55c73cc576d0, name="DP-3", geometry=QRect(0,0 640x480), scale=1)
Sep 15 23:44:29 home-arch kwin_wayland[620]: kwin_core: EDID colorimetry xy(0.330078, 0.297852) xy(0.
597656, 0.149414) xy(0.0605469, 0.314453) xy(0.328125, 0.00292969) is invalid
Sep 15 23:44:29 home-arch kcminit[1134]: Initializing  "/usr/lib/qt6/plugins/plasma/kcms/systemsettings/k
cm_fonts.so"
Sep 15 23:44:29 home-arch kcminit[1134]: Initializing  "/usr/lib/qt6/plugins/plasma/kcms/systemsettings/k
cm_style.so"
Sep 15 23:44:39 home-arch kwin_wayland[620]: kwin_screencast: PipeWire remote error:  connection erro
r
Sep 15 23:44:39 home-arch kwin_wayland[620]: kwin_wayland_drm: Atomic modeset test failed! Permission
 denied
Sep 15 23:44:39 home-arch kwin_wayland[620]: kwin_core: Applying output configuration failed!
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: =========================
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: Fcitx 5.1.14 -- Get Signal No.: 15
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: Date: try "date -d @1757951079" if you are using GNU date ***
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: ProcessID: 695
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: /usr/bin/fcitx5(+0x117a9) [0x5555bf24a7a9]
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: /usr/lib/libc.so.6(+0x3e540) [0x7f0c8fc3e540]
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: /usr/lib/libc.so.6(+0x9f042) [0x7f0c8fc9f042]
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: /usr/lib/libc.so.6(+0x931ac) [0x7f0c8fc931ac]
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: /usr/lib/libc.so.6(+0x931f4) [0x7f0c8fc931f4]
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: /usr/lib/libc.so.6(epoll_wait+0x25) [0x7f0c8fd1acf5]
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: /usr/lib/libsystemd.so.0(sd_event_wait+0x188) [0x7f0c8ff23c98]
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: /usr/lib/libsystemd.so.0(sd_event_run+0x1c4) [0x7f0c8ff25164]
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: /usr/lib/libsystemd.so.0(sd_event_loop+0x60) [0x7f0c8ff252b0]
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: /usr/lib/libFcitx5Utils.so.2(_ZN5fcitx9EventLoop4execEv+0x2c) [0x7f0c9053794c]
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: /usr/lib/libFcitx5Core.so.7(_ZN5fcitx8Instance4execEv+0x5e) [0x7f0c905f08de]
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: /usr/bin/fcitx5(+0xe65e) [0x5555bf24765e]
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: /usr/lib/libc.so.6(+0x27675) [0x7f0c8fc27675]
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: /usr/lib/libc.so.6(__libc_start_main+0x89) [0x7f0c8fc27729]
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: /usr/bin/fcitx5(+0xfa55) [0x5555bf248a55]
Sep 15 23:44:39 home-arch systemd[574]: Stopping KDE Window Manager...
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: W2025-09-15 23:44:39.671253 xcbeventreader.cpp:52] XCB connection ":1" got error: 1
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:44:39.711760 addonmanager.cpp:306] Unloading addon cloudpinyin
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:44:39.712025 addonmanager.cpp:306] Unloading addon pinyin
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:44:39.712727 addonmanager.cpp:306] Unloading addon punctuation
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:44:39.712806 addonmanager.cpp:306] Unloading addon notifications
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:44:39.712844 addonmanager.cpp:306] Unloading addon notificationitem
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:44:39.712874 addonmanager.cpp:306] Unloading addon classicui
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:44:39.713365 addonmanager.cpp:306] Unloading addon virtualkeyboard
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:44:39.713396 addonmanager.cpp:306] Unloading addon kimpanel
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:44:39.713416 addonmanager.cpp:306] Unloading addon dbusfrontend
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:44:39.713463 addonmanager.cpp:306] Unloading addon xim
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:44:39.713485 addonmanager.cpp:306] Unloading addon ibusfrontend
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: =========================
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: Fcitx 5.1.14 -- Get Signal No.: 15
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: Date: try "date -d @1757951079" if you are using GNU date ***
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: ProcessID: 695
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: /usr/bin/fcitx5(+0x117a9) [0x5555bf24a7a9]
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: /usr/lib/libc.so.6(+0x3e540) [0x7f0c8fc3e540]
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: /usr/lib/libc.so.6(+0x9f042) [0x7f0c8fc9f042]
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: /usr/lib/libc.so.6(+0x931ac) [0x7f0c8fc931ac]
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: /usr/lib/libc.so.6(+0x931f4) [0x7f0c8fc931f4]
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: /usr/lib/libc.so.6(fsync+0x22) [0x7f0c8fd10cd2]
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: /usr/lib/libFcitx5Utils.so.2(_ZNK5fcitx13StandardPaths8safeSaveENS_17StandardPathsTy
peERKNSt10filesystem7__cxx114pathERKSt8functionIFbiEE+0x40b) [0x7f0c9053cf6b]
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: /usr/lib/fcitx5/libibusfrontend.so(+0x12264) [0x7f0c8de4b264]
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: /usr/lib/fcitx5/libibusfrontend.so(+0x12505) [0x7f0c8de4b505]
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: /usr/lib/libFcitx5Core.so.7(_ZN5fcitx12AddonManager6unloadEv+0x3b4) [0x7f0c90620a04]
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: /usr/lib/libFcitx5Core.so.7(_ZN5fcitx8InstanceD1Ev+0x42) [0x7f0c905e20c2]
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: /usr/bin/fcitx5(+0xe685) [0x5555bf247685]
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: /usr/lib/libc.so.6(+0x27675) [0x7f0c8fc27675]
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: /usr/lib/libc.so.6(__libc_start_main+0x89) [0x7f0c8fc27729]
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: /usr/bin/fcitx5(+0xfa55) [0x5555bf248a55]
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:44:39.722532 addonmanager.cpp:306] Unloading addon fcitx4frontend
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:44:39.722641 addonmanager.cpp:306] Unloading addon dbus
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:44:39.722694 addonmanager.cpp:306] Unloading addon pinyinhelper
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:44:39.722720 addonmanager.cpp:306] Unloading addon unicode
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:44:39.722744 addonmanager.cpp:306] Unloading addon waylandim
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:44:39.722840 addonmanager.cpp:306] Unloading addon keyboard
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:44:39.722930 addonmanager.cpp:306] Unloading addon imselector
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:44:39.722955 addonmanager.cpp:306] Unloading addon clipboard
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:44:39.723122 addonmanager.cpp:306] Unloading addon quickphrase
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:44:39.723277 addonmanager.cpp:306] Unloading addon xcb
Sep 15 23:44:39 home-arch kwin_wayland_wrapper[695]: I2025-09-15 23:44:39.723353 addonmanager.cpp:306] Unloading addon wayland
Sep 15 23:44:39 home-arch kscreenlocker_greet[1043]: pam_unix(kde:auth): authentication failure; logname=zt uid=1
000 euid=1000 tty= ruser= rhost=  user=zt
Sep 15 23:44:41 home-arch kscreenlocker_greet[1043]: Failed to write to the pipe: Bad file descriptor
.
Sep 15 23:44:41 home-arch systemd[574]: Stopped KDE Window Manager.
Sep 15 23:44:41 home-arch systemd[574]: plasma-kwin_wayland.service: Consumed 7.157s CPU time, 650.3M memory peak

I can’t recall the exact time, but based on the logs, it seems the lock screen was active between 23:30 and 23:44.

There isn’t anything in the logs between 23:30 and 23:44 - the logs from kscreenlocker_greet at 23:44:04 are during the logout - I’m guessing the screen configuration flactuates during kwin_wayland shutdown and that’s why you get these weird messages.

Can you time the screenlocking and produce a log of just the issue? Start by checking the time, then let the screen lock, then when the screen wakes up - create a log of just the issue by running:

journalctl --user -S HH:MM > screenlocked.log

I just tried to reproduce the issue, and this time I was unable to wake up the system at all. I locked the screen at 18:25, and when I tried to unlock it at 18:46, I waited for a few minutes, but all I saw was the screen power light briefly turning on, with no other response. The reason for the inability to wake up seems to be that I set the following in plasma-powerdevil.service.d:

[Service]
Environment="POWERDEVIL_NO_DDCUTIL=1"

Once I removed this, the system returned to the previous issue where the resolution and sound card were lost.
I’ll attach the journalctl logs from this test as well:

gist*github*com/x0h0i/d02f80c7ec33c6e34c6540944e4107ba

Here is the journalctl log from when I reproduced the issue of lost resolution settings and sound card. The screen was locked at 19:29, and I attempted to unlock it at 19:50.

Sep 16 19:30:05 home-arch kwin_wayland[605]: kwin_core: Failed to delay sleep: Sender is not authorized to send message
Sep 16 19:30:06 home-arch kded6[752]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_01_00.1.hdmi-stereo"
Sep 16 19:30:06 home-arch kded6[752]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor"
Sep 16 19:30:06 home-arch plasmashell[768]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_01_00.1.hdmi-stereo"
Sep 16 19:30:06 home-arch plasmashell[768]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor"
Sep 16 19:30:06 home-arch kded6[752]: org.kde.pulseaudio: No object for name "@DEFAULT_SINK@"
Sep 16 19:30:06 home-arch kded6[752]: org.kde.pulseaudio: No object for name "@DEFAULT_SOURCE@"
Sep 16 19:30:06 home-arch plasmashell[768]: qrc:/qt/qml/plasma/applet/org/kde/plasma/volume/main.qml:100: TypeError: Cannot read property 'description' of undefined
Sep 16 19:30:06 home-arch plasmashell[768]: org.kde.pulseaudio: No object for name "@DEFAULT_SINK@"
Sep 16 19:30:06 home-arch plasmashell[768]: org.kde.pulseaudio: No object for name "@DEFAULT_SOURCE@"
Sep 16 19:30:06 home-arch kded6[752]: org.kde.pulseaudio: No object for name "@DEFAULT_SINK@"
Sep 16 19:30:06 home-arch kded6[752]: org.kde.pulseaudio: No object for name "@DEFAULT_SOURCE@"
Sep 16 19:30:06 home-arch plasmashell[768]: org.kde.pulseaudio: No object for name "@DEFAULT_SINK@"
Sep 16 19:30:06 home-arch plasmashell[768]: org.kde.pulseaudio: No object for name "@DEFAULT_SOURCE@"
Sep 16 19:30:06 home-arch kded6[752]: org.kde.pulseaudio: No object for name "auto_null.monitor"
Sep 16 19:30:06 home-arch plasmashell[768]: org.kde.pulseaudio: No object for name "auto_null.monitor"
Sep 16 19:50:43 home-arch plasmashell[768]: org.kde.pulseaudio: No object for name "auto_null"
Sep 16 19:50:43 home-arch kded6[752]: org.kde.pulseaudio: No object for name "auto_null"
Sep 16 19:50:43 home-arch plasmashell[768]: org.kde.pulseaudio: No object for name "auto_null.monitor"
Sep 16 19:50:43 home-arch kded6[752]: org.kde.pulseaudio: No object for name "auto_null.monitor"
Sep 16 19:50:43 home-arch kded6[752]: org.kde.pulseaudio: No object for name "@DEFAULT_SINK@"
Sep 16 19:50:43 home-arch kded6[752]: org.kde.pulseaudio: No object for name "@DEFAULT_SOURCE@"
Sep 16 19:50:43 home-arch plasmashell[768]: org.kde.pulseaudio: No object for name "@DEFAULT_SINK@"
Sep 16 19:50:43 home-arch plasmashell[768]: org.kde.pulseaudio: No object for name "@DEFAULT_SOURCE@"
Sep 16 19:50:43 home-arch kded6[752]: org.kde.pulseaudio: No object for name "@DEFAULT_SINK@"
Sep 16 19:50:43 home-arch kded6[752]: org.kde.pulseaudio: No object for name "@DEFAULT_SOURCE@"
Sep 16 19:50:43 home-arch plasmashell[768]: org.kde.pulseaudio: No object for name "@DEFAULT_SINK@"
Sep 16 19:50:43 home-arch plasmashell[768]: org.kde.pulseaudio: No object for name "@DEFAULT_SOURCE@"
Sep 16 19:50:43 home-arch kded6[752]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor"
Sep 16 19:50:43 home-arch plasmashell[768]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor"
Sep 16 19:50:43 home-arch DiscoverNotifier[984]: qt.qpa.wayland: There are no outputs - creating placeholder screen
Sep 16 19:50:43 home-arch kded6[752]: qt.qpa.wayland: There are no outputs - creating placeholder screen
Sep 16 19:50:43 home-arch kwin_wayland[605]: kwin_xwl: Could not find a matching X RandR CRTC/output to set as primary for KWin::PlaceholderOutput(0x5596d09fb640, name="Placeholder-1", geometry=QRect(0,0 1920x1080), scale=1)
Sep 16 19:50:43 home-arch polkit-kde-authentication-agent-1[800]: qt.qpa.wayland: There are no outputs - creating placeholder screen
Sep 16 19:50:43 home-arch kwin_wayland[605]: kwin_xwl: Could not find a matching X RandR CRTC/output to set as primary for KWin::PlaceholderOutput(0x5596d09fb640, name="Placeholder-1", geometry=QRect(0,0 1920x1080), scale=1)
Sep 16 19:50:43 home-arch kactivitymanagerd[787]: qt.qpa.wayland: There are no outputs - creating placeholder screen
Sep 16 19:50:43 home-arch xdg-desktop-portal-kde[802]: qt.qpa.wayland: There are no outputs - creating placeholder screen
Sep 16 19:50:43 home-arch kscreenlocker_greet[1029]: qt.qpa.wayland: There are no outputs - creating placeholder screen
Sep 16 19:50:43 home-arch plasmashell[768]: kde.plasmashell: requesting unexisting screen available rect -1
Sep 16 19:50:43 home-arch plasmashell[768]: kde.plasmashell: requesting unexisting screen available rect -1
Sep 16 19:50:43 home-arch org_kde_powerdevil[801]: qt.qpa.wayland: There are no outputs - creating placeholder screen
Sep 16 19:50:43 home-arch plasmashell[768]: qt.qpa.wayland: There are no outputs - creating placeholder screen
Sep 16 19:50:43 home-arch plasmashell[768]: kf.plasma.quick: Exposed with no visual parent. Window positioning broken.
Sep 16 19:50:43 home-arch plasmashell[768]: kf.plasma.quick: Exposed with no visual parent. Window positioning broken.
Sep 16 19:50:45 home-arch org_kde_powerdevil[801]: Traced function stack on entry to i2c_check_open_bus_alive()
Sep 16 19:50:45 home-arch org_kde_powerdevil[801]: No traced function stack for current thread
Sep 16 19:50:45 home-arch org_kde_powerdevil[801]: [   939] /dev/i2c-5: Checking EDID succeeded after 2 tries (G)
Sep 16 19:50:46 home-arch org_kde_powerdevil[801]: org.kde.powerdevil: [DDCutilDisplay]: ddca_get_non_table_vcp_value -5
Sep 16 19:50:49 home-arch kwin_wayland[605]: kwin_core: EDID colorimetry xy(0.330078, 0.297852) xy(0.597656, 0.149414) xy(0.0605469, 0.314453) xy(0.328125, 0.00292969) is invalid
Sep 16 19:50:49 home-arch kwin_wayland[605]: kwin_xwl: Could not find a matching X RandR CRTC/output to set as primary for KWin::DrmOutput(0x5596cfcecdb0, name="DP-3", geometry=QRect(0,0 640x480), scale=1)
Sep 16 19:50:49 home-arch kded6[880]: xsettingsd: Reloading configuration
Sep 16 19:50:49 home-arch kded6[880]: xsettingsd: Loaded 16 settings from /home/zt/.config/xsettingsd/xsettingsd.conf
Sep 16 19:50:49 home-arch kwin_wayland[605]: kwin_core: EDID colorimetry xy(0.330078, 0.297852) xy(0.597656, 0.149414) xy(0.0605469, 0.314453) xy(0.328125, 0.00292969) is invalid
Sep 16 19:50:49 home-arch kded6[752]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_01_00.1.hdmi-stereo"
Sep 16 19:50:49 home-arch kded6[752]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor"
Sep 16 19:50:49 home-arch plasmashell[768]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_01_00.1.hdmi-stereo"
Sep 16 19:50:49 home-arch plasmashell[768]: org.kde.pulseaudio: No object for name "alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor"
Sep 16 19:50:49 home-arch kded6[752]: org.kde.pulseaudio: No object for name "@DEFAULT_SINK@"
Sep 16 19:50:49 home-arch kded6[752]: org.kde.pulseaudio: No object for name "@DEFAULT_SOURCE@"
Sep 16 19:50:49 home-arch plasmashell[768]: org.kde.pulseaudio: No object for name "@DEFAULT_SINK@"
Sep 16 19:50:49 home-arch plasmashell[768]: org.kde.pulseaudio: No object for name "@DEFAULT_SOURCE@"
Sep 16 19:50:49 home-arch kded6[752]: org.kde.pulseaudio: No object for name "@DEFAULT_SINK@"
Sep 16 19:50:49 home-arch kded6[752]: org.kde.pulseaudio: No object for name "@DEFAULT_SOURCE@"
Sep 16 19:50:49 home-arch plasmashell[768]: org.kde.pulseaudio: No object for name "@DEFAULT_SINK@"
Sep 16 19:50:49 home-arch plasmashell[768]: org.kde.pulseaudio: No object for name "@DEFAULT_SOURCE@"
Sep 16 19:50:49 home-arch kded6[752]: org.kde.pulseaudio: No object for name "auto_null.monitor"
Sep 16 19:50:49 home-arch plasmashell[768]: org.kde.pulseaudio: No object for name "auto_null.monitor"
Sep 16 19:50:49 home-arch kcminit[1105]: Initializing  "/usr/lib/qt6/plugins/plasma/kcms/systemsettings/kcm_fonts.so"
Sep 16 19:50:49 home-arch kcminit[1105]: Initializing  "/usr/lib/qt6/plugins/plasma/kcms/systemsettings/kcm_style.so"
Sep 16 19:51:01 home-arch kscreenlocker_greet[1029]: qt.qpa.wayland: Could not create EGL surface (EGL error 0x3003)
Sep 16 19:51:01 home-arch kscreenlocker_greet[1029]: Failed to write to the pipe: Bad file descriptor.
Sep 16 19:51:03 home-arch systemd[559]: Started Konsole - Terminal.
Sep 16 19:51:03 home-arch systemd[559]: Started app-org.kde.konsole-1143.scope.

I think the problem might be that PowerDevil is trying to DDC the screen to turn off, and that confuses the VM which drops the screen and for some reason the audio ports.

Which VM are you using?

QEMU emulator version 10.0.2 (pve-qemu-kvm_10.0.2-4)
Copyright (c) 2003-2025 Fabrice Bellard and the QEMU Project developers

I’m using Proxmox VE for virtual machines, and with the same virtual machine configuration, the lock screen issue does not occur on KDE under Debian.

The virtual machine uses a real GPU and monitor via passthrough. There is no issue with locking and unlocking the screen immediately. However, the problem occurs only when the screen is off for more than ten minutes before trying to unlock it.

I’ve completely disabled systemd sleep, but I’m still unsure what operations KDE needs to perform during the screen-off period.

The issue has been resolved. I added a serial port device before installing the GPU driver, and it seems both were recognized as displays, causing the lock screen issue when trying to switch between them. After removing the serial port device, everything works fine.

After a longer lock screen period, the issue appeared again, so it turns out it was not related to the serial port device.:sweat_smile:

I found related posts, and it seems this issue has existed for quite a long time.