Lockscreen app dying after every suspend

I also use hyprland + hypridle on a sometimes-docked-laptop and the close-lid to lock and suspend never worked. I never figured out to fix the race condition.
Check my post here = Recovery from zero monitors (clamshell mode setup) - #4 by zatoichi

Situation under swaylock was way worst btw

Anyway only 2 options are liveable for me so far:

  • let hypridle lock automatically after a few minutes and then suspend a bit later, then close lid
  • lock manually, and then have a button in your hypridle screen to “systemctl suspend”, then close lid

Anything else usually result in crash on resume and tty console is needed

Oh and if laptop is docked (usb-c monitor) and suspended, then i have to turn on/off my monitor a few time to wake it up, which is annoying, but usually work