Configure Ubuntu monitor resolution
rmane@desktop:~$ xrandr
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 8192 x 8192
VGA1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1024x768 60.0*
800x600 60.3 56.2
848x480 60.0
640x480 59.9
HDMI1 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
HDMI3 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
DP3 disconnected (normal left inverted right x axis y axis)
rmane@desktop:~$ cvt 1024 1024
# 1024x1024 59.83 Hz (CVT) hsync: 63.60 kHz; pclk: 86.50 MHz
Modeline "1024x1024_60.00" 86.50 1024 1088 1192 1360 1024 1027 1037 1063 -hsync +vsync
$xrandr --newmode <paste Modeline obtained in above command>
rmane@desktop:~$ xrandr --newmode "1024x1024_60.00" 86.50 1024 1088 1192 1360 1024 1027 1037 1063 -hsync +vsync
rmane@desktop:~$ xrandr --addmode VGA1 1024x1024_60.00
rmane@desktop:~$ xrandr --output VGA1 --mode 1024x1024_60.00
To make this resolution permanent.
Now open your .xprofile from gedit by the command
$ sudo gedit ~/.xprofile
Copy all the three commands which you typed in the Step 3, Step 4, Step 5 and paste it in this file which will be like
xrandr --newmode "1024x1024_60.00" 86.50 1024 1088 1192 1360 1024 1027 1037 1063 -hsync +vsync
xrandr --addmode VGA1 1024x1024_60.00
xrandr --output VGA1 --mode 1024x1024_60.00