I seem to have problems with suspending on Ubuntu 22.04, when I press the power button which I have bound to suspend, the screen just locks (generally happens with suspend), now, I have found a few posts about this somewhere, but none of the solutions worked, then, when I close the lid, it is also supposed to suspend, but, when I open the lid, the screen just starts blinking and after a while I see the login screen. What would I do here? I have somehow found out about pm-suspend and it does the right thing except for locking the screen before suspending. How would I use pm-suspend or fix the normal suspend?
EDIT: gpu: 00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (rev 07)
In case of graphics, I have integrated graphics which do most of the stuff and an NVIDIA GeForce MX150 that seems to go through integrated graphics or something. It doesn't have an output, just does stuff and probably sends it to integrated. I have an HDMI port but it seems to be just an internal DP connection to the integrated graphics afaik.