If I use a second monitor on Ubuntu 20.04 and if it has the highes resolution (4K), the 1st screen keeps glitching. I found out after many tries that putting it to 175% of fractional scaling then 200% again will fix this issue, however it returns after the screen sleeps
So, I'd like a way to change to 175% and then 200% from command line so I can automate this into a script
You could probably handle this with
xrandr
, which is a more powerful tool than the Screen Resolution GUI. See, e.g., Monitor scaling does not work properly.In your case, that would be
Note that you may need to tinker with other flags, e.g.
--primary
,--mode
--pos
,--fb
.I found cool script generator for this: HIDPI-Fixer:
It worked for me.