I've recently learned that messing with fractional scaling within Display settings of Ubuntu 20.04 slows everything down, almost to a halt.
If I disabled the fractional scaling setting and used e.g. 200% scale then both monitors were set up for 200%, but what I wanted is to have my primary monitor at 200% and secondary at 100%.
Through many attempts and recommendations you can find online I've learned I should fiddle with screen resolution instead of scaling.
This is what I did
- Disable Fractional Scaling
- Keep Scale always to 100%
- Instead set the resolution to your monitor (either laptop of external)
I have 2 external monitors. At home, I have ViewSonic Corporation 31'' with which I have no problems at all attaching to XPS 13 Dell laptop. Everything works fine.
At work, however, I have a crappy Dell S3221 QS 32'' Curved 4K monitor. As long as I used a Single Display everything is fine (well except the quality of the S3221) but as soon as you try to Join Displays things go awry.
The command we'll be using is
Here is my
xrandr output (type xrandr in terminal):
It shows I have eDP-1 as my laptop monitor and eDP-3 as my external monitor (ViewSonic in this case).
Add custom resolutions for one of the monitors that you feel is not "sizing" well. For me, that was my laptop monitor, eDP-1.
The primary resolution was 3840x2400. Instead of scaling it 200%, I had to add custom resolution settings (since those were not available by default). The target resolution for me was (3840x2400) / 2 = 1920x1200.
First this is to run the command:
cvt 1920 1200
Copy everything after
Modeline and run the
sudo xrandr --newmode "1920x1200_60.00" 193.25 1920 2056 2256 2592 1200 1203 1209 1245 -hsync +vsync
Now add create mode for your display device (in my case that's eDP-1).
sudo xrandr --addmode eDP-1 "1920x1200_60.00"
Now you can go to Display settings and check your new resolution
The last thing to do is to save those settings on computer restart in case you need to reuse them.
sudo pico ~/.profile
and add the last 2 commands to the bottom of the file.
Ctrl-X to exit and save.