The login screen uses Wayland so that's also a good test in itself. If the issue affects the Wayland backend then it sounds like this is a kernel or hardware problem. To check that, next time the issue happens, please run:
grep . /sys/class/drm/*/modes > modes.txt
and then attach the file 'modes.txt' here.
---
Just a guess: The problem might be timeouts on the i2c bus waiting for the monitor to return its EDID. So that could happen randomly. In that case, maybe try a different DisplayPort cable if you can.
Thanks!
The login screen uses Wayland so that's also a good test in itself. If the issue affects the Wayland backend then it sounds like this is a kernel or hardware problem. To check that, next time the issue happens, please run:
grep . /sys/class/ drm/*/modes > modes.txt
and then attach the file 'modes.txt' here.
---
Just a guess: The problem might be timeouts on the i2c bus waiting for the monitor to return its EDID. So that could happen randomly. In that case, maybe try a different DisplayPort cable if you can.