I run Ubuntu 22.04.02 on a Lenovo Legion 5i pro.
There was a bug when I switched on Wayland session.
I followed instructions that are described above and deleted gnome extention aplication.
And I've got no issues any more with lock my laptop and black screen. It's fantastic!
My conclusion is, set up latest version of Linux kernel, latest version of Nvidia driver(in my case I'm using Nvidia Server Driver 252) in Wayland session. And don't use Gnome extensions. Good luck :)
I run Ubuntu 22.04.02 on a Lenovo Legion 5i pro.
There was a bug when I switched on Wayland session.
I followed instructions that are described above and deleted gnome extention aplication.
And I've got no issues any more with lock my laptop and black screen. It's fantastic!
My conclusion is, set up latest version of Linux kernel, latest version of Nvidia driver(in my case I'm using Nvidia Server Driver 252) in Wayland session. And don't use Gnome extensions. Good luck :)