OK, the final thing to try is to replace the above environment variable with:
MUTTER_DEBUG=kms
then reboot, reproduce the hang in a Wayland session, reboot again and run:
journalctl -b-1 > kmsdebug.txt
and attach the resulting text file here.
That will tell us if gnome-shell is sending the right instructions to the kernel to sleep/wake the screen. If it is then this is no longer a gnome-shell/mutter bug.
OK, the final thing to try is to replace the above environment variable with:
MUTTER_DEBUG=kms
then reboot, reproduce the hang in a Wayland session, reboot again and run:
journalctl -b-1 > kmsdebug.txt
and attach the resulting text file here.
That will tell us if gnome-shell is sending the right instructions to the kernel to sleep/wake the screen. If it is then this is no longer a gnome-shell/mutter bug.