I am running Lenovo Thinkpad x1 carbon gen 6 with 4k (3840x2160) screen running Ubuntu 20.04 and 5.11.0-37-generic kernel. Most of 3rd party programs have scaling issues with 4k resolution. The font is too small and object are out of position. For example Matlab or Rviz etc. To resolve the issue I would like to set resolution of my 4k monitor to full hd to avoid scaling.
Using Nvidia x server settings I changed 4k resolution to full HD, but this will result in a black screen with mouse cursor that I can move. Interesting part is that when I set the resolution manually to 1920x1081 instead of 1920x1080, then everything works. Picture here
Is there something checking if I have set my resolution to full hd? I tired fresh install with Nvidia drivers only and the issue is related to Ubuntu 20.04 or 5.11 kernel. Setting the resolution to full HD worked with 18.04 and 5.4 kernel.
This is somewhat related to this question: 18.04: Laptop with 4K display doesn't keep preferred resolution at full HD
As a side note: Fixing the scaling issue with 3rd party programs would be better way ,but according to my research this is not a option at the moment.