I have this issue on 21.04 Thinkpad P1 when I use DP on the dock and turn the laptop monitor off.
The workaround for me was adding LIBGL_DRI3_DISABLE=true to the /etc/environment and reboot.
I have nvidia card and read this workaround for an HDMI issue somewhere on the Nvidia forums, But it seems like it also solved my problem.
I have this issue on 21.04 Thinkpad P1 when I use DP on the dock and turn the laptop monitor off.
The workaround for me was adding DISABLE= true
LIBGL_DRI3_
to the /etc/environment and reboot.
I have nvidia card and read this workaround for an HDMI issue somewhere on the Nvidia forums, But it seems like it also solved my problem.