When launching swaylock from the user zzz hook, the background process holds the lock on /sys/power/state. This means that the machine cannot be suspended until the screen is unlocked. This can be an issue on laptop for instance, as opening the screen will wake up the laptop, but closing it again won't suspend it unless the screen is unlocked.
When launching swaylock from the user zzz hook, the background process holds the lock on /sys/power/state. This means that the machine cannot be suspended until the screen is unlocked. This can be an issue on laptop for instance, as opening the screen will wake up the laptop, but closing it again won't suspend it unless the screen is unlocked.