sudo xrandr --output default --mode $(xdpyinfo | grep "dimensions" | sed -e 's/^\W*dimensions:\W*\([0-9]\{3,\}x[0-9]\{3,\}\).*/\1/g')
does not correct the issue since it will use the current resolution. That does not help.
At this point use
where [width] should be the width of your current connected default display
where [height] should be the height of your current connected default display
My previous comment is wrong.
sudo xrandr --output default --mode $(xdpyinfo | grep "dimensions" | sed -e 's/^\W* dimensions: \W*\([0- 9]\{3,\ }x[0-9] \{3,\}\ ).*/\1/ g')
does not correct the issue since it will use the current resolution. That does not help.
At this point use
sudo xrandr --output default --mode [width]x[height]
where [width] should be the width of your current connected default display
where [height] should be the height of your current connected default display