Fedora/GNOME/Wayland: susped via power button briefly "breaks" screen lock on resume

Which Linux distro are you using? Fedora Workstation

Which release version? 43

Which kernel are you using? 6.19.10-200.fc43.x86_64

Which BIOS version are you using? 3.17

Which Framework Laptop 13 model are you using? AMD Ryzen™ 7040 Series

I’ve opened an upstream issue:

I’m opening this thread in case the FW firmware is somehow involved, by contributing to the (assumed) race condition that creates the issue.

At the moment I think the root cause is not the firmware, because this behavior broke exactly at the time a recent (latest?) Fedora/GNOME upgrade which included some changes in the inhibitor logic that’s involved in suspending the desktop. But I thought others here might be interested.