Unplugging 2nd monitor while suspending laptop consistently hangs system

Hey folks

As the title says, whenever I unplug my external monitor while my laptop is suspending, it generally completely hangs on the unlock screen when I try to wake it up. This happens nearly every time. There’s nothing I can do to unlock it.

How could I go about fixing this issue? It’s pretty detrimental to my workflow and I’d love to get to the bottom of what’s going on, but I don’t know where to start. Any help, pointers and / or tips are appreciated!

Operating System: openSUSE Tumbleweed 20230629
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10
Kernel Version: 6.3.9-1-default (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5500U with Radeon Graphics
Memory: 15,0 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: VivoBook_ASUSLaptop X515UA_M515UA
System Version: 1.0

i+ | sddm | package | 0.20.0-1.1 | x86_64 | Main Repository (OSS)

When you say “hangs on the unlock screen” - you mean that you see the unlock greeter UI, but it is frozen, or do you mean that when you try to unlock you get a blank screen and it won’t unlock?

I have the second issue for a while, its because kscreenlock_greet gets stuck in some kind of endless loop and I can workaround the issue by killing it using killall -9 kscreenlocker_greet from the command line.

I mean the first thing, although I’m not using that multi monitor setup in a little while. I believe the update to SDDM 0.20 improved the situation (of course, I still do regularly get that ‘the screen locker has broken’ message and having to manually unlock).

This is not good either - this means that the session API is broken or crashing. I get that a lot during updating from unstable and stuff, but you shouldn’t get this when running with a release version. What is your current KDE setup look like - version wise?

Here’s some version output; please do let me know if you need anything else :slight_smile:

Operating System: openSUSE Tumbleweed 20230823
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.109.0
Qt Version: 5.15.10
Kernel Version: 6.4.11-1-default (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5500U with Radeon Graphics
Memory: 15,0 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: VivoBook_ASUSLaptop X515UA_M515UA
System Version: 1.0