I was successfully using xrandr to extend my desktop in my work place with this little "script".
#!/bin/sh
xrandr --newmode 1920x1080 220.64 1920 2056 2264 2608 1080 1081 1084 1128 -HSync +Vsync
xrandr --addmode VGA 1920x1080
xrandr --output VGA --mode 1920x1080
Everything was going well till one day that magically stop working. When I try to use it. I just get this message.
X Error of failed request: BadName (named color or font does not exist)
The laptop display resizes in a strange way, but nothing happens with the extended monitor.
I've restored gnome desktop default config. I changed the font config, I tried with other layouts and monitors, but always occur the same.
xrandr --newmode "1920" 220.64 1920 2056 2264 2608 1080 1081 1084 1128 -HSync +Vsync
- Added quotes around the mode and made it shorter. No idea why thou, but it worked. – Crawley